/* =========================================================================
   STRATEES Veille - identite STRATEES (studio amazonien de transformation
   soutenable). Palette validee par Lucas contre stratees.fr le 18 mai 2026
   (skill stratees-brand v1.1) : nuit bleu-violet, header violet profond,
   degrades signature violet -> magenta, DM Sans. Structure et chanfreins
   (motif angulaire anti-template, Lecon 38) inchanges - seule l'identite
   chromatique et typographique change.
   ========================================================================= */

:root {
  --st-bg-night:      #050B1F;
  --st-bg-deep:       #0A0F2C;
  --st-bg-header:     #4B0E94;
  --st-bg-card-start: #2A0F5C;
  --st-bg-card-end:   #10183D;
  --st-bg-elevated:   #1A1144;

  --st-violet:        #A855F7;
  --st-violet-deep:   #6B21A8;
  --st-violet-soft:   #C084FC;
  --st-magenta:       #EC4899;
  --st-magenta-deep:  #BE185D;
  --st-bleu-electric: #2563EB;
  --st-bleu-glacier:  #3B82F6;
  --st-bleu-deep:     #1E40AF;

  --st-text-primary:   #FFFFFF;
  --st-text-secondary: #B8C5D6;
  --st-text-muted:     #7B89A3;

  --st-divider:        rgba(255, 255, 255, 0.08);
  --st-divider-strong: rgba(168, 85, 247, 0.3);
  --st-divider-card:   rgba(168, 85, 247, 0.15);

  --st-gradient-hero:  linear-gradient(180deg, #4B0E94 0%, #1A1144 50%, #050B1F 100%);
  --st-gradient-card:  linear-gradient(180deg, #2A0F5C 0%, #10183D 100%);
  --st-gradient-cta:   linear-gradient(135deg, #2563EB 0%, #A855F7 100%);
  --st-gradient-text:  linear-gradient(90deg, #A855F7 0%, #EC4899 100%);

  --chanfrein:  16px;
  --serif: 'DM Sans', 'Inter', system-ui, sans-serif;
  --sans:  'DM Sans', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--st-bg-night);
  color: var(--st-text-primary);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Grain : le papier sous l'encre */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--st-violet-soft); text-decoration: none; }
a:hover { color: var(--st-text-primary); }

::selection { background: var(--st-violet-deep); color: var(--st-text-primary); }

/* Curseur : petit, precis, en difference */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border: 1px solid var(--st-text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease, opacity .3s ease;
}
.cursor.actif { width: 52px; height: 52px; }
@media (hover: none), (max-width: 900px) { .cursor { display: none; } }

/* ---------------------------------------------------------------- typo */
.display-xl {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}
.display-l {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.display-m {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--st-bleu-electric);
  font-weight: 700;
  margin: 0 0 1rem;
}
.texte-sourd { color: var(--st-text-secondary); }
.texte-faible { color: var(--st-text-muted); }
.mono { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- login */
.page-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4vh 5vw;
  background: var(--st-gradient-hero);
}
.login-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; gap: 3rem; }
}
.login-recit .display-xl {
  background: var(--st-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-baseline {
  max-width: 34ch;
  margin: 1.6rem 0 2.2rem;
  font-size: 1.05rem;
  color: var(--st-text-secondary);
}
.login-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--st-divider); }
.login-points li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--st-divider);
  color: var(--st-text-muted);
  font-size: 0.9rem;
}
.login-points span {
  display: block;
  color: var(--st-text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.login-carte {
  background: var(--st-gradient-card);
  border: 1px solid var(--st-divider-card);
  padding: 2.4rem 2.2rem;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.login-titre { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; margin: 0; color: var(--st-text-primary); }
.login-sous { color: var(--st-text-muted); font-size: 0.85rem; margin: 0.4rem 0 1.8rem; }
.login-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-text-muted);
  margin-bottom: 0.45rem;
}
.login-form input {
  width: 100%;
  background: var(--st-bg-night);
  border: 1px solid var(--st-divider-strong);
  color: var(--st-text-primary);
  padding: 0.8rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
  outline: none;
}
.login-form input:focus { border-color: var(--st-violet); }
.btn-or {
  width: 100%;
  background: var(--st-gradient-cta);
  color: var(--st-text-primary);
  border: 0;
  padding: 0.95rem 1rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: filter .25s ease;
}
.btn-or:hover { filter: brightness(1.12); }
.login-pied { margin: 1.6rem 0 0; font-size: 0.72rem; color: var(--st-text-muted); text-align: center; }
.alerte {
  background: rgba(236, 72, 153, 0.14);
  border-left: 2px solid var(--st-magenta);
  color: #FBC7DF;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  margin: 0 0 1.4rem;
}

/* Connexion par lien magique (2026-10-22) */
.alerte-ok {
  background: rgba(168, 85, 247, 0.14);
  border-left-color: var(--st-violet);
  color: var(--st-text-primary);
}
.login-ou {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 1.4rem 0 1rem;
  color: var(--st-text-muted);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.login-ou::before, .login-ou::after { content: ''; flex: 1; border-top: 1px solid var(--st-divider); }
.btn-lien {
  width: 100%;
  background: transparent;
  color: var(--st-text-primary);
  border: 1px solid var(--st-divider-strong);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.btn-lien:hover { border-color: var(--st-violet); background: rgba(168, 85, 247, 0.1); }
a.btn-lien-retour { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }

/* -------------------------------------------------------------- shell */
.app {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--st-divider);
  background: var(--st-bg-header);
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  z-index: 20;
}
.rail-marque { font-family: var(--serif); font-weight: 900; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1; color: var(--st-text-primary); }
.rail-marque small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-violet-soft);
  margin-top: 0.5rem;
}
.rail-nav { display: flex; flex-direction: column; gap: 0.1rem; }
.rail-nav button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.72rem 0.8rem;
  color: var(--st-text-secondary);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.rail-nav button i {
  font-style: normal;
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--st-text-muted);
}
.rail-nav button:hover { color: var(--st-text-primary); background: rgba(255,255,255,0.04); }
.rail-nav button.actif {
  color: var(--st-text-primary);
  background: rgba(168,85,247,0.16);
  border-left-color: var(--st-violet);
}
.rail-nav button.actif i { color: var(--st-violet-soft); }
.rail-pied { margin-top: auto; font-size: 0.72rem; color: var(--st-text-muted); border-top: 1px solid var(--st-divider); padding-top: 1.1rem; }
.rail-pied a { display: inline-block; margin-top: 0.5rem; font-size: 0.72rem; }

