/* =============================================================
   AZEREZA — site vitrine
   Concept repris de la 2.0 : « Azereza se lit dans les deux sens ».
   Un axe miroir structure tout : ceux qui cherchent (azur) d'un
   côté, ceux qui proposent (ambre) de l'autre. Le mode Plateau
   applique l'étalonnage « teal & orange » du cinéma à tout le site.
   Polices hébergées ici même : aucune requête vers l'extérieur.
   ============================================================= */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

@property --c-fond { syntax: '<color>'; inherits: true; initial-value: #0A1633; }
@property --c-fond-profond { syntax: '<color>'; inherits: true; initial-value: #060E24; }
@property --c-surface { syntax: '<color>'; inherits: true; initial-value: #11214A; }
@property --c-surface-2 { syntax: '<color>'; inherits: true; initial-value: #182C5C; }
@property --c-azur { syntax: '<color>'; inherits: true; initial-value: #6EA8FF; }
@property --c-ambre { syntax: '<color>'; inherits: true; initial-value: #FFB547; }
@property --c-craie { syntax: '<color>'; inherits: true; initial-value: #EAF0FF; }
@property --c-brume { syntax: '<color>'; inherits: true; initial-value: #95A2C6; }

:root {
  --c-fond: #0A1633;
  --c-fond-profond: #060E24;
  --c-surface: #11214A;
  --c-surface-2: #182C5C;
  --c-azur: #6EA8FF;
  --c-ambre: #FFB547;
  --c-craie: #EAF0FF;
  --c-brume: #95A2C6;
  --c-trait: rgba(234, 240, 255, .10);
  --c-trait-fort: rgba(234, 240, 255, .22);
  --c-vert: #3DDC97;
  --c-rouge: #FF7A7A;
  --c-encre-bouton: #07122B;

  --f-titre: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-texte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-carte: 22px;
  --r-champ: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.65, 0, .35, 1);
  --largeur: 1200px;
  --marge: clamp(16px, 5vw, 64px);
  --entete: 68px;
  --lb: 0px;
  --grain: .05;

  color-scheme: dark;
  transition:
    --c-fond .9s var(--ease-2), --c-fond-profond .9s var(--ease-2),
    --c-surface .9s var(--ease-2), --c-surface-2 .9s var(--ease-2),
    --c-azur .9s var(--ease-2), --c-ambre .9s var(--ease-2),
    --c-craie .9s var(--ease-2), --c-brume .9s var(--ease-2);
}

html[data-mode="plateau"] {
  --c-fond: #061519;
  --c-fond-profond: #030B0E;
  --c-surface: #0C2227;
  --c-surface-2: #123037;
  --c-azur: #45D3C6;
  --c-ambre: #FF9D42;
  --c-craie: #F4EFE6;
  --c-brume: #93AAA9;
  --c-encre-bouton: #1A0C00;
  --grain: .11;
  --lb: clamp(8px, 3vh, 30px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--c-fond);
  color: var(--c-craie);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--c-ambre); color: var(--c-encre-bouton); }
:focus-visible { outline: 2px solid var(--c-ambre); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

.evitement {
  position: fixed; left: 12px; top: -60px; z-index: 500;
  background: var(--c-ambre); color: var(--c-encre-bouton);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s;
}
.evitement:focus { top: 12px; }
.evitement-texte {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.conteneur { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }
.conteneur--etroit { --largeur: 820px; }

/* ---------- Grain de pellicule ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  transition: opacity .9s var(--ease-2);
}
html[data-mode="plateau"] body::after { inset: -50%; animation: grain .9s steps(6) infinite; }
@keyframes grain {
  0% { translate: 0 0; } 20% { translate: -3% 2%; } 40% { translate: 2% -4%; }
  60% { translate: -4% -2%; } 80% { translate: 3% 3%; } 100% { translate: 0 0; }
}

/* ---------- Cadre 2.39:1 du mode Plateau ---------- */
.cadre {
  position: fixed; left: 0; right: 0; height: var(--lb); z-index: 250;
  background: #000; pointer-events: none;
  transition: height .9s var(--ease-2);
}
.cadre--haut { top: 0; }
.cadre--bas { bottom: 0; }

/* ---------- Typographie ---------- */
.titre-scene {
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.surtitre {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-ambre); margin-bottom: 14px;
}
.chapeau { color: var(--c-brume); font-size: clamp(16px, 1.6vw, 19px); max-width: 62ch; margin-top: 18px; text-wrap: pretty; }
.chiffre { font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--c-brume); margin-top: 16px; line-height: 1.55; }
.note--ambre { color: var(--c-ambre); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  background: var(--c-craie); color: var(--c-encre-bouton);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  text-align: center;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px currentColor; }
.bouton--azur { background: var(--c-azur); }
.bouton--ambre { background: var(--c-ambre); }
.bouton--contour { background: transparent; color: var(--c-craie); box-shadow: inset 0 0 0 1.5px var(--c-trait-fort); }
.bouton--contour:hover { box-shadow: inset 0 0 0 1.5px var(--c-craie); }
.bouton--petit { min-height: 40px; padding: 0 16px; font-size: 14px; }
.bouton--large { width: 100%; min-height: 56px; font-size: 16px; white-space: normal; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; top: var(--lb); left: 0; right: 0; z-index: 200;
  height: var(--entete);
  transition: top .9s var(--ease-2), background .4s, box-shadow .4s;
}
.entete.est-defile {
  background: color-mix(in srgb, var(--c-fond) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--c-trait);
}
.entete__barre {
  height: 100%;
  width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  font-family: var(--f-titre); font-weight: 800; font-size: 18px; letter-spacing: .18em;
  display: inline-flex;
}
.logo__axe { color: var(--c-ambre); }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--c-brume); }
.nav a { position: relative; transition: color .25s; }
.nav a:hover, .nav a.est-actif { color: var(--c-craie); }
.nav a.est-actif::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-azur), var(--c-ambre));
}
.entete__actions { display: flex; align-items: center; gap: 12px; }

.bascule-plateau {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--c-brume);
  min-height: 40px; padding: 0 4px;
}
.bascule-plateau:hover { color: var(--c-craie); }
.bascule-plateau__piste {
  width: 40px; height: 22px; border-radius: 999px; position: relative;
  background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-trait-fort);
  transition: background .5s;
}
.bascule-plateau__piste::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-craie); transition: translate .5s var(--ease), background .5s;
}
.bascule-plateau[aria-pressed="true"] { color: var(--c-ambre); }
.bascule-plateau[aria-pressed="true"] .bascule-plateau__piste { background: color-mix(in srgb, var(--c-ambre) 35%, var(--c-surface-2)); }
.bascule-plateau[aria-pressed="true"] .bascule-plateau__piste::after { translate: 18px 0; background: var(--c-ambre); }

