/* ============================================================
   PAGE PARCOURS (aproposdemoi.html), DA « Télémétrie »
   - Bio : portrait collant dans un cadre HUD (scan à l'apparition,
     bandeau pilote façon télé), lettrine, exergue en team radio,
     moments clés en pastilles.
   - Timeline : la ligne de chronométrage se dessine (--tl-progress,
     posé par script.js), un point voiture la descend, chaque étape
     active déclenche un flash ; grande date collante à gauche.
   - Valeurs : mots qui respirent sur l'axe de largeur, réticule qui
     se verrouille (survol, ou centre de l'écran via js/parcours.js).
   - Méthode : trois colonnes, tampon Zone01, boucle en circuit.
   - CTA : scène livrée bleue.
   Sans JS ou en mouvement réduit : tout est visible et lisible.
   ============================================================ */

/* ------------------------------------------------------------
   0. EN-TÊTE DE PAGE : bandeau d'identification sous le titre
   ------------------------------------------------------------ */
.about-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) 0;
  margin-top: clamp(var(--s-5), 3.4vw, var(--s-7));
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.about-hero-meta > span:not(.about-hero-plate) {
  padding-inline: var(--s-4);
  border-left: 1px solid var(--rule);
}

.about-hero-meta > span:nth-child(2) { border-left: 0; color: var(--fg); }

.about-hero-plate {
  display: inline-grid;
  place-items: center;
  min-width: 2.8em;
  padding: 3px 8px 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
  color: var(--white);
  background: var(--livery);
  transform: skewX(var(--slant));
}

/* ------------------------------------------------------------
   1. BIO : portrait collant, lettrine, team radio
   ------------------------------------------------------------ */
.bio { padding-bottom: var(--section); }

.bio-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-8);
}

.bio-portrait {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 16px;
}

.bio-text { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 1024px) {
  .bio-portrait {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--nav-h) + 6vh);
    align-self: start;
    max-width: min(100%, calc(76vh * 0.667));
  }

  .bio-text { grid-column: 7 / -1; }
}

/* Disque de livrée derrière le portrait détouré, avec anneau de visée */
.profile-disc {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--livery-glow) 55%, transparent), transparent 55%),
    var(--livery);
  box-shadow: 0 0 80px -10px color-mix(in srgb, var(--livery) 75%, transparent);
  transform:
    translate3d(-50%, calc((0.5 - var(--p, 0.5)) * 20%), 0)
    scale(calc(0.86 + var(--p, 0.5) * 0.24));
  will-change: transform;
}

.profile-disc::before {
  content: "";
  position: absolute;
  inset: -9%;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
}

/* Graduations du réticule (haut, bas, gauche, droite) */
.profile-disc::after {
  content: "";
  position: absolute;
  inset: -16%;
  background:
    linear-gradient(var(--accent), var(--accent)) 50% 0 / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 50% 100% / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 50% / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 50% / 12px 1px no-repeat;
  opacity: 0.8;
}

.profile-photo {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line-2);
  translate: 0 calc((0.5 - var(--p, 0.5)) * -5%);
}

.profile-photo img {
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
}

/* Calque HUD : crochets, identification, coordonnées, scan, bandeau */
.bio-hud {
  --hud-c: var(--accent);
  --hud-l: 18px;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease 0.2s, scale 1s var(--ease-out) 0.2s;
}

.bio-hud-id {
  position: absolute;
  top: 26px;
  left: 26px;
  color: var(--fg);
  background: color-mix(in srgb, var(--carbon) 70%, transparent);
}

.bio-hud-id::after {
  content: "OK";
  content: "OK" / "";
  color: var(--green);
}

.bio-hud-coord {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Bande de balayage : le bord bas est la ligne lumineuse */
.bio-hud-scan {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to bottom, transparent 62%, color-mix(in srgb, var(--cyan) 14%, transparent) 99.4%, var(--cyan) 99.4%);
  transform: translateY(-100%);
}

/* Bandeau pilote façon retransmission */
.bio-l3 {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: stretch;
  max-width: calc(100% - 16px);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}

