/* Flottille — site vitrine multi-métiers
   Le site entier change de couleur selon le métier choisi (html[data-metier]) : les couleurs sont des
   propriétés CSS enregistrées (@property), donc elles glissent d'une teinte à l'autre.
   Polices embarquées : Bricolage Grotesque (titres) + Figtree (texte). Aucune dépendance externe. */

@font-face { font-family: "Bricolage"; src: url(../fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

@property --acc { syntax: "<color>"; inherits: true; initial-value: #5B5BD6; }
@property --acc-f { syntax: "<color>"; inherits: true; initial-value: #4343B8; }
@property --acc-p { syntax: "<color>"; inherits: true; initial-value: #EEEEFD; }
@property --ciel1 { syntax: "<color>"; inherits: true; initial-value: #DCE6F7; }
@property --ciel2 { syntax: "<color>"; inherits: true; initial-value: #F7FAFF; }

:root {
  --acc: #5B5BD6; --acc-f: #4343B8; --acc-p: #EEEEFD; --ciel1: #DCE6F7; --ciel2: #F7FAFF;
  --encre: #15171E;
  --encre-2: #1F2230;
  --gris: #555B69;
  --gris-2: #808796;
  --fond: #F5F6F8;
  --ligne: #E2E5EB;
  --ligne-2: #CBD0D9;
  --vert: #16A34A;
  --ambre: #D97706;
  --rouge: #DC2626;
  --bleu: #2563EB;
  --titre: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --texte: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marge: clamp(16px, 5vw, 48px);
  --largeur: 1200px;
  --entete: 68px;
  --doux: cubic-bezier(.2, .7, .1, 1);
}
html { transition: --acc .7s ease, --acc-f .7s ease, --acc-p .7s ease, --ciel1 .9s ease, --ciel2 .9s ease; }
html[data-metier="ambulances"] { --acc: #2563EB; --acc-f: #1D4ED8; --acc-p: #E6EEFE; --ciel1: #D6E5FB; --ciel2: #F5F9FF; }
html[data-metier="ski"]        { --acc: #0891B2; --acc-f: #0E7490; --acc-p: #E0F4F9; --ciel1: #C9E6F5; --ciel2: #F4FAFE; }
html[data-metier="commune"]    { --acc: #EA580C; --acc-f: #C2410C; --acc-p: #FDEEE3; --ciel1: #FADFC8; --ciel2: #FFF8F1; }
html[data-metier="pompiers"]   { --acc: #DC2626; --acc-f: #B91C1C; --acc-p: #FDE7E7; --ciel1: #F7DCD6; --ciel2: #FFF8F6; }
html[data-metier="secours"]    { --acc: #DB2777; --acc-f: #BE185D; --acc-p: #FCE7F3; --ciel1: #D2E8F4; --ciel2: #F6FBFE; }
html[data-metier="chantier"]   { --acc: #CA8A04; --acc-f: #A16207; --acc-p: #FBF3D9; --ciel1: #F2E6CB; --ciel2: #FEFBF4; }
html[data-metier="nautique"]   { --acc: #0D9488; --acc-f: #0F766E; --acc-p: #E1F5F2; --ciel1: #CDEDEF; --ciel2: #F5FCFC; }
html[data-metier="transport"]  { --acc: #7C3AED; --acc-f: #6D28D9; --acc-p: #F1EAFE; --ciel1: #E6DEF8; --ciel2: #FAF8FF; }
html[data-metier="agricole"]   { --acc: #4D7C0F; --acc-f: #3F6212; --acc-p: #ECF5DF; --ciel1: #E2EFCF; --ciel2: #FAFDF5; }

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 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 { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--acc-p); color: var(--encre); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
svg use { pointer-events: none; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--acc); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; }
.evitement:focus { top: 12px; }
.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: 750; font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; max-width: 17em; }
.titre--clair { color: #fff; }
.chapo { margin-top: 16px; max-width: 36em; color: var(--gris); font-size: clamp(1.04rem, 1.4vw, 1.16rem); text-wrap: pretty; }
.chapo--clair { color: #C4C8D2; }
.accent { color: var(--acc-f); font-weight: 650; }

/* ------------------------------------------------------------------ Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--doux), box-shadow .2s, filter .2s; }
.bouton__ico { width: 19px; height: 19px; flex: none; transition: transform .2s var(--doux); }
.bouton:hover .bouton__ico { transform: translateX(3px); }
.bouton:active { transform: scale(.98); }
.bouton--acc { background: var(--acc); color: #fff; box-shadow: 0 12px 26px -14px var(--acc); }
.bouton--acc:hover { filter: brightness(1.08); }
.bouton--trait { background: #fff; border-color: var(--ligne-2); color: var(--encre); }
.bouton--trait:hover { border-color: var(--encre); }
.bouton--petit { min-height: 42px; padding: 0 16px; font-size: .92rem; border-radius: 12px; }
.bouton--large { width: 100%; }

/* ------------------------------------------------------------------ En-tête */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--entete); background: rgba(245, 246, 248, .82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); transition: box-shadow .3s, background-color .3s; }
.entete.defile-actif { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--ligne); }
.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: 10px; text-decoration: none; color: var(--encre); flex: none; }
.marque__logo { width: 36px; height: 36px; color: var(--acc); flex: none; }
.marque__nom { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; letter-spacing: -.035em; line-height: 1; }
.marque--clair { color: #fff; }
/* Le point du « i » de flottille : le point d'origine est masqué (découpe), une pastille à la couleur du métier le remplace */
.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: var(--acc); transition: background-color .7s; }
.marque__chapitre { display: none; }
.entete__nav { margin-left: auto; display: flex; gap: 26px; }
.entete__nav a { color: var(--gris); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s; }
.entete__nav a:hover { color: var(--acc-f); }
.texte-court { display: none; }
.burger { display: none; position: relative; flex: none; width: 42px; height: 42px; margin-right: -6px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.2px; border-radius: 2px; background: var(--encre); transition: transform .4s var(--doux), top .4s var(--doux), left .3s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; left: 18px; }
.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 { 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) + 22px) var(--marge) calc(28px + env(safe-area-inset-bottom)); background: var(--encre); 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__nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--titre); font-weight: 750; font-size: clamp(1.8rem, 8vw, 2.3rem); letter-spacing: -.02em; color: #fff; text-decoration: none; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .55s var(--doux); }
.menu-mobile__nav a::after { content: ""; width: 10px; height: 10px; border-top: 2.5px solid var(--acc); border-right: 2.5px solid var(--acc); 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(255, 255, 255, .1); }
.menu-mobile__contact a { display: inline-flex; align-items: center; gap: 8px; color: #C4C8D2; text-decoration: none; }
.menu-mobile__contact svg { width: 18px; height: 18px; color: var(--acc); }
.entete.menu-ouvert { background: var(--encre); 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) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); }
.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, 4vw, 64px); align-items: center; }
.hero__quoi { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; font-size: .95rem; color: var(--acc-f); }
.hero__quoi::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--acc); }
.hero__titre { font-family: var(--titre); font-weight: 800; font-size: clamp(2.8rem, 4.9vw, 4.6rem); line-height: .95; letter-spacing: -.04em; }
.hero__titre > span { display: block; white-space: nowrap; font-size: calc(1em * var(--fit, 1)); line-height: calc(.95 / var(--fit, 1)); }
.hero__qui { color: var(--acc); }
.hero__titre .sort { animation: motSort .35s var(--doux) forwards; }
.hero__titre .entre { animation: motEntre .6s var(--doux) both; }
@keyframes motSort { to { opacity: 0; transform: translateY(-.25em); filter: blur(6px); } }
@keyframes motEntre { from { opacity: 0; transform: translateY(.3em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* La phrase-clé : mots barrés, puis promesse aux mots-clés surlignés */
.promesse { margin-top: 22px; max-width: 32em; padding: 2px 0 2px 18px; border-left: 4px solid var(--acc); }
.promesse__fini { font-family: var(--titre); font-weight: 750; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.promesse__fini s { position: relative; text-decoration: none; white-space: nowrap; transition: color .5s; transition-delay: calc(1.1s + var(--k) * .35s); }
.promesse__fini s::after { content: ""; position: absolute; left: -3%; right: -3%; top: 54%; height: .12em; border-radius: 1em; background: var(--acc); transform-origin: left; transform: scaleX(0) rotate(-3deg); animation: barre .45s var(--doux) forwards; animation-delay: calc(1.1s + var(--k) * .35s); }
.promesse__fini s { animation: grise .45s ease forwards; animation-delay: calc(1.1s + var(--k) * .35s); }
@keyframes barre { to { transform: scaleX(1) rotate(-3deg); } }
@keyframes grise { to { color: var(--gris-2); } }
.promesse__texte { margin-top: 10px; color: var(--encre); font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.55; }
.promesse__texte mark { color: inherit; font-weight: 700; padding: 0 .12em; border-radius: .2em; background: linear-gradient(var(--acc-p), var(--acc-p)) no-repeat left 62% / 0 58%; animation: surligne .6s var(--doux) forwards; animation-delay: calc(2.3s + var(--k) * .45s); }
@keyframes surligne { to { background-size: 100% 58%; } }
.hero__atouts { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 34em; }
.hero__atouts li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--ligne); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.hero__atouts span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--acc-p); color: var(--acc-f); transition: background-color .6s, color .6s; }
.hero__atouts svg { width: 19px; height: 19px; }
.metiers-choix { margin-top: 18px; }
.metiers-choix__titre { font-size: .92rem; color: var(--gris); margin-bottom: 10px; }
.metiers-choix__titre b { color: var(--encre); font-weight: 700; }
.metiers-choix__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.metiers-choix__liste button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
  padding: 9px 6px 8px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ligne);
  font-weight: 650; font-size: clamp(.74rem, 2.15cqi, .92rem); line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s, transform .25s var(--doux), box-shadow .25s;
}
.metiers-choix__liste svg { width: 54px; height: 27px; flex: none; transition: transform .4s var(--doux); }
.metiers-choix__liste button:hover { border-color: var(--acc); transform: translateY(-2px); }
.metiers-choix__liste button:hover svg { transform: translateX(3px); }
.metiers-choix__liste button[aria-pressed="true"] { background: var(--acc-p); border-color: var(--acc); color: var(--acc-f); box-shadow: 0 8px 20px -14px var(--acc); }

/* Diorama : décor illustré + véhicules qui circulent + cartes de l'application */
.hero__visuel { container-type: inline-size; }
.diorama { position: relative; aspect-ratio: 1.45; max-height: 560px; width: 100%; border-radius: 30px; overflow: hidden; isolation: isolate; box-shadow: 0 40px 80px -46px rgba(21, 23, 30, .55), 0 0 0 1px rgba(21, 23, 30, .06); container-type: inline-size; }
.diorama__ciel { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ciel1), var(--ciel2) 70%); }
.diorama__soleil { position: absolute; right: 12%; top: 9%; width: 12cqi; height: 12cqi; border-radius: 50%; background: radial-gradient(circle, #FFF6D6 0 45%, rgba(255, 246, 214, 0) 70%); }
.diorama__decor { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64%; opacity: 0; transition: opacity .9s ease; }
.diorama__decor.actif { opacity: 1; }
.diorama__vehicules { position: absolute; inset: 0; }
.vehicule { position: absolute; left: 0; bottom: var(--bas, 2.6%); width: var(--l, 30cqi); animation: traverse var(--duree, 12s) linear infinite; animation-delay: var(--retard, 0s); opacity: 0; transition: opacity .6s; }
.vehicule.vu { opacity: 1; }
.vehicule svg { width: 100%; height: auto; overflow: visible; }
.vehicule--eau svg { animation: flotte 2.6s ease-in-out infinite alternate; }
.vehicule--route svg { animation: cahot .5s ease-in-out infinite alternate; }
@keyframes traverse { from { transform: translateX(-36cqi); } to { transform: translateX(104cqi); } }
@keyframes flotte { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-4%) rotate(1.2deg); } }
@keyframes cahot { to { transform: translateY(-1.2%); } }
.carte-app {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; max-width: 64%;
  padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 40px -20px rgba(21, 23, 30, .45), 0 0 0 1px rgba(21, 23, 30, .05);
  font-size: clamp(.78rem, 2.4cqi, .95rem); line-height: 1.25;
  animation: carteFlotte 6s ease-in-out infinite alternate;
}
.carte-app--a { left: 5%; top: 6%; }
.carte-app--b { right: 5%; top: 30%; animation-delay: -3s; }
.carte-app b { display: block; font-weight: 800; }
.carte-app small { color: var(--gris); }
.carte-app em { margin-left: 6px; font-style: normal; font-weight: 700; font-size: .85em; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.carte-app__pastille { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.carte-app__pastille::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, .6); }
.carte-app[data-etat="ok"] .carte-app__pastille { background: #DCFCE7; color: var(--vert); }
.carte-app[data-etat="ok"] em { background: #DCFCE7; color: #15803D; }
.carte-app[data-etat="bientot"] .carte-app__pastille { background: #FEF3C7; color: var(--ambre); }
.carte-app[data-etat="bientot"] em { background: #FEF3C7; color: #B45309; }
.carte-app[data-etat="alerte"] .carte-app__pastille { background: #FEE2E2; color: var(--rouge); }
.carte-app[data-etat="alerte"] em { background: #FEE2E2; color: #B91C1C; }
.carte-app[data-etat="reserve"] .carte-app__pastille { background: #DBEAFE; color: var(--bleu); }
.carte-app[data-etat="reserve"] em { background: #DBEAFE; color: #1D4ED8; }
.carte-app.change { animation: carteChange .7s var(--doux); }
@keyframes carteFlotte { from { translate: 0 0; } to { translate: 0 -6px; } }
@keyframes carteChange { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); opacity: .4; } 100% { transform: none; opacity: 1; } }
.diorama__legende { position: absolute; left: 5%; top: 50%; z-index: 3; padding: 5px 12px; border-radius: 99px; background: rgba(21, 23, 30, .72); color: #fff; font-size: clamp(.72rem, 2cqi, .85rem); font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (max-width: 1023px) { .hero__in { grid-template-columns: minmax(0, 1fr); } .diorama { aspect-ratio: 1.45; } }
/* Téléphone : deux temps bien séparés et aérés.
   1) à lire : accroche, titre, phrase-clé, les 3 bénéfices en liste ;
   2) à toucher : un panneau blanc qui réunit l'illustration et le choix du métier (visibles ensemble). */
@media (max-width: 640px) {
  .hero__in { gap: 0; }
  .hero__texte { display: contents; }
  .hero__quoi { order: 1; font-size: .86rem; margin-bottom: 14px; }
  .hero__titre { order: 2; font-size: clamp(2.6rem, 12.5vw, 3.3rem); }
  .promesse { order: 3; margin-top: 22px; padding: 0; border-left: 0; }
  .promesse__fini { font-size: 1.32rem; }
  .promesse__texte { margin-top: 12px; font-size: 1.06rem; }
  .hero__atouts { order: 4; margin-top: 26px; 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: .98rem; }
  .hero__atouts li:last-child { border-bottom: 1px solid var(--ligne); }
  .hero__atouts span { width: 32px; height: 32px; border-radius: 10px; }
  .hero__atouts svg { width: 18px; height: 18px; }
  .hero__visuel { order: 5; margin-top: 40px; padding: 8px 8px 14px; border-radius: 28px; background: #fff; border: 1px solid var(--ligne); box-shadow: 0 30px 60px -42px rgba(21, 23, 30, .4); }
  .diorama { border-radius: 21px; aspect-ratio: 1.55; box-shadow: none; }
  .carte-app--b, .diorama__legende { display: none; }
  .carte-app { max-width: 82%; padding: 9px 11px; gap: 9px; }
  .carte-app__pastille { width: 28px; height: 28px; }
  .metiers-choix { margin-top: 14px; padding: 0 4px; }
  .metiers-choix__titre { margin-bottom: 10px; font-size: .84rem; line-height: 1.35; }
  .metiers-choix__titre b { display: block; font-family: var(--titre); font-weight: 750; font-size: 1.22rem; letter-spacing: -.02em; }
  .metiers-choix__liste { gap: 6px; }
  /* 3 × 3 vignettes ; nom et véhicule proportionnels à la largeur : le nom tient sur une ligne même sur un petit téléphone */
  .metiers-choix__liste button { gap: 2px; padding: 8px 3px 7px; border-radius: 14px; font-size: clamp(.64rem, 3.55cqi, .86rem); }
  .metiers-choix__liste svg { width: clamp(30px, 12.5cqi, 48px); height: auto; aspect-ratio: 2; }
}

/* ------------------------------------------------------------------ Passerelle vers Parc18 (monde « pompiers » choisi) */
/* police de Parc18, lue dans son dossier /parc18/ (même site) ; à défaut, la police des titres de Flottille */
@font-face { font-family: "Barlow Condensed"; src: url("../../parc18/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.passerelle { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .7s var(--doux), visibility 0s linear .7s; }
html.voir-parc18 .passerelle { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .7s var(--doux), visibility 0s; }
.passerelle__pli { min-height: 0; overflow: hidden; }
.passerelle .enveloppe { padding: 8px 0 clamp(48px, 6vw, 80px); }
.passerelle__carte { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: clamp(20px, 4vw, 48px); padding: 38px clamp(22px, 4vw, 44px) 32px; border-radius: 24px; background: #13202F; color: #fff; text-decoration: none; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(19, 32, 47, .75); transition: transform .35s var(--doux), box-shadow .35s; }
.passerelle__carte:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -34px rgba(19, 32, 47, .85); }
.passerelle__carte:focus-visible { outline: 3px solid #F2BE1A; outline-offset: 4px; }
.passerelle__bande { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(135deg, #C8261D 0 12px, #F2BE1A 12px 24px); }
.passerelle__sur { display: inline-block; padding: 4px 11px; border-radius: 99px; background: rgba(242, 190, 26, .14); color: #F2BE1A; font-weight: 700; font-size: .86rem; }
.passerelle__titre { margin-top: 14px; font-family: "Barlow Condensed", var(--titre); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; }
.p18-marque { display: flex; width: fit-content; align-items: center; gap: .12em; margin-bottom: .14em; font-size: 1.15em; }
.p18-marque b { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.08em; padding: 0 .14em; border-radius: .2em; background: #C8261D; color: #fff; font-weight: 700; }
.passerelle__desc { margin-top: 10px; max-width: 40em; color: #C9D2DC; }
.passerelle__cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: #C8261D; color: #fff; font-weight: 700; box-shadow: 0 12px 26px -12px #C8261D; }
.passerelle__cta svg { width: 19px; height: 19px; transition: transform .2s var(--doux); }
.passerelle__carte:hover .passerelle__cta svg { transform: translateX(4px); }
.passerelle__visuel svg { display: block; width: 100%; height: auto; }
.passerelle__visuel svg + svg { width: 68%; margin: -22% 0 0 32%; }
html.voir-parc18 .passerelle__visuel svg { animation: arrive .9s var(--doux) both; }
html.voir-parc18 .passerelle__visuel svg + svg { animation-delay: .15s; }
@keyframes arrive { from { opacity: 0; transform: translateX(-30px); } }
@media (max-width: 760px) { .passerelle__carte { grid-template-columns: 1fr; padding: 30px 20px 22px; } .passerelle__visuel { order: -1; width: min(260px, 80%); } }

/* ------------------------------------------------------------------ Le constat (sombre) */
.constat { background: var(--encre); color: #fff; overflow: hidden; }
.constat__liste { display: flex; flex-direction: column; gap: 6px; }
.constat__liste li { font-family: var(--titre); font-weight: 750; font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; color: rgba(255, 255, 255, .28); opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .8s var(--doux), color .6s; transition-delay: calc(var(--i) * .95s); }
.constat__liste.is-on li { opacity: 1; transform: none; }
.constat__liste.is-on li:not(.constat__chute) { color: rgba(255, 255, 255, .55); }
.constat__chute { color: #fff !important; margin-top: 10px; }
.constat__barre { position: relative; color: rgba(255, 255, 255, .45); }
.constat__barre::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: .09em; border-radius: 1em; background: var(--acc); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--doux) 3.7s; }
.constat__liste.is-on .constat__barre::after { transform: scaleX(1); }
.constat__nouveau { display: inline-block; color: var(--acc); opacity: 0; transform: translateY(.3em) scale(.9); transition: opacity .6s 4s, transform .8s var(--doux) 4s; }
.constat__liste.is-on .constat__nouveau { opacity: 1; transform: none; }

.mecanique { --t0: 4.6s; margin-top: clamp(40px, 6vw, 64px); 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: 20px; background: var(--encre-2); border: 1px solid rgba(255, 255, 255, .08); opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .7s var(--doux); transition-delay: calc(var(--t0) + 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: 12px; background: var(--acc); color: #fff; font-family: var(--titre); font-weight: 800; font-size: 1.2rem; }
.mecanique span { color: #C4C8D2; font-size: .98rem; line-height: 1.45; }
.mecanique .meca { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-top: 12px; padding: 7px 10px; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #fff; font-size: .8rem; line-height: 1.2; }
.meca small { color: #9AA1B1; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.meca em { font-style: normal; font-weight: 750; white-space: nowrap; }
.meca--saisie em { font-family: var(--titre); font-size: .95rem; clip-path: inset(0 100% 0 0); }
.mecanique.is-on .meca--saisie em { animation: tape .7s steps(9) forwards; animation-delay: calc(var(--t0) + .7s); }
.meca--saisie i { width: 2px; height: 1.1em; background: var(--acc); animation: curseur 1s steps(1) infinite; }
@keyframes curseur { 50% { opacity: 0; } }
.meca--rappel svg { width: 16px; height: 16px; flex: none; color: var(--acc); transform-origin: 50% 12%; }
.mecanique.is-on .meca--rappel svg { animation: sonne .9s ease; animation-delay: calc(var(--t0) + 1.1s); }
.meca--rappel small { color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.meca--rappel em { font-size: .7rem; padding: 3px 8px; border-radius: 99px; background: #FEF3C7; color: #B45309; }
.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, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: .76rem; font-weight: 700; }
.meca--equipe em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5C6272; transition: background-color .4s, box-shadow .4s; }
.mecanique.is-on .meca--equipe em::before { background: var(--vert); box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); transition-delay: calc(var(--t0) + 1.3s + var(--e) * .3s); }
.mecanique strong { display: block; color: #fff; font-family: var(--titre); font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 2px; }
@media (max-width: 860px) { .mecanique { --t0: .2s; grid-template-columns: 1fr; gap: 10px; } .mecanique li { padding: 16px; } }

/* Le parc en image : en vrac → par site → contrôles en alerte → tableur et post-it → rangé dans Flottille (5 s) */
.constat__haut { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (min-width: 1024px) { .constat__haut .constat__liste li { font-size: clamp(2rem, 3.9vw, 3.6rem); } }
@media (max-width: 1023px) { .constat__haut { grid-template-columns: minmax(0, 1fr); } .parc { width: 100%; max-width: 620px; } }
.parc { position: relative; aspect-ratio: 1.15; border-radius: 26px; overflow: hidden; container-type: inline-size; background: var(--encre-2) radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 18px 18px; border: 1px solid rgba(255, 255, 255, .08); }
.parc__site { position: absolute; left: var(--x); top: 17%; width: 29%; height: 74%; border-radius: 16px; border: 1.5px dashed rgba(255, 255, 255, .2); opacity: 0; }
.parc__site::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; border: 1.5px solid color-mix(in srgb, var(--acc) 55%, transparent); background: rgba(255, 255, 255, .035); opacity: 0; }
.parc__site span { position: absolute; left: 7%; top: 3.5%; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .09); color: #C4C8D2; font-size: clamp(.58rem, 2.1cqi, .74rem); font-weight: 750; white-space: nowrap; }
.parc.is-on .parc__site { animation: parcSite 5s var(--doux) forwards; }
.parc.is-on .parc__site::before { animation: parcRange 5s ease forwards; }
@keyframes parcSite { 0%, 20% { opacity: 0; scale: .94; } 30%, 100% { opacity: 1; scale: 1; } }
@keyframes parcRange { 0%, 80% { opacity: 0; } 92%, 100% { opacity: 1; } }
.pv { position: absolute; z-index: 1; left: var(--x1); top: var(--y1); width: 12.5%; rotate: var(--r1); opacity: 0; }
.pv svg { display: block; width: 100%; height: auto; overflow: visible; }
.parc.is-on .pv { animation: parcVehicule 5s var(--doux) forwards; animation-delay: calc(var(--k) * .035s); }
@keyframes parcVehicule {
  0% { left: var(--x1); top: var(--y1); rotate: var(--r1); opacity: 0; scale: .5; }
  7%, 22% { left: var(--x1); top: var(--y1); rotate: var(--r1); opacity: 1; scale: 1; }
  38%, 80% { left: var(--x2); top: var(--y2); rotate: var(--r2); opacity: 1; scale: 1; }
  96%, 100% { left: var(--x3); top: var(--y3); rotate: 0deg; opacity: 1; scale: 1; }
}
.pv i { --fin: var(--vert); position: absolute; right: 0; top: -16%; width: clamp(9px, 2.7cqi, 15px); height: clamp(9px, 2.7cqi, 15px); display: grid; place-items: center; border-radius: 50%; background: var(--fin); color: #fff; font-style: normal; font-weight: 800; font-size: clamp(7px, 1.9cqi, 10px); line-height: 1; opacity: 0; box-shadow: 0 0 0 2px var(--encre-2); }
.pv.ambre i { --fin: var(--ambre); }
.pv.reserve i { --fin: var(--bleu); }
.pv.alerte i::before { content: "!"; }
.parc.is-on .pv i { animation: parcPoint 5s var(--doux) forwards; animation-delay: calc(var(--k) * .035s); }
.parc.is-on .pv.alerte i { animation-name: parcAlerte; }
.parc.is-on .pv.alerte i::before { animation: parcEfface 5s forwards; animation-delay: calc(var(--k) * .035s); }
@keyframes parcPoint { 0%, 88% { opacity: 0; scale: 0; } 96%, 100% { opacity: 1; scale: 1; } }
@keyframes parcAlerte { 0%, 38% { opacity: 0; scale: 0; background: var(--rouge); } 43% { opacity: 1; scale: 1.3; background: var(--rouge); } 47%, 80% { opacity: 1; scale: 1; background: var(--rouge); } 92%, 100% { opacity: 1; scale: 1; background: var(--fin); } }
@keyframes parcEfface { 0%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
.parc__tableur { position: absolute; z-index: 2; left: 17%; top: 24%; width: 64%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); opacity: 0; }
.parc__tableur p { display: flex; align-items: center; gap: 4px; padding: 1.4cqi 2cqi; background: #2F7D53; color: #fff; font-size: clamp(.55rem, 2.1cqi, .72rem); font-weight: 700; white-space: nowrap; overflow: hidden; }
.parc__tableur p i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.parc__tableur p i:last-of-type { margin-right: 4px; }
.parc__tableur div { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr .9fr; }
.parc__tableur span { height: 4.4cqi; border-right: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; background: linear-gradient(#D1D5DB, #D1D5DB) no-repeat 22% 50% / 55% 22%; }
.parc__tableur span.r { background-color: #FEE2E2; background-image: linear-gradient(#F87171, #F87171); }
.parc__tableur span.j { background-color: #FEF9C3; }
.parc.is-on .parc__tableur { animation: parcTableur 5s var(--doux) forwards; }
@keyframes parcTableur { 0%, 52% { opacity: 0; translate: 0 18%; rotate: -10deg; } 59%, 72% { opacity: 1; translate: 0 0; rotate: -5deg; } 80%, 100% { opacity: 0; translate: 0 40%; rotate: 6deg; } }
.parc__postit { position: absolute; z-index: 3; left: var(--px); top: var(--py); width: 27%; aspect-ratio: 1; display: grid; place-items: center; padding: 3cqi; background: #FDE68A; color: #3F3A2B; box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .7); font-size: clamp(.62rem, 2.7cqi, .92rem); font-weight: 700; font-style: italic; line-height: 1.2; text-align: center; rotate: var(--pr); opacity: 0; }
.parc.is-on .parc__postit { animation: parcPostit 5s var(--doux) forwards; animation-delay: calc(var(--pd) * .15s); }
@keyframes parcPostit { 0%, 56% { opacity: 0; scale: 1.25; } 61%, 73% { opacity: 1; scale: 1; translate: 0 0; } 81%, 100% { opacity: 0; scale: 1; translate: 0 50%; } }
.parc__barre { position: absolute; z-index: 4; left: 3%; right: 3%; top: 3.2%; height: 10.5%; display: flex; align-items: center; gap: 1.6cqi; padding: 0 2.6cqi; border-radius: 12px; background: var(--acc); color: #fff; font-size: clamp(.58rem, 2.3cqi, .82rem); white-space: nowrap; opacity: 0; }
.parc__barre svg { width: 5cqi; height: 5cqi; flex: none; color: var(--encre); }
.parc__barre b { font-family: var(--titre); font-weight: 800; font-size: 1.25em; letter-spacing: -.02em; }
.parc__barre span { opacity: .85; overflow: hidden; text-overflow: ellipsis; }
.parc__barre em { margin-left: auto; font-style: normal; font-weight: 700; padding: .3em .7em; border-radius: 99px; background: #FEF3C7; color: #B45309; }
.parc.is-on .parc__barre { animation: parcBarre 5s var(--doux) forwards; }
@keyframes parcBarre { 0%, 82% { opacity: 0; translate: 0 -130%; } 94%, 100% { opacity: 1; translate: 0 0; } }

/* ------------------------------------------------------------------ Automatismes : « Quand… → Flottille… » */
.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: 18px; }
.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: 650; line-height: 1.3; }
.auto__liste p small { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gris-2); }
.auto__alors p small { color: var(--acc-f); }
.auto__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: #fff; border: 1px solid var(--ligne); color: var(--acc-f); }
.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(--acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 22%, transparent); opacity: 0; }
.auto__liste.is-on .auto__quand { animation: autoQuand .5s var(--doux) forwards; animation-delay: calc(var(--i) * .55s); }
.auto__liste.is-on .auto__fil i { animation: autoImpulsion .55s ease-in forwards; animation-delay: calc(var(--i) * .55s + .3s); }
.auto__liste.is-on .auto__alors { animation: autoAlors .5s ease forwards; animation-delay: calc(var(--i) * .55s + .8s); }
.auto__liste.is-on .auto__ok { animation: autoOk .4s ease forwards; animation-delay: calc(var(--i) * .55s + .85s); }
@keyframes autoQuand { to { opacity: 1; transform: none; } }
@keyframes autoImpulsion { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes autoImpulsionV { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes autoAlors { to { border-color: var(--acc); box-shadow: 0 16px 32px -24px var(--acc); } }
@keyframes autoOk { 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: autoImpulsionV; }
}

/* ------------------------------------------------------------------ Ce que Flottille fait */
.fonctions__grille { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fonction { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--ligne); }
/* Mini-écrans illustrés (un par fonction), animés à l'arrivée de la carte */
.fonction { --c2: color-mix(in srgb, var(--acc) 58%, #fff); --c3: color-mix(in srgb, var(--acc) 30%, #fff); --c4: #3A3F4D; }
.visu { position: relative; height: 136px; margin: -8px -8px 6px; padding: 12px; border-radius: 16px; background: var(--fond); overflow: hidden; font-size: .78rem; line-height: 1.2; container-type: inline-size; }
.visu__legende { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 750; color: var(--encre); font-size: .76rem; }
.visu__legende em { font-style: normal; font-weight: 700; font-size: .68rem; padding: 2px 8px; border-radius: 99px; background: #fff; color: var(--acc-f); box-shadow: 0 0 0 1px var(--ligne); }
/* 1. agenda des trois semaines + rappel qui arrive */
.agenda { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.agenda b { font-size: .6rem; font-weight: 700; color: var(--gris-2); }
.agenda span { position: relative; height: 16px; display: grid; place-items: center; border-radius: 5px; background: #fff; font-size: .62rem; font-weight: 650; color: var(--gris); }
.agenda .passe { background: transparent; color: var(--ligne-2); }
.agenda .auj { box-shadow: inset 0 0 0 1.5px var(--encre); color: var(--encre); font-weight: 800; }
.agenda .point::after { content: ""; position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gris-2); }
.agenda .rdv { background: var(--acc); color: #fff; font-weight: 800; }
.fonction.is-on .agenda .rdv { animation: rdv 1.1s ease-out .5s 2; }
@keyframes rdv { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } to { box-shadow: 0 0 0 8px transparent; } }
.rappel { position: absolute; left: 10px; right: 10px; bottom: 9px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 11px; background: #fff; box-shadow: 0 10px 24px -12px rgba(21, 23, 30, .45), 0 0 0 1px rgba(21, 23, 30, .05); transform: translateY(140%); opacity: 0; transition: transform .6s var(--doux), opacity .4s; }
.fonction.is-on .rappel { transform: none; opacity: 1; transition-delay: 1s; }
.rappel__ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--acc-p); color: var(--acc-f); }
.rappel__ico svg { width: 15px; height: 15px; transform-origin: 50% 12%; }
.fonction.is-on .rappel__ico svg { animation: sonne .9s ease 1.6s; }
@keyframes sonne { 20%, 60% { rotate: 16deg; } 40%, 80% { rotate: -16deg; } }
.rappel > span:nth-child(2) { flex: 1; min-width: 0; }
.rappel b { display: block; font-size: .74rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rappel small { display: block; color: var(--gris); font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rappel em { font-style: normal; font-weight: 700; font-size: .66rem; padding: 3px 7px; border-radius: 99px; background: #FEF3C7; color: #B45309; white-space: nowrap; }
/* 2. compteur à rouleaux + jauge de la prochaine révision */
.visu--compteur { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.compteur { display: flex; align-items: center; gap: 3px; width: fit-content; padding: 6px 7px; border-radius: 10px; background: var(--encre); font-size: min(1.4rem, 8.6cqi); }
.rouleau { width: .9em; height: 1.3em; overflow: hidden; border-radius: 4px; background: #2C303D; font-family: var(--titre); font-weight: 800; line-height: 1.3em; color: #fff; text-align: center; }
.rouleau > span { display: flex; flex-direction: column; transition: transform 1.5s cubic-bezier(.25, .7, .1, 1); transition-delay: calc(.2s + var(--i) * .12s); }
.fonction.is-on .rouleau > span { transform: translateY(calc(var(--d) * -1.3em)); }
.rouleau i { display: block; font-style: normal; }
.rouleau.zero { color: #5C6272; }
.compteur em { margin: 0 2px 0 4px; font-style: normal; font-weight: 700; font-size: .58em; color: #C4C8D2; }
.jauge { height: 7px; border-radius: 9px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ligne); }
.jauge span { display: block; width: 82%; height: 100%; border-radius: inherit; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--doux); }
.fonction.is-on .jauge span { transform: none; transition-delay: 1.1s; }
.visu__note { display: flex; justify-content: space-between; color: var(--gris); font-size: .68rem; font-weight: 650; }
/* 3. disponibilité : le n°2 part à l'atelier, la réserve prend le relais */
.visu--dispo { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.dispo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dispo li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 3px 6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ligne); transition: background-color .5s, box-shadow .5s, outline-color .5s; }
.dispo svg { width: 100%; max-width: 54px; height: auto; aspect-ratio: 2; transition: filter .5s, opacity .5s; }
.dispo small { font-weight: 750; font-size: .62rem; color: var(--gris); white-space: nowrap; }
.dispo i { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); transition: background-color .4s; }
.dispo [data-e="reserve"] { background: transparent; box-shadow: none; outline: 1.5px dashed var(--ligne-2); outline-offset: -1.5px; }
.dispo [data-e="reserve"] svg { opacity: .35; filter: grayscale(1); }
.dispo [data-e="reserve"] i { background: var(--bleu); }
.fonction.is-on .dispo [data-e="atelier"], .fonction.is-on .dispo [data-e="atelier"] * { transition-delay: .9s; }
.fonction.is-on .dispo [data-e="atelier"] { background: #FFF7ED; box-shadow: 0 0 0 1.5px #FDBA74; }
.fonction.is-on .dispo [data-e="atelier"] i { background: var(--ambre); }
.fonction.is-on .dispo [data-e="atelier"] svg { filter: grayscale(1); opacity: .45; }
.fonction.is-on .dispo [data-e="reserve"], .fonction.is-on .dispo [data-e="reserve"] * { transition-delay: 1.8s; }
.fonction.is-on .dispo [data-e="reserve"] { background: #fff; outline-color: var(--vert); }
.fonction.is-on .dispo [data-e="reserve"] svg { opacity: 1; filter: none; }
.fonction.is-on .dispo [data-e="reserve"] i { background: var(--vert); }
.dispo__legende { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: .66rem; font-weight: 650; color: var(--gris); }
.dispo__legende span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--vert); }
.dispo__legende .p-atelier::before { background: var(--ambre); }
.dispo__legende .p-reserve::before { background: var(--bleu); }
/* 4. le vrai coût : barre empilée qui se remplit */
.visu--cout { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.barres { display: flex; height: 22px; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--ligne); }
.barres span { width: var(--p); background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--doux); }
.fonction.is-on .barres span { transform: none; transition-delay: calc(.3s + var(--i) * .35s); }
.cout__leg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; font-size: .7rem; font-weight: 650; color: var(--gris); }
.cout__leg i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 3px; background: var(--c); }
.fonction h3 { font-family: var(--titre); font-weight: 750; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.02em; }
.fonction > p { color: var(--gris); font-size: .98rem; }
.fonction__ex { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: var(--acc-p); font-size: .92rem; line-height: 1.4; }
.fonction__ex b { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--acc-f); margin-bottom: 3px; }
.fonction__ex span { display: block; transition: opacity .3s, transform .4s var(--doux); }
.fonction__ex span.change { opacity: 0; transform: translateY(6px); }
@media (max-width: 1023px) { .fonctions__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fonctions__grille { grid-template-columns: 1fr; gap: 12px; } .fonction { padding: 20px 18px; } }

/* ------------------------------------------------------------------ Les sept métiers (cartes à collectionner) */
.metiers { background: #fff; }
.metiers__piste { width: min(var(--largeur), 100% - 2 * var(--marge)); margin: clamp(36px, 5vw, 56px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metiers__aussi { width: min(var(--largeur), 100% - 2 * var(--marge)); margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gris); }
.metiers__aussi b { margin-right: 4px; color: var(--encre); font-family: var(--titre); font-weight: 750; font-size: 1.12rem; letter-spacing: -.01em; }
.metiers__aussi span { padding: 6px 13px; border-radius: 99px; background: var(--fond); border: 1px solid var(--ligne); color: var(--encre); font-weight: 650; font-size: .92rem; }
.metiers__aussi a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--acc-f); font-weight: 750; text-decoration: none; }
.metiers__aussi a:hover { text-decoration: underline; }
.metiers__aussi svg { width: 16px; height: 16px; }
.metier { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 18px; border-radius: 24px; background: var(--fond); border: 1.5px solid transparent; transition: transform .35s var(--doux), border-color .3s, box-shadow .35s; }
.metier:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--c); box-shadow: 0 24px 40px -30px var(--c); }
.metier__scene { position: relative; border-radius: 16px; background: var(--cp); padding: 18px 12px 8px; overflow: hidden; }
.metier__scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: rgba(21, 23, 30, .06); }
.metier__scene svg { position: relative; z-index: 1; display: block; width: 100%; max-width: 250px; margin-inline: auto; height: auto; transition: transform .6s var(--doux); }
.metier:hover .metier__scene svg { transform: translateX(6%); }
.metier h3 { margin-top: 6px; padding: 0 4px; font-family: var(--titre); font-weight: 750; font-size: 1.35rem; letter-spacing: -.02em; }
.metier ul { padding: 0 4px; display: flex; flex-direction: column; gap: 4px; color: var(--gris); font-size: .92rem; }
.metier li { display: flex; gap: 8px; }
.metier li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--c); }
.metier { position: relative; cursor: pointer; }
.metier button[data-voir]::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.metier:has(button:focus-visible) { outline: 3px solid var(--c); outline-offset: 3px; }
.metier button:focus-visible { outline: none; }
.metier__lien { position: relative; z-index: 2; padding: 4px 4px 0; display: inline-flex; align-items: center; gap: 4px; color: var(--gris); font-size: .86rem; font-weight: 600; text-decoration: none; }
.metier__lien svg { width: 14px; height: 14px; }
.metier__lien:hover { color: var(--c); }
.metier button { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px 0; border: 0; background: none; color: var(--c); font-weight: 750; font-size: .92rem; cursor: pointer; }
.metier button svg { width: 16px; height: 16px; transition: transform .2s var(--doux); }
.metier button:hover svg { transform: translateX(3px); }
.metier.choisi { border-color: var(--c); background: #fff; box-shadow: 0 0 0 4px var(--cp); }
@media (max-width: 1023px) { .metiers__piste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .metiers__piste { width: auto; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--marge) 14px; scrollbar-width: none; }
  .metiers__piste::-webkit-scrollbar { display: none; }
  .metier { scroll-snap-align: center; }
}

/* ------------------------------------------------------------------ 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: 46px; background: var(--encre); box-shadow: 0 40px 80px -36px rgba(21, 23, 30, .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(--encre); z-index: 2; }
.telephone__ecran { height: 100%; border-radius: 37px; 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 { padding: .9em 1em; border-radius: 1em; background: var(--acc); color: #fff; }
.appli__tete small { display: block; font-weight: 700; font-size: .8em; opacity: .85; }
.appli__tete b { font-family: var(--titre); font-weight: 800; font-size: 1.7em; line-height: 1.05; letter-spacing: -.02em; }
.appli__liste { display: flex; flex-direction: column; gap: .55em; }
.appli__liste li { display: flex; align-items: center; gap: .8em; padding: .8em .9em; border-radius: .9em; background: #fff; border: 1px solid var(--ligne); font-weight: 650; font-size: .92em; line-height: 1.25; }
.coche { width: 1.7em; height: 1.7em; flex: none; border-radius: .5em; 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: .9em; background: var(--ligne-2); color: #fff; font-weight: 750; font-size: .92em; }
.telephone.is-on .appli__bouton { animation: pret .5s ease forwards 2.8s; }
@keyframes pret { to { background: var(--vert); box-shadow: 0 10px 24px -10px rgba(22, 163, 74, .7); } }
.appli__champ { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: .6em .9em; border-radius: .9em; background: #fff; border: 1.5px solid var(--acc); font-size: .92em; }
.appli__champ small { font-weight: 700; color: var(--gris); }
.appli__champ b { font-family: var(--titre); font-weight: 800; font-size: 1.12em; letter-spacing: -.01em; white-space: nowrap; clip-path: inset(0 100% 0 0); }
.telephone.is-on .appli__champ b { animation: tape .6s steps(9) .1s forwards; }
@keyframes tape { to { clip-path: inset(0 0 0 0); } }
.appli__photo { display: flex; align-items: center; gap: .8em; padding: .5em .6em .5em .5em; border-radius: .9em; background: #fff; border: 1px solid var(--ligne); line-height: 1.2; opacity: 0; transform: translateY(.6em) scale(.96); }
.telephone.is-on .appli__photo { animation: apparait .5s var(--doux) 2.15s forwards; }
@keyframes apparait { to { opacity: 1; transform: none; } }
.appli__photo b { display: block; font-weight: 750; font-size: .9em; }
.appli__photo small { display: block; color: var(--gris); font-size: .78em; }
.appli__cliche { position: relative; flex: none; width: 4.6em; aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: .55em; background: linear-gradient(#DCE3EC, #C3CCD8); overflow: hidden; }
.appli__cliche svg { width: 90%; height: auto; }
.appli__cliche::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.telephone.is-on .appli__cliche::after { animation: flash .5s ease-out 2.2s; }
@keyframes flash { 10% { opacity: .95; } 100% { opacity: 0; } }
.notif { position: absolute; z-index: 3; left: 58%; top: 67%; width: 220px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 16px; background: #fff; color: var(--encre); box-shadow: 0 24px 50px -20px rgba(21, 23, 30, .45), 0 0 0 1px rgba(21, 23, 30, .06); font-size: .84rem; line-height: 1.25; opacity: 0; transform: translateX(-14px) scale(.96); }
.telephone.is-on .notif { animation: apparait .6s var(--doux) 3.3s forwards; }
.notif__ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--acc); color: #fff; }
.notif__ico svg { width: 18px; height: 18px; }
.notif small { display: block; color: var(--gris); font-size: .74rem; font-weight: 650; }
.notif b { font-weight: 750; }
.puces { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.puces li { display: flex; align-items: center; gap: 14px; color: var(--gris); }
.puces span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--acc-p); color: var(--acc-f); font-family: var(--titre); font-weight: 800; font-size: 1.15rem; }
.puces b { color: var(--encre); }
.puces.is-on span { animation: puce .5s var(--doux) forwards; animation-delay: var(--t); }
@keyframes puce { 40% { transform: scale(1.12); } to { background: var(--acc); color: #fff; } }
@media (max-width: 900px) {
  .terrain__grille { grid-template-columns: 1fr; } .scene { order: 2; }
  .notif { left: 50%; top: auto; bottom: 15%; translate: -50% 0; width: 236px; }
}

/* La scène « dans la poche » : le téléphone sort de la poche, à côté de l'engin du métier */
.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)); }
/* le bas du téléphone est masqué à l'intérieur de la poche (et seulement là : ombres libres ailleurs) */
.scene__sortie { position: absolute; z-index: 1; left: 0; right: 0; top: -40px; bottom: calc(var(--sol) + var(--tw) * .42); overflow: hidden; }
.scene::before { content: ""; position: absolute; right: 0; top: 6%; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--acc-p) 0 55%, transparent 71%); transition: background .7s; }
.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.3); 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 .telephone { position: absolute; left: var(--px); bottom: calc(var(--tw) * .18); width: var(--tw); box-shadow: 0 28px 44px -26px rgba(21, 23, 30, .55); 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(21, 23, 30, .28)); }
.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(21, 23, 30, .5), 0 0 0 1px rgba(21, 23, 30, .05); 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(--acc); stroke-linecap: round; stroke-dasharray: 94.3; stroke-dashoffset: 94.3; }
.scene.is-on .chrono circle:last-child { transition: stroke-dashoffset 3.4s linear .6s; stroke-dashoffset: 0; }
.chrono b { display: block; font-family: var(--titre); font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: -.02em; }
.chrono small { color: var(--gris); font-size: .74rem; font-weight: 650; }
.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: 700; font-size: .92rem; }
.supports li svg { width: 20px; height: 20px; color: var(--acc-f); }
.supports p { margin-top: 12px; color: var(--gris); font-size: .98rem; }
.supports p b { color: var(--encre); }
@media (max-width: 900px) { .scene { --tw: 230px; --px: 6%; max-width: 440px; } .scene__engin { right: 0; } }
@media (max-width: 380px) { .scene { --tw: 210px; --px: 3%; } }

/* ------------------------------------------------------------------ Le carnet (sombre) : tout est tracé, daté, retrouvable */
.carnet { background: var(--encre); color: #fff; overflow: hidden; }
.carnet__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.carnet__puces { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.carnet__puces li { display: flex; align-items: center; gap: 14px; color: #C4C8D2; }
.carnet__puces span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--encre-2); border: 1px solid rgba(255, 255, 255, .1); color: var(--acc); }
.carnet__puces svg { width: 20px; height: 20px; }
.carnet__puces b { color: #fff; }
.carnet-v { border-radius: 24px; background: #fff; color: var(--encre); padding: 18px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75); }
.carnet-v__tete { display: flex; align-items: center; gap: 12px; }
.carnet-v__engin { width: 70px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--acc-p); }
.carnet-v__engin svg { width: 60px; height: 30px; }
.carnet-v__tete b { display: block; font-family: var(--titre); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.1; }
.carnet-v__tete small { color: var(--gris); font-size: .84rem; }
.carnet-v__cherche { margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--fond); border: 1.5px solid var(--ligne); color: var(--encre); font-size: .9rem; font-weight: 650; transition: border-color .4s; }
.carnet-v__cherche svg { width: 17px; height: 17px; color: var(--gris); }
.carnet-v__cherche span { clip-path: inset(0 100% 0 0); }
.carnet-v__cherche i { width: 2px; height: 1.1em; background: var(--acc); animation: curseur 1s steps(1) infinite; }
.carnet-v.is-on .carnet-v__cherche { border-color: var(--acc); transition-delay: 2.4s; }
.carnet-v.is-on .carnet-v__cherche span { animation: tape .6s steps(8) 2.5s forwards; }
.frise { position: relative; display: flex; flex-direction: column; gap: 2px; }
.frise::before { content: ""; position: absolute; left: 21px; top: 14px; bottom: 14px; width: 2px; background: var(--ligne); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--doux); }
.carnet-v.is-on .frise::before { transform: none; transition-delay: .2s; }
.frise li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 12px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .5s var(--doux); }
.carnet-v.is-on .frise li { opacity: 1; transform: none; transition-delay: calc(.3s + var(--i) * .3s); }
.carnet-v.is-on .frise li.trouve { animation: trouve .6s ease 3.3s forwards; }
.carnet-v.is-on .frise li:not(.trouve) { animation: estompe .6s ease 3.3s forwards; }
@keyframes trouve { to { background: #FEF3C7; box-shadow: inset 0 0 0 1.5px #FBBF24; } }
@keyframes estompe { to { opacity: .42; } }
.frise__ico { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--c); color: #fff; box-shadow: 0 0 0 3px #fff; }
.frise__ico svg { width: 16px; height: 16px; }
.frise [data-t="terrain"] { --c: var(--acc); }
.frise [data-t="atelier"] { --c: var(--ambre); }
.frise [data-t="controle"] { --c: var(--vert); }
.frise [data-t="doc"] { --c: #64748B; }
.frise b { display: block; font-weight: 750; font-size: .92rem; line-height: 1.25; }
.frise small { display: block; color: var(--gris); font-size: .8rem; line-height: 1.3; }
.frise time { align-self: start; padding-top: 3px; color: var(--gris-2); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.carnet-v__pied { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ligne); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.carnet-v__pied b { display: block; font-family: var(--titre); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--acc-f); }
.carnet-v__pied small { color: var(--gris); font-size: .76rem; line-height: 1.25; display: block; }
@media (max-width: 900px) { .carnet__grille { grid-template-columns: 1fr; } .carnet-v { max-width: 520px; } }
@media (max-width: 420px) { .carnet-v { padding: 14px; } .frise time { font-size: .68rem; } .frise li { gap: 8px; padding: 6px 4px; } .frise::before { left: 19px; } }

/* Toute la vie du véhicule (dans le carnet, fond sombre) */
.vie { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.vie__titre { font-family: var(--titre); font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em; }
.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: rgba(255, 255, 255, .14); }
.vie ol::after { content: ""; position: absolute; left: 6px; top: 6px; height: 2px; width: 0; background: var(--acc); transition: width 1.6s var(--doux) .2s; }
.vie.is-on ol::after { width: 62%; }
.vie li { position: relative; padding-top: 22px; color: #C4C8D2; font-size: .86rem; 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(--encre); border: 2px solid rgba(255, 255, 255, .35); box-sizing: border-box; }
.vie li:nth-child(-n+2)::before { background: var(--acc); border-color: var(--acc); }
.vie b { display: block; color: #fff; font-weight: 700; }
.vie__ici::before { background: var(--acc) !important; border-color: #fff !important; box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 35%, transparent); }
.vie.is-on .vie__ici::before { animation: vieIci 1.8s ease-in-out 1.4s infinite; }
@keyframes vieIci { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--acc) 10%, transparent); } }
.vie__ici small { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 99px; background: var(--acc); color: #fff; font-size: .7rem; font-weight: 700; }
.vie__note { margin-top: 14px; color: #9AA1B1; font-size: .92rem; }

/* ------------------------------------------------------------------ Sur mesure */
.mesure { background: #fff; }
.etapes { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.etapes { counter-reset: etape; }
.etapes li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; background: var(--fond); counter-increment: etape; }
.etapes b::before { content: "Étape " counter(etape); display: block; margin-bottom: 2px; font-family: var(--texte); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-f); }
/* flèche entre deux étapes */
.etapes li:not(:last-child)::before { content: ""; position: absolute; z-index: 1; top: 34px; right: -23px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--ligne), 0 6px 14px -8px rgba(21, 23, 30, .4); }
.etapes li:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 45px; right: -10px; width: 7px; height: 7px; border-top: 2.5px solid var(--acc); border-right: 2.5px solid var(--acc); transform: rotate(45deg); }
.etapes__ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--acc); color: #fff; margin-bottom: 8px; }
.etapes__ico svg { width: 24px; height: 24px; }
.etapes b { font-family: var(--titre); font-weight: 750; font-size: 1.45rem; letter-spacing: -.02em; }
.etapes small { color: var(--gris); font-size: .98rem; line-height: 1.45; }
.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__titre { font-family: var(--titre); font-weight: 750; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 4px; }
/* Vos tableurs, repris : le fichier → les fiches Flottille */
.reprise { margin: 0; padding: 22px; border-radius: 24px; 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: .98rem; }
.reprise figcaption b { color: var(--encre); }
.tableur { border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ligne), 0 16px 30px -22px rgba(21, 23, 30, .55); overflow: hidden; font-size: .72rem; 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: 700; font-size: .64rem; 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: 1.15fr 1.45fr .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: 750; }
.tableur__grille .t-vide { background: #FEF2F2; color: var(--rouge); font-weight: 800; text-align: center; }
.reprise.is-on .t-vide { animation: clignote 1s ease 1.4s 2; }
@keyframes clignote { 50% { background: #FECACA; } }
.reprise__fleche { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: #fff; box-shadow: 0 10px 20px -10px var(--acc); }
.reprise__fleche svg { width: 18px; height: 18px; }
.reprise.is-on .reprise__fleche svg { animation: pousse 1.6s ease-in-out infinite; }
@keyframes pousse { 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: 11px; background: #fff; box-shadow: 0 0 0 1px var(--ligne), 0 10px 22px -18px rgba(21, 23, 30, .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-size: .8rem; font-weight: 750; }
.reprise__appli small { font-size: .7rem; color: var(--gris); }
.reprise__appli i { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.reprise__appli em { font-style: normal; font-size: .66rem; font-weight: 700; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.r-bientot i { background: var(--ambre); } .r-bientot em { background: #FEF3C7; color: #B45309; }
.r-alerte i { background: var(--rouge); } .r-alerte em { background: #FEE2E2; color: #B91C1C; }
.r-ok i { background: var(--vert); } .r-ok em { background: #DCFCE7; color: #15803D; }
.faq { max-width: 820px; }
.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: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--acc-p) no-repeat center; background-image: linear-gradient(var(--acc-f), var(--acc-f)), linear-gradient(var(--acc-f), var(--acc-f)); background-size: 12px 2px, 2px 12px; transition: transform .3s var(--doux); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; color: var(--gris); max-width: 46em; }
@media (max-width: 900px) { .mesure__bas { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr; gap: 16px; }
  .etapes li:not(:last-child)::before { top: auto; right: auto; bottom: -23px; left: 50%; translate: -50% 0; }
  .etapes li:not(:last-child)::after { top: auto; right: auto; bottom: -11px; left: 50%; translate: -50% 0; transform: rotate(135deg); }
}
@media (max-width: 560px) {
  .reprise { grid-template-columns: 1fr; padding: 16px; }
  .reprise__fleche { justify-self: center; rotate: 90deg; }
  .tableur { transform: rotate(-1deg); }
}

/* ------------------------------------------------------------------ Tarif (sombre) */
.tarif { background: var(--encre); color: #fff; overflow: hidden; }
.tarif::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 35%, transparent), transparent 65%); }
.tarif__grille { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.offre { border-radius: 26px; background: #fff; color: var(--encre); padding: 32px 30px 30px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); transform: translateY(20px) rotate(-1deg); opacity: .001; transition: transform .8s var(--doux), opacity .6s; }
.offre.is-on { transform: none; opacity: 1; }
.offre__des { font-weight: 700; color: var(--gris); }
.offre__prix { display: flex; align-items: flex-start; gap: 6px; font-family: var(--titre); font-weight: 800; line-height: .85; letter-spacing: -.05em; }
.offre__prix b { font-size: clamp(5.5rem, 12vw, 7.5rem); color: var(--acc); }
.offre__prix span { display: flex; flex-direction: column; font-size: 3rem; padding-top: 6px; }
.offre__prix small { font-family: var(--texte); font-weight: 700; font-size: 1rem; letter-spacing: 0; color: var(--gris); margin-top: 8px; }
.offre__sous { margin-top: 10px; font-family: var(--titre); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.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; }
/* La taille du parc en image : trois parcs, de plus en plus fournis */
.echelle { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 500px; }
.echelle__pas { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.echelle__parc { min-height: var(--h); display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-end; gap: 2px 4px; padding: 10px 8px; border-radius: 14px 14px 4px 4px; background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border-top: 3px solid var(--acc); }
.echelle__parc svg { width: 42px; height: 21px; 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: 700; font-size: .86rem; color: #C4C8D2; }
@media (max-width: 900px) { .tarif__grille { grid-template-columns: 1fr; } .offre { max-width: 460px; } }

/* ------------------------------------------------------------------ Contact */
.contact { padding-bottom: calc(clamp(72px, 10vw, 128px) + 70px); overflow: hidden; }
.route { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; container-type: inline-size; pointer-events: none; }
.route::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: #2B2F3A; }
.route::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .65) 0 26px, transparent 26px 54px); }
.route__v { position: absolute; z-index: 1; left: 0; bottom: 7px; width: var(--l); animation: roule var(--duree) linear infinite; animation-delay: var(--retard); animation-play-state: paused; }
.route.is-on .route__v { animation-play-state: running; }
.route__v svg { display: block; width: 100%; height: auto; }
@keyframes roule { from { transform: translateX(calc(-100% - 10px)); } to { transform: translateX(100cqi); } }
.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: 24px; background: #fff; border: 1px solid var(--ligne); box-shadow: 0 30px 60px -40px rgba(21, 23, 30, .5); overflow: hidden; }
.carte-contact__haut { display: flex; align-items: center; gap: 16px; padding: 26px 24px 18px; }
.carte-contact__photo { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--acc); }
.carte-contact__nom { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.05; }
.carte-contact__role { color: var(--gris); font-size: .95rem; }
.carte-contact__liens { display: flex; flex-direction: column; padding: 0 24px 20px; }
.carte-contact__liens a { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font-weight: 700; padding: 9px 0; border-bottom: 1px solid var(--ligne); }
.carte-contact__liens a:last-child { border-bottom: 0; }
.carte-contact__liens a:hover { color: var(--acc-f); }
.carte-contact__liens svg { width: 18px; height: 18px; color: var(--acc); }
.carte-contact__studio { display: flex; align-items: center; gap: 14px; padding: 16px 24px; background: var(--encre); color: #C4C8D2; 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 */
.pied { background: var(--encre); color: rgba(196, 200, 210, .75); font-size: .88rem; line-height: 1.6; padding-bottom: calc(26px + env(safe-area-inset-bottom)); border-top: 4px solid var(--acc); }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--acc-p); }
.pied a svg { display: inline-block; width: 1em; height: 1em; margin-left: 3px; vertical-align: -2px; }
.pied .marque__logo { width: 36px; height: 36px; margin: 0; vertical-align: 0; }
.pied__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px 64px; padding: 52px 0 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pied__produit { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pied__produit p { max-width: 36em; }
.pied__parc18 a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.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(196, 200, 210, .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__nom, .marque__chapitre { transition: max-width .45s var(--doux), opacity .3s; overflow: hidden; white-space: nowrap; }
  .marque__nom { max-width: 6em; }
  .marque__chapitre { display: block; max-width: 0; opacity: 0; font-family: var(--titre); font-weight: 750; font-size: 1.3rem; letter-spacing: -.02em; color: var(--encre); text-overflow: ellipsis; }
  .entete.en-chapitre .marque__nom { 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(--acc); 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); }
}

/* ------------------------------------------------------------------ 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; }
  .vehicule { animation: none !important; transform: translateX(var(--fixe, 30cqi)); }
  .mecanique li { opacity: 1; transform: none; }
  .passerelle__visuel svg { animation: none !important; }
  .auto__quand, .vie li { opacity: 1; transform: none; }
  .route__v { animation: none !important; transform: translateX(calc(var(--l) * 1.6)); }
  .route__v + .route__v { transform: translateX(62cqi); }
  .appli__champ b { clip-path: none; }
  .appli__photo, .notif { opacity: 1; transform: none; }
  .scene .telephone, .scene__engin, .chrono { transform: none; opacity: 1; }
  .carnet-v__cherche span { clip-path: none; }
  .frise li { 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% 58%; }
}