/* ---------- Héros ---------- */
.heros {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--entete) + var(--lb) + 40px) var(--marge) 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.heros::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 20% 55%, color-mix(in srgb, var(--c-azur) 22%, transparent), transparent 70%),
    radial-gradient(60% 50% at 80% 55%, color-mix(in srgb, var(--c-ambre) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--c-fond-profond), var(--c-fond) 60%);
}
.heros__toile { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.heros__axe {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--c-trait-fort) 20%, var(--c-trait-fort) 80%, transparent);
  transform-origin: top; animation: axe 1.4s var(--ease) both;
}
@keyframes axe { from { scale: 1 0; } }

.statut {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  background: color-mix(in srgb, var(--c-surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--c-trait-fort);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: monte .9s .9s var(--ease) both;
}
.statut__point { width: 8px; height: 8px; border-radius: 50%; background: var(--c-vert); box-shadow: 0 0 0 0 var(--c-vert); animation: pouls 2.4s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-vert) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.nom {
  position: relative; margin: 28px 0 0;
  font-family: var(--f-titre); font-weight: 800;
  font-size: clamp(40px, 12.6vw, 200px); line-height: .9; letter-spacing: -.01em;
}
.nom__lettres { display: flex; justify-content: center; }
.nom__lettres > span {
  display: inline-block;
  animation: deplie 1.3s var(--ease) both;
  animation-delay: calc(.25s + var(--d) * .09s);
  background: linear-gradient(180deg, var(--c-craie) 30%, color-mix(in srgb, var(--c-craie) 55%, var(--c-brume)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nom__lettres > .nom__axe {
  background: linear-gradient(180deg, var(--c-ambre), color-mix(in srgb, var(--c-ambre) 60%, var(--c-azur)));
  -webkit-background-clip: text; background-clip: text;
}
@keyframes deplie {
  from { transform: translateX(calc(var(--k) * -100%)); opacity: 0; filter: blur(8px); }
  to { transform: none; opacity: 1; filter: none; }
}
.nom__reflet {
  position: absolute; left: 0; right: 0; top: 100%;
  transform: scaleY(-1); opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 55%);
  mask-image: linear-gradient(0deg, #000, transparent 55%);
}
.heros__devise {
  margin-top: clamp(40px, 7vw, 90px); max-width: 40ch;
  font-size: clamp(17px, 2vw, 22px); color: var(--c-brume); text-wrap: balance;
  animation: monte .9s 1s var(--ease) both;
}
.heros__devise strong { color: var(--c-craie); font-weight: 700; }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }

.heros__cotes {
  margin-top: 40px; width: min(100%, 920px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  animation: monte .9s 1.15s var(--ease) both;
}
.cote { padding: 8px clamp(16px, 3vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cote--client { border-right: 1px solid var(--c-trait-fort); }
.cote__qui { font-family: var(--f-titre); font-weight: 600; font-size: clamp(16px, 1.8vw, 20px); }
.cote--client .cote__qui { color: var(--c-azur); }
.cote--freelance .cote__qui { color: var(--c-ambre); }
.cote__quoi { color: var(--c-brume); font-size: 15px; max-width: 34ch; flex: 1; }
.cote .bouton { margin-top: 6px; }

.heros__suite {
  margin-top: 48px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--c-brume);
  animation: monte .9s 1.3s var(--ease) both;
}
.heros__suite svg { animation: flotte 2.2s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section__tete { margin-bottom: clamp(36px, 5vw, 60px); }
.section__tete--centre { text-align: center; }
.section__tete--centre .chapeau { margin-inline: auto; }

.revele { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.revele.est-visible { opacity: 1; transform: none; }

/* ---------- Tarifs : le miroir ---------- */
.miroir {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(16px, 4vw, 56px); max-width: 860px; margin: 0 auto;
}
.miroir__g { text-align: right; }
.miroir__axe { width: 2px; align-self: stretch; min-height: 150px; border-radius: 2px; background: linear-gradient(180deg, var(--c-azur), var(--c-ambre)); box-shadow: 0 0 24px color-mix(in srgb, var(--c-azur) 60%, transparent); }
.taux { font-family: var(--f-titre); font-weight: 800; font-size: clamp(76px, 14vw, 170px); line-height: .95; }
.taux small { font-size: .42em; margin-left: 4px; }
.taux--client { color: var(--c-azur); }
.taux--freelance { color: var(--c-ambre); }
.taux__legende { color: var(--c-brume); font-size: 15px; margin-top: 10px; max-width: 26ch; }
.miroir__g .taux__legende { margin-left: auto; }

.simulateur {
  margin: clamp(40px, 6vw, 70px) auto 0; max-width: 860px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-surface) 90%, transparent), color-mix(in srgb, var(--c-surface) 55%, transparent));
  border-radius: 28px; padding: clamp(20px, 4vw, 40px);
  box-shadow: inset 0 0 0 1px var(--c-trait), 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.simulateur__ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.simulateur__ligne label { color: var(--c-brume); font-weight: 600; }
.simulateur__montant { font-family: var(--f-titre); font-weight: 700; font-size: clamp(28px, 4vw, 40px); }

.curseur { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin-top: 14px; background: transparent; cursor: pointer; }
.curseur::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c-azur) var(--p, 50%), var(--c-surface-2) var(--p, 50%)); }
.curseur::-moz-range-track { height: 6px; border-radius: 6px; background: var(--c-surface-2); }
.curseur::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--c-azur); }
.curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--c-craie); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-azur) 30%, transparent); transition: box-shadow .3s; }
.curseur::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--c-craie); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-azur) 30%, transparent); }
.curseur:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-azur) 35%, transparent); }