.bio-l3 > * { display: grid; place-items: center; padding: 6px 10px 5px; }

.bio-l3 b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0;
  color: var(--white);
  background: var(--livery);
}

.bio-l3 span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  font-style: italic;
  font-stretch: 112%;
  letter-spacing: 0.02em;
  color: var(--carbon);
  background: var(--white);
  white-space: nowrap;
}

.bio-l3 i {
  font-style: normal;
  font-weight: 600;
  color: var(--white);
  background: var(--carbon);
  border-block: 1px solid var(--line-2);
}

/* Apparition : les crochets se resserrent, puis la passe de scan */
.js .bio-hud { opacity: 0; scale: 1.06; }
.js .bio-hud-id::after { opacity: 0; }

.js .bio-portrait:has(.profile-photo.is-in) .bio-hud { opacity: 1; scale: 1; }

.js .bio-portrait:has(.profile-photo.is-in) .bio-hud-scan {
  animation: bio-scan 1.7s var(--ease-in-out) 0.7s both;
}

.js .bio-portrait:has(.profile-photo.is-in) .bio-hud-id::after {
  animation: bio-ok 0.3s ease 2.3s both;
}

@keyframes bio-scan {
  0% { opacity: 1; transform: translateY(-100%); }
  88% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes bio-ok {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Texte */
.bio-title {
  margin-bottom: var(--s-7);
  font-size: clamp(2.3rem, 0.9rem + 3.6vw, 5rem);
  font-stretch: 100%;
  line-height: 0.9;
  text-transform: uppercase;
}

.bio-p {
  max-width: 60ch;
  margin-bottom: 1em;
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--fg) 88%, var(--bg));
}

.bio-p--lead {
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.45rem);
  line-height: 1.55;
  color: var(--fg);
}

/* Lettrine : grand caractère penché, en livrée */
.bio-p--lead::first-letter {
  float: left;
  margin: 0.04em 0.12em 0 -0.02em;
  font-family: var(--font-display);
  font-size: 4.6em;
  font-weight: 900;
  font-style: italic;
  font-stretch: 100%;
  line-height: 0.78;
  color: var(--accent);
}

/* Exergue : un message radio du pilote */
.bio-quote {
  position: relative;
  max-width: 28ch;
  margin: var(--s-7) 0;
  padding: 2.6rem var(--s-5) var(--s-5);
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 75%);
  font-size: clamp(1.4rem, 0.95rem + 1.5vw, 2.3rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg);
  quotes: "« " " »";
}

.bio-quote::before {
  content: "Team radio · BRE #26";
  position: absolute;
  top: 0.9rem;
  left: var(--s-5);
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-small);
}

/* Forme d'onde */
.bio-quote::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: var(--s-5);
  width: 112px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='24' fill='%233d7dff'%3E%3Crect x='0' y='10.5' width='2.4' height='3'/%3E%3Crect x='5' y='9' width='2.4' height='6'/%3E%3Crect x='10' y='6.5' width='2.4' height='11'/%3E%3Crect x='15' y='8' width='2.4' height='8'/%3E%3Crect x='20' y='4.5' width='2.4' height='15'/%3E%3Crect x='25' y='2' width='2.4' height='20'/%3E%3Crect x='30' y='6' width='2.4' height='12'/%3E%3Crect x='35' y='9.5' width='2.4' height='5'/%3E%3Crect x='40' y='7.5' width='2.4' height='9'/%3E%3Crect x='45' y='5' width='2.4' height='14'/%3E%3Crect x='50' y='2.5' width='2.4' height='19'/%3E%3Crect x='55' y='5.5' width='2.4' height='13'/%3E%3Crect x='60' y='8.5' width='2.4' height='7'/%3E%3Crect x='65' y='10' width='2.4' height='4'/%3E%3Crect x='70' y='9' width='2.4' height='6'/%3E%3Crect x='75' y='6.5' width='2.4' height='11'/%3E%3Crect x='80' y='3.5' width='2.4' height='17'/%3E%3Crect x='85' y='1' width='2.4' height='22'/%3E%3Crect x='90' y='4.5' width='2.4' height='15'/%3E%3Crect x='95' y='7.5' width='2.4' height='9'/%3E%3Crect x='100' y='9.5' width='2.4' height='5'/%3E%3Crect x='105' y='8' width='2.4' height='8'/%3E%3Crect x='110' y='5.5' width='2.4' height='13'/%3E%3Crect x='115' y='7.5' width='2.4' height='9'/%3E%3Crect x='120' y='9.5' width='2.4' height='5'/%3E%3Crect x='125' y='10.5' width='2.4' height='3'/%3E%3Crect x='130' y='11' width='2.4' height='2'/%3E%3Crect x='135' y='10.5' width='2.4' height='3'/%3E%3C/svg%3E") 0 50% / contain no-repeat;
  opacity: 0.9;
}