.vue {
  padding: clamp(1.6rem, 3.4vw, 3.2rem) clamp(1.4rem, 3.6vw, 3.6rem) 6rem;
  max-width: 1500px;
  min-width: 0; /* sans cela un enfant large repousse la grille au-dela de l'ecran */
}

/* Les enfants de grille doivent pouvoir retrecir : c'est ce qui garde les
   tableaux et les grilles d'indicateurs dans la largeur de l'ecran. */
.app > *, .duo > *, .trio > *, .bloc, .kpis, .table-enveloppe, .barre-ligne, .barre-duo {
  min-width: 0;
}

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: column; }
  .rail-nav { flex-direction: row; flex-wrap: wrap; }
  .rail-nav button { border-left: 0; border-bottom: 2px solid transparent; padding: 0.5rem 0.7rem; }
  .rail-nav button.actif { border-left: 0; border-bottom-color: var(--st-violet); }
  .rail-pied { margin-top: 1rem; }
}

/* -------------------------------------------------------------- entete */
.entete { margin-bottom: 2.6rem; }
.entete .display-l { max-width: 22ch; }
.entete p { max-width: 62ch; color: var(--st-text-secondary); margin: 1rem 0 0; }

.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-inner { display: inline-block; }

/* ---------------------------------------------------------------- kpi */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1px;
  background: var(--st-divider);
  border: 1px solid var(--st-divider);
  margin-bottom: 2.8rem;
}
.kpi { background: var(--st-gradient-card); padding: 1.3rem 1.2rem 1.4rem; }
.kpi .v {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--st-text-primary);
}
.kpi .v.or { color: var(--st-violet-soft); }
.kpi .l { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-text-muted); margin-top: 0.6rem; }
.kpi .n { font-size: 0.78rem; color: var(--st-text-secondary); margin-top: 0.35rem; }