.bilan { margin-top: 26px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.bilan__cote { background: var(--c-fond); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 0 1px var(--c-trait); }
.bilan__cote--d { text-align: right; }
.bilan__etiquette { font-size: 13px; color: var(--c-brume); }
.bilan__valeur { font-family: var(--f-titre); font-weight: 700; font-size: clamp(20px, 3vw, 28px); }
.bilan__cote--g .bilan__valeur { color: var(--c-azur); }
.bilan__cote--d .bilan__valeur { color: var(--c-ambre); }
.bilan__centre { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 8px; font-size: 12px; color: var(--c-brume); text-align: center; }
.bilan__centre strong { font-size: 16px; color: var(--c-craie); }

.compare { margin-top: 30px; display: grid; gap: 12px; }
.compare__titre { font-size: 14px; color: var(--c-brume); font-weight: 600; margin-bottom: 4px; }
.compare__ligne { display: grid; grid-template-columns: 70px 1fr 88px; align-items: center; gap: 14px; font-size: 14px; }
.compare__nom { font-weight: 700; color: var(--c-brume); }
.compare__piste { height: 12px; border-radius: 12px; background: var(--c-fond); overflow: hidden; }
.compare__barre { height: 100%; width: 0; border-radius: 12px; background: var(--c-brume); opacity: .5; transition: width .6s var(--ease); }
.compare__val { text-align: right; font-weight: 700; }
.est-nous .compare__nom, .est-nous .compare__val { color: var(--c-ambre); }
.est-nous .compare__barre { background: linear-gradient(90deg, var(--c-azur), var(--c-ambre)); opacity: 1; }

/* ---------- Métiers : recherche ---------- */
.chercheur { max-width: 760px; }
.chercheur__label { display: block; font-family: var(--f-titre); font-weight: 600; font-size: clamp(18px, 2.2vw, 24px); margin-bottom: 14px; }
.chercheur__champ {
  position: relative; display: flex; align-items: center;
  background: var(--c-surface); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--c-trait-fort);
  transition: box-shadow .3s;
}
.chercheur__champ:focus-within { box-shadow: inset 0 0 0 2px var(--c-azur), 0 0 0 6px color-mix(in srgb, var(--c-azur) 18%, transparent); }
.chercheur__champ > svg { width: 20px; height: 20px; margin-left: 20px; color: var(--c-brume); flex: none; }
.chercheur__champ input { flex: 1; min-width: 0; height: 56px; padding: 0 14px; background: transparent; border: 0; outline: 0; font-size: 16px; }
.chercheur__champ input::placeholder { color: var(--c-brume); opacity: .8; }
.chercheur__champ input::-webkit-search-cancel-button { display: none; }
.chercheur__effacer { width: 44px; height: 44px; margin-right: 6px; border-radius: 50%; display: grid; place-items: center; color: var(--c-brume); }
.chercheur__effacer:hover { color: var(--c-craie); background: var(--c-surface-2); }
.chercheur__resultats { margin-top: 16px; }
.resultats__compte { font-size: 14px; color: var(--c-brume); margin-bottom: 12px; }
.resultats__compte strong { color: var(--c-craie); }
.resultats__liste { display: grid; gap: 8px; }
.resultat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c-surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--c-trait);
  animation: monte .4s var(--ease) both;
}
.resultat__nom { font-weight: 700; }
.resultat__nom mark { background: none; color: var(--c-ambre); }
.resultat__ou { font-size: 13px; color: var(--c-brume); }
.resultat__etiquette { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--c-ambre); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ambre) 45%, transparent); }
.resultats__vide { padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--c-surface) 70%, transparent); color: var(--c-brume); }
.resultats__vide p + p { margin-top: 10px; }
.lien-action { color: var(--c-ambre); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Bandes défilantes */
.defiles { margin: clamp(48px, 7vw, 80px) 0; display: grid; gap: 12px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile { overflow: hidden; }
.defile__piste { display: flex; gap: 10px; width: max-content; animation: defile var(--vitesse, 70s) linear infinite; }
.defile--inverse .defile__piste { animation-direction: reverse; }
.defiles:hover .defile__piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
.pastille { white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-trait); color: var(--c-brume); }
.pastille--cinema { color: var(--c-ambre); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ambre) 35%, transparent); }

