/* Parc18 — site vitrine
   Charte : bleu marine de la tenue, rouge des engins, jaune des bandes rétroréfléchissantes (motif signature, avec parcimonie),
   couleurs d'état fonctionnelles (disponible, atelier, réserve, contrôle). Barlow Condensed (titres) + Barlow (texte).
   Aucune dépendance externe. */

@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --marine: #13202F;
  --marine-2: #1A2A3D;
  --marine-3: #243750;
  --nuit: #0D1622;
  --rouge: #C8261D;
  --rouge-2: #A51E16;
  --rouge-pale: #FBE9E7;
  --jaune: #F2BE1A;
  --jaune-pale: #FDF3D3;
  --vert: #23875A;
  --vert-pale: #E2F1E9;
  --orange: #D46A0C;
  --orange-pale: #FCEBDA;
  --bleu: #2D6CB0;
  --bleu-pale: #E4EDF8;
  --fond: #EDF0F2;
  --fond-2: #E3E7EA;
  --encre: #13202F;
  --gris: #4E5A68;
  --gris-2: #78838F;
  --ligne: #D5DBE1;
  --ligne-2: #BCC5CE;
  --clair: #C6D1DC;

  --titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texte: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marge: clamp(16px, 5vw, 48px);
  --largeur: 1200px;
  --entete: 64px;
  --bande: 5px;
  --doux: cubic-bezier(.2, .7, .1, 1);
  --chevrons: repeating-linear-gradient(135deg, var(--rouge) 0 12px, var(--jaune) 12px 24px);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + var(--bande) + 8px); }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--jaune); color: var(--marine); }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 4px; }
svg use { pointer-events: none; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--jaune); color: var(--marine); border-radius: 8px; text-decoration: none; font-weight: 600; }
.evitement:focus { top: 14px; }