/* Moments clés : pastilles numérotées */
.bio-moments {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  counter-reset: moment;
}

.bio-moments::before {
  content: "Moments clés";
  content: "Moments clés" / "";
  flex-basis: 100%;
  margin-bottom: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio-moments .chip {
  counter-increment: moment;
  transition: border-color 0.3s ease, background-color 0.3s ease, opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

.bio-moments .chip::before {
  content: counter(moment, decimal-leading-zero);
  content: counter(moment, decimal-leading-zero) / "";
  color: var(--accent-small);
  font-weight: 700;
}

@media (hover: hover) {
  .bio-moments .chip:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

/* ------------------------------------------------------------
   2. TIMELINE : la ligne de chronométrage
   ------------------------------------------------------------ */
.timeline-section { padding-block: var(--section); }

.tl-head {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-5);
  margin-bottom: clamp(var(--s-7), 6vw, var(--s-9));
}

.tl-title {
  grid-column: 1 / -1;
  font-size: clamp(2.6rem, 0.9rem + 5.4vw, 7.6rem);
  font-stretch: 104%;
  line-height: 0.86;
  text-transform: uppercase;
}

.tl-intro {
  grid-column: 1 / -1;
  max-width: 36ch;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .tl-title { grid-column: 1 / span 8; }
  .tl-intro { grid-column: 9 / -1; align-self: end; }
}

.tl-body {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}

.tl-aside { display: none; }

#cd-timeline {
  --tl-pad: 44px;   /* retrait du contenu */
  --tl-x: 11px;     /* axe de la piste */
  position: relative;
  grid-column: 1 / -1;
  padding-left: var(--tl-pad);
  counter-reset: step;
}

/* La piste : filet, graduations, puis la part parcourue qui s'allume */
.tl-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--tl-x) * 2);
  pointer-events: none;
}

.tl-track::before,
.tl-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
}

.tl-track::before {
  left: 0;
  right: 0;
  background:
    linear-gradient(var(--line-2), var(--line-2)) 50% 0 / 2px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 28px) 50% 0 / 12px 100% no-repeat;
}

.tl-track::after {
  left: calc(var(--tl-x) - 1px);
  width: 2px;
  background: linear-gradient(to bottom, var(--livery), var(--livery-glow));
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--livery-2) 80%, transparent);
  clip-path: inset(0 -16px calc(100% - var(--tl-progress, 100%)) -16px);
}

/* Le point voiture : #26, avec sa traînée */
.tl-car {
  position: absolute;
  top: 0;
  left: var(--tl-x);
  z-index: 3;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--livery-2) 45%, transparent),
    0 0 18px 3px var(--livery-2);
  transform: translateY(var(--tl-progress, 0px));
  will-change: transform;
}

.tl-car::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 4px;
  height: min(110px, var(--tl-progress, 0px));
  translate: -50% 0;
  border-radius: 2px;
  background: linear-gradient(to top, color-mix(in srgb, var(--livery-glow) 90%, transparent), transparent);
}

.tl-car::after {
  content: "26";
  position: absolute;
  top: 50%;
  right: 20px;
  translate: 0 -50%;
  padding: 1px 5px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
  color: var(--white);
  background: var(--livery);
  transform: skewX(var(--slant));
  display: none;
}

@media (min-width: 1024px) {
  .tl-car::after { display: block; }
}