/* Domaines */
.domaines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.domaine {
  position: relative; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; gap: 6px; min-height: 180px;
  padding: 20px; border-radius: var(--r-carte);
  background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-trait);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.domaine:hover, .domaine[aria-expanded="true"] { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--c-trait-fort), 0 24px 50px -30px rgba(0, 0, 0, .8); }
.domaine[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--c-azur); }
.domaine__art { position: absolute; right: -10px; top: -10px; width: 160px; height: 130px; color: var(--c-azur); opacity: .22; transition: opacity .4s; }
.domaine:hover .domaine__art { opacity: .45; }
.domaine__art .trace { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.domaine.est-visible .domaine__art .trace, .domaine:hover .domaine__art .trace { stroke-dashoffset: 0; }
.domaine__chiffre { font-family: var(--f-titre); font-weight: 700; font-size: 30px; color: var(--c-azur); line-height: 1; }
.domaine__nom { font-family: var(--f-titre); font-weight: 600; font-size: 17px; line-height: 1.25; margin-top: auto; position: relative; }
.domaine__ex { font-size: 13px; color: var(--c-brume); position: relative; }
.domaine--cinema { grid-column: span 2; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c-ambre) 22%, var(--c-surface)), var(--c-surface) 60%); }
.domaine--cinema .domaine__chiffre { color: var(--c-ambre); font-size: 44px; }

.explorateur { margin-top: 18px; padding: clamp(18px, 3vw, 30px); border-radius: var(--r-carte); background: var(--c-fond-profond); box-shadow: inset 0 0 0 1px var(--c-trait-fort); animation: monte .5s var(--ease) both; }
.explorateur__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.explorateur__tete h3 { font-family: var(--f-titre); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); }
.explorateur__tete p { color: var(--c-brume); font-size: 14px; }
.explorateur__fermer { font-size: 14px; font-weight: 700; color: var(--c-brume); text-decoration: underline; text-underline-offset: 3px; }
.groupes { columns: 3 260px; column-gap: 28px; }
.groupe { break-inside: avoid; margin-bottom: 22px; }
.groupe h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--c-craie); }
.groupe__source { font-size: 11px; color: var(--c-ambre); margin-bottom: 6px; letter-spacing: .02em; }
.groupe ul { font-size: 14px; color: var(--c-brume); line-height: 1.7; }

