/* ============================================================
   Conduite du Beffroi : auto-école fictive à Béthune
   DA : signalétique routière nocturne, marquage au sol, beffroi
   Site de démonstration conçu par BRNSG
   ============================================================ */

/* ---------- Tokens ---------- */

:root {
  /* Couleur : asphalte ardoise, marquage blanc, jaune signalisation, brique du Nord */
  --asphalte:        oklch(0.21 0.012 255);
  --asphalte-fonce:  oklch(0.165 0.012 255);
  --asphalte-2:      oklch(0.245 0.014 255);
  --asphalte-3:      oklch(0.30 0.016 255);
  --marquage:        oklch(0.955 0.006 95);
  --texte:           oklch(0.93 0.008 95);
  --sourdine:        oklch(0.73 0.014 255);
  --jaune:           oklch(0.83 0.145 90);
  --jaune-fonce:     oklch(0.74 0.14 87);
  --brique:          oklch(0.56 0.11 35);
  --encre:           oklch(0.20 0.015 255);
  --ring:            var(--jaune);
  --filet: 1px solid color-mix(in oklch, var(--marquage) 14%, transparent);

  /* Typo : Archivo (display), Barlow (texte) : échelle fluide */
  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-texte: "Barlow", "Helvetica Neue", sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.18vw, 0.93rem);
  --step-0:  clamp(1rem, 0.94rem + 0.32vw, 1.17rem);
  --step-1:  clamp(1.22rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.75vw, 2.8rem);
  --step-4:  clamp(2.35rem, 1.8rem + 2.75vw, 3.8rem);
  --step-5:  clamp(2.8rem, 2rem + 4vw, 4.9rem);

  /* Rythme */
  --maxw: 68rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 16px;

  /* Motion : un seul easing signature */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 200ms;
  --dur-2: 450ms;
  --dur-3: 800ms;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-padding-top: 6.5rem;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--asphalte);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Grain d'asphalte, statique et discret */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: normal; }
svg { display: block; }

::selection {
  background: var(--jaune);
  color: var(--encre);
}

:focus-visible {
  outline: 2.5px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Barre de défilement aux couleurs de la marque */
html {
  scrollbar-color: var(--asphalte-3) var(--asphalte-fonce);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--asphalte-fonce); }
::-webkit-scrollbar-thumb {
  background: var(--asphalte-3);
  border-radius: 6px;
  border: 2px solid var(--asphalte-fonce);
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklch, var(--asphalte-3) 70%, var(--marquage));
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.acces-rapide {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--jaune);
  color: var(--encre);
  font-family: var(--f-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transform: translateY(-220%);
  transition: transform var(--dur-1) var(--ease);
}
.acces-rapide:focus-visible { transform: translateY(0); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-family: var(--f-display);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease),
    background-color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }

.btn-plein {
  background: var(--jaune);
  color: var(--encre);
}
.btn-plein:hover {
  background: var(--jaune-fonce);
  box-shadow:
    0 2px 18px color-mix(in oklch, var(--jaune) 30%, transparent),
    0 8px 42px color-mix(in oklch, var(--jaune) 16%, transparent);
}

.btn-ligne {
  background: transparent;
  border-color: color-mix(in oklch, var(--marquage) 28%, transparent);
  color: var(--texte);
}
.btn-ligne:hover {
  border-color: var(--jaune);
  color: var(--jaune);
}

/* ---------- En-tête ---------- */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.entete.voilee {
  background: color-mix(in oklch, var(--asphalte) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: color-mix(in oklch, var(--marquage) 10%, transparent);
}
.entete.reduite { transform: translateY(-102%); }
.entete.reduite:focus-within { transform: none; }

.entete-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--marquage);
  margin-right: auto;
}
.marque-embleme { flex: none; }
.marque-embleme .jaune { fill: var(--jaune); }
.marque-nom {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.marque-nom em { color: var(--jaune); }

.nav ul {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2rem);
}
.nav a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--sourdine);
  padding-block: 0.3rem;
  background: linear-gradient(var(--jaune), var(--jaune)) no-repeat left 100% / 0% 2px;
  transition: color var(--dur-1) var(--ease), background-size var(--dur-2) var(--ease);
}
.nav a:hover,
.nav a:focus-visible,
.nav a.actif {
  color: var(--marquage);
  background-size: 100% 2px;
}
.nav a.actif { color: var(--jaune); }