/* -------------------------------------------------------------- cards */
.bloc {
  background: var(--st-gradient-card);
  border: 1px solid var(--st-divider-card);
  padding: 1.6rem 1.5rem;
  clip-path: polygon(0 0, calc(100% - var(--chanfrein)) 0, 100% var(--chanfrein), 100% 100%, 0 100%);
  margin-bottom: 1.6rem;
}
.bloc > h3 { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; margin: 0 0 0.35rem; color: var(--st-text-primary); }
.bloc > .chapo { color: var(--st-text-muted); font-size: 0.85rem; margin: 0 0 1.3rem; max-width: 74ch; }

.duo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.6rem; align-items: start; }
.trio { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 1.6rem; align-items: start; }
@media (max-width: 1180px) { .duo, .trio { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.2rem; }
.filtres input[type="search"] {
  flex: 1 1 260px;
  background: var(--st-bg-deep);
  border: 1px solid var(--st-divider-strong);
  color: var(--st-text-primary);
  padding: 0.62rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  outline: none;
}
.filtres input[type="search"]:focus { border-color: var(--st-violet); }
.puce {
  all: unset;
  cursor: pointer;
  padding: 0.44rem 0.85rem;
  font-size: 0.78rem;
  color: var(--st-text-secondary);
  border: 1px solid var(--st-divider-strong);
  transition: all .2s ease;
  white-space: nowrap;
}
.puce:hover { color: var(--st-text-primary); border-color: var(--st-text-muted); }
.puce.actif { background: var(--st-violet); border-color: var(--st-violet); color: var(--st-text-primary); font-weight: 700; }
.compteur-resultats { margin-left: auto; font-size: 0.78rem; color: var(--st-text-muted); }

/* ------------------------------------------------------------- tables */
.table-enveloppe { overflow-x: auto; border: 1px solid var(--st-divider); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 760px; }
table.data thead th {
  position: sticky;
  top: 0;
  background: var(--st-bg-elevated);
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--st-text-muted);
  font-weight: 700;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--st-divider-strong);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
table.data thead th:hover { color: var(--st-violet-soft); }
table.data tbody tr {
  border-bottom: 1px solid var(--st-divider);
  background: var(--st-bg-deep);
  transition: background .18s ease;
}
table.data tbody tr:hover { background: var(--st-bg-elevated); }
table.data tbody tr.cliquable { cursor: pointer; }
table.data td { padding: 0.78rem 0.9rem; vertical-align: top; }
table.data td.objet { max-width: 460px; }
table.data td.objet b { display: block; font-weight: 500; color: var(--st-text-primary); line-height: 1.35; }
table.data td.objet span { display: block; color: var(--st-text-muted); font-size: 0.78rem; margin-top: 0.25rem; }
.vide { padding: 2.4rem 1rem; text-align: center; color: var(--st-text-muted); font-size: 0.88rem; }

/* --------------------------------------------------------------- tags */
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--st-divider-strong);
  color: var(--st-text-secondary);
  white-space: nowrap;
}
.tag.oui { border-color: var(--st-violet); color: var(--st-violet-soft); }
.tag.cond { border-color: var(--st-bleu-glacier); color: var(--st-bleu-glacier); }
.tag.non { border-color: var(--st-text-muted); color: var(--st-text-muted); }
.tag.fort { border-color: var(--st-violet-soft); color: var(--st-violet-soft); }
.tag.strong { border-color: var(--st-violet); color: var(--st-violet-soft); }
.tag.maybe { border-color: var(--st-bleu-glacier); color: var(--st-bleu-glacier); }
.tag.dce { border-color: var(--st-violet-deep); color: var(--st-violet-soft); }