html:not(.js) .tl-car { display: none; }

/* Étapes */
.step {
  position: relative;
  padding: var(--s-7) 0;
  counter-increment: step;
}

/* Filet d'étape : la ligne de chronométrage traverse la piste */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--tl-x) - var(--tl-pad) - 8px);
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2) 0 28px, var(--rule) 28px);
}

/* Flash : un trait lumineux balaie le filet quand l'étape devient active */
.step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(var(--tl-x) - var(--tl-pad) - 8px);
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--white), var(--livery-glow) 18%, var(--livery) 50%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--livery-2) 70%, transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
}

.js .step.is-active::after { animation: tl-sweep 1.2s var(--ease-out) both; }

@keyframes tl-sweep {
  0% { transform: scaleX(0); opacity: 1; }
  55% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Repère sur la piste : losange, rempli une fois passé */
.cd-timeline-img {
  position: absolute;
  top: calc(var(--s-7) + 0.55rem);
  left: calc(var(--tl-x) - var(--tl-pad) - 6px);
  z-index: 2;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  transform: rotate(45deg);
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.cd-timeline-img::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--livery-glow);
  opacity: 0;
}

.js .step:has(~ .step.is-active) .cd-timeline-img {
  background: var(--livery-2);
  border-color: var(--livery-2);
}

.step.is-active .cd-timeline-img {
  background: var(--white);
  border-color: var(--livery-glow);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--livery-2) 35%, transparent), 0 0 16px var(--livery-2);
}

.js .step.is-active .cd-timeline-img::after { animation: tl-ring 0.9s var(--ease-out) both; }

@keyframes tl-ring {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(3.6); }
}

/* Étape en cours (Zone01) : repère vert, badge EN PISTE */
.step--live .cd-timeline-img { border-color: var(--green); }

.step--live.is-active .cd-timeline-img {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent), 0 0 16px var(--green);
}

.cd-timeline-content { position: relative; }

/* Date d'étape : grande sur mobile, repère mono sur bureau */
.cd-date {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem);
  font-weight: 850;
  font-style: italic;
  font-stretch: 96%;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--accent-small);
}

.cd-date::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  align-self: center;
  padding: 2px 6px 1px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--on-accent);
  background: var(--accent);
  transform: skewX(var(--slant));
}

.cd-timeline-content h3 {
  margin-bottom: var(--s-3);
  font-size: clamp(1.45rem, 1.05rem + 1.2vw, 2.3rem);
  font-stretch: 100%;
  line-height: 0.98;
  text-transform: uppercase;
  transition: color 0.5s ease;
}

.cd-timeline-content p {
  max-width: 52ch;
  line-height: 1.65;
  color: var(--muted);
  transition: color 0.5s ease;
}

.js .step .cd-timeline-content h3 { color: var(--muted); }
.js .step.is-active .cd-timeline-content h3,
.js .step.is-active .cd-timeline-content p { color: var(--fg); }

/* Badge EN PISTE */
.tl-badge {
  position: absolute;
  top: 0.35rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 3px 9px 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 60%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent);
  transform: skewX(var(--slant));
}

.tl-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: hud-blink 1.6s steps(2, jump-none) infinite;
}

/* Étape NDA : caviardage décoratif et tampon CLASSIFIÉ */
.tl-redact {
  position: relative;
  display: grid;
  gap: 7px;
  max-width: 52ch;
  margin-top: var(--s-5);
  overflow: hidden;
}

.tl-redact-label {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.tl-redact-label::before {
  content: "";
  width: 16px;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 2px, transparent 2px 4px);
}

.tl-redact i {
  display: block;
  height: 0.95em;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 6px),
    #1a1f2b;
  box-shadow: inset 0 0 0 1px rgba(150, 175, 255, 0.08);
}

.tl-redact i:nth-of-type(1) { width: 94%; }
.tl-redact i:nth-of-type(2) { width: 71%; }
.tl-redact i:nth-of-type(3) { width: 48%; }

/* Passe de lecture refusée sur les barres quand l'étape s'allume */
.tl-redact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--red) 22%, transparent), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}