/* ---------- Situations ---------- */
.situations { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.segment {
  position: relative; margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 5px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-trait);
}
.segment button { position: relative; z-index: 1; min-height: 44px; padding: 0 8px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--c-brume); transition: color .3s; }
.segment button[aria-selected="true"] { color: var(--c-encre-bouton); }
.segment__curseur {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 4);
  border-radius: 999px; background: var(--accent-seg, var(--c-ambre));
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--ease), background .5s;
}
.panneau {
  border-radius: 28px; padding: clamp(22px, 4vw, 38px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent, var(--c-ambre)) 14%, var(--c-surface)), var(--c-surface) 55%);
  box-shadow: inset 0 0 0 1px var(--c-trait);
}
.panneau__tete { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panneau__pastille { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); flex: none; }
.panneau__pastille svg { width: 24px; height: 24px; }
.panneau__titre { font-family: var(--f-titre); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.panneau dl { margin: 0; display: grid; gap: 18px; }
.panneau dl > div { padding-top: 18px; border-top: 1px solid var(--c-trait); }
.panneau dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.panneau dd { margin: 6px 0 0; color: var(--c-brume); }
.panneau dd strong { color: var(--c-craie); }
.panneau__corps { animation: monte .45s var(--ease) both; }

/* ---------- Parcours ---------- */
.parcours { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.etapes { margin-top: 36px; display: grid; gap: 6px; }
.etape { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px; border-radius: 18px; cursor: pointer; opacity: .45; transition: opacity .4s, background .4s; }
.etape.est-active { opacity: 1; background: color-mix(in srgb, var(--c-surface) 80%, transparent); box-shadow: inset 0 0 0 1px var(--c-trait); }
.etape__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-titre); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--c-trait-fort); transition: background .4s, color .4s; }
.etape.est-active .etape__num { background: linear-gradient(135deg, var(--c-azur), var(--c-ambre)); color: var(--c-encre-bouton); box-shadow: none; }
.etape h3 { font-family: var(--f-titre); font-weight: 600; font-size: 17px; }
.etape p { color: var(--c-brume); font-size: 15px; margin-top: 4px; }

.plan {
  position: sticky; top: calc(var(--entete) + var(--lb) + 40px);
  aspect-ratio: 1 / 1; max-height: 70vh; width: 100%;
  border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--c-azur) 10%, transparent), transparent 70%),
    var(--c-fond-profond);
  box-shadow: inset 0 0 0 1px var(--c-trait);
}
.plan > * { position: absolute; transition: left .9s var(--ease), top .9s var(--ease), opacity .5s, transform .6s var(--ease); }
.plan__axe { left: 50%; top: 8%; bottom: 8%; width: 1px; background: var(--c-trait-fort); }
.plan__rail { left: 16%; right: 16%; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--c-azur), var(--c-ambre)); opacity: .25; }
.noeud { top: 50%; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, -26px); }
.noeud--client { left: 16%; }
.noeud--freelance { left: 84%; }
.noeud__rond { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); }
.noeud--client .noeud__rond { color: var(--c-azur); box-shadow: 0 0 0 2px var(--c-azur), 0 0 30px -4px var(--c-azur); }
.noeud--freelance .noeud__rond { color: var(--c-ambre); box-shadow: 0 0 0 2px var(--c-ambre), 0 0 30px -4px var(--c-ambre); }
.noeud__rond svg { width: 26px; height: 26px; }
.noeud__nom { font-size: 12px; font-weight: 700; color: var(--c-brume); }
.coffre { left: 50%; top: 50%; transform: translate(-50%, -26px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.coffre__boite { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-brume); transition: background .5s, color .5s, box-shadow .5s; }
.coffre__boite svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity .4s; }
.coffre__ouvert { opacity: 0; }
.coffre__nom { font-size: 12px; font-weight: 700; color: var(--c-brume); opacity: 0; transition: opacity .4s; }
.loupe-plan, .bulle, .fichier, .etoiles, .piece { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.loupe-plan { left: 30%; top: 24%; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-azur); color: var(--c-azur); white-space: nowrap; }
.bulle { padding: 8px 14px; border-radius: 16px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--c-surface-2); }
.bulle--1 { left: 32%; top: 26%; border-bottom-left-radius: 4px; }
.bulle--devis { left: 68%; top: 76%; border-bottom-right-radius: 4px; background: color-mix(in srgb, var(--c-ambre) 25%, var(--c-surface-2)); color: var(--c-ambre); }
.piece { left: 16%; top: 50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--c-ambre); color: var(--c-encre-bouton); box-shadow: 0 0 24px var(--c-ambre); }
.fichier { left: 84%; top: 74%; padding: 10px 12px; border-radius: 10px; font-size: 12px; font-weight: 800; background: var(--c-craie); color: var(--c-encre-bouton); }
.etoiles { left: 50%; top: 22%; font-size: 22px; letter-spacing: 4px; color: var(--c-ambre); }

