/* Le Juge — tribunal des stratégies. Une seule identité : nuit de salle des marchés, verdicts en couleur. */
/* Les polices voyagent avec le site (licence SIL OFL, voir polices/) : le rendu est le même partout. */
@font-face { font-family: "Unbounded"; src: url("polices/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("polices/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("polices/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --nuit: #05080a;
  --nuit-2: #0a0f13;
  --panneau: #0d1318;
  --panneau-2: #121a21;
  --trait: rgba(186, 230, 214, 0.09);
  --trait-fort: rgba(186, 230, 214, 0.18);
  --texte: #e8f1ee;
  --doux: #93a39f;
  --faible: #5d6c69;
  --vert: #33f5a6;
  --vert-sombre: #0b3b29;
  --rouge: #ff4f6b;
  --rouge-sombre: #3d0f19;
  --ambre: #f5b841;
  --display: "Unbounded", "Arial Black", sans-serif;
  --corps: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;
  --rayon: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id], #rapport { scroll-margin-top: 90px; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font: 16px/1.6 var(--corps);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: var(--mono); }
a { color: var(--vert); }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font: 600 clamp(1.7rem, 3.4vw, 2.6rem)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 2.2rem; max-width: 22ch; }
h3 { font: 600 1.05rem/1.3 var(--corps); }
::selection { background: var(--vert); color: var(--nuit); }

/* Le décor : une grille de salle des marchés, une lueur verte, du grain. */
.fond {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(51, 245, 166, 0.13), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 79, 107, 0.06), transparent 70%),
    linear-gradient(var(--trait) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--trait) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--nuit);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
}

/* En-tête */
.barre {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(5, 8, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--trait);
}
.logo { display: flex; align-items: center; gap: 0.7rem; color: var(--texte); text-decoration: none;
  font: 800 0.95rem var(--display); letter-spacing: 0.08em; }
.logo svg { width: 30px; height: 30px; color: var(--vert); }
.barre nav { display: flex; gap: 1.6rem; margin-left: auto; }
.barre nav a { color: var(--doux); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.barre nav a:hover { color: var(--texte); }

/* Boutons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem; border-radius: 12px; border: 1px solid transparent;
  font: 600 0.98rem var(--corps); text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-vert { background: var(--vert); color: #02140c; box-shadow: 0 0 0 1px rgba(51, 245, 166, 0.4), 0 10px 40px -10px rgba(51, 245, 166, 0.65); }
.btn-vert:hover { box-shadow: 0 0 0 1px rgba(51, 245, 166, 0.6), 0 14px 50px -8px rgba(51, 245, 166, 0.85); }
.btn-contour { background: rgba(255, 255, 255, 0.02); color: var(--texte); border-color: var(--trait-fort); }
.btn-contour:hover { border-color: var(--vert); }
.btn.petit { padding: 0.55rem 1rem; font-size: 0.88rem; border-radius: 10px; }
.btn.large { width: 100%; padding: 1.05rem; font-size: 1.02rem; }
.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

/* Sections */
main > section { max-width: 1240px; margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 4vw, 3rem); }
.sur { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.2rem;
  font: 500 0.78rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--vert); }
.pastille { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 12px var(--vert); animation: pouls 1.8s ease-in-out infinite; }
.pastille.rouge { background: var(--rouge); box-shadow: 0 0 12px var(--rouge); }
@keyframes pouls { 50% { opacity: 0.35; } }

/* Héros */
.heros { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem) !important; }
h1 { font: 800 clamp(2.4rem, 5.2vw, 4.4rem)/1.02 var(--display); letter-spacing: -0.035em; }
.surligne { display: block; background: linear-gradient(92deg, var(--vert) 0%, #b6ffdf 55%, var(--vert) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapo { margin: 1.6rem 0 0; max-width: 34em; color: var(--doux); font-size: 1.12rem; }
.chapo strong { color: var(--texte); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2.8rem 0 0; border-top: 1px solid var(--trait); }
.specs div { padding: 1.1rem 1rem 0 0; }
.specs div + div { padding-left: 1rem; border-left: 1px solid var(--trait); }
.specs dt { font: 600 1.35rem var(--display); color: var(--texte); }
.specs dd { margin: 0.3rem 0 0; color: var(--faible); font-size: 0.86rem; line-height: 1.4; }

.ecran {
  position: relative; border-radius: 22px; padding: 0 0 1rem;
  background: linear-gradient(180deg, rgba(18, 26, 33, 0.92), rgba(9, 13, 17, 0.96));
  border: 1px solid var(--trait-fort);
  box-shadow: 0 50px 120px -40px rgba(51, 245, 166, 0.25), 0 30px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ecran::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px); }
.ecran-tete { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--trait);
  font-size: 0.72rem; letter-spacing: 0.14em; color: var(--faible); }
.feux { display: flex; gap: 6px; }
.feux i { width: 9px; height: 9px; border-radius: 50%; background: #26323a; }
.direct { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; color: var(--rouge); }
.ecran canvas { display: block; width: 100%; padding: 0 1.1rem; }
#demo-bougies { margin-top: 0.8rem; }
.ecran-sep { display: flex; justify-content: space-between; padding: 0.3rem 1.1rem 0.4rem; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--vert); border-top: 1px dashed var(--trait); }
.ambre { color: var(--ambre); }