.js .step--nda.is-active .tl-redact::after { animation: tl-deny 1.4s var(--ease-in-out) 0.3s both; }

@keyframes tl-deny {
  to { transform: translateX(100%); }
}

.tl-stamp {
  position: absolute;
  top: -0.6rem;
  right: 0;
  padding: 0.28em 0.7em 0.22em;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.75rem + 0.6vw, 1.35rem);
  font-weight: 900;
  font-style: italic;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  outline: 1px solid color-mix(in srgb, var(--red) 55%, transparent);
  outline-offset: 3px;
  transform: rotate(-8deg);
  /* Ancré à droite : l'état agrandi avant l'apparition ne déborde pas de l'écran */
  transform-origin: 100% 50%;
  opacity: 0.92;
  pointer-events: none;
  /* Encre irrégulière du tampon */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 0.2s ease, transform 0.5s var(--ease-snap);
}

.js .step--nda .tl-stamp { opacity: 0; transform: rotate(-8deg) scale(1.7); }

.js .step--nda.is-active .tl-stamp,
.js .step--nda:has(~ .step.is-active) .tl-stamp {
  opacity: 0.92;
  transform: rotate(-8deg) scale(1);
}

/* Bureau : date collante, compteur, secteurs */
@media (min-width: 1024px) {
  .js .tl-aside {
    display: block;
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--nav-h) + 12vh);
    align-self: start;
    container-type: inline-size;
  }

  .tl-aside-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    padding-top: var(--s-3);
    margin-bottom: var(--s-5);
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .tl-aside-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--fg);
  }

  .tl-aside-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: hud-blink 1.2s steps(2, jump-none) infinite;
  }

  /* La grande date : seul le défilement vertical est rogné (l'italique
     déborde à droite sans être coupé) */
  .tl-dates {
    position: relative;
    height: 0.96em;
    font-family: var(--font-display);
    font-size: min(19cqi, 10rem);
    font-weight: 900;
    font-style: italic;
    font-stretch: 84%;
    line-height: 0.84;
    text-transform: uppercase;
    clip-path: inset(0 -1em 0 -0.2em);
  }

  .tl-date {
    position: absolute;
    top: 0.06em;
    left: 0;
    white-space: nowrap;
    color: var(--fg);
    opacity: 0;
    transform: translateY(110%) skewX(8deg);
    transition: transform 0.8s var(--ease-out), opacity 0.45s ease;
  }

  .tl-date.is-past { transform: translateY(-110%); }

  .tl-date.is-active {
    opacity: 1;
    transform: none;
  }

  .tl-count {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    margin-top: var(--s-5);
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }

  .tl-count::before {
    content: "Étape";
    margin-right: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .tl-count-now {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0;
    color: var(--fg);
  }

  .tl-sectors {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    max-width: 280px;
    margin-top: var(--s-3);
  }

  .tl-sectors i {
    height: 4px;
    background: var(--carbon-3);
    transform: skewX(var(--slant));
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
  }

  .tl-aside:has([data-step="0"].is-past) .tl-sectors i:nth-child(1),
  .tl-aside:has([data-step="1"].is-past) .tl-sectors i:nth-child(2),
  .tl-aside:has([data-step="2"].is-past) .tl-sectors i:nth-child(3),
  .tl-aside:has([data-step="3"].is-past) .tl-sectors i:nth-child(4),
  .tl-aside:has([data-step="4"].is-past) .tl-sectors i:nth-child(5),
  .tl-aside:has([data-step="5"].is-past) .tl-sectors i:nth-child(6) { background: var(--livery-2); }

  .tl-aside:has([data-step="0"].is-active) .tl-sectors i:nth-child(1),
  .tl-aside:has([data-step="1"].is-active) .tl-sectors i:nth-child(2),
  .tl-aside:has([data-step="2"].is-active) .tl-sectors i:nth-child(3),
  .tl-aside:has([data-step="3"].is-active) .tl-sectors i:nth-child(4),
  .tl-aside:has([data-step="4"].is-active) .tl-sectors i:nth-child(5),
  .tl-aside:has([data-step="5"].is-active) .tl-sectors i:nth-child(6),
  .tl-aside:has([data-step="6"].is-active) .tl-sectors i:nth-child(7) {
    background: var(--white);
    box-shadow: 0 0 10px var(--livery-glow);
  }

  #cd-timeline { grid-column: 7 / -1; }

  /* La grande date porte l'étape : dans l'entrée, elle devient un repère */
  .js .cd-date {
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    font-weight: 600;
    font-style: normal;
    font-stretch: 100%;
    letter-spacing: 0.1em;
    line-height: 1.3;
  }

  .js .cd-date::before { align-self: baseline; }
}