.plan[data-plan="0"] .loupe-plan { opacity: 1; transform: translate(-50%, -50%); }
.plan[data-plan="0"] .noeud--freelance .noeud__rond { animation: sonar 1.6s infinite; }
@keyframes sonar { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-ambre) 20%, transparent), 0 0 30px -4px var(--c-ambre); } }
.plan[data-plan="1"] .bulle--1, .plan[data-plan="1"] .bulle--devis { opacity: 1; transform: translate(-50%, -50%); }
.plan[data-plan="1"] .bulle--devis { transition-delay: .35s; }
.plan[data-plan="2"] .piece { opacity: 1; left: 50%; transform: translate(-50%, -50%) scale(1.1); }
.plan[data-plan="2"] .coffre__boite { background: color-mix(in srgb, var(--c-ambre) 25%, var(--c-surface-2)); color: var(--c-ambre); box-shadow: 0 0 30px -6px var(--c-ambre); }
.plan[data-plan="2"] .coffre__nom { opacity: 1; }
.plan[data-plan="2"] .plan__rail { opacity: .8; }
.plan[data-plan="3"] .fichier { opacity: 1; left: 16%; transform: translate(-50%, -50%); }
.plan[data-plan="4"] .piece { opacity: 1; left: 84%; transform: translate(-50%, -50%); }
.plan[data-plan="4"] .etoiles { opacity: 1; transform: translate(-50%, -50%); }
.plan[data-plan="4"] .coffre__ferme { opacity: 0; }
.plan[data-plan="4"] .coffre__ouvert { opacity: 1; }
.plan[data-plan="4"] .coffre__boite { color: var(--c-vert); }

/* ---------- Confiance ---------- */
.niveaux { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.niveaux__piste { position: absolute; left: 11px; right: 11px; top: 11px; height: 2px; background: linear-gradient(90deg, var(--c-trait-fort), var(--c-azur), var(--c-vert)); transform-origin: left; scale: 0 1; transition: scale 1.6s var(--ease) .2s; }
.niveaux.est-visible .niveaux__piste { scale: 1 1; }
.niveau { position: relative; padding-top: 40px; }
.niveau__point { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--c-fond); box-shadow: inset 0 0 0 2px var(--c-trait-fort); }
.niveau--registre .niveau__point { box-shadow: inset 0 0 0 2px var(--c-azur); }
.niveau--controle .niveau__point { background: var(--c-vert); box-shadow: 0 0 20px var(--c-vert); }
.niveau h3 { font-family: var(--f-titre); font-weight: 600; font-size: 17px; }
.niveau p { margin-top: 10px; color: var(--c-brume); font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 14px; }
.badge--registre { color: var(--c-azur); box-shadow: inset 0 0 0 1.5px var(--c-azur); }
.badge--controle { color: #062117; background: var(--c-vert); }
.etablit { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.etablit > div { padding: 24px; border-radius: var(--r-carte); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-trait); }
.etablit h3 { font-family: var(--f-titre); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.etablit__oui { color: var(--c-vert); }
.etablit__non { color: var(--c-brume); }
.etablit li { position: relative; padding-left: 22px; color: var(--c-brume); font-size: 15px; }
.etablit li + li { margin-top: 8px; }
.etablit li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; border-radius: 2px; background: currentColor; }
.identite { margin-top: 24px; padding: 18px 22px; border-radius: 18px; background: color-mix(in srgb, var(--c-azur) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-azur) 30%, transparent); color: var(--c-brume); }
.identite strong { color: var(--c-craie); }