/* Le tampon du verdict */
.tampon {
  position: absolute; right: 7%; bottom: 13%; z-index: 3;
  padding: 0.55rem 1.1rem; border: 3px solid currentColor; border-radius: 10px;
  font: 800 1.05rem var(--display); letter-spacing: 0.08em; color: var(--rouge);
  transform: rotate(-9deg); background: rgba(5, 8, 10, 0.55);
  box-shadow: 0 0 30px -4px currentColor, inset 0 0 18px -6px currentColor;
  animation: tamponner 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.tampon.oui { color: var(--vert); }
.tampon.promet { color: var(--ambre); }
@keyframes tamponner { from { opacity: 0; transform: rotate(-9deg) scale(2.2); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* Bandeau défilant */
.bandeau { border-block: 1px solid var(--trait); background: rgba(10, 15, 19, 0.85); overflow: hidden; }
.defile { display: flex; gap: 1.6rem; width: max-content; padding: 0.95rem 0; font-size: 0.78rem; letter-spacing: 0.16em; color: var(--doux);
  animation: defiler 48s linear infinite; }
.defile b { color: var(--vert); font-weight: 400; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* Le procès */
.pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.pieces li { background: var(--nuit-2); padding: 1.6rem 1.3rem 1.8rem; transition: background 0.25s; }
.pieces li:hover { background: var(--panneau-2); }
.pieces .num { display: block; font: 600 2.2rem var(--display); color: transparent; -webkit-text-stroke: 1px var(--vert); margin-bottom: 1.2rem; }
.pieces p { color: var(--doux); font-size: 0.92rem; margin: 0.6rem 0 0; }

/* L'audience */
.audience-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.onglets { display: flex; gap: 6px; padding: 6px; margin-bottom: 2.2rem; border: 1px solid rgba(51, 245, 166, 0.35); border-radius: 14px; background: var(--nuit-2); box-shadow: 0 0 0 4px rgba(51, 245, 166, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35); }
.onglets button { border: 1px solid var(--trait-fort); background: var(--panneau); color: #c9d6d2; font: 700 0.95rem var(--corps); padding: 0.7rem 1.2rem; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.onglets button:hover { color: var(--texte); border-color: rgba(51, 245, 166, 0.45); background: var(--panneau-2); }
.onglets button[aria-selected="true"] { background: var(--vert); border-color: var(--vert); color: var(--nuit); box-shadow: 0 0 18px rgba(51, 245, 166, 0.35); }
.onglets button:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }

.console { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; align-items: start; }
.console[data-panneau="bibliotheque"] { display: block; }
.colonne { display: grid; gap: 1.2rem; }
.bloc { background: linear-gradient(180deg, var(--panneau), var(--nuit-2)); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.4rem; }
.bloc-tete { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.1rem; font-weight: 600; }
.bloc-tete .mono { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--vert); }

.editeur { display: flex; border: 1px solid var(--trait-fort); border-radius: 12px; background: #04070a; overflow: hidden; }
.numeros { display: flex; flex-direction: column; padding: 0.9rem 0.7rem; color: var(--faible); font-size: 0.85rem; line-height: 1.7; border-right: 1px solid var(--trait); user-select: none; }
.editeur textarea { flex: 1; border: 0; border-radius: 0; background: transparent; resize: vertical; min-height: 7.2rem; line-height: 1.7; font-size: 0.95rem; color: #c9ffe8; }
textarea, input, select {
  width: 100%; font: 0.95rem var(--corps); color: var(--texte); background: #070b0e;
  border: 1px solid var(--trait-fort); border-radius: 10px; padding: 0.75rem 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { font-family: var(--mono); padding: 0.9rem 1rem; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(51, 245, 166, 0.14); }
.editeur:focus-within { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(51, 245, 166, 0.14); }
.editeur textarea:focus { box-shadow: none; }
.reglages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1rem; }
.reglages.trois { grid-template-columns: 1.4fr 1fr 1fr; }
.reglages label, .etiquette { display: grid; gap: 0.4rem; font-size: 0.8rem; color: var(--doux); }
.aide { color: var(--faible); font-size: 0.84rem; margin: 0.9rem 0 0; }
.aide.large { font-size: 1rem; color: var(--doux); margin: 0 0 1.6rem; max-width: 60ch; }

.choix-source { margin-bottom: 1.1rem; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--vert) 50%), linear-gradient(135deg, var(--vert) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
select option { background: var(--panneau); color: var(--texte); }
#plateforme { font-weight: 600; color: var(--texte); border-color: rgba(51, 245, 166, 0.35); }

.puces { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; padding: 0.5rem; border: 1px solid var(--trait-fort); border-radius: 10px; background: #070b0e; }
.puces:focus-within { border-color: var(--vert); }
.puces input { flex: 1; min-width: 12ch; border: 0; padding: 0.35rem; background: transparent; box-shadow: none !important; text-transform: uppercase; }
.puces input::placeholder { text-transform: none; }
.aide.serre { margin: 0.5rem 0 0; font-size: 0.8rem; }
.puce { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem 0.3rem 0.7rem; border-radius: 8px; background: var(--panneau-2); border: 1px solid var(--trait-fort); font: 500 0.82rem var(--mono); }
.puce button { border: 0; background: transparent; color: var(--faible); cursor: pointer; font-size: 1rem; line-height: 1; }
.puce button:hover { color: var(--rouge); }
.suggestions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0 1.1rem; font-size: 0.75rem; }
.suggestions button { border: 1px dashed var(--trait-fort); background: transparent; color: var(--faible); border-radius: 6px; padding: 0.2rem 0.5rem; cursor: pointer; font: inherit; }
.suggestions button:hover { color: var(--vert); border-color: var(--vert); }
.curseur { display: grid; gap: 0.5rem; font-size: 0.85rem; color: var(--doux); }
.curseur b { color: var(--vert); font-family: var(--mono); }
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--vert); box-shadow: none !important; }

.depot { position: relative; display: grid; gap: 0.3rem; place-items: center; text-align: center; padding: 1.8rem 1rem; border: 1.5px dashed var(--trait-fort); border-radius: 14px; background: #070b0e; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.depot:hover, .depot.survol { border-color: var(--vert); background: rgba(51, 245, 166, 0.04); }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot span { color: var(--faible); font-size: 0.85rem; }
.depot a { position: relative; z-index: 1; }
.fichiers { list-style: none; padding: 0; margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--vert); }

.options { display: grid; gap: 1rem; }
.interrupteur { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; cursor: pointer; color: var(--doux); font-size: 0.9rem; }
.interrupteur strong { display: block; color: var(--texte); margin-bottom: 0.15rem; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur i { position: relative; width: 44px; height: 24px; margin-top: 2px; border-radius: 99px; background: #1a242c; border: 1px solid var(--trait-fort); transition: background 0.2s; }
.interrupteur i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--doux); transition: transform 0.22s, background 0.2s; }
.interrupteur input:checked + i { background: var(--vert-sombre); border-color: rgba(51, 245, 166, 0.5); }
.interrupteur input:checked + i::after { transform: translateX(20px); background: var(--vert); box-shadow: 0 0 10px var(--vert); }
.interrupteur input:focus-visible + i { outline: 2px solid var(--vert); outline-offset: 2px; }

.dossier { position: sticky; top: 90px; display: grid; gap: 1.2rem; padding: 1.4rem; border-radius: var(--rayon); border: 1px solid var(--trait-fort);
  background: radial-gradient(400px 220px at 50% 0%, rgba(51, 245, 166, 0.08), transparent 70%), var(--panneau); }
.dossier .bloc-tete { margin: 0; }
.jauge-chiffre { display: flex; align-items: baseline; gap: 0.7rem; }
.jauge-chiffre .mono { font-size: 2.6rem; font-weight: 500; color: var(--vert); letter-spacing: -0.03em; }
.jauge-chiffre small { color: var(--faible); }
.jauge-barre { height: 6px; border-radius: 99px; background: #18222a; overflow: hidden; margin: 0.7rem 0; }
.jauge-barre i { display: block; height: 100%; width: 10%; border-radius: inherit; background: linear-gradient(90deg, var(--vert), var(--ambre), var(--rouge)); transition: width 0.6s ease; }
.jauge p { margin: 0; color: var(--doux); font-size: 0.86rem; }
.resume { display: grid; gap: 0.45rem; margin: 0; font-size: 0.8rem; padding: 1rem 0; border-block: 1px solid var(--trait); }
.resume div { display: flex; justify-content: space-between; gap: 1rem; }
.resume dt { color: var(--faible); }
.resume dd { margin: 0; color: var(--texte); text-align: right; }
.liste { margin: 0; padding-left: 1.1rem; color: var(--doux); font-size: 0.9rem; display: grid; gap: 0.4rem; }
.avertissement { margin: 0; color: var(--faible); font-size: 0.78rem; text-align: center; }

/* Bibliothèque */
.biblio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fiche { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.2rem; border-radius: 16px; border: 1px solid var(--trait); background: var(--panneau); transition: border-color 0.2s, transform 0.2s; }
.fiche:hover { border-color: var(--trait-fort); transform: translateY(-3px); }
.famille { align-self: flex-start; font: 500 0.68rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 6px; }
.famille.tendance { color: var(--vert); background: rgba(51, 245, 166, 0.09); }
.famille.cassure { color: var(--ambre); background: rgba(245, 184, 65, 0.1); }
.famille.retour { color: #8fb7ff; background: rgba(143, 183, 255, 0.1); }
.fiche p { margin: 0; color: var(--doux); font-size: 0.86rem; }
.fiche code { display: block; font: 0.74rem/1.55 var(--mono); color: #c9ffe8; background: #04070a; border: 1px solid var(--trait); border-radius: 8px; padding: 0.55rem 0.65rem; }
.fiche .btn { margin-top: auto; padding: 0.6rem; font-size: 0.86rem; }

/* Attente */
.attente { margin-top: 2rem; padding: 2.5rem 1rem; text-align: center; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--nuit-2); }
.balayage { position: relative; height: 54px; max-width: 420px; margin: 0 auto 1.2rem; border-bottom: 1px solid var(--trait-fort); overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(51, 245, 166, 0.12) 14px 16px); }
.balayage i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--vert); box-shadow: 0 0 18px 4px rgba(51, 245, 166, 0.6); animation: balayer 1.6s ease-in-out infinite alternate; }
@keyframes balayer { from { left: 0; } to { left: 100%; } }
.attente p { letter-spacing: 0.18em; color: var(--vert); font-size: 0.85rem; }
.attente ol { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--faible); font-size: 0.8rem; line-height: 1.8; }
.erreur { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 12px; color: #ffd0d8; background: var(--rouge-sombre); border: 1px solid rgba(255, 79, 107, 0.4); }

/* Le rapport */
.rapport { margin-top: 2rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 24px; border: 1px solid var(--trait-fort); background: linear-gradient(180deg, var(--panneau), var(--nuit-2)); position: relative; overflow: hidden; }
.rapport-tete { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.rapport-tete .mono { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--faible); }
.rapport-tete h3 { font: 600 1.3rem var(--display); margin: 0.4rem 0 0.6rem; }
.rapport-tete p { margin: 0; color: var(--doux); font-size: 0.9rem; max-width: 70ch; }
.rapport-tete p.financement { margin-top: 0.3rem; color: var(--faible); font-size: 0.82rem; }
.rapport .tampon { position: static; display: inline-block; font-size: clamp(1.1rem, 2.4vw, 1.6rem); padding: 0.7rem 1.3rem; }
.motifs { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.motifs li { display: flex; gap: 0.7rem; color: var(--texte); font-size: 0.95rem; }
.motifs li::before { content: "✕"; color: var(--rouge); font-weight: 700; }
.puissance { margin: 1rem 0 0; padding: 0.8rem 1rem; border-left: 3px solid var(--ambre); background: rgba(245, 184, 65, 0.06); border-radius: 0 10px 10px 0; color: var(--texte); font-size: 0.92rem; max-width: 80ch; }
.conseil { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid rgba(245, 184, 65, 0.4); border-radius: 12px; background: rgba(245, 184, 65, 0.06); }
.conseil .mono { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--ambre); }
.conseil p { margin: 0.5rem 0 0; color: var(--texte); font-size: 0.9rem; }
.conseil .conseil-assorties { color: var(--doux); font-size: 0.8rem; }
.conseil button { margin-top: 0.8rem; }
.conseil.ok { border-color: rgba(51, 245, 166, 0.35); background: rgba(51, 245, 166, 0.05); }
.conseil.ok .mono { color: var(--vert); }
.puissance.perd { border-left-color: var(--rouge); background: rgba(255, 79, 107, 0.06); }
.motifs.oui li::before { content: "✓"; color: var(--vert); }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 2rem 0; background: var(--trait); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.tuile { background: var(--nuit-2); padding: 1.1rem 1.2rem; }
.tuile b { display: block; font: 500 1.55rem var(--mono); letter-spacing: -0.02em; }
.tuile span { color: var(--faible); font-size: 0.8rem; }
.tuile.bon b { color: var(--vert); }
.tuile.mauvais b { color: var(--rouge); }
.graphique { border: 1px solid var(--trait); border-radius: 16px; padding: 1rem 1rem 0.6rem; background: #04070a; }
.graphique-legende { display: flex; gap: 1.4rem; font: 0.72rem var(--mono); letter-spacing: 0.1em; color: var(--faible); margin-bottom: 0.4rem; }
.graphique-legende span::before { content: ""; display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-right: 0.5rem; background: var(--vert); }
.graphique-legende span.h::before { background: var(--ambre); }
.graphique canvas { width: 100%; display: block; }
.rapport table { width: 100%; border-collapse: collapse; margin-top: 1.8rem; font-size: 0.88rem; }
.rapport th { text-align: left; font: 500 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faible); padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--trait-fort); }
.rapport td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--trait); }
.rapport td.n, .rapport th.n { text-align: right; font-family: var(--mono); }
.rapport tr.retenue td { color: var(--vert); }
.positif { color: var(--vert); }
.negatif { color: var(--rouge); }
.ne-dit-pas { margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: 14px; border: 1px solid rgba(245, 184, 65, 0.3); background: rgba(245, 184, 65, 0.05); color: var(--doux); font-size: 0.92rem; }
.ne-dit-pas strong { display: block; color: var(--ambre); font: 500 0.72rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.4rem; }
.telecharger { display: inline-block; margin-top: 1.4rem; font: 500 0.85rem var(--mono); }