.btn-entete { padding: 0.65rem 1.15rem; font-size: 0.95rem; }

@media (max-width: 859px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(50% 38% at 72% 62%, color-mix(in oklch, var(--jaune) 7%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in oklch, var(--asphalte-2) 55%, var(--asphalte)) 0%, var(--asphalte) 55%);
}
/* Grille de points, évaporée vers les bords */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in oklch, var(--marquage) 11%, transparent) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, black 35%, transparent 78%);
}

.hero-grille {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
  padding-top: clamp(7rem, 14vh, 10rem);
}

.hero-texte { padding-bottom: clamp(1rem, 4vh, 3rem); }

.surtitre {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--jaune);
}
.surtitre::before {
  content: "";
  flex: none;
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 12px);
}

.hero-titre {
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-block: 1.1rem 1.4rem;
  color: var(--marquage);
}
.hero-titre .ligne { display: block; overflow: clip; }
.hero-titre .ligne > span { display: block; }
.hero-titre .accent { color: var(--jaune); }

.hero-chapo {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--sourdine);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2.2rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--sourdine);
}
.hero-reperes li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-reperes li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--jaune);
  transform: rotate(45deg);
}

/* Entrée du hero, orchestrée */
@media (prefers-reduced-motion: no-preference) {
  .stage > * {
    opacity: 0;
    transform: translateY(22px);
    animation: entree var(--dur-3) var(--ease) both;
  }
  .stage > *:nth-child(1) { animation-delay: 0.05s; }
  .stage > *:nth-child(2) { animation-delay: 0.14s; }
  .stage > *:nth-child(3) { animation-delay: 0.26s; }
  .stage > *:nth-child(4) { animation-delay: 0.38s; }
  .stage > *:nth-child(5) { animation-delay: 0.5s; }
  .hero-titre .ligne > span {
    transform: translateY(112%);
    animation: montee 0.9s var(--ease) both;
  }
  .hero-titre .ligne:nth-child(1) > span { animation-delay: 0.18s; }
  .hero-titre .ligne:nth-child(2) > span { animation-delay: 0.28s; }
  .hero-scene {
    opacity: 0;
    transform: translateY(14px);
    animation: entree 1s var(--ease) 0.35s both;
  }
  @keyframes entree { to { opacity: 1; transform: none; } }
  @keyframes montee { to { transform: none; } }
}

/* Scène SVG : beffroi, toits, route */
.hero-scene {
  margin: 0;
  align-self: end;
}
.hero-scene svg {
  width: 100%;
  height: auto;
  max-height: 74vh;
  margin-inline: auto;
}

.sv-ombre     { fill: oklch(0.165 0.014 255); }
.sv-route     { fill: oklch(0.155 0.012 255); }
.sv-pierre    { fill: oklch(0.30 0.016 250); }
.sv-pierre2   { fill: oklch(0.335 0.017 250); }
.sv-ardoise   { fill: oklch(0.255 0.02 262); }
.sv-brique    { fill: color-mix(in oklch, var(--brique) 72%, var(--asphalte)); }
.sv-fenetre   { fill: color-mix(in oklch, var(--jaune) 55%, transparent); }
.sv-trait     { fill: color-mix(in oklch, var(--marquage) 9%, transparent); }
.sv-cadran    { fill: var(--asphalte-fonce); stroke: var(--marquage); stroke-width: 3; }
.sv-aiguille  { stroke: var(--jaune); stroke-width: 3; stroke-linecap: round; }
.sv-jaune     { fill: var(--jaune); }
.sv-mat       { stroke: var(--jaune); stroke-width: 2.5; stroke-linecap: round; }
.sv-meurtriere{ fill: var(--asphalte-fonce); }
.sv-porte     { fill: color-mix(in oklch, var(--jaune) 26%, var(--asphalte-fonce)); }
.sv-bord      { fill: color-mix(in oklch, var(--jaune) 62%, transparent); }
.sv-marquage  { fill: color-mix(in oklch, var(--marquage) 92%, transparent); }
.sv-poteau    { fill: var(--asphalte-3); }
.sv-panneau   { fill: var(--jaune); }
.sv-panneau-texte {
  fill: var(--encre);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
}