/* ---------- Bande Plateau ---------- */
.bande {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 36px;
  background: linear-gradient(135deg, #0C2227, #061519 60%);
  color: #F4EFE6;
  box-shadow: inset 0 0 0 1px rgba(69, 211, 198, .2);
}
.bande__faisceau { position: absolute; z-index: -1; top: -40%; right: -10%; width: 70%; height: 180%; background: conic-gradient(from 200deg at 80% 10%, transparent, rgba(255, 157, 66, .22) 12deg, transparent 30deg); filter: blur(10px); animation: faisceau 7s ease-in-out infinite alternate; }
@keyframes faisceau { to { transform: rotate(-12deg); } }
.bande__titre { font-family: var(--f-titre); font-weight: 800; font-size: clamp(40px, 7vw, 84px); line-height: 1; background: linear-gradient(90deg, #45D3C6, #FF9D42); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bande__texte { margin-top: 16px; color: #C9D3CF; font-size: clamp(16px, 1.6vw, 19px); max-width: 48ch; }
.bande__points { margin-top: 22px; display: grid; gap: 12px; }
.bande__points li { position: relative; padding-left: 26px; color: #93AAA9; font-size: 15px; }
.bande__points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #45D3C6, #FF9D42); }
.bande__points strong { color: #F4EFE6; }
.bande__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.bande .bouton { background: #FF9D42; color: #1A0C00; }
.bande .bouton--contour { background: transparent; color: #F4EFE6; box-shadow: inset 0 0 0 1.5px rgba(244, 239, 230, .3); }
.bande__chiffres { display: grid; gap: 14px; }
.bande__chiffres > div { padding: 18px 20px; border-radius: 20px; background: rgba(3, 11, 14, .55); box-shadow: inset 0 0 0 1px rgba(69, 211, 198, .18); display: flex; align-items: baseline; gap: 14px; }
.bande__chiffres strong { font-family: var(--f-titre); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); color: #45D3C6; min-width: 3.2ch; }
.bande__chiffres > div:last-child strong { color: #FF9D42; }
.bande__chiffres span { color: #93AAA9; font-size: 14px; }

/* ---------- Inscription ---------- */
.inscription { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.promesses { margin-top: 28px; display: grid; gap: 12px; }
.promesses li { position: relative; padding-left: 30px; color: var(--c-brume); }
.promesses li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--c-vert) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DDC97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.promesses a { color: var(--c-craie); text-decoration: underline; text-underline-offset: 3px; }

.formulaire {
  display: grid; gap: 20px;
  padding: clamp(22px, 4vw, 36px); border-radius: 28px;
  background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-trait), 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.champ { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.champ label, .champ legend { font-size: 14px; font-weight: 700; padding: 0; }
.champ legend { margin-bottom: 8px; }
.facultatif { font-weight: 500; color: var(--c-brume); font-size: 12px; margin-left: 4px; }
.champ input[type="email"], .champ input[type="text"], .champ select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-champ);
  background: var(--c-fond); border: 0; outline: 0; font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--c-trait-fort); transition: box-shadow .25s;
}
.champ select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395A2C6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.champ input:focus, .champ select:focus { box-shadow: inset 0 0 0 2px var(--c-azur); }
.champ input::placeholder { color: var(--c-brume); opacity: .7; }
.champ.est-erreur input, .champ.est-erreur .choix { box-shadow: inset 0 0 0 2px var(--c-rouge); border-radius: var(--r-champ); }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix .choix__option { position: relative; display: grid; gap: 0; padding: 12px 14px; border-radius: var(--r-champ); background: var(--c-fond); box-shadow: inset 0 0 0 1px var(--c-trait-fort); cursor: pointer; transition: box-shadow .25s, background .25s; }
.choix__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choix__option span { font-weight: 700; font-size: 15px; }
.choix__option small { color: var(--c-brume); font-size: 12px; }
.choix__option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--c-ambre); background: color-mix(in srgb, var(--c-ambre) 10%, var(--c-fond)); }
.choix__option:has(input:focus-visible) { outline: 2px solid var(--c-ambre); outline-offset: 2px; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.accord { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--c-brume); cursor: pointer; }
.accord input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-ambre); }
.accord a { color: var(--c-craie); text-decoration: underline; text-underline-offset: 3px; }
.accord.est-erreur { color: var(--c-rouge); }
.formulaire__etat { font-size: 14px; min-height: 1.4em; color: var(--c-brume); }
.formulaire__etat.est-erreur { color: var(--c-rouge); }
.formulaire button[disabled] { opacity: .6; cursor: progress; transform: none; }

.merci { text-align: center; padding: 20px 6px; display: grid; justify-items: center; gap: 14px; animation: monte .6s var(--ease) both; }
.merci__rond { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-azur), var(--c-ambre)); color: var(--c-encre-bouton); }
.merci__rond svg { width: 34px; height: 34px; }
.merci h3 { font-family: var(--f-titre); font-weight: 700; font-size: 24px; }
.merci p { color: var(--c-brume); max-width: 40ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-trait); transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--c-trait-fort); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--c-ambre); border-bottom: 2px solid var(--c-ambre); rotate: 45deg; translate: 0 -3px; transition: rotate .35s var(--ease), translate .35s var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { padding: 0 22px 22px; color: var(--c-brume); }

/* ---------- Pied ---------- */
.pied { padding: clamp(60px, 10vw, 110px) 0 calc(40px + var(--lb)); border-top: 1px solid var(--c-trait); overflow: hidden; }
.pied__nom { width: 100%; height: auto; font-family: var(--f-titre); font-weight: 800; font-size: 150px; }
.pied__reflet { transform: scaleY(-1); opacity: .16; margin-top: -2px; -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%); mask-image: linear-gradient(0deg, #000, transparent 70%); }
.pied__grille { margin-top: 30px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.pied__note { color: var(--c-brume); max-width: 36ch; }
.pied__contact { margin-top: 12px; font-weight: 700; }
.pied__contact a { text-decoration: underline; text-underline-offset: 3px; }
.pied h3 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brume); margin-bottom: 12px; }
.pied li + li { margin-top: 6px; }
.pied li a { transition: color .2s; }
.pied li a:hover { color: var(--c-ambre); }
.pied__bas { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--c-trait); font-size: 13px; color: var(--c-brume); }