/* ------------------------------------------------------------
   3. VALEURS : mots qui respirent, réticule de visée
   ------------------------------------------------------------ */
.values-section { padding-block: var(--section); }

.values-title {
  margin-bottom: clamp(var(--s-7), 6vw, var(--s-9));
  font-size: clamp(2.3rem, 1rem + 3.6vw, 5rem);
  font-stretch: 104%;
  line-height: 0.9;
  text-transform: uppercase;
}

.values {
  list-style: none;
  border-top: 1px solid var(--line-2);
  counter-reset: value;
}

.value {
  position: relative;
  display: grid;
  row-gap: var(--s-3);
  align-items: center;
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--rule);
  counter-increment: value;
}

/* Numéro de cible */
.value::before {
  content: "Cible " counter(value, decimal-leading-zero);
  content: "Cible " counter(value, decimal-leading-zero) / "";
  position: absolute;
  top: var(--s-3);
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

/* Filet de verrouillage */
.value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out);
}

.value-word {
  position: relative;
  justify-self: start;
  --word-fs: clamp(3.1rem, 0.9rem + 7.2vw, 8.5rem);
  padding: 0.06em 0.14em 0.02em 0;
  font-size: var(--word-fs);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.84;
  text-transform: uppercase;
  transition: font-stretch 0.9s var(--ease-out), color 0.4s ease;
}

/* Réticule : quatre crochets qui se resserrent sur le mot */
.value-word::before {
  --c: var(--accent);
  content: "";
  position: absolute;
  inset: -0.14em -0.12em -0.1em -0.16em;
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 2px,
    linear-gradient(var(--c), var(--c)) top left / 2px 16px,
    linear-gradient(var(--c), var(--c)) top right / 16px 2px,
    linear-gradient(var(--c), var(--c)) top right / 2px 16px,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 2px,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 16px,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 2px,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 16px;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.18);
  transition: opacity 0.3s ease, transform 0.55s var(--ease-snap);
  pointer-events: none;
}

.value-word::after {
  content: "Verrouillé";
  content: "Verrouillé" / "";
  position: absolute;
  /* Positionné en tailles du mot (--word-fs), pas en em de l'étiquette */
  right: calc(-0.12 * var(--word-fs));
  top: calc(-0.14 * var(--word-fs) - 6px);
  translate: 0 -100%;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  color: var(--accent-small);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-text {
  max-width: 32ch;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.4s ease;
}

@media (min-width: 1024px) {
  .value {
    grid-template-columns: 7fr 5fr;
    column-gap: var(--gutter);
  }
}

/* Verrouillé : au survol, ou au centre de l'écran (js/parcours.js) */
.value.is-locked .value-word { font-stretch: 92%; color: var(--accent-small); }
.value.is-locked .value-word::before { opacity: 1; transform: none; }
.value.is-locked .value-word::after { opacity: 1; }
.value.is-locked::before { color: var(--accent-small); }
.value.is-locked::after { transform: scaleX(1); }
.value.is-locked .value-text { color: var(--fg); }

@media (hover: hover) {
  .value:hover .value-word { font-stretch: 92%; color: var(--accent-small); }
  .value:hover .value-word::before { opacity: 1; transform: none; }
  .value:hover .value-word::after { opacity: 1; }
  .value:hover::before { color: var(--accent-small); }
  .value:hover::after { transform: scaleX(1); }
  .value:hover .value-text { color: var(--fg); }

  /* La souris prend la main sur le verrouillage au défilement */
  .values:hover .value.is-locked:not(:hover) .value-word { font-stretch: 62%; color: var(--fg); }
  .values:hover .value.is-locked:not(:hover) .value-word::before { opacity: 0; transform: scale(1.18); }
  .values:hover .value.is-locked:not(:hover) .value-word::after { opacity: 0; }
  .values:hover .value.is-locked:not(:hover)::before { color: var(--muted); }
  .values:hover .value.is-locked:not(:hover)::after { transform: scaleX(0); }
  .values:hover .value.is-locked:not(:hover) .value-text { color: var(--muted); }
}

/* ------------------------------------------------------------
   4. MÉTHODE : trois colonnes, tampon Zone01, boucle en circuit
   ------------------------------------------------------------ */
.approach { padding-block: var(--section); }

.approach-head {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-6);
  margin-bottom: clamp(var(--s-7), 6vw, var(--s-9));
}