.echeance { font-variant-numeric: tabular-nums; white-space: nowrap; }
.echeance.urgent { color: var(--st-magenta); font-weight: 700; }
.echeance.proche { color: var(--st-violet-soft); }
.echeance.passee { color: var(--st-text-muted); }

/* --------------------------------------------------------------- barres */
.barres { display: flex; flex-direction: column; gap: 0.85rem; }
.barre-ligne { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: baseline; }
.barre-nom { font-size: 0.84rem; color: var(--st-text-secondary); }
.barre-val { font-size: 0.78rem; color: var(--st-text-muted); font-variant-numeric: tabular-nums; }
.barre-piste { grid-column: 1 / -1; height: 6px; background: var(--st-bg-night); position: relative; overflow: hidden; }
.barre-part { position: absolute; inset: 0 auto 0 0; background: var(--st-violet); width: 0; }
.barre-part.nat { background: var(--st-bleu-glacier); }
.barre-duo { grid-column: 1 / -1; display: grid; gap: 3px; }

.legende { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.74rem; color: var(--st-text-muted); margin-top: 1.2rem; }
.legende i { display: inline-block; width: 14px; height: 8px; margin-right: 0.4rem; vertical-align: middle; }
.legende i.or { background: var(--st-violet); }
.legende i.gris { background: var(--st-bleu-glacier); }

/* ---------------------------------------------------------------- liste */
.liste-def { margin: 0; }
.liste-def dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-text-muted);
  margin-top: 1.1rem;
}
.liste-def dt:first-child { margin-top: 0; }
.liste-def dd { margin: 0.35rem 0 0; color: var(--st-text-primary); font-size: 0.9rem; line-height: 1.55; }
.liste-def dd ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.liste-def dd li { margin-bottom: 0.3rem; }

/* --------------------------------------------------------------- panneau */
.panneau-fond {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 31, 0.72);
  backdrop-filter: blur(3px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.panneau-fond.ouvert { opacity: 1; pointer-events: auto; visibility: visible; }
.panneau {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(720px, 94vw);
  background: var(--st-bg-deep);
  border-left: 1px solid var(--st-divider-strong);
  z-index: 61;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.16,.84,.28,1), visibility .45s ease;
  overflow-y: auto;
  padding: 2.4rem clamp(1.4rem, 3vw, 2.6rem) 4rem;
}
.panneau.ouvert { transform: translateX(0); visibility: visible; }
.panneau-fermer {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 1.4rem; right: 1.5rem;
  color: var(--st-text-muted);
  font-size: 1.5rem;
  line-height: 1;
}
.panneau-fermer:hover { color: var(--st-violet-soft); }
/* Téléphone : fiche en plein écran et bouton fermer de 44 px, atteignable au pouce
   (rejeu de recette du 2026-10-22 : 13 x 24 px mesurés). */
@media (max-width: 640px) {
  .panneau { width: 100vw; border-left: 0; }
  .panneau-fermer {
    top: 0.6rem; right: 0.6rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    border-radius: 50%;
    background: var(--st-bg-elevated, rgba(255,255,255,.06));
  }
  #panneau-corps > .eyebrow:first-child { margin-right: 3.2rem; }
}
.panneau h2 { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; line-height: 1.12; margin: 0.7rem 3rem 0.9rem 0; color: var(--st-text-primary); }
.panneau .meta-ligne { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.6rem; }
.panneau .analyse {
  color: var(--st-text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  border-left: 2px solid var(--st-violet-deep);
  padding-left: 1rem;
  margin: 0 0 1.6rem;
}
.panneau .lien-externe {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--st-violet);
  color: var(--st-violet-soft);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.panneau .lien-externe:hover { background: var(--st-violet); color: var(--st-text-primary); }
.bloc-brut {
  background: var(--st-bg-night);
  border: 1px solid var(--st-divider);
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  color: var(--st-text-secondary);
  white-space: pre-wrap;
  max-height: 260px;
  overflow-y: auto;
  line-height: 1.5;
}

/* --------------------------------------------------------------- marquee */
.bandeau {
  border-top: 1px solid var(--st-divider);
  border-bottom: 1px solid var(--st-divider);
  overflow: hidden;
  padding: 0.8rem 0;
  margin-bottom: 2.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.bandeau-piste { display: flex; gap: 2.6rem; width: max-content; will-change: transform; }
.bandeau-piste span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--st-text-muted);
  white-space: nowrap;
}
.bandeau-piste span::after { content: ' / '; color: var(--st-violet-deep); margin-left: 2.6rem; }