@media (min-width: 980px) {
  .hero-grille { grid-template-columns: 1.05fr 0.95fr; }
  .hero { min-height: 100svh; display: grid; }
  .hero-grille { width: 100%; }
}

/* ---------- Le fil : marquage axial qui se trace au scroll ---------- */

.parcours { position: relative; }

.fil {
  display: none;
  position: absolute;
  top: 2rem;
  bottom: 3rem;
  left: calc((100% - min(100%, var(--maxw))) / 2 + var(--pad) + 0.45rem);
  width: 5px;
}
.fil-fond,
.fil-trace {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, currentColor 0 26px, transparent 26px 46px);
}
.fil-fond { color: color-mix(in oklch, var(--marquage) 10%, transparent); }
.fil-trace {
  color: color-mix(in oklch, var(--marquage) 88%, transparent);
  clip-path: inset(0 0 100% 0);
}
.fil-curseur {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--jaune);
  transform: translate(-50%, 0) rotate(45deg);
  box-shadow:
    0 0 0 4px color-mix(in oklch, var(--jaune) 18%, transparent),
    0 2px 14px color-mix(in oklch, var(--jaune) 35%, transparent);
}

@media (min-width: 900px) {
  .fil { display: block; }
  .parcours .container { padding-left: calc(var(--pad) + 4.25rem); }
  .section-tete { position: relative; }
  /* Jalon : losange sur la ligne, au départ de chaque section */
  .section-tete::before {
    content: "";
    position: absolute;
    left: calc(-3.8rem - 4px);
    top: 0.15rem;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: var(--asphalte);
    border: 2.5px solid var(--jaune);
    transform: rotate(45deg);
  }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section:first-of-type { padding-top: clamp(5.5rem, 11vw, 9rem); }

.section-tete { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-tete h2 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--marquage);
  margin-block: 0.9rem 1rem;
}
.section-chapo {
  color: var(--sourdine);
  max-width: 55ch;
}

/* ---------- Atouts (l'école) ---------- */

.atouts {
  display: grid;
  gap: 1.25rem;
}

.atout {
  padding: 1.75rem;
  border: var(--filet);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--asphalte-2) 45%, transparent);
  transition:
    transform var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease);
}
.atout:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--jaune) 45%, transparent);
  background: color-mix(in oklch, var(--asphalte-2) 70%, transparent);
}
.atout h3 {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--marquage);
  margin-block: 1.1rem 0.6rem;
}
.atout p { color: var(--sourdine); }

@media (min-width: 900px) {
  .atouts { grid-template-columns: repeat(12, 1fr); }
  .atout { grid-column: span 5; }
  .atout-large { grid-column: span 7; }
}

/* Signes routiers stylisés (icônes) */
.signe {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}
.signe svg { width: 100%; height: 100%; }
.s-contour {
  fill: color-mix(in oklch, var(--asphalte) 75%, transparent);
  stroke: var(--marquage);
  stroke-width: 2.6;
}
.s-glyphe { fill: var(--jaune); }
.s-glyphe-cercle { fill: none; stroke: var(--jaune); stroke-width: 2.4; }
.s-glyphe-trait {
  fill: none;
  stroke: var(--jaune);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s-lettre {
  fill: var(--jaune);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
}

/* ---------- Formules ---------- */

.formules {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: var(--filet);
  border-radius: 18px;
  background: color-mix(in oklch, var(--asphalte-2) 45%, transparent);
  transition:
    transform var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.formule:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--marquage) 30%, transparent);
}