.approach-heading {
  grid-column: 1 / -1;
  font-size: clamp(2.6rem, 0.9rem + 5vw, 7rem);
  font-stretch: 100%;
  line-height: 0.86;
  text-transform: uppercase;
}

.approach-lede {
  grid-column: 1 / -1;
  max-width: 38ch;
  font-size: var(--fs-lede);
  font-weight: 300;
  line-height: 1.26;
  letter-spacing: -0.005em;
}

/* La boucle de travail, dessinée comme un tour de circuit */
.approach-loop {
  --hud-c: var(--line-2);
  grid-column: 1 / -1;
  position: relative;
  max-width: 640px;
  padding: calc(var(--s-6) + 6px) var(--s-4) var(--s-3);
}

.approach-loop-tag {
  position: absolute;
  top: 12px;
  left: 14px;
}

.loop-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.loop-edge {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 15;
  stroke-linejoin: round;
}

.loop-road {
  fill: none;
  stroke: var(--bg);
  stroke-width: 13;
  stroke-linejoin: round;
}

.loop-line {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.loop-glow,
.loop-car {
  fill: none;
  stroke-linecap: round;
  animation: loop-run 8s linear infinite;
  animation-play-state: paused;
}

.loop-glow {
  stroke: var(--livery-2);
  stroke-opacity: 0.45;
  stroke-width: 6;
  stroke-dasharray: 70 930;
  stroke-dashoffset: 60;
  animation-name: loop-trail;
}

.loop-car {
  stroke: var(--white);
  stroke-width: 4;
  stroke-dasharray: 10 990;
  stroke-dashoffset: 0;
}

.approach-loop.is-live .loop-glow,
.approach-loop.is-live .loop-car { animation-play-state: running; }

@keyframes loop-run {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -1000; }
}

@keyframes loop-trail {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: -940; }
}

.loop-marks circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.loop-labels text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--muted);
}

.loop-labels .loop-t {
  font-weight: 700;
  fill: var(--accent-small);
}

@media (min-width: 1024px) {
  .approach-heading { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .approach-lede { grid-column: 7 / -1; }
  .approach-loop { grid-column: 7 / -1; }
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line-2);
}

.approach-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-3) var(--s-7);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.4s ease, opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

/* Crochets HUD au survol */
.approach-item::before {
  --c: var(--accent);
  content: "";
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(var(--c), var(--c)) top left / 10px 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px 10px,
    linear-gradient(var(--c), var(--c)) top right / 10px 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px 10px,
    linear-gradient(var(--c), var(--c)) bottom left / 10px 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 10px,
    linear-gradient(var(--c), var(--c)) bottom right / 10px 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 10px;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) {
  .approach-item:hover { background: color-mix(in srgb, var(--carbon-3) 70%, transparent); }
  .approach-item:hover::before { opacity: 1; transform: none; }
  .approach-item:hover .approach-stamp { transform: rotate(-6deg); }
}

@media (min-width: 760px) {
  .approach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approach-item { padding-inline: var(--gutter); border-bottom: 0; }
  .approach-item + .approach-item { border-left: 1px solid var(--rule); }
}