/* La langue */
.grille-langue { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }
.code { padding: 1.6rem; border-radius: var(--rayon); border: 1px solid var(--trait-fort); background: #04070a; font-size: 0.92rem; line-height: 2.1; color: #c9ffe8; box-shadow: inset 0 0 60px -30px rgba(51, 245, 166, 0.3); }
.c-sens { color: var(--vert); font-weight: 600; }
.c-op { color: var(--ambre); }
.c-et { color: #8fb7ff; }
.lexique { margin: 0; display: grid; gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.lexique div { background: var(--nuit-2); padding: 1.1rem 1.3rem; }
.lexique dt { font-weight: 600; margin-bottom: 0.3rem; }
.lexique dd { margin: 0; color: var(--doux); font-size: 0.82rem; line-height: 1.9; word-spacing: 0.4em; }
.langue-note { grid-column: 1 / -1; margin: 0; }

/* Questions */
.questions details { border-bottom: 1px solid var(--trait); padding: 1.3rem 0; }
.questions summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.questions summary::after { content: "+"; font-family: var(--mono); color: var(--vert); font-size: 1.3rem; line-height: 1; transition: transform 0.2s;
  align-self: flex-start; }  /* pas étiré sur deux lignes : tourné, il reste en place (sinon il sort de la page sur mobile) */
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { color: var(--doux); margin: 0.8rem 0 0; max-width: 75ch; }

.pied { display: flex; align-items: center; gap: 2rem; justify-content: space-between; flex-wrap: wrap; padding: 2rem clamp(1rem, 4vw, 3rem) 3rem; border-top: 1px solid var(--trait); color: var(--faible); font-size: 0.82rem; }
.pied p { margin: 0; max-width: 70ch; }
.petit-logo { font-size: 0.8rem; color: var(--doux); }

@media (max-width: 1080px) {
  .pieces { grid-template-columns: repeat(2, 1fr); }
  .biblio { grid-template-columns: repeat(2, 1fr); }
  .console { grid-template-columns: 1fr; }
  .dossier { position: static; }
}
@media (max-width: 860px) {
  .heros, .grille-langue { grid-template-columns: 1fr; }
  .barre nav { display: none; }
  .reglages, .tuiles { grid-template-columns: repeat(2, 1fr); }
  .reglages.trois { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .reglages select { padding-left: 0.7rem; padding-right: 1.9rem; font-size: 0.88rem; background-position: calc(100% - 0.95rem) 52%, calc(100% - 0.6rem) 52%; }
  .pieces, .biblio { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--trait); }
  .barre .btn { display: none; }
  .onglets { width: 100%; }
  .onglets button { flex: 1; padding: 0.6rem 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* Le trait du Juge balaie quand même, plus lentement : un petit trait, rien qui secoue l'écran. */
  .balayage i { animation: balayer 3.2s ease-in-out infinite alternate !important; }
}

/* Le code d'accès (phase de test) */
.code-dialogue { max-width: 420px; width: calc(100% - 32px); padding: 1.8rem; border: 1px solid rgba(51, 245, 166, 0.35); border-radius: var(--rayon); background: var(--panneau); color: var(--texte); }
.code-dialogue::backdrop { background: rgba(2, 5, 7, 0.82); backdrop-filter: blur(4px); }
.code-dialogue .mono { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--vert); }
.code-dialogue h3 { font: 600 1.3rem var(--display); margin: 0.5rem 0; }
.code-dialogue p { color: var(--doux); font-size: 0.9rem; margin: 0 0 1rem; }
.code-dialogue .code-refuse { color: var(--rouge); }
.code-dialogue input { margin-bottom: 1rem; }
.code-dialogue .btn { width: 100%; }

/* Les infobulles */
.info { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 0.3rem; padding: 0; vertical-align: 1px;
  border: 1px solid rgba(51, 245, 166, 0.45); border-radius: 50%; background: transparent; color: var(--vert);
  font: 700 0.68rem/1 var(--corps); cursor: help; transition: background 0.15s, color 0.15s; }
.info:hover, .info[aria-expanded="true"] { background: var(--vert); color: var(--nuit); }
.info:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }
.bulle { position: absolute; z-index: 50; padding: 0.8rem 0.95rem; border: 1px solid rgba(51, 245, 166, 0.35); border-radius: 12px;
  background: #0b1216; color: var(--texte); font: 400 0.84rem/1.55 var(--corps); letter-spacing: 0; text-transform: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); pointer-events: none; }
.bulle.fixe { position: fixed; }                       /* dans une fenêtre : rangée avec elle, au-dessus de tout */
.depot .info { position: relative; z-index: 1; }        /* au-dessus du champ de fichier qui couvre la zone */
.remise-ligne { margin: -0.4rem 0 1rem; }
.remise-ligne .lien-discret { margin: 0; }
.suivi-boutons .info { align-self: center; }

/* Mode d'emploi des options, avis avant les scellés, nouveau dossier */
.mode-emploi { margin-top: 0.4rem; border-top: 1px solid var(--trait); padding-top: 0.9rem; color: var(--doux); font-size: 0.88rem; }
.mode-emploi summary { cursor: pointer; color: var(--vert); font-weight: 600; }
.mode-emploi ol { margin: 0.8rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.mode-emploi strong { color: var(--texte); }
.mode-emploi p { margin: 0.8rem 0 0; color: var(--faible); }
.avis-scelles { margin: 0; padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.86rem; color: var(--texte);
  border-left: 3px solid var(--ambre); background: rgba(245, 184, 65, 0.06); }
.avis-scelles.bon { border-left-color: var(--vert); background: rgba(51, 245, 166, 0.06); }
.avis-scelles.mauvais { border-left-color: var(--rouge); background: rgba(255, 79, 107, 0.06); }
.lien-discret { margin: -0.4rem 0 1rem; padding: 0; border: 0; background: none; color: var(--faible); font: 0.8rem var(--corps);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.lien-discret:hover { color: var(--texte); }

/* Le constructeur de règles */
.constructeur { display: grid; gap: 0.9rem; }
.regle-carte { display: grid; gap: 0.7rem; padding: 1rem; border: 1px solid var(--trait-fort); border-radius: 14px; background: #070b0e; min-width: 0; }
.regle-carte.brute { border-style: dashed; }
.regle-carte.brute .mono { margin: 0; color: #c9ffe8; font-size: 0.88rem; overflow-x: auto; }
.regle-tete { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.regle-tete select { width: auto; min-width: 14rem; font-weight: 600; color: var(--vert); }
.regle-tete .mono, .condition .et { color: var(--faible); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.condition { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; min-width: 0; }
.condition .et { flex-basis: 100%; }
.condition > select { flex: 1 1 8.5rem; min-width: 0; padding-left: 0.75rem; }
.petit-champ { display: grid; gap: 0.2rem; flex: 0 0 4.6rem; font-size: 0.7rem; color: var(--faible); }
.petit-champ.large { flex-basis: 5.6rem; }
.petit-champ input { padding: 0.6rem 0.6rem; font-family: var(--mono); }
.retirer { align-self: center; width: 2rem; height: 2rem; border: 1px solid var(--trait-fort); border-radius: 8px; background: transparent; color: var(--faible); font-size: 1.1rem; cursor: pointer; }
.retirer:hover { color: var(--rouge); border-color: var(--rouge); }
.regle-carte .phrase { margin: 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(51, 245, 166, 0.06); color: var(--texte); font-size: 0.9rem; }
.regle-carte.brute .phrase { background: rgba(245, 184, 65, 0.07); }
.regle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.regle-actions .lien-discret { margin: 0; }
.constructeur-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0.9rem 0; }
/* Le choix du mode d'écriture, en haut des règles : visible avant le premier menu. */
.mode-regles { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: -0.2rem 0 1.1rem; }
.mode-regles .segments { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--trait-fort); border-radius: 12px; background: #070b0e; }
.mode-regles label { position: relative; padding: 0.5rem 0.95rem; border-radius: 9px; color: var(--doux); font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.mode-regles label:hover { color: var(--texte); }
.mode-regles input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mode-regles label:has(input:checked) { background: rgba(51, 245, 166, 0.14); color: var(--vert); }
.mode-regles label:has(input:focus-visible) { outline: 2px solid var(--ambre); outline-offset: 1px; }
.mode-regles .info { margin-left: 0; }
@media (max-width: 560px) {                           /* mobile : les deux choix côte à côte, le « ? » au bout */
  .mode-regles { flex-wrap: nowrap; }
  .mode-regles .segments { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
  .mode-regles label { display: grid; place-items: center; padding: 0.5rem 0.55rem; text-align: center; line-height: 1.3; }
}

/* Fabriquer le bot */
.bot { display: grid; gap: 0.7rem; margin: 2rem 0; padding: 1.3rem 1.4rem; border: 1px solid rgba(51, 245, 166, 0.3); border-radius: 16px; background: rgba(51, 245, 166, 0.04); }
.bot .mono { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--vert); }
.bot h4 { margin: 0; font: 600 1.15rem var(--display); }
.bot p { margin: 0; color: var(--doux); font-size: 0.92rem; max-width: 75ch; }
.bot strong { color: var(--texte); }
.bot .bot-alerte { padding: 0.7rem 0.9rem; border-left: 3px solid var(--rouge); border-radius: 0 10px 10px 0; background: rgba(255, 79, 107, 0.07); color: var(--texte); }
.bot-boutons { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Le suivi à blanc */
.console[data-panneau="suivis"], .console[data-panneau="audiences"] { display: block; }
.suivis-intro { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 1.4rem; align-items: start; }
.suivis-intro .aide.large { margin: 0; }
.suivis-vide { color: var(--faible); border: 1px dashed var(--trait-fort); border-radius: 16px; padding: 1.4rem; margin-top: 1.6rem; }
.suivi-carte { margin-top: 1.6rem; }
.suivi-carte .tuiles { grid-template-columns: repeat(5, 1fr); }
.tampon.attente { color: var(--ambre); }
.tampon.eteint { color: var(--faible); }
.suivi-boutons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.suivi-retour { margin: 0; color: var(--texte); }
.suivi-carte details { margin-top: 1.4rem; }
.suivi-carte summary { cursor: pointer; color: var(--doux); font-size: 0.9rem; }
/* Le relevé des trades : replié, défilant de côté sur téléphone, chaque prix lisible. */
.releve-bloc { margin-top: 1.6rem; border: 1px solid var(--trait); border-radius: 12px; padding: 0.9rem 1rem; }
.releve-bloc summary { cursor: pointer; color: var(--vert); font-weight: 600; font-size: 0.92rem; }
.releve-bloc .aide { margin: 0.8rem 0 0; font-size: 0.8rem; color: var(--faible); line-height: 1.55; }
.table-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rapport .table-defile table.releve { margin-top: 0.8rem; font-size: 0.8rem; min-width: 860px; }
.rapport table.releve td, .rapport table.releve th { white-space: nowrap; padding: 0.45rem 0.45rem; }
.releve-bloc .telecharger, .releve-bloc .lien-discret { display: inline-block; margin-top: 0.9rem; }
.puissance.journee { border-left: 2px solid var(--vert); padding-left: 0.8rem; }
.onglets { flex-wrap: wrap; }
@media (max-width: 860px) {
  .suivis-intro { grid-template-columns: 1fr; }
  .suivi-carte .tuiles { grid-template-columns: repeat(2, 1fr); }
}
.suivi-carte .tuile b { font-size: 1.25rem; }
.suivi-carte .rapport-tete .tampon { font-size: clamp(0.9rem, 1.8vw, 1.15rem); padding: 0.55rem 1rem; }

/* Les pages : l'accueil, l'outil, le guide */
.pieces.trois { grid-template-columns: repeat(3, 1fr); }
.commencer-carte { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(1.6rem, 4vw, 3rem); border: 1px solid rgba(51, 245, 166, 0.35); border-radius: 24px; background: linear-gradient(135deg, rgba(51, 245, 166, 0.07), rgba(5, 8, 10, 0.4)); }
.commencer-carte h2 { margin-bottom: 0; }
.commencer-carte .actions { margin-top: 0; }
.page-outil > section { padding-top: clamp(2rem, 5vw, 3.5rem); }
@media (max-width: 860px) {
  .barre nav { display: flex; gap: 0.9rem; }
  .barre nav a { font-size: 0.85rem; }
  .barre nav a.ancre { display: none; }
  .pieces.trois { grid-template-columns: 1fr; }
}

/* Le guide */
.guide > section.guide-tete { padding-bottom: 2.5rem; }
.guide-tete h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.guide-corps { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 5rem; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.guide-sommaire { position: sticky; top: 96px; padding: 1.2rem 1.3rem; border: 1px solid var(--trait-fort); border-radius: 16px; background: var(--nuit-2); }
.guide-sommaire .mono { margin: 0 0 0.7rem; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--vert); }
.guide-sommaire ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; font-size: 0.88rem; }
.guide-sommaire a { color: var(--doux); text-decoration: none; }
.guide-sommaire a:hover { color: var(--vert); }
.guide-texte section { padding: 0 0 3.5rem; scroll-margin-top: 96px; max-width: 80ch; }
.guide-texte h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.2rem; max-width: none; display: flex; gap: 0.9rem; align-items: baseline; }
.guide-texte h2 .mono { font-size: 0.85rem; color: var(--vert); letter-spacing: 0.1em; }
.guide-texte p, .guide-texte li { color: var(--doux); line-height: 1.7; }
.guide-texte strong { color: var(--texte); }
.guide-texte ol, .guide-texte ul { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.guide-texte .mono.petit { font-size: 0.82rem; }
.guide-texte code { font-family: var(--mono); font-size: 0.88em; color: #c9ffe8; background: #04070a; padding: 0.1em 0.35em; border-radius: 6px; border: 1px solid var(--trait); }
.guide-texte .grille-langue { grid-template-columns: 1fr; }
.etapes-guide { list-style: none; padding: 0 !important; counter-reset: etape; gap: 1rem !important; }
.etapes-guide li { counter-increment: etape; position: relative; padding: 1.2rem 1.4rem 1.2rem 4.2rem; border: 1px solid var(--trait-fort); border-radius: 16px; background: var(--nuit-2); }
.etapes-guide li::before { content: counter(etape); position: absolute; left: 1.4rem; top: 1rem; font: 600 1.7rem var(--display); color: transparent; -webkit-text-stroke: 1px var(--vert); }
.etapes-guide h3 { margin: 0 0 0.3rem; font: 600 1.1rem var(--display); color: var(--texte); }
.etapes-guide p { margin: 0.4rem 0 0; }
.encadre { margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--vert); background: rgba(51, 245, 166, 0.05); border-radius: 0 12px 12px 0; }
.encadre.rouge { border-left-color: var(--rouge); background: rgba(255, 79, 107, 0.06); }
.encadre strong { display: block; font: 500 0.72rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--vert); }
.encadre.rouge strong { color: var(--rouge); }
.encadre p { margin: 0.4rem 0 0; }
.definitions { margin: 1.2rem 0 0; display: grid; gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.definitions div { background: var(--nuit-2); padding: 1rem 1.2rem; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; }
.definitions dt { font-weight: 600; }
.definitions dd { margin: 0; color: var(--doux); font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 860px) {
  .guide-corps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .guide-sommaire { position: static; }
  .definitions div { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media print {
  body { background: #fff !important; color: #000 !important; }
  .fond, .barre, .pied, .guide-tete .actions, .guide-sommaire { display: none !important; }
  .guide > section.guide-tete, .guide-corps { padding: 0 !important; display: block; }
  .guide > section.guide-tete { margin-bottom: 1.8rem; }
  .guide-texte p, .guide-texte li, .definitions dd, .lexique dd, .aide, .chapo { color: #222 !important; }
  .guide-texte strong, .guide-texte h2, .guide-texte h3, .definitions dt, h1 { color: #000 !important; }
  .etapes-guide li, .definitions div, .lexique div, .code, .encadre, .guide-texte code { background: #fff !important; border-color: #bbb !important; color: #000 !important; box-shadow: none !important; }
  .definitions, .lexique { background: #bbb !important; }
  a { color: #000 !important; }
  .questions details { break-inside: avoid; }
  .etapes-guide li, .definitions div { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}

/* Le compte */
/* L'abonnement, visible en version gratuite : dans l'en-tête et sous le compteur du casier. */
.barre nav a.abonnement-lien { color: var(--vert); border: 1px solid var(--vert); border-radius: 7px; padding: 0.2rem 0.55rem; white-space: nowrap; }
.barre nav a.abonnement-lien:hover { background: rgba(51, 245, 166, 0.08); }
.formule-texte .abonnement-casier { display: flex; width: 100%; justify-content: center; margin-top: 0.8rem; color: var(--vert); border-color: var(--vert); }
.compte-lien { color: var(--vert) !important; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#connexion-form, #connexion-etape-email, #connexion-etape-code { display: grid; gap: 1rem; }
#connexion-etape-email[hidden], #connexion-etape-code[hidden], #connexion-form [hidden] { display: none; }
#connexion-form p, #connexion-form input { margin: 0; }
#connexion-form h3 { margin: 0.3rem 0 0; }
.code-dialogue .connexion-legal { font-size: 0.8rem; line-height: 1.6; color: var(--faible); margin: 0.6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--trait); }
.code-dialogue .connexion-legal a { color: var(--doux); }
.code-dialogue .lien-discret { display: block; margin: 0.2rem auto 0; padding: 0.4rem 0.6rem; color: var(--doux); font-size: 0.88rem; }
.code-dialogue .lien-discret:hover { color: var(--vert); }
.compte-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.compte-actions .lien-discret { margin: 0; }
.compte-actions .btn { width: auto; }
.compte-supprimer summary { cursor: pointer; color: var(--faible); font-size: 0.85rem; }
.compte-supprimer p { margin: 0.6rem 0; }
.btn-danger { background: transparent; color: var(--rouge); border-color: var(--rouge); width: 100%; }
@media (max-width: 560px) { .compte-lien { max-width: 9rem; } }

/* Les liens du pied de page et les pages légales */
.pied nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.pied nav a { color: var(--faible); font-size: 0.82rem; }
.pied nav a:hover { color: var(--texte); }
.legal { max-width: 860px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem) 5rem; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.6rem; }
.legal .maj { color: var(--faible); font-size: 0.85rem; margin: 0 0 2.4rem; }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 2.4rem 0 0.9rem; max-width: none; }
.legal p, .legal li, .legal dd { color: var(--doux); line-height: 1.75; }
.legal strong { color: var(--texte); }
.legal ul { padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.legal .definitions { margin-top: 1rem; }
.legal .encadre { margin: 1.6rem 0; }

/* La remise à zéro du casier : ses conséquences, en liste lisible ; l'historique sous la jauge. */
/* « Par où commencer », au retour du paiement */
.bienvenue-etat { padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(245, 184, 65, 0.08); color: var(--ambre) !important; }
.bienvenue-etat.ouvert { background: rgba(51, 245, 166, 0.08); color: var(--vert) !important; }
.code-dialogue .bienvenue-sur { margin: 1.2rem 0 0.4rem; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--vert); }
.bienvenue-etapes { margin: 0 0 1.2rem; padding-left: 1.3rem; color: var(--doux); font-size: 0.9rem; line-height: 1.5; }
.bienvenue-etapes li { margin-bottom: 0.7rem; }
.bienvenue-etapes strong { color: var(--texte); }
.code-dialogue .bienvenue-etapes .lien-discret { display: block; margin: 0.2rem 0 0; padding: 0; color: var(--vert); font-size: 0.85rem; text-decoration: underline; text-align: left; }
.code-dialogue ul { color: var(--doux); font-size: 0.9rem; line-height: 1.55; margin: 0 0 1rem; padding-left: 1.2rem; }
.code-dialogue li { margin-bottom: 0.45rem; }
.code-dialogue strong { color: var(--texte); }
#remise-annuler { display: block; margin: 0.8rem auto 0; }
.casier-historique { font-size: 0.78rem; color: var(--faible); margin-top: 0.4rem; }
.code-dialogue { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* La version gratuite : les verrous se voient avant qu'on bute dessus. */
.formule-texte { font-size: 0.8rem; color: var(--doux); margin-top: 0.5rem; }
.formule-texte .lien-discret, .portee .lien-discret, #mois-gratuit .lien-discret { margin: 0; text-decoration: underline; }
label.verrouille { opacity: 0.55; cursor: pointer; }
label.verrouille strong::after { content: " · abonnés"; font: 0.7rem var(--mono); letter-spacing: 0.08em; color: var(--faible); }
.verrou-note { border: 1px dashed var(--trait); border-radius: var(--rayon); padding: 0.8rem 1rem; margin: 0 0 1.2rem; color: var(--doux); font-size: 0.9rem; }
.verrou-note .mono { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--vert); margin-right: 0.4rem; }
.verrou-note .lien-discret { margin: 0; text-decoration: underline; }
.fiche-verrou { opacity: 0.75; }
.fiche-verrou .verrou-mention { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--faible); }
.bot.verrouille { border-style: dashed; }
#abonnement-fermer { display: block; margin: 0.8rem auto 0; }
#abonnement-retour { margin-top: 0.8rem; }
.compte-apercu { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--doux); margin: 0 0 1rem; cursor: pointer; }
.compte-apercu input { width: auto; margin: 0; }

/* Mes audiences : une ligne par verdict, à rouvrir. */
.audiences-liste { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.audience-ligne { display: grid; grid-template-columns: 8.5rem 1fr auto auto; gap: 1rem; align-items: center; padding: 0.9rem 1.1rem; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--panneau); }
.audience-date { font-size: 0.75rem; color: var(--faible); line-height: 1.5; }
.audience-quoi { display: grid; gap: 0.25rem; min-width: 0; }
.audience-quoi b { font-weight: 600; color: var(--texte); overflow-wrap: anywhere; }
.audience-quoi span { font-size: 0.82rem; color: var(--doux); }
.audience-verdict { font: 600 0.72rem var(--mono); letter-spacing: 0.1em; color: var(--rouge); border: 1px solid currentColor; border-radius: 8px; padding: 0.3rem 0.6rem; white-space: nowrap; }
.audience-verdict.oui { color: var(--vert); }
.audience-verdict.promet { color: var(--ambre); }
.audience-boutons { display: flex; gap: 0.8rem; align-items: center; }
.audience-boutons .lien-discret { margin: 0; }
@media (max-width: 760px) {
  .audience-ligne { grid-template-columns: 1fr; gap: 0.6rem; }
  .audience-verdict { justify-self: start; }
}

/* Une règle très détaillée : une remarque douce, jamais un blocage. */
.remarque-detail { margin: 0; padding: 0.6rem 0.8rem; border-left: 3px solid var(--ambre); border-radius: 0 10px 10px 0; background: rgba(245, 184, 65, 0.07); color: var(--doux); font-size: 0.85rem; line-height: 1.55; }
#remarque-detail-texte { margin-bottom: 0.8rem; }

/* Le bot DCA : le type de bot, et les champs numériques. */
.choix-bot { display: flex; gap: 1.2rem; margin-top: 0.8rem; font-size: 0.9rem; color: var(--texte); }
.choix-bot label { display: flex; gap: 0.4rem; align-items: center; cursor: pointer; }
.choix-bot .bientot { color: var(--faible); cursor: default; }
.choix-bot input { width: auto; margin: 0; accent-color: var(--vert); }
#bot-apercu-texte { color: var(--ambre); }
@media (max-width: 760px) { .reglages { grid-template-columns: repeat(2, 1fr); } }

/* Petits écrans : l'en-tête sur deux rangs nets (le logo, puis les liens sur une ligne), et les onglets en
   grille régulière de trois, chacun sur une seule ligne. */
.logo span { white-space: nowrap; }
.compte-court { display: none; }
@media (max-width: 860px) {
  .onglets { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .onglets button { padding: 0.65rem 0.4rem; white-space: nowrap; text-align: center; }
}
@media (max-width: 560px) {
  .barre { flex-wrap: wrap; row-gap: 0.55rem; column-gap: 0.8rem; padding-top: 0.7rem; padding-bottom: 0.6rem; }
  .barre nav { order: 3; width: 100%; margin-left: 0; display: flex; justify-content: space-between; gap: 0.6rem; }
  .barre nav a { white-space: nowrap; font-size: 0.86rem; }
  .compte-lien { max-width: none; }
  /* « Juger ma stratégie » reste à portée de pouce, à droite du logo ; « Comment ça marche ? » laisse sa place
     au lien « Le guide » du menu. */
  .barre .btn.btn-vert { display: inline-flex; order: 2; margin-left: auto; padding: 0.45rem 0.8rem; font-size: 0.8rem; }
  .compte-long { display: none; }
  .compte-court { display: inline; }
  .onglets { gap: 5px; padding: 5px; }
  .onglets button { font-size: 0.8rem; padding: 0.6rem 0.25rem; }
}
@media (max-width: 360px) {
  .onglets button { font-size: 0.74rem; }
  .barre nav a { font-size: 0.8rem; }
}
/* Une ligne de code sans espace (le modèle d'appels, par exemple) se coupe plutôt que d'élargir la page. */
.guide-texte code { overflow-wrap: anywhere; }

/* Les pages publiques : les verdicts de la bibliothèque, et les liens de vérification. */
.legal.publics { max-width: 1120px; }
.publics .rapport { margin-top: 1.6rem; }
.publics .sur a, .publics .audience-quoi a { color: inherit; text-decoration: none; }
.publics .audience-quoi a:hover { color: var(--vert); }
.courbe-statique { display: block; width: 100%; height: 240px; }
.audience-verdict.attente { color: var(--faible); }
.verification { margin: 1.4rem 0 0; padding: 1rem 1.2rem 1rem 2.2rem; border: 1px solid rgba(51, 245, 166, 0.35); border-radius: var(--rayon); background: rgba(51, 245, 166, 0.05); }
.verification li { color: var(--texte); line-height: 1.6; margin: 0.35rem 0; }
.partage a.mono { color: var(--vert); overflow-wrap: anywhere; }
.publics .audiences-liste { padding-left: 0; }
.courbe-dates { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.7rem; color: var(--faible); margin-top: 0.3rem; }
@media (max-width: 560px) { .courbe-statique { height: 180px; } .courbe-dates span:nth-child(2) { display: none; } }

/* Le lien de langue (FR | EN), dans le menu de l'en-tête. */
.barre nav a.langue-lien { font: 600 0.75rem var(--mono); letter-spacing: 0.1em; color: var(--texte); border: 1px solid var(--trait-fort); border-radius: 7px; padding: 0.2rem 0.45rem; }
.barre nav a.langue-lien:hover { border-color: var(--vert); color: var(--vert); }

/* L'accueil : les tarifs */
.formules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.formule { display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--nuit-2); border: 1px solid var(--trait-fort); border-radius: var(--rayon); }
.formule.abonne { border-color: rgba(51, 245, 166, 0.45); background: linear-gradient(160deg, rgba(51, 245, 166, 0.07), var(--nuit-2) 60%); }
.formule-nom { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--doux); }
.formule.abonne .formule-nom { color: var(--vert); }
.formule-prix { font: 600 clamp(2rem, 4vw, 2.8rem)/1 var(--display); margin: 0.9rem 0 0; }
.formule-prix small { font: 400 0.95rem var(--corps); color: var(--doux); }
.formule-dit { margin: 0.6rem 0 0; color: var(--texte); font-weight: 600; }
.formule ul { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.formule li { position: relative; padding-left: 1.3rem; color: var(--doux); font-size: 0.95rem; }
.formule li::before { content: "◆"; position: absolute; left: 0; top: 0.1em; font-size: 0.7rem; color: var(--vert); }
.formule-note { margin: auto 0 0; padding-top: 1.2rem; color: var(--faible); font-size: 0.85rem; }
.tarifs .actions { margin-top: 2rem; }
@media (max-width: 860px) { .formules { grid-template-columns: 1fr; } }

/* À propos : le chapeau, la liste « ne fera jamais », les boutons */
.a-propos .chapo { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--texte); margin: 0.4rem 0 1rem; }
.legal .encadre ul { margin: 0.8rem 0 0; }
.a-propos .actions { margin-top: 2.6rem; }

/* Le dépôt d'un suivi : la durée au choix. */
.suivi-duree { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.suivi-duree select { width: auto; }