/* ---------- Clap du mode Plateau ---------- */
.clap { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.clap__moitie { position: absolute; left: 0; right: 0; height: 50%; background: #030B0E; transform: scaleY(0); }
.clap__moitie--haut { top: 0; transform-origin: top; background-image: repeating-linear-gradient(-45deg, #F4EFE6 0 26px, #030B0E 26px 52px); background-size: 100% 60px; background-repeat: no-repeat; background-position: bottom; }
.clap__moitie--bas { bottom: 0; transform-origin: bottom; }
.clap.est-joue .clap__moitie { animation: clap .9s var(--ease-2); }
@keyframes clap { 0% { transform: scaleY(0); } 40%, 55% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--lb)); z-index: 350;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--c-craie); color: var(--c-encre-bouton);
  transition: opacity .35s, translate .35s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.est-visible { opacity: 1; translate: -50% 0; }

/* ---------- Pages légales ---------- */
.page-legale { padding: calc(var(--entete) + 60px) 0 90px; }
.page-legale h1 { font-family: var(--f-titre); font-weight: 700; font-size: clamp(30px, 5vw, 50px); line-height: 1.1; }
.page-legale .maj { color: var(--c-brume); margin-top: 12px; font-size: 14px; }
.page-legale h2 { font-family: var(--f-titre); font-weight: 600; font-size: 20px; margin: 44px 0 12px; }
.page-legale p, .page-legale li { color: var(--c-brume); }
.page-legale p + p { margin-top: 12px; }
.page-legale ul { margin-top: 10px; display: grid; gap: 6px; }
.page-legale li { position: relative; padding-left: 20px; }
.page-legale li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--c-ambre); }
.page-legale a { color: var(--c-craie); text-decoration: underline; text-underline-offset: 3px; }
.page-legale strong { color: var(--c-craie); }
.encart { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--c-ambre) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ambre) 30%, transparent); }
.retour { display: inline-flex; margin-top: 48px; }

.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--marge); }
.page-404 .code { font-family: var(--f-titre); font-weight: 800; font-size: clamp(90px, 22vw, 220px); line-height: 1; background: linear-gradient(90deg, var(--c-azur), var(--c-ambre)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-404 p { color: var(--c-brume); margin: 16px auto 28px; max-width: 40ch; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .situations, .parcours, .inscription, .bande { grid-template-columns: 1fr; }
  /* Le plan reste collé en haut pendant que les étapes défilent dessous. */
  .parcours { gap: 0; }
  .parcours__texte { display: contents; }
  .parcours .plan {
    order: 1; position: sticky; z-index: 2; top: calc(var(--entete) + var(--lb) + 8px);
    aspect-ratio: 16 / 10; max-height: 42vh; margin: 28px 0 8px;
  }
  .etapes { order: 2; margin-top: 12px; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__grille > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --entete: 60px; }
  .heros__axe { opacity: .35; }
  .bascule-plateau__texte { display: none; }
  .heros__cotes { grid-template-columns: 1fr; gap: 28px; }
  .cote--client { border-right: 0; padding-bottom: 28px; border-bottom: 1px solid var(--c-trait-fort); }
  .miroir { gap: 14px; }
  .miroir__axe { min-height: 110px; }
  .taux__legende { font-size: 13px; }
  .bilan { grid-template-columns: 1fr 1fr; }
  .bilan__centre { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 8px; padding: 6px 0 0; }
  .compare__ligne { grid-template-columns: 58px 1fr 76px; gap: 10px; }
  .domaine--cinema { grid-column: auto; }
  .niveaux { grid-template-columns: 1fr; gap: 28px; padding-left: 40px; }
  .niveaux__piste { left: 11px; right: auto; top: 11px; bottom: 11px; width: 2px; height: auto; transform-origin: top; scale: 1 0; background: linear-gradient(180deg, var(--c-trait-fort), var(--c-azur), var(--c-vert)); }
  .niveaux.est-visible .niveaux__piste { scale: 1 1; }
  .niveau { padding-top: 0; }
  .niveau__point { left: -40px; }
  .etablit { grid-template-columns: 1fr; }
  .segment { grid-template-columns: repeat(2, 1fr); border-radius: 22px; }
  .segment__curseur { width: calc((100% - 10px) / 2); height: calc((100% - 10px) / 2); bottom: auto; border-radius: 18px; transform: translate(calc(var(--col, 0) * 100%), calc(var(--row, 0) * 100%)); }
  .segment button { border-radius: 18px; }
  .champ-duo { grid-template-columns: 1fr; }
  .bulle { font-size: 11px; padding: 6px 10px; }
  .loupe-plan { font-size: 11px; }
  .noeud__rond, .coffre__boite { width: 46px; height: 46px; }
}
@media (max-width: 400px) {
  .statut { font-size: 11.5px; padding: 7px 12px; }
  .heros .bouton { white-space: normal; }
  .entete__actions .bouton--petit { padding: 0 12px; font-size: 13px; }
  .choix { grid-template-columns: 1fr; }
  .logo { font-size: 15px; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revele { opacity: 1; transform: none; }
  .defile__piste { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