/* --------------------------------------------------------------- pieces */
.pieces-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--st-divider); border: 1px solid var(--st-divider); }
.piece { background: var(--st-bg-night); padding: 0.85rem 0.9rem; }
.piece b { display: block; font-weight: 500; font-size: 0.84rem; color: var(--st-text-primary); word-break: break-word; line-height: 1.35; }
.piece span { display: block; font-size: 0.72rem; color: var(--st-text-muted); margin-top: 0.35rem; }

.reveal { opacity: 0; transform: translateY(22px); }

.note {
  font-size: 0.78rem;
  color: var(--st-text-muted);
  border-left: 2px solid var(--st-divider-strong);
  padding-left: 0.9rem;
  margin: 1.4rem 0 0;
  max-width: 78ch;
  line-height: 1.6;
}

.chargement { padding: 3rem 0; color: var(--st-text-muted); font-size: 0.9rem; }

/* --------------------------------------------------------- panneau cles */
.cle-ligne { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--st-divider); }
.cle-ligne:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cle-ligne label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--st-text-primary); margin-bottom: 0.5rem; }
.cle-champ { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.cle-champ input {
  flex: 1 1 260px;
  background: var(--st-bg-deep);
  border: 1px solid var(--st-divider-strong);
  color: var(--st-text-primary);
  padding: 0.62rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  outline: none;
}
.cle-champ input:focus { border-color: var(--st-violet); }
/* Meme apparence que .puce, mais classe distincte : .puce est aussi capte par
   le gestionnaire de clic delegue des filtres (Marches/Radar), qui suppose
   toujours un parent .filtres - un bouton .puce hors filtre y declenche une
   erreur JS (querySelectorAll sur null). */
.bouton-cle {
  all: unset;
  cursor: pointer;
  padding: 0.44rem 0.85rem;
  font-size: 0.78rem;
  color: var(--st-text-secondary);
  border: 1px solid var(--st-divider-strong);
  transition: all .2s ease;
  white-space: nowrap;
}
.bouton-cle:hover { color: var(--st-text-primary); border-color: var(--st-text-muted); }
.bouton-cle:disabled { opacity: 0.5; cursor: default; }
.cle-statut { font-size: 0.78rem; color: var(--st-text-muted); margin: 0.55rem 0 0; }
.cle-statut.ok { color: var(--st-violet-soft); }
.cle-statut.echec { color: var(--st-magenta); }
.cle-test-resultat:empty { display: none; }
.cle-test-resultat { margin: 0.4rem 0 0; }
.cle-statut-verif { font-size: 0.76rem; color: var(--st-text-muted); margin: 0.4rem 0 0; }
.cle-statut-verif.ok { color: var(--st-violet-soft); }
.cle-statut-verif.echec { color: var(--st-magenta); }

.prose { max-width: 76ch; }
.prose h3 { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 2rem 0 0.6rem; color: var(--st-text-primary); }
.prose h4 { font-size: 0.95rem; margin: 1.5rem 0 0.4rem; color: var(--st-violet-soft); }
.prose p { color: var(--st-text-secondary); margin: 0 0 0.9rem; }
.prose ul { color: var(--st-text-secondary); padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--st-text-primary); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