.formule-phare {
  border: 1.5px solid var(--jaune);
  background: color-mix(in oklch, var(--asphalte-2) 80%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--jaune) 18%, transparent),
    0 12px 50px color-mix(in oklch, var(--jaune) 9%, transparent);
}
.formule-phare:hover {
  border-color: var(--jaune);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--jaune) 30%, transparent),
    0 16px 60px color-mix(in oklch, var(--jaune) 14%, transparent);
}

.formule-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  background: var(--jaune);
  color: var(--encre);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.formule-signe { margin-bottom: 1.2rem; }
.formule h3 {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--marquage);
}
.formule-role {
  color: var(--sourdine);
  font-size: var(--step--1);
  margin-top: 0.4rem;
  min-height: 2.6em;
}

.formule-prix {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-block: 1.2rem 1.4rem;
  padding-block: 1.1rem;
  border-block: var(--filet);
}
.prix {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1;
  color: var(--marquage);
  letter-spacing: -0.02em;
}
.devise {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--jaune);
}
.prix-note {
  width: 100%;
  color: var(--sourdine);
  font-size: var(--step--1);
}

.formule-liste {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
}
.formule-liste li {
  position: relative;
  padding-left: 1.55rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: color-mix(in oklch, var(--texte) 88%, transparent);
}
.formule-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.9rem;
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--jaune) 0 5px, transparent 5px 8px);
}

.btn-formule { margin-top: auto; width: 100%; }

.formules-note {
  margin-top: 1.75rem;
  color: var(--sourdine);
  font-size: var(--step--1);
}

@media (min-width: 940px) {
  .formules { grid-template-columns: repeat(3, 1fr); }
  /* Titres sur une hauteur fixe : les prix restent alignés d'une carte à l'autre */
  .formule h3 { min-height: 2.3em; }
  .formule-phare { transform: translateY(-10px); }
  .formule-phare:hover { transform: translateY(-14px); }
}

/* ---------- Planning ---------- */

.planning-cadre {
  border: var(--filet);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--asphalte-2) 45%, transparent);
  overflow: hidden;
}

/* La grille défile DANS son conteneur, jamais la page */
.planning-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.planning {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}

.planning caption {
  caption-side: top;
  text-align: left;
  padding: 1.1rem 1.25rem 0.4rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jaune);
}

.planning th,
.planning td {
  padding: 0.95rem 1rem;
  text-align: center;
  border-top: 1px solid color-mix(in oklch, var(--marquage) 8%, transparent);
}

.planning thead th {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--marquage);
  border-top: none;
  padding-top: 1.1rem;
}
.planning-date {
  color: var(--sourdine);
  font-weight: 600;
}
.planning-coin {
  color: var(--sourdine);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.planning tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: oklch(0.245 0.014 255);
  text-align: left;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--marquage);
  min-width: 10.5rem;
  border-right: 1px solid color-mix(in oklch, var(--marquage) 10%, transparent);
}
.planning-heures {
  display: block;
  font-family: var(--f-texte);
  font-weight: 400;
  color: var(--sourdine);
  font-size: 0.82rem;
}

.planning tbody tr:hover td {
  background: color-mix(in oklch, var(--marquage) 3%, transparent);
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.place::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.place[data-etat="ok"] {
  color: var(--texte);
  border-color: color-mix(in oklch, var(--marquage) 26%, transparent);
}
.place[data-etat="ok"]::before { background: var(--marquage); }
.place[data-etat="peu"] {
  color: var(--jaune);
  border-color: color-mix(in oklch, var(--jaune) 45%, transparent);
}
.place[data-etat="peu"]::before { background: var(--jaune); }
.place[data-etat="complet"] {
  color: var(--sourdine);
  border-color: color-mix(in oklch, var(--sourdine) 22%, transparent);
}
.place[data-etat="complet"]::before {
  background: color-mix(in oklch, var(--sourdine) 55%, transparent);
}
.place[data-etat="ferme"] {
  color: color-mix(in oklch, var(--sourdine) 75%, transparent);
  font-weight: 400;
  font-style: italic;
}
.place[data-etat="ferme"]::before { display: none; }

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 1.4rem;
  color: var(--sourdine);
  font-size: var(--step--1);
}
.legende li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.pastille {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.pastille[data-etat="ok"] { background: var(--marquage); }
.pastille[data-etat="peu"] { background: var(--jaune); }
.pastille[data-etat="complet"] { background: color-mix(in oklch, var(--sourdine) 55%, transparent); }

.planning-note {
  margin-top: 0.9rem;
  color: var(--sourdine);
  font-size: var(--step--1);
}

@media (max-width: 600px) {
  .planning tbody th { min-width: 8.75rem; }
}

/* ---------- Inscription ---------- */

.form-zone {
  max-width: 44rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--filet);
  border-radius: 18px;
  background: color-mix(in oklch, var(--asphalte-2) 60%, transparent);
}