.enveloppe { width: min(var(--largeur), 100% - 2 * var(--marge)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.titre { font-family: var(--titre); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.005em; text-wrap: balance; max-width: 18em; }
.titre--clair { color: #fff; }
.chapo { margin-top: 18px; max-width: 36em; color: var(--gris); font-size: clamp(1.04rem, 1.4vw, 1.16rem); text-wrap: pretty; }
.chapo--clair { color: var(--clair); }
.rouge { color: var(--rouge); }

/* Bande de chevrons rouge et jaune : le marquage des engins, en signature */
.bande-signal { position: fixed; inset: 0 0 auto 0; height: var(--bande); z-index: 60; background: var(--chevrons); }
.bande-signal--fine { position: static; height: 6px; }

/* ------------------------------------------------------------------ Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 10px; border: 1.5px solid transparent;
  font-family: var(--texte); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .2s var(--doux), box-shadow .2s;
}
.bouton__ico { width: 19px; height: 19px; flex: none; }
.bouton:active { transform: scale(.98); }
.bouton--rouge { background: var(--rouge); color: #fff; box-shadow: 0 10px 24px -12px rgba(200, 38, 29, .8); }
.bouton--rouge:hover { background: var(--rouge-2); }
.bouton--trait { border-color: var(--ligne-2); background: #fff; color: var(--encre); }
.bouton--trait:hover { border-color: var(--marine); }
.bouton--petit { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 8px; }
.bouton--large { width: 100%; }

/* ------------------------------------------------------------------ En-tête */
.entete {
  position: fixed; left: 0; right: 0; top: var(--bande); z-index: 50; height: var(--entete);
  background: rgba(237, 240, 242, .86); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  transition: box-shadow .3s, background-color .3s;
}
.entete.defile-actif { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--ligne), 0 10px 30px -24px rgba(19, 32, 47, .5); }
.entete__in { height: 100%; width: min(var(--largeur), 100% - 2 * var(--marge)); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.marque { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--marine); flex: none; }
.marque__mot { font-family: var(--titre); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: .01em; }
.marque__num { display: inline-grid; place-items: center; min-width: 38px; height: 32px; padding: 0 5px; border-radius: 7px; background: var(--rouge); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.marque--clair { color: #fff; }
.marque__chapitre { display: none; }
.entete__nav { margin-left: auto; display: flex; gap: 26px; }
.entete__nav a { color: var(--gris); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.entete__nav a:hover { color: var(--rouge); }
.texte-court { display: none; }
.burger { display: none; position: relative; flex: none; width: 42px; height: 42px; margin-right: -6px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--marine); transition: transform .4s var(--doux), top .4s var(--doux), left .3s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; left: 17px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; left: 11px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .entete__nav { display: none; }
  .entete .bouton { margin-left: auto; }
  .burger { display: inline-flex; }
  .entete__in { gap: 14px; }
}
@media (max-width: 520px) { .texte-long { display: none; } .texte-court { display: inline; } }

/* Menu mobile */
.menu-mobile {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  padding: calc(var(--entete) + var(--bande) + 24px) var(--marge) calc(28px + env(safe-area-inset-bottom));
  background: var(--marine); clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--doux);
}
.menu-mobile.ouvert { clip-path: inset(0 0 0 0); }
.menu-mobile[hidden] { display: none; }
.menu-mobile__nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(198, 209, 220, .16);
  font-family: var(--titre); font-weight: 700; font-size: clamp(1.9rem, 8.5vw, 2.4rem); line-height: 1.1; color: #fff; text-decoration: none;
  opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .55s var(--doux), color .2s;
}
.menu-mobile__nav a::after { content: ""; width: 10px; height: 10px; border-top: 2px solid var(--rouge); border-right: 2px solid var(--rouge); transform: rotate(45deg); margin-right: 6px; }
.menu-mobile.ouvert .menu-mobile__nav a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .05s); }
.menu-mobile__bas { display: flex; flex-direction: column; gap: 16px; opacity: 0; transition: opacity .4s .4s; }
.menu-mobile.ouvert .menu-mobile__bas { opacity: 1; }
.menu-mobile__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; border-top: 1px solid rgba(198, 209, 220, .16); }
.menu-mobile__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--clair); text-decoration: none; }
.menu-mobile__contact svg { width: 18px; height: 18px; color: var(--jaune); }
.entete.menu-ouvert { background: var(--marine); box-shadow: none; }
.entete.menu-ouvert .marque { color: #fff; }
.entete.menu-ouvert .burger span { background: #fff; }
html.sans-defilement { overflow: hidden; }

/* ------------------------------------------------------------------ Héro */
.hero { padding: calc(var(--entete) + var(--bande) + clamp(36px, 6vw, 72px)) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before { /* trame discrète de dalle de remise */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--fond-2) 1px, transparent 1px), linear-gradient(90deg, var(--fond-2) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero__in { width: min(1280px, 100% - 2 * var(--marge)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__quoi { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 12px 6px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--ligne); font-size: .92rem; font-weight: 600; color: var(--gris); }
.hero__quoi::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px var(--vert-pale); animation: pouls 2.4s ease-in-out infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 7px rgba(35, 135, 90, .08); } }
.hero__titre { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: clamp(3.1rem, 7.4vw, 6.4rem); line-height: .9; letter-spacing: -.005em; }
.hero__titre .ligne { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__titre .ligne > span { display: inline-block; transform: translateY(105%); animation: monte 1s var(--doux) forwards; }
.hero__titre .ligne:nth-child(2) > span { animation-delay: .12s; }
@keyframes monte { to { transform: none; } }
/* Phrase-clé : mots barrés, puis promesse aux mots-clés surlignés en jaune signal */
.promesse { margin-top: 24px; max-width: 32em; padding: 2px 0 2px 18px; border-left: 4px solid var(--rouge); opacity: 0; animation: apparait .8s var(--doux) .45s forwards; }
.promesse__fini { font-family: var(--titre); font-weight: 700; font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1.1; }
.promesse__fini s { position: relative; text-decoration: none; white-space: nowrap; animation: p18Grise .45s ease forwards; animation-delay: calc(1.1s + var(--k) * .35s); }
.promesse__fini s::after { content: ""; position: absolute; left: -3%; right: -3%; top: 52%; height: .13em; border-radius: 1em; background: var(--rouge); transform-origin: left; transform: scaleX(0) rotate(-3deg); animation: p18Barre .45s var(--doux) forwards; animation-delay: calc(1.1s + var(--k) * .35s); }
@keyframes p18Barre { to { transform: scaleX(1) rotate(-3deg); } }
@keyframes p18Grise { to { color: var(--gris-2); } }
.promesse__texte { margin-top: 10px; color: var(--encre); font-size: clamp(1.05rem, 1.35vw, 1.18rem); line-height: 1.55; }
.promesse__texte mark { color: inherit; font-weight: 600; padding: 0 .12em; border-radius: .15em; background: linear-gradient(color-mix(in srgb, var(--jaune) 50%, #fff), color-mix(in srgb, var(--jaune) 50%, #fff)) no-repeat left 64% / 0 56%; animation: p18Surligne .6s var(--doux) forwards; animation-delay: calc(2.3s + var(--k) * .45s); }
@keyframes p18Surligne { to { background-size: 100% 56%; } }
.hero__atouts { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 34em; opacity: 0; animation: apparait .8s var(--doux) .55s forwards; }
.hero__atouts li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--ligne); font-weight: 600; font-size: .95rem; line-height: 1.2; }
.hero__atouts span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--rouge-pale); color: var(--rouge); }
.hero__atouts svg { width: 19px; height: 19px; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; opacity: 0; animation: apparait .8s var(--doux) .6s forwards; }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero__visuel { opacity: 0; animation: apparait 1s var(--doux) .3s forwards; }

/* Tableau des engins (pièce maîtresse) */
.tableau { position: relative; border-radius: 16px; overflow: hidden; background: var(--marine); color: #fff; box-shadow: 0 40px 80px -36px rgba(19, 32, 47, .6), 0 0 0 1px rgba(19, 32, 47, .1); }
.tableau::before { content: ""; display: block; height: 6px; background: var(--chevrons); }
.tableau__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid rgba(198, 209, 220, .14); }
.tableau__tete small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--jaune); }
.tableau__tete strong { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; line-height: 1.05; }
.tableau__compte { display: flex; align-items: baseline; gap: 6px; color: var(--clair); font-size: .9rem; white-space: nowrap; }
.tableau__compte b { font-family: var(--titre); font-weight: 700; font-size: 2rem; color: #fff; font-variant-numeric: tabular-nums; transition: color .3s; }
.tableau__compte.manque b { color: #F59E4B; }
.tableau__lignes { padding: 6px 10px 12px; }
.ligne-engin {
  display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto 7.6em; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; transition: background-color .4s;
  opacity: 0; transform: translateY(8px); animation: ligne .6s var(--doux) forwards; animation-delay: calc(.5s + var(--n, 0) * .07s);
}
.ligne-engin + .ligne-engin { box-shadow: 0 -1px 0 rgba(198, 209, 220, .08); }
@keyframes ligne { to { opacity: 1; transform: none; } }
/* fin d'apparition : figée sans animation (Chrome oubliait parfois de redessiner l'état final) */
.ligne-engin.posee, .jeton.posee { animation: none; opacity: 1; transform: none; }
.ligne-engin .code { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.ligne-engin .type { color: var(--clair); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-engin .compteur { color: rgba(198, 209, 220, .7); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-engin.eclair { background: rgba(255, 255, 255, .08); }
.ligne-engin--reserve { box-shadow: inset 3px 0 0 var(--bleu); }
.ligne-engin.entre { animation: entre .7s var(--doux) both; }
.ligne-engin.sort { animation: sort .5s ease both; }
@keyframes entre { from { opacity: 0; transform: translateX(-16px); max-height: 0; padding-block: 0; } to { opacity: 1; transform: none; max-height: 80px; } }
@keyframes sort { from { opacity: 1; max-height: 80px; } to { opacity: 0; transform: translateX(16px); max-height: 0; padding-block: 0; } }
.statut {
  justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px;
  font-size: .8rem; font-weight: 600; white-space: nowrap; transition: background-color .35s, color .35s;
}
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.statut--ok { background: rgba(35, 135, 90, .18); color: #6BD6A0; }
.statut--atelier { background: rgba(212, 106, 12, .22); color: #F59E4B; }
.statut--reserve { background: rgba(45, 108, 176, .28); color: #8DBBF0; }
.statut--controle { background: rgba(242, 190, 26, .2); color: var(--jaune); }
.statut.bascule-anim { animation: statutFlash .6s ease; }
@keyframes statutFlash { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.tableau__pied { height: 54px; display: flex; align-items: center; padding: 0 22px; border-top: 1px solid rgba(198, 209, 220, .1); font-size: .8rem; color: rgba(198, 209, 220, .55); transition: opacity .3s; }
.tableau__pied span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #6BD6A0; vertical-align: 1px; }
.tableau.avec-avis .tableau__pied { opacity: 0; }
.tableau__avis {
  position: absolute; left: 50%; bottom: 7px; translate: -50% 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--encre); font-size: .9rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--doux);
}
.tableau__avis svg { width: 20px; height: 20px; color: var(--rouge); }
.tableau__avis.vu { opacity: 1; transform: none; }

.recit { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.recit__segments { display: flex; gap: 6px; }
.recit__segments button { flex: 1; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.recit__segments i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--ligne); overflow: hidden; position: relative; }
.recit__segments i::after { content: ""; position: absolute; inset: 0; background: var(--rouge); transform-origin: left; transform: scaleX(var(--p, 0)); }
.recit__texte { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-height: 2.8em; transition: opacity .3s, transform .4s var(--doux); }
.recit__texte.change { opacity: 0; transform: translateY(6px); }
.recit__texte b { font-family: var(--titre); font-weight: 700; font-size: 1.4rem; color: var(--rouge); }
.recit__texte span { color: var(--gris); }

@media (max-width: 1023px) { .hero__in { grid-template-columns: 1fr; } }
/* Téléphone : le tableau passe juste sous le titre, complet et lisible */
@media (max-width: 640px) {
  .hero__in { gap: 0; }
  .hero__texte { display: contents; }
  .hero__quoi { order: 1; justify-self: start; font-size: .82rem; margin-bottom: 16px; }
  .hero__titre { order: 2; font-size: clamp(2.7rem, 13vw, 3.4rem); }
  /* à lire d'abord (phrase-clé, bénéfices), puis le tableau des engins */
  .promesse { order: 3; margin-top: 20px; padding: 0; border-left: 0; }
  .promesse__fini { font-size: 1.55rem; }
  .hero__atouts { order: 4; margin-top: 22px; display: flex; flex-direction: column; gap: 0; max-width: none; }
  .hero__atouts li { flex-direction: row; align-items: center; gap: 12px; padding: 11px 0; border: 0; border-top: 1px solid var(--ligne); border-radius: 0; background: none; font-size: 1rem; }
  .hero__atouts li:last-child { border-bottom: 1px solid var(--ligne); }
  .hero__visuel { order: 5; margin-top: 32px; }
  .hero__actions { order: 6; }
  .ligne-engin { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code statut" "type compteur"; row-gap: 1px; padding: 8px 10px; }
  .ligne-engin .code { grid-area: code; }
  .ligne-engin .type { grid-area: type; font-size: .8rem; }
  .ligne-engin .compteur { grid-area: compteur; justify-self: end; font-size: .76rem; }
  .ligne-engin .statut { grid-area: statut; font-size: .74rem; padding: 4px 9px; }
  .tableau__tete { padding: 14px 14px 12px; }
  .tableau__tete strong { font-size: 1.45rem; }
  .tableau__compte b { font-size: 1.7rem; }
  .tableau__compte span { font-size: .8rem; }
  .tableau__lignes { padding: 4px 4px 10px; }
  .tableau__avis { font-size: .8rem; padding: 8px 12px; bottom: 8px; }
  .tableau__pied { height: 50px; padding: 0 14px; font-size: .76rem; }
  .recit__texte { min-height: 4.9em; align-content: flex-start; }
}

/* ------------------------------------------------------------------ Avant / avec */
.avant { background: #fff; }
.questions li { box-shadow: inset 0 0 0 1px var(--ligne); }
.avant__grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.bascule { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding: 4px; border-radius: 12px; background: var(--fond); border: 1px solid var(--ligne); }
.bascule button { position: relative; z-index: 1; border: 0; background: none; padding: 11px 20px; font-weight: 600; color: var(--gris); cursor: pointer; transition: color .3s; white-space: nowrap; }
.bascule button[aria-pressed="true"] { color: #fff; }
.bascule__curseur { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--marine); transition: transform .45s var(--doux), background-color .3s; }
.bascule.apres .bascule__curseur { transform: translateX(100%); background: var(--rouge); }
.questions { display: flex; flex-direction: column; gap: 12px; }
.questions li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--fond); }
.questions__q { font-family: var(--titre); font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.questions__r { display: grid; perspective: 900px; }
.questions__r > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 10px; font-size: .96rem; line-height: 1.35; backface-visibility: hidden; transition: transform .6s var(--doux), opacity .4s; transition-delay: calc(var(--i) * 90ms); }
.r-avant { background: transparent; border: 1.5px dashed var(--ligne-2); color: var(--gris-2); font-style: italic; }
.r-apres { background: #fff; border: 1px solid var(--ligne); box-shadow: inset 4px 0 0 var(--vert), 0 10px 22px -18px rgba(19, 32, 47, .5); color: var(--encre); font-weight: 500; opacity: 0; transform: rotateX(-90deg); }
.r-apres svg { width: 20px; height: 20px; flex: none; color: var(--vert); }
.questions[data-etat="apres"] .r-avant { opacity: 0; transform: rotateX(90deg); }
.questions[data-etat="apres"] .r-apres { opacity: 1; transform: none; }
/* ------------------------------------------------------------------ Automatismes : « Quand… → Parc18… » */
.auto { background: #fff; }
.auto__liste { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; gap: 12px; }
.auto__liste li { display: grid; grid-template-columns: minmax(0, 1fr) clamp(56px, 9vw, 120px) minmax(0, 1fr); align-items: center; }
.auto__quand, .auto__alors { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 18px; border-radius: 14px; }
.auto__quand { background: var(--fond); border: 1px solid var(--ligne); opacity: 0; transform: translateX(-12px); }
.auto__alors { background: #fff; border: 1.5px solid var(--ligne); }
.auto__liste p { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.auto__liste p small { display: block; margin-bottom: 2px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-2); }
.auto__alors p small { color: var(--rouge); }
.auto__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--ligne); color: var(--rouge); }
.auto__ico svg { width: 21px; height: 21px; }
.auto__ok { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ligne-2); color: transparent; }
.auto__ok svg { width: 16px; height: 16px; }
.auto__fil { position: relative; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--ligne-2) 0 6px, transparent 6px 11px); }
.auto__fil::after { content: ""; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ligne-2); border-right: 2px solid var(--ligne-2); transform: translateY(-50%) rotate(45deg); }
.auto__fil i { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 5px rgba(242, 190, 26, .3); opacity: 0; }
.auto__liste.is-on .auto__quand { animation: p18AutoQuand .5s var(--doux) forwards; animation-delay: calc(var(--i) * .55s); }
.auto__liste.is-on .auto__fil i { animation: p18Impulsion .55s ease-in forwards; animation-delay: calc(var(--i) * .55s + .3s); }
.auto__liste.is-on .auto__alors { animation: p18AutoAlors .5s ease forwards; animation-delay: calc(var(--i) * .55s + .8s); }
.auto__liste.is-on .auto__ok { animation: p18AutoOk .4s ease forwards; animation-delay: calc(var(--i) * .55s + .85s); }
@keyframes p18AutoQuand { to { opacity: 1; transform: none; } }
@keyframes p18Impulsion { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes p18ImpulsionV { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes p18AutoAlors { to { border-color: var(--rouge); box-shadow: 0 16px 32px -24px var(--rouge); } }
@keyframes p18AutoOk { to { background: var(--vert); border-color: var(--vert); color: #fff; } }
@media (max-width: 720px) {
  .auto__liste { gap: 18px; }
  .auto__liste li { grid-template-columns: 1fr; }
  .auto__quand, .auto__alors { min-height: 0; padding: 12px 14px; }
  .auto__fil { width: 2px; height: 26px; margin: 0 0 0 34px; background: repeating-linear-gradient(180deg, var(--ligne-2) 0 5px, transparent 5px 9px); }
  .auto__fil::after { right: auto; top: auto; left: 50%; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .auto__fil i { left: 50%; top: 0; margin: -6px 0 0 -6px; }
  .auto__liste.is-on .auto__fil i { animation-name: p18ImpulsionV; }
}
/* Toute la vie de l'engin (dans le carnet) */
.vie { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ligne); }
.vie__titre { font-family: var(--titre); font-weight: 700; font-size: 1.35rem; }
.vie ol { position: relative; margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vie ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--ligne); }
.vie ol::after { content: ""; position: absolute; left: 6px; top: 6px; height: 2px; width: 0; background: var(--rouge); transition: width 1.6s var(--doux) .2s; }
.vie.is-on ol::after { width: 62%; }
.vie li { position: relative; padding-top: 22px; color: var(--gris); font-size: .9rem; line-height: 1.25; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .6s var(--doux); }
.vie.is-on li { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .35s); }
.vie li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--fond); border: 2px solid var(--ligne-2); box-sizing: border-box; }
.vie li:nth-child(-n+2)::before { background: var(--rouge); border-color: var(--rouge); }
.vie b { display: block; color: var(--encre); font-weight: 600; }
.vie__ici::before { background: var(--rouge) !important; border-color: #fff !important; box-shadow: 0 0 0 5px rgba(200, 38, 29, .25); }
.vie.is-on .vie__ici::before { animation: p18VieIci 1.8s ease-in-out 1.4s infinite; }
@keyframes p18VieIci { 50% { box-shadow: 0 0 0 9px rgba(200, 38, 29, .08); } }
.vie__ici small { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 99px; background: var(--rouge); color: #fff; font-size: .72rem; font-weight: 600; }
.vie__note { margin-top: 14px; color: var(--gris); font-size: .95rem; }

/* Le mécanisme en 3 temps */
.mecanique { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 24px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mecanique li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--marine); color: #fff; opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .7s var(--doux); transition-delay: calc(.2s + var(--i) * .25s); }
.mecanique.is-on li { opacity: 1; transform: none; }
.mecanique b { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--rouge); font-family: var(--titre); font-weight: 700; font-size: 1.4rem; }
.mecanique > li > span { color: #C9D2DC; font-size: .98rem; line-height: 1.45; }
.mecanique strong { display: block; margin-bottom: 2px; color: #fff; font-family: var(--titre); font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.mecanique .meca { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-top: 12px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; font-size: .82rem; line-height: 1.2; }
.meca small { color: #A9B4C1; font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meca em { font-style: normal; font-weight: 700; white-space: nowrap; }
.meca--saisie em { font-family: var(--titre); font-size: 1.1rem; clip-path: inset(0 100% 0 0); }
.mecanique.is-on .meca--saisie em { animation: p18Tape .7s steps(9) .9s forwards; }
@keyframes p18Tape { to { clip-path: inset(0 0 0 0); } }
.meca--saisie i { width: 2px; height: 1.1em; background: var(--jaune); animation: p18Curseur 1s steps(1) infinite; }
@keyframes p18Curseur { 50% { opacity: 0; } }
.meca--rappel svg { width: 16px; height: 16px; flex: none; color: var(--jaune); transform-origin: 50% 12%; }
.mecanique.is-on .meca--rappel svg { animation: p18Sonne .9s ease 1.3s; }
@keyframes p18Sonne { 20%, 60% { rotate: 16deg; } 40%, 80% { rotate: -16deg; } }
.meca--rappel small { color: #fff; }
.meca--rappel em { font-size: .74rem; padding: 3px 8px; border-radius: 99px; background: var(--orange-pale); color: var(--orange); }
.mecanique .meca--equipe { gap: 6px; padding: 0; background: none; border: 0; flex-wrap: wrap; }
.meca--equipe em { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; font-weight: 600; }
.meca--equipe em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5C6878; transition: background-color .4s, box-shadow .4s; }
.mecanique.is-on .meca--equipe em::before { background: var(--vert); box-shadow: 0 0 0 3px rgba(35, 135, 90, .3); transition-delay: calc(1.5s + var(--e) * .3s); }
@media (max-width: 900px) { .avant__grille { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .mecanique { grid-template-columns: 1fr; gap: 10px; } .mecanique li { padding: 16px; } }
@media (max-width: 560px) {
  .questions li { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .bascule { display: grid; width: 100%; }
}

/* ------------------------------------------------------------------ Échéances (section sombre) */
.echeances { background: var(--marine); color: #fff; overflow: hidden; }
.echeances::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--chevrons); opacity: .9; }
.frise { position: relative; margin-top: clamp(48px, 6vw, 72px); height: 360px; }
.frise__regle { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(198, 209, 220, .2); }
.frise__regle::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--rouge), var(--jaune) 40%, rgba(198, 209, 220, .35)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--doux); }
.frise.is-on .frise__regle::before { transform: scaleX(1); }
.frise__regle span { position: absolute; left: var(--x); top: 12px; translate: -100% 0; white-space: nowrap; font-size: .78rem; color: rgba(198, 209, 220, .6); font-variant-numeric: tabular-nums; }
.frise__regle span::before { content: ""; position: absolute; right: 0; top: -16px; width: 1px; height: 8px; background: rgba(198, 209, 220, .4); }
.frise__auj { position: absolute; left: 0; top: -34px; font-size: .78rem !important; font-weight: 600; color: var(--jaune) !important; translate: 0 0 !important; }
.frise__auj::before { display: none; }
.frise__points li { position: absolute; left: var(--x); top: 50%; }
.frise__points .point { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--marine); border: 3px solid var(--clair); transform: scale(0); transition: transform .5s var(--doux); transition-delay: calc(.4s + var(--i) * .18s); }
.frise__points li.urgent .point { border-color: var(--rouge); box-shadow: 0 0 0 0 rgba(200, 38, 29, .5); }
.frise.is-on .frise__points .point { transform: scale(1); }
.frise.is-on .frise__points li.urgent .point { animation: alarme 2s ease-out 2s infinite; }
@keyframes alarme { 0% { box-shadow: 0 0 0 0 rgba(200, 38, 29, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(200, 38, 29, 0); } }
.etiquette {
  position: absolute; left: -14px; width: 196px; padding: 12px 14px; border-radius: 12px;
  background: var(--marine-2); border: 1px solid rgba(198, 209, 220, .14);
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center;
  opacity: 0; transition: opacity .5s, transform .6s var(--doux); transition-delay: calc(.5s + var(--i) * .18s);
}
.frise__points li:nth-child(odd) .etiquette { bottom: 26px; transform: translateY(10px); }
.frise__points li:nth-child(even) .etiquette { top: 26px; transform: translateY(-10px); }
.frise__points li:nth-child(n+6) .etiquette { left: auto; right: -14px; }
.frise.is-on .etiquette { opacity: 1; transform: none; }
.etiquette svg { grid-row: span 2; width: 22px; height: 22px; color: var(--jaune); }
.etiquette b { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.etiquette small { grid-column: 2; color: var(--clair); font-size: .8rem; }
.etiquette em { grid-column: 3; grid-row: 1 / span 2; white-space: nowrap; font-style: normal; font-family: var(--titre); font-weight: 700; font-size: 1.05rem; padding: 3px 8px; border-radius: 7px; background: rgba(198, 209, 220, .12); color: #fff; }
.urgent .etiquette em { background: var(--rouge); }
.urgent .etiquette svg { color: #FF8A80; }
@media (max-width: 860px) {
  .frise { height: auto; margin-top: 40px; padding-left: 30px; }
  .frise__regle { left: 9px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .frise__regle::before { background: linear-gradient(180deg, var(--rouge), var(--jaune) 40%, rgba(198, 209, 220, .35)); transform-origin: top; transform: scaleY(0); }
  .frise.is-on .frise__regle::before { transform: scaleY(1); }
  .frise__regle span { display: none; }
  .frise__points { display: flex; flex-direction: column; gap: 12px; }
  .frise__points li { position: relative; left: auto; top: auto; }
  .frise__points .point { left: -29px; top: 50%; margin-top: -8px; }
  .frise__points li .etiquette, .frise__points li:nth-child(n) .etiquette { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; transform: translateX(14px); }
  .frise.is-on .frise__points li .etiquette { transform: none; }
}

/* ------------------------------------------------------------------ Carnet de l'engin */
.engin__grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.puces { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.puces li { display: flex; align-items: center; gap: 14px; color: var(--gris); }
.puces svg { width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--ligne); color: var(--rouge); }
.puces b { color: var(--encre); font-weight: 600; }
.fiche { border-radius: 18px; background: #fff; border: 1px solid var(--ligne); box-shadow: 0 40px 70px -46px rgba(19, 32, 47, .55); overflow: hidden; }
.fiche__tete { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--ligne); }
.fiche__code { display: block; font-family: var(--titre); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.fiche__type { display: block; margin-top: 4px; color: var(--gris); font-size: .92rem; }
.plaque-fr { display: inline-flex; align-items: stretch; height: 34px; border-radius: 5px; overflow: hidden; border: 1.5px solid #1C1C1C; background: #fff; font-family: var(--titre); font-weight: 600; font-size: 1.25rem; letter-spacing: .06em; white-space: nowrap; }
.plaque-fr { padding-right: 12px; align-items: center; gap: 10px; }
.plaque-fr i { align-self: stretch; display: grid; place-items: end center; width: 20px; padding-bottom: 3px; background: #1F4FA8; color: #fff; font-style: normal; font-size: .72rem; letter-spacing: 0; }
.fiche__compteurs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ligne); }
.fiche__compteurs div { padding: 16px 20px; }
.fiche__compteurs div + div { border-left: 1px solid var(--ligne); }
.fiche__compteurs small { display: block; color: var(--gris-2); font-size: .8rem; font-weight: 500; }
.fiche__compteurs b { font-family: var(--titre); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fiche__compteurs span { margin-left: 4px; color: var(--gris); font-weight: 600; }
.fiche__corps { display: grid; grid-template-columns: 1.3fr 1fr; }
.fiche__corps h3 { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-2); margin-bottom: 10px; }
.fiche__histo { padding: 18px 20px 20px; border-right: 1px solid var(--ligne); }
.fiche__histo ol { display: flex; flex-direction: column; gap: 8px; }
.fiche__histo li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 9px; background: var(--fond); border-left: 3px solid var(--rouge); opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .6s var(--doux); transition-delay: calc(.5s + var(--i) * .15s); }
.fiche.is-on .fiche__histo li { opacity: 1; transform: none; }
.fiche__histo li span { font-weight: 600; font-size: .95rem; }
.fiche__histo li small { color: var(--gris-2); font-size: .82rem; }
.fiche__cout { padding: 18px 20px 20px; }
.fiche__cout > b { font-family: var(--titre); font-weight: 700; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fiche__cout > span { margin-left: 4px; font-weight: 600; color: var(--gris); }
.fiche__barres { display: flex; height: 10px; gap: 3px; margin: 14px 0 8px; border-radius: 5px; overflow: hidden; }
.fiche__barres i { flex: var(--v); background: var(--rouge); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--doux); }
.fiche__barres i:nth-child(2) { background: var(--marine-3); transition-delay: .15s; }
.fiche__barres i:nth-child(3) { background: var(--jaune); transition-delay: .3s; }
.fiche__barres i:nth-child(4) { background: var(--gris-2); transition-delay: .45s; }
.fiche.is-on .fiche__barres i { transform: scaleX(1); }
.fiche__cout small { color: var(--gris-2); font-size: .82rem; }
@media (max-width: 900px) { .engin__grille { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .fiche__tete { flex-direction: column; align-items: flex-start; padding: 16px; }
  .fiche__compteurs div { padding: 12px 12px; }
  .fiche__compteurs b { font-size: 1.55rem; }
  .fiche__corps { grid-template-columns: 1fr; }
  .fiche__histo { border-right: 0; border-bottom: 1px solid var(--ligne); padding: 16px; }
  .fiche__cout { padding: 16px; }
}

/* ------------------------------------------------------------------ Casernes */
.casernes { background: #fff; }
.carte-cis { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); grid-template-rows: auto auto; gap: 18px 28px; }
.carte-cis__liste { display: flex; flex-direction: column; gap: 8px; }
.carte-cis__liste button {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; text-align: left;
  padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--fond); cursor: pointer; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.carte-cis__liste button b { grid-column: 1; grid-row: 1; font-family: var(--titre); font-weight: 700; font-size: 1.25rem; }
.carte-cis__liste button small { grid-column: 2; grid-row: 1 / span 2; font-family: var(--titre); font-weight: 600; font-size: 1.1rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.carte-cis__liste .jauge { grid-column: 1; grid-row: 2; display: block; height: 5px; border-radius: 3px; background: var(--ligne); overflow: hidden; }
.carte-cis__liste .jauge i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--vert); border-radius: inherit; }
.carte-cis__liste button[aria-selected="true"] { border-color: var(--marine); background: #fff; box-shadow: 0 12px 26px -20px rgba(19, 32, 47, .6), inset 4px 0 0 var(--rouge); }
.carte-cis__liste button:hover { border-color: var(--marine-3); }
.carte-cis__engins { align-self: start; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; padding: 18px; border-radius: 16px; background: var(--marine); min-height: 300px; }
.carte-cis__resume { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 2px 2px 10px; margin-bottom: 2px; border-bottom: 1px solid rgba(198, 209, 220, .12); color: var(--clair); font-size: .92rem; }
.carte-cis__resume b { font-family: var(--titre); font-weight: 700; font-size: 1.5rem; color: #fff; }
.carte-cis__resume strong { color: #6BD6A0; font-weight: 600; }
.jeton { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--marine-2); border: 1px solid rgba(198, 209, 220, .12); color: #fff; animation: jeton .45s var(--doux) both; animation-delay: calc(var(--i) * 45ms); }
.jeton b { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.jeton .statut { justify-self: start; align-self: flex-start; font-size: .74rem; padding: 3px 8px; }
@keyframes jeton { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.legende-statuts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--gris); }
.legende-statuts li { display: inline-flex; align-items: center; gap: 7px; }
.legende-statuts i { width: 10px; height: 10px; border-radius: 50%; }
.legende-statuts .ok { background: var(--vert); } .legende-statuts .atelier { background: var(--orange); } .legende-statuts .reserve { background: var(--bleu); } .legende-statuts .controle { background: var(--jaune); }
@media (max-width: 860px) {
  .carte-cis { grid-template-columns: 1fr; }
  .carte-cis__liste { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--marge)); padding: 2px var(--marge) 6px; scroll-snap-type: x mandatory; }
  .carte-cis__liste::-webkit-scrollbar { display: none; }
  .carte-cis__liste button { flex: 0 0 auto; min-width: 158px; scroll-snap-align: start; }
  .legende-statuts { grid-column: auto; }
  .carte-cis__engins { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; min-height: 0; }
}

/* ------------------------------------------------------------------ Types d'engins (section sombre) */
.types { background: var(--marine); color: #fff; }
.types__grille { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.types__grille li {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 170px; padding: 14px 18px 16px;
  border-radius: 14px; background: var(--marine-2); border: 1px solid rgba(198, 209, 220, .12); overflow: hidden;
  opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--doux), border-color .25s; transition-delay: calc(var(--i) * 60ms);
}
.types__grille li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rouge); }
.types__grille.is-on li { opacity: 1; transform: none; }
.types__grille li:hover { border-color: rgba(242, 190, 26, .5); }
.types__grille .silhouette { width: 100%; height: auto; margin: -2px 0 6px; transform: translateX(-10px); opacity: 0; transition: transform .7s var(--doux), opacity .5s; transition-delay: calc(.15s + var(--i) * 60ms); }
.types__grille.is-on .silhouette { transform: none; opacity: 1; }
.types__grille li:hover .silhouette { transform: translateX(4px); transition-delay: 0s; }
.types__grille b { font-family: var(--titre); font-weight: 700; font-size: 2.3rem; line-height: 1; letter-spacing: .02em; }
.types__grille span { color: var(--clair); font-size: .92rem; line-height: 1.3; }
.types__grille small { margin-top: auto; color: var(--jaune); font-size: .8rem; font-weight: 600; }
@media (max-width: 1023px) { .types__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .types__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .types__grille li { min-height: 150px; padding: 14px; } .types__grille b { font-size: 2rem; } }

/* ------------------------------------------------------------------ Sur le terrain */
.terrain__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.telephone { justify-self: center; width: 280px; aspect-ratio: 390 / 800; padding: 10px; border-radius: 44px; background: var(--marine); box-shadow: 0 40px 80px -36px rgba(19, 32, 47, .6); position: relative; container-type: inline-size; }
.telephone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 20px; translate: -50% 0; border-radius: 12px; background: var(--marine); z-index: 2; }
.telephone__ecran { height: 100%; border-radius: 35px; overflow: hidden; background: var(--fond); display: flex; flex-direction: column; gap: 1em; padding: 3.6em 1.2em 1.2em; font-size: 4.6cqi; }
.appli__tete { border-top: 5px solid var(--rouge); padding-top: .7em; }
.appli__tete small { display: block; color: var(--gris-2); font-weight: 600; font-size: .8em; }
.appli__tete b { font-family: var(--titre); font-weight: 700; font-size: 2.2em; line-height: 1; }
.appli__liste { display: flex; flex-direction: column; gap: .55em; }
.appli__liste li { display: flex; align-items: center; gap: .8em; padding: .75em .85em; border-radius: .8em; background: #fff; border: 1px solid var(--ligne); font-weight: 600; font-size: .9em; line-height: 1.25; }
.appli__liste small { display: block; color: var(--gris-2); font-weight: 400; font-size: .86em; }
.coche { width: 1.7em; height: 1.7em; flex: none; border-radius: .45em; border: 1.5px solid var(--ligne-2); display: grid; place-items: center; color: #fff; }
.coche svg { width: 1.05em; height: 1.05em; stroke-dasharray: 24; stroke-dashoffset: 24; }
.telephone.is-on .coche { animation: coche .35s var(--doux) forwards; animation-delay: calc(.5s + var(--i) * .7s); }
.telephone.is-on .coche svg { animation: trace .35s ease-out forwards; animation-delay: calc(.65s + var(--i) * .7s); }
@keyframes coche { to { background: var(--vert); border-color: var(--vert); } }
@keyframes trace { to { stroke-dashoffset: 0; } }
.appli__bouton { margin-top: auto; text-align: center; padding: .95em; border-radius: .8em; background: var(--ligne-2); color: #fff; font-weight: 600; font-size: .92em; }
.telephone.is-on .appli__bouton { animation: pret .5s ease forwards 3.4s; }
@keyframes pret { to { background: var(--vert); box-shadow: 0 10px 24px -10px rgba(35, 135, 90, .7); } }
.terrain .appli__tete { padding-top: .7em; }
/* La scène « dans la poche » : le téléphone sort de la poche, devant le VSAV */
.scene { --tw: 250px; --px: 9%; --sol: 22px; position: relative; overflow-x: clip; justify-self: center; width: 100%; max-width: 540px; height: calc(var(--tw) * 2.74 + var(--sol)); }
.scene::before { content: ""; position: absolute; right: 0; top: 6%; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--rouge-pale) 0 55%, transparent 71%); }
.scene::after { content: ""; position: absolute; left: 30%; right: 0; bottom: calc(var(--sol) + var(--tw) * .5); height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ligne-2) 25%); }
.scene__engin { position: absolute; right: -3%; bottom: calc(var(--sol) + var(--tw) * .5); width: calc(var(--tw) * 1.45); height: auto; overflow: visible; opacity: 0; transform: translateX(12%); transition: opacity .7s, transform 1s var(--doux); }
.scene.is-on .scene__engin { opacity: 1; transform: none; }
.scene__sortie { position: absolute; z-index: 1; left: 0; right: 0; top: -40px; bottom: calc(var(--sol) + var(--tw) * .42); overflow: hidden; }
.scene .telephone { position: absolute; left: var(--px); bottom: calc(var(--tw) * .18); width: var(--tw); box-shadow: 0 28px 44px -26px rgba(19, 32, 47, .6); transform: translateY(62%) rotate(-4deg); transition: transform 1s cubic-bezier(.3, 1.25, .45, 1) .15s; }
.scene.is-on .telephone { transform: none; }
.poche { position: absolute; z-index: 2; left: calc(var(--px) + var(--tw) * -.1); bottom: var(--sol); width: calc(var(--tw) * 1.2); height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(19, 32, 47, .3)); }
.chrono { position: absolute; z-index: 3; right: 4%; top: 7%; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 99px; background: #fff; box-shadow: 0 16px 34px -18px rgba(19, 32, 47, .5), 0 0 0 1px rgba(19, 32, 47, .06); opacity: 0; transform: translateY(-10px) scale(.95); transition: opacity .5s .5s, transform .6s var(--doux) .5s; }
.scene.is-on .chrono { opacity: 1; transform: none; }
.chrono svg { width: 38px; height: 38px; rotate: -90deg; }
.chrono circle { fill: none; stroke-width: 4; }
.chrono circle:first-child { stroke: var(--ligne); }
.chrono circle:last-child { stroke: var(--rouge); stroke-linecap: round; stroke-dasharray: 94.3; stroke-dashoffset: 94.3; }
.scene.is-on .chrono circle:last-child { transition: stroke-dashoffset 3.8s linear .6s; stroke-dashoffset: 0; }
.chrono b { display: block; font-family: var(--titre); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.chrono small { color: var(--gris); font-size: .76rem; font-weight: 600; }
.notif { position: absolute; z-index: 3; left: 58%; top: 67%; width: 220px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px; background: #fff; color: var(--encre); box-shadow: 0 24px 50px -20px rgba(19, 32, 47, .5), 0 0 0 1px rgba(19, 32, 47, .06); font-size: .86rem; line-height: 1.25; opacity: 0; transform: translateX(-14px) scale(.96); }
.telephone.is-on .notif { animation: p18Notif .6s var(--doux) 3.9s forwards; }
@keyframes p18Notif { to { opacity: 1; transform: none; } }
.notif__ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--rouge); color: #fff; }
.notif__ico svg { width: 18px; height: 18px; }
.notif small { display: block; color: var(--gris); font-size: .76rem; font-weight: 600; }
.notif b { font-weight: 700; }
.supports { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.supports ul { display: flex; flex-wrap: wrap; gap: 8px; }
.supports li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--ligne); font-weight: 600; font-size: .95rem; }
.supports li svg { width: 20px; height: 20px; color: var(--rouge); }
.supports p { margin-top: 12px; color: var(--gris); font-size: .98rem; }
.supports p b { color: var(--encre); font-weight: 600; }
@media (max-width: 900px) {
  .terrain__grille { grid-template-columns: 1fr; } .scene { order: 2; --tw: 230px; --px: 6%; max-width: 440px; } .scene__engin { right: 0; }
  .notif { left: 50%; top: auto; bottom: 15%; translate: -50% 0; width: 236px; }
}
@media (max-width: 380px) { .scene { --tw: 210px; --px: 3%; } }

/* ------------------------------------------------------------------ Sur mesure + FAQ */
.mesure { background: #fff; }
.etapes { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: etape; }
.etapes li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; background: var(--fond); }
.etapes__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--rouge); color: #fff; margin-bottom: 8px; }
.etapes__ico svg { width: 22px; height: 22px; }
.etapes b { font-family: var(--titre); font-weight: 700; font-size: 1.6rem; line-height: 1.05; }
.etapes small { color: var(--gris); font-size: .98rem; line-height: 1.45; }
.etapes li:not(:last-child)::after { content: ""; position: absolute; top: 45px; right: -20px; width: 16px; height: 16px; border-top: 2px solid var(--ligne-2); border-right: 2px solid var(--ligne-2); transform: rotate(45deg); }
.mesure__bas { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { max-width: 820px; }
/* Vos tableurs, repris : le fichier → les fiches Parc18 */
.reprise { margin: 0; padding: 22px; border-radius: 18px; background: var(--fond); display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.reprise figcaption { grid-column: 1 / -1; margin-top: 8px; color: var(--gris); font-size: 1rem; }
.reprise figcaption b { color: var(--encre); font-weight: 600; }
.tableur { border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--ligne), 0 16px 30px -22px rgba(19, 32, 47, .55); overflow: hidden; font-size: .76rem; line-height: 1.2; transform: rotate(-2deg); }
.tableur__barre { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #2F7D53; color: #fff; font-weight: 600; font-size: .68rem; white-space: nowrap; }
.tableur__barre i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.tableur__barre span { margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.tableur__grille { display: grid; grid-template-columns: 1fr 1.5fr .75fr; }
.tableur__grille span { padding: 6px; border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tableur__grille span:nth-child(3n) { border-right: 0; }
.tableur__grille .t-h { background: #F1F3F5; color: var(--encre); font-weight: 600; }
.tableur__grille .t-vide { background: var(--rouge-pale); color: var(--rouge); font-weight: 700; text-align: center; }
.reprise.is-on .t-vide { animation: p18Clignote 1s ease 1.4s 2; }
@keyframes p18Clignote { 50% { background: #F6C4BF; } }
.reprise__fleche { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--rouge); color: #fff; box-shadow: 0 10px 20px -10px var(--rouge); }
.reprise__fleche svg { width: 18px; height: 18px; }
.reprise.is-on .reprise__fleche svg { animation: p18Pousse 1.6s ease-in-out infinite; }
@keyframes p18Pousse { 50% { transform: translateX(3px); } }
.reprise__appli { display: flex; flex-direction: column; gap: 6px; }
.reprise__appli li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ligne), 0 10px 22px -18px rgba(19, 32, 47, .5); line-height: 1.2; opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .6s var(--doux); }
.reprise.is-on .reprise__appli li { opacity: 1; transform: none; transition-delay: calc(.5s + var(--i) * .25s); }
.reprise__appli li > span { flex: 1; min-width: 0; }
.reprise__appli b, .reprise__appli small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reprise__appli b { font-family: var(--titre); font-weight: 700; font-size: 1.02rem; }
.reprise__appli small { font-size: .74rem; color: var(--gris); }
.reprise__appli i { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.reprise__appli em { font-style: normal; font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.r-bientot i { background: var(--orange); } .r-bientot em { background: var(--orange-pale); color: var(--orange); }
.r-alerte i { background: var(--rouge); } .r-alerte em { background: var(--rouge-pale); color: var(--rouge); }
.r-ok i { background: var(--vert); } .r-ok em { background: var(--vert-pale); color: var(--vert); }
@media (max-width: 900px) { .mesure__bas { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reprise { grid-template-columns: 1fr; padding: 16px; } .reprise__fleche { justify-self: center; rotate: 90deg; } .tableur { transform: rotate(-1deg); } }
.faq__titre { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--fond) no-repeat center / 12px 12px; background-image: linear-gradient(var(--rouge), var(--rouge)), linear-gradient(var(--rouge), var(--rouge)); background-size: 12px 2px, 2px 12px; transition: transform .3s var(--doux), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; color: var(--gris); max-width: 46em; }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr; gap: 14px; }
  .etapes li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .etapes__ico { margin-bottom: 0; }
  .etapes small { flex-basis: 100%; }
  .etapes li:not(:last-child)::after { top: auto; right: auto; left: 34px; bottom: -13px; transform: rotate(135deg); width: 10px; height: 10px; }
}

/* ------------------------------------------------------------------ Tarif (section sombre) */
.tarif { background: var(--marine); color: #fff; overflow: hidden; }
/* La taille du parc en image : de la petite caserne au département (aucun montant ici) */
.echelle { position: relative; margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 520px; }
.echelle__pas { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.echelle__parc { min-height: var(--h); display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-end; gap: 3px 5px; padding: 10px 8px; border-radius: 10px 10px 3px 3px; background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border-top: 4px solid; border-image: repeating-linear-gradient(135deg, var(--rouge) 0 8px, var(--jaune) 8px 16px) 4; }
.echelle__parc svg { width: 56px; height: 23px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--doux); }
.echelle.is-on .echelle__parc svg { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i) * .45s + var(--j) * .08s); }
.echelle__pas > span { font-weight: 600; font-size: .9rem; color: #C6D1DC; }
.tarif::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 85% 50%, rgba(200, 38, 29, .22), transparent 70%); }
.tarif__grille { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.offre { position: relative; border-radius: 20px; background: #fff; color: var(--encre); padding: 34px 30px 30px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); overflow: hidden; transform: translateY(20px); opacity: .001; transition: transform .8s var(--doux), opacity .6s; }
.offre.is-on { transform: none; opacity: 1; }
.offre__bande { position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--chevrons); background-size: 34px 34px; animation: defileBande 1.2s linear infinite; }
@keyframes defileBande { to { background-position: 34px 0; } }
.offre__des { font-family: var(--titre); font-weight: 600; font-size: 1.3rem; color: var(--gris); margin-bottom: 2px; }
.offre__prix { display: flex; align-items: flex-start; gap: 8px; font-family: var(--titre); font-weight: 700; line-height: .85; }
.offre__prix b { font-size: clamp(5.5rem, 12vw, 7.5rem); color: var(--rouge); font-variant-numeric: tabular-nums; }
.offre__unite { display: flex; flex-direction: column; font-size: 3rem; padding-top: 6px; }
.offre__unite small { font-family: var(--texte); font-weight: 600; font-size: 1rem; color: var(--gris); margin-top: 8px; }
.offre__sous { margin-top: 10px; font-family: var(--titre); font-weight: 600; font-size: 1.4rem; }
.offre__liste { margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.offre__liste li { display: flex; align-items: flex-start; gap: 10px; color: var(--gris); }
.offre__liste svg { width: 20px; height: 20px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--vert); color: #fff; }
@media (max-width: 900px) { .tarif__grille { grid-template-columns: 1fr; } .offre { max-width: 460px; } }

/* ------------------------------------------------------------------ Contact */
.contact__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.contact__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.carte-contact { border-radius: 18px; background: #fff; border: 1px solid var(--ligne); box-shadow: 0 30px 60px -40px rgba(19, 32, 47, .55), inset 0 6px 0 var(--rouge); overflow: hidden; }
.carte-contact__haut { display: flex; align-items: center; gap: 16px; padding: 28px 24px 18px; }
.carte-contact__photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rouge); }
.carte-contact__nom { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; line-height: 1.05; }
.carte-contact__role { color: var(--gris); font-size: .95rem; }
.carte-contact__liens { display: flex; flex-direction: column; gap: 6px; padding: 0 24px 22px; }
.carte-contact__liens a { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.carte-contact__liens a:last-child { border-bottom: 0; }
.carte-contact__liens a:hover { color: var(--rouge); }
.carte-contact__liens svg { width: 18px; height: 18px; color: var(--rouge); }
.carte-contact__studio { display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: var(--marine); color: var(--clair); font-size: .86rem; }
.carte-contact__studio a { flex: none; width: 118px; transition: opacity .2s; }
.carte-contact__studio a:hover { opacity: .8; }
@media (max-width: 900px) { .contact__grille { grid-template-columns: 1fr; } .carte-contact { max-width: 460px; } }
@media (max-width: 420px) { .contact__actions .bouton { flex: 1 1 100%; } }

/* ------------------------------------------------------------------ Pied de page */
/* ------------------------------------------------------------------ Flottille : Parc18 en fait partie */
@font-face { font-family: "Bricolage"; src: url("../../../assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
.famille { background: #fff; padding-block: clamp(56px, 7vw, 88px); }
.famille__carte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: #F5F6FC; border: 1.5px solid #E1E3F5; color: var(--encre); text-decoration: none; transition: transform .35s var(--doux), box-shadow .35s, border-color .35s; }
.famille__carte:hover { transform: translateY(-3px); border-color: #5B5BD6; box-shadow: 0 30px 50px -36px rgba(91, 91, 214, .7); }
.famille__carte:focus-visible { outline: 3px solid #5B5BD6; outline-offset: 4px; }
.famille__logo { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #5B5BD6; }
.famille__logo svg { width: 76px; height: 76px; }
.famille__logo b { font-family: "Bricolage", var(--titre); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; color: var(--encre); }
.famille__logo b { line-height: 1; }
.i-point { position: relative; display: inline-block; }
.i-point > span { display: inline-block; clip-path: inset(.27em -2px 0 -2px); }
.i-point::after { content: ""; position: absolute; left: 50%; top: .045em; width: .21em; height: .21em; margin-left: -.105em; border-radius: 50%; background: #5B5BD6; }
.famille__sur { color: #4343B8; font-weight: 700; font-size: .9rem; }
.famille__titre { margin-top: 6px; font-family: var(--titre); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; max-width: 22em; }
.famille__desc { margin-top: 10px; max-width: 46em; color: var(--gris); }
.famille__metiers { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.famille__metiers i { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 99px; background: #fff; border: 1px solid var(--ligne); font-style: normal; font-weight: 600; font-size: .86rem; }
.famille__metiers i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.famille__cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 10px; background: #5B5BD6; color: #fff; font-weight: 600; box-shadow: 0 12px 26px -14px #5B5BD6; }
.famille__cta svg { width: 18px; height: 18px; transition: transform .2s var(--doux); }
.famille__carte:hover .famille__cta svg { transform: translateX(4px); }
@media (max-width: 640px) { .famille__carte { grid-template-columns: 1fr; } .famille__logo { flex-direction: row; } .famille__logo svg { width: 48px; height: 48px; } }
.pied__famille a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Contact : une chaussée où passent les engins */
.contact { padding-bottom: calc(clamp(72px, 10vw, 128px) + 70px); overflow: hidden; }
.chaussee { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; container-type: inline-size; pointer-events: none; }
.chaussee::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--marine); }
.chaussee::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: repeating-linear-gradient(90deg, rgba(242, 190, 26, .75) 0 26px, transparent 26px 54px); }
.chaussee__v { position: absolute; z-index: 1; left: 0; bottom: 6px; width: var(--l); animation: p18Roule var(--duree) linear infinite; animation-delay: var(--retard); animation-play-state: paused; }
.chaussee.is-on .chaussee__v { animation-play-state: running; }
.chaussee__v svg { display: block; width: 100%; height: auto; }
@keyframes p18Roule { from { transform: translateX(calc(-100% - 10px)); } to { transform: translateX(100cqi); } }
.pied { background: var(--nuit); color: rgba(198, 209, 220, .7); font-size: .88rem; line-height: 1.6; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--jaune); }
.pied a svg { display: inline-block; width: 1em; height: 1em; margin-left: 3px; vertical-align: -2px; }
.pied__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px 64px; padding: 52px 0 32px; border-bottom: 1px solid rgba(198, 209, 220, .12); }
.pied__produit { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pied__produit p { max-width: 36em; }
.pied__studio { justify-self: end; display: flex; flex-direction: column; gap: 10px; }
.pied__algoralp { display: inline-block; width: 150px; }
.pied__bas { padding-top: 20px; font-size: .8rem; color: rgba(198, 209, 220, .45); }
@media (max-width: 760px) { .pied__in { grid-template-columns: 1fr; } .pied__studio { justify-self: start; } }

/* ================================================================== TÉLÉPHONE : repères et rythme (sous 760 px) */
@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .contact { padding-bottom: 140px; }
  .marque__mot, .marque__chapitre { transition: max-width .45s var(--doux), opacity .3s; overflow: hidden; white-space: nowrap; }
  .marque__mot { max-width: 4.5em; }
  .marque__chapitre { display: block; max-width: 0; opacity: 0; font-family: var(--titre); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--marine); margin-left: 4px; text-overflow: ellipsis; }
  .entete.en-chapitre .marque__mot { max-width: 0; opacity: 0; }
  .entete.en-chapitre .marque__chapitre { max-width: 46vw; opacity: 1; }
  .entete.menu-ouvert .marque__chapitre { color: #fff; }
  .entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rouge); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .3s; }
  .entete.en-chapitre::after { opacity: 1; }
  .entete.menu-ouvert::after { opacity: 0; }
  html.revele .section .titre { transition: clip-path 1s var(--doux), transform 1s var(--doux); clip-path: inset(-20% -5% -20% -5%); }
  html.revele .section .titre:not(.vu) { clip-path: inset(-20% -5% 100% -5%); transform: translateY(26px); }
  html.revele .section .chapo { transition: opacity .8s .15s, transform .9s .15s var(--doux); }
  html.revele .section .chapo:not(.vu) { opacity: 0; transform: translateY(14px); }
}

/* ------------------------------------------------------------------ Le relais : schéma animé */
.relais { background: var(--marine); color: #fff; overflow: hidden; }
.relais__scene { position: relative; margin-top: clamp(32px, 4vw, 48px); height: clamp(230px, 25vw, 300px); container-type: inline-size; }
.station { position: absolute; left: var(--x); bottom: 64px; width: clamp(92px, 18cqi, 214px); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.station svg { width: 100%; height: auto; }
.station b { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--titre); font-weight: 700; font-size: clamp(.95rem, 2.4cqi, 1.3rem); color: #fff; }
.station__etat { font-family: var(--texte); font-weight: 600; font-size: .78em; padding: 2px 8px; border-radius: 99px; background: rgba(35, 135, 90, .25); color: #6BD6A0; transition: background-color .4s, color .4s; }
.station__etat.manque { background: rgba(212, 106, 12, .28); color: #F59E4B; }
.station__cle { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(198, 209, 220, .14); color: var(--clair); transition: background-color .4s, color .4s; }
.station__cle svg { width: 70%; height: 70%; }
.station--atelier.repare .station__cle { background: var(--orange); color: #fff; }
.station--atelier.repare .station__cle svg { animation: cle 1s ease-in-out infinite; }
.station--atelier.fini .station__cle { background: var(--vert); color: #fff; }
@keyframes cle { 0%, 100% { rotate: -18deg; } 50% { rotate: 18deg; } }
.route { position: absolute; left: calc(-1 * var(--marge)); right: calc(-1 * var(--marge)); bottom: 18px; height: 50px; background: #0D1622; border-top: 2px solid rgba(198, 209, 220, .12); }
.route::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, rgba(242, 190, 26, .7) 0 26px, transparent 26px 50px); }
.camion { position: absolute; left: var(--pos); bottom: 30px; width: clamp(84px, 16cqi, 206px); translate: -50% 0; transition: left 2.3s cubic-bezier(.45, 0, .25, 1); z-index: 2; }
.camion svg { width: 100%; height: auto; transition: transform .35s; }
.camion.vers-gauche svg { transform: scaleX(-1); }
.camion.roule svg { animation: roule .32s ease-in-out infinite alternate; }
@keyframes roule { to { translate: 0 -1.5px; } }
.camion__etiquette { position: absolute; left: 50%; bottom: 100%; translate: -50% -4px; white-space: nowrap; font-family: var(--titre); font-weight: 700; font-size: clamp(.78rem, 1.9cqi, 1rem); padding: 2px 9px; border-radius: 6px; background: #fff; color: var(--marine); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); transition: background-color .4s, color .4s; }
.camion__etiquette--reserve { background: var(--bleu); color: #fff; }
.camion.atelier .camion__etiquette { background: var(--orange); color: #fff; }
.relais__etapes { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.relais__etapes li { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; background: var(--marine-2); border: 1px solid rgba(198, 209, 220, .12); color: var(--clair); font-size: .95rem; line-height: 1.4; transition: background-color .4s, border-color .4s, color .4s, transform .4s var(--doux); }
.relais__etapes b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(198, 209, 220, .14); font-family: var(--titre); font-size: 1rem; color: #fff; transition: background-color .4s; }
.relais__etapes li.actif { background: #fff; border-color: #fff; color: var(--marine); transform: translateY(-3px); }
.relais__etapes li.actif b { background: var(--rouge); }
@media (max-width: 860px) {
  .relais__etapes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .relais__scene { height: 210px; }
  .station { bottom: 58px; }
  .route { height: 44px; bottom: 16px; }
  .camion { bottom: 25px; }
  .relais__etapes { grid-template-columns: 1fr; gap: 8px; }
  .relais__etapes li { padding: 11px 12px; }
}

/* ------------------------------------------------------------------ Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .offre__bande { animation: none !important; }
  .types__grille .silhouette { opacity: 1; transform: none; }
  .promesse__fini s { color: var(--gris-2); }
  .promesse__fini s::after { transform: scaleX(1) rotate(-3deg); }
  .promesse__texte mark { background-size: 100% 56%; }
  .mecanique li, .reprise__appli li, .auto__quand, .vie li, .echelle__parc svg { opacity: 1; transform: none; }
  .chaussee__v { animation: none !important; transform: translateX(calc(var(--l) * 1.4)); }
  .chaussee__v + .chaussee__v { transform: translateX(60cqi); }
  .meca--saisie em { clip-path: none; }
  .scene .telephone, .scene__engin, .chrono, .notif { transform: none; opacity: 1; }
}