.approach-num {
  justify-self: start;
  padding: 2px 7px 1px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-small);
  border: 1px solid var(--accent);
  transform: skewX(var(--slant));
}

/* Tampon : les points du « 01 » de Zone01, recadrés pour se lire à
   84 px ; inversés pour la nuit (le point noir devient blanc, le
   dégradé bleu se fond dans le carbone). */
.approach-stamp {
  width: 84px;
  height: 84px;
  margin: 6px 0 2px;
  object-fit: contain;
  scale: 2.3;
  transform-origin: 50% 48%;
  clip-path: inset(28.3% 30.6% 28.3% 28.3%);
  filter: invert(1) hue-rotate(180deg) saturate(1.3);
  transition: transform 0.6s var(--ease-out);
}

.approach-title {
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem);
  font-stretch: 100%;
  line-height: 0.94;
  text-transform: uppercase;
}

.approach-text {
  max-width: 36ch;
  line-height: 1.6;
  color: var(--muted);
}

/* ------------------------------------------------------------
   5. CTA : scène livrée bleue
   ------------------------------------------------------------ */
.cta {
  position: relative;
  padding-block: var(--section) calc(var(--section) * 0.7);
  overflow: clip;
}

/* Traînées de vitesse, très discrètes */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 46px, rgba(255, 255, 255, 0.045) 46px 47px, transparent 47px 120px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.cta-body {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-8);
  align-items: end;
}

.cta .cta-title {
  grid-column: 1 / -1;
  max-width: 18ch;
  font-size: clamp(2.4rem, 0.7rem + 5.4vw, 7.4rem);
  font-stretch: 100%;
  line-height: 0.88;
  text-transform: uppercase;
}

.cta-button {
  position: relative;
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: clamp(150px, 14vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--carbon);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), scale 0.6s var(--ease-out);
}

/* Anneau de visée autour du bouton */
.cta-button::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transition: inset 0.5s var(--ease-out), border-color 0.3s ease;
}

.cta-button::after {
  content: "→";
  content: "→" / "";
  display: block;
  font-size: 1.4em;
  line-height: 1;
  transition: transform 0.5s var(--ease-out);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--white);
  color: var(--livery);
  scale: 1.05;
}

.cta-button:hover::before,
.cta-button:focus-visible::before { inset: -16px; border-color: var(--white); }
.cta-button:hover::after,
.cta-button:focus-visible::after { transform: translateX(6px); }
.cta-button:focus-visible { outline: 2px solid var(--white); outline-offset: 22px; }

@media (min-width: 1024px) {
  .cta .cta-title { grid-column: 1 / span 9; }
  .cta-button { grid-column: 10 / -1; justify-self: end; }
}

/* ------------------------------------------------------------
   6. MOUVEMENT RÉDUIT : états finaux, aucun voyage
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .tl-car,
  .bio-hud-scan { display: none !important; }

  .profile-disc { transform: translate3d(-50%, 0, 0) !important; }
  .profile-photo { translate: none !important; }

  .js .bio-hud { opacity: 1 !important; scale: none !important; }
  .js .bio-hud-id::after { opacity: 1 !important; animation: none !important; }
  .js .step--nda .tl-stamp { opacity: 0.92 !important; transform: rotate(-8deg) !important; }

  .step::after,
  .cd-timeline-img::after,
  .tl-redact::after { animation: none !important; opacity: 0 !important; }

  .loop-glow,
  .loop-car { animation: none !important; stroke-dashoffset: -150; }
  .loop-glow { stroke-dashoffset: -90; }

  .tl-badge::before,
  .tl-aside-live::before { animation: none !important; }
}

/* ------------------------------------------------------------
   7. IMPRESSION
   ------------------------------------------------------------ */
@media print {
  .about-hero-meta,
  .bio-hud,
  .profile-disc,
  .tl-track,
  .tl-redact,
  .tl-stamp,
  .tl-badge,
  .approach-loop,
  .cta::before { display: none !important; }

  .bio-quote { background: none; }
  .js .step .cd-timeline-content h3,
  .js .step .cd-timeline-content p { color: #000 !important; }
}