.form-inscription {
  display: grid;
  gap: 1.25rem;
}

.champ label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--marquage);
}

.champ input,
.champ select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1.5px solid color-mix(in oklch, var(--marquage) 18%, transparent);
  background: var(--asphalte-fonce);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--step-0);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.champ input::placeholder { color: color-mix(in oklch, var(--sourdine) 55%, transparent); }
.champ input:hover,
.champ select:hover { border-color: color-mix(in oklch, var(--marquage) 32%, transparent); }
.champ input:focus-visible,
.champ select:focus-visible {
  outline: none;
  border-color: var(--jaune);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--jaune) 22%, transparent);
}

.champ select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f3f1e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}
.champ select.repere {
  border-color: var(--jaune);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--jaune) 22%, transparent);
}

.champ-envoi {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.form-note {
  color: var(--sourdine);
  font-size: var(--step--1);
}

@media (min-width: 700px) {
  .form-inscription { grid-template-columns: 1fr 9rem; }
  .champ-formule,
  .champ-envoi { grid-column: 1 / -1; }
}

/* Confirmation de démonstration */
.confirmation { outline: none; }
.confirmation h3 {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--marquage);
  margin-block: 1.1rem 1rem;
}
.confirmation-signe .s-glyphe-trait { stroke-width: 3; }
.confirmation-demo {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--jaune);
  background: color-mix(in oklch, var(--jaune) 8%, transparent);
  border-radius: 0 10px 10px 0;
  font-weight: 500;
}
.confirmation-recap {
  margin-block: 1rem 1.5rem;
  color: var(--sourdine);
}

/* ---------- Pied de page ---------- */

.pied {
  background: var(--asphalte-fonce);
  border-top: var(--filet);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.pied-grille {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 760px) {
  .pied-grille { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem; }
}

.pied-bloc p { color: var(--sourdine); }
.pied-bloc p + p { margin-top: 0.35rem; }

.pied-nom {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--marquage) !important;
  margin-bottom: 0.8rem;
}
.pied-nom em { color: var(--jaune); }
.pied-detail { font-size: var(--step--1); margin-top: 0.7rem !important; }

.pied-titre {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--marquage);
  margin: 0 0 0.9rem;
}

.lien {
  color: var(--texte);
  text-decoration: none;
  background: linear-gradient(var(--jaune), var(--jaune)) no-repeat left 100% / 0% 1.5px;
  transition: color var(--dur-1) var(--ease), background-size var(--dur-2) var(--ease);
}
.lien:hover,
.lien:focus-visible {
  color: var(--jaune);
  background-size: 100% 1.5px;
}
.lien-brnsg {
  color: var(--jaune);
  font-weight: 600;
  background-image: linear-gradient(var(--jaune), var(--jaune));
  background-size: 100% 1.5px;
}
.lien-brnsg:hover { color: var(--marquage); }

.pied-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklch, var(--marquage) 9%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--sourdine);
  font-size: var(--step--1);
}

/* ---------- Reveals au scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion : contrat global ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .stage > *, .hero-titre .ligne > span, .hero-scene { opacity: 1; transform: none; animation: none; }
  /* Le marquage signature reste visible, entièrement tracé */
  .fil-trace { clip-path: none; }
  .fil-curseur { display: none; }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .btn-entete { padding: 0.55rem 0.9rem; font-size: 0.88rem; }
  .marque-nom { font-size: 0.98rem; }
}
