/* Xymba · fondations : polices, couleurs, boutons, en-tête, téléphone */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700 800; font-display: swap; src: url(../fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 900; font-display: swap; src: url(../fonts/inter-tight-900.woff2) format("woff2"); }

:root {
  --foret: #163300; --lime: #9FE870; --brume: #E8EBE6; --menthe: #E2F6D5; --encre: #0E0F0C; --ardoise: #454745; --gris: #5d605c; --blanc: #fff;
  --nuit: #0B1E02; --nuit2: #071402; --laterite: #E2703A; --rose: #FBD9EA; --lagune: #C6E1D9;
  --titre: "Inter Tight", "Arial Black", sans-serif; --texte: "Inter", system-ui, sans-serif;
  --frein: cubic-bezier(.16, 1, .3, 1); --vif: cubic-bezier(.3, 1.6, .5, 1);
  --marge: clamp(20px, 5vw, 72px); --bord: max(var(--marge), calc((100vw - 1640px) / 2 + var(--marge))); --rayon: 32px; --rayon-bloc: 0px;
  --ligne: color-mix(in srgb, var(--foret) 14%, transparent);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: #fff; }
body { margin: 0; font: 400 18px/1.5 var(--texte); color: var(--encre); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, canvas, video, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--foret); outline-offset: 4px; border-radius: 12px; }
::selection { background: var(--foret); color: var(--lime); }
.evitement { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--foret); color: var(--lime); padding: 14px 22px; border-radius: 999px; font-weight: 600; transition: top .25s var(--frein); }
.evitement:focus { top: 16px; }

/* Titres : capitales très grasses, serrées */
.geant, .grand { font-family: var(--titre); font-weight: 900; text-transform: uppercase; color: var(--foret); letter-spacing: -.035em; text-wrap: balance; }
.geant { font-size: clamp(46px, min(5.5vw, 10.4svh), 106px); line-height: .9; }
.grand { font-size: clamp(38px, 4.7vw, 88px); line-height: .92; }
.intro { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 34em; color: var(--ardoise); text-wrap: pretty; }
.cadre { width: 100%; max-width: 1640px; margin-inline: auto; padding-inline: var(--marge); }

/* Révélation des titres, ligne par ligne */
.js .montee .ligne { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.js .montee .ligne > span { display: block; transform: translateY(112%) rotate(2.2deg); transform-origin: 0 100%; transition: transform 1.05s var(--frein); transition-delay: calc(var(--i, 0) * 90ms); }
.js .montee.vu .ligne > span { transform: none; }

/* Boutons */
.bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 17px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s, transform .35s var(--frein); will-change: transform; }
.bouton.fonce { background: var(--lime); color: var(--foret); }
.bouton.fonce:hover { background: #c3f7a0; }
.bouton.contour { box-shadow: inset 0 0 0 2px var(--foret); color: var(--foret); }
.bouton.contour:hover { background: var(--foret); color: var(--lime); }
.bouton.petit { height: 46px; padding: 0 20px; font-size: 15px; background: var(--lime); color: var(--foret); }
.bouton.petit:hover { background: #c3f7a0; }
.bouton:active { transform: scale(.96); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* En-tête */
.entete { position: fixed; z-index: 60; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--bord); pointer-events: none; transition: transform .5s var(--frein); color: var(--foret); }
.entete > * { pointer-events: auto; }
.entete::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s; pointer-events: none; }
.entete.fond::before { opacity: 1; }
.entete.cachee { transform: translateY(-110%); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 26px/1 var(--titre); letter-spacing: -.04em; transition: color .4s; }
.marque img { border-radius: 50%; width: 44px; height: 44px; }
.menu { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, #eef3e9 84%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.menu a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--foret); transition: background .25s; white-space: nowrap; }
.menu a:hover { background: var(--menthe); }
.menu a[aria-current="true"] { background: var(--foret); color: var(--lime); }
.entete-droite { display: flex; align-items: center; gap: 10px; }
.menu-bouton { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: #eef3e9; }
.menu-bouton i { position: absolute; left: 14px; right: 14px; top: 18px; height: 2.5px; border-radius: 3px; background: var(--foret); transition: transform .4s var(--frein), top .3s; } .menu-bouton i + i { top: 26px; }
.menu-bouton[aria-expanded="true"] i { top: 22px; transform: rotate(45deg); } .menu-bouton[aria-expanded="true"] i + i { transform: rotate(-45deg); }
@media (max-width: 1099px) {
  .entete { padding-block: 14px; } .menu-bouton { display: block; }
  .menu { left: auto; right: var(--bord); top: calc(100% - 4px); transform: none; flex-direction: column; min-width: min(260px, 100vw - 2 * var(--bord)); padding: 10px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 2px var(--brume), 0 30px 60px -22px rgba(14, 31, 0, .38); backdrop-filter: none; -webkit-backdrop-filter: none; visibility: hidden; opacity: 0; translate: 0 -10px; transition: opacity .25s, translate .4s var(--frein), visibility 0s .25s; }
  .menu.ouvert { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
  .menu a { padding: 14px 18px; font-size: 18px; }
}
@media (max-height: 540px) { .entete { padding-block: 8px; } }
@media (max-width: 560px) { .marque span { display: none; } }

/* La route de la page : bornes et voiture, à droite */
.bornes { position: fixed; z-index: 50; right: 22px; top: 50%; height: min(62vh, 520px); width: 34px; transform: translateY(-50%); color: var(--foret); transition: color .4s, opacity .4s; }
.bornes::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; background: currentColor; opacity: .2; }
.bornes .fait { position: absolute; left: 50%; top: 0; width: 4px; margin-left: -2px; height: 100%; border-radius: 4px; background: currentColor; transform-origin: 50% 0; transform: scaleY(0); }
.bornes a { position: absolute; left: 50%; width: 30px; height: 30px; margin: -15px; display: grid; place-items: center; text-decoration: none; color: inherit; }
.bornes a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px #fff; transition: transform .3s var(--frein), box-shadow .4s; }
.bornes a:hover::before, .bornes a[aria-current="true"]::before { transform: scale(1.35); }
.bornes a span { position: absolute; right: 36px; padding: 7px 13px; border-radius: 999px; background: var(--foret); color: var(--lime); font-weight: 600; font-size: 14px; white-space: nowrap; opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .2s, transform .35s var(--frein); }
.bornes a:hover span, .bornes a:focus-visible span { opacity: 1; transform: none; }
.bornes .voiture { position: absolute; left: 50%; top: 0; width: 20px; height: 37px; margin: -18px 0 0 -10px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(14, 15, 12, .35)); }
.bornes .voiture img { width: 100%; height: 100%; }
.bornes.cachees { opacity: 0; pointer-events: none; }
@media (max-width: 1239px) { .bornes { display: none; } }

/* Téléphone : proportions exactes de l'écran capturé (393 × 852 points) */
.telephone { --u: calc(var(--tel-h) / 852); position: absolute; width: calc(393 * var(--u)); height: calc(852 * var(--u)); }
.chassis { position: absolute; inset: calc(-10 * var(--u)); border-radius: calc(70 * var(--u)); background: #090c06; box-shadow: 0 0 0 calc(1.1 * var(--u)) #59664f, 0 0 0 calc(3.2 * var(--u)) #27301f, inset 0 0 calc(3 * var(--u)) #2b3324, 0 calc(26 * var(--u)) calc(70 * var(--u)) calc(-14 * var(--u)) rgba(14, 31, 0, .42), 0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(14, 31, 0, .16); }
.chassis::before, .chassis::after { content: ""; position: absolute; background: #39442f; border-radius: calc(3 * var(--u)); }
.chassis::before { left: calc(-5.6 * var(--u)); top: 24%; width: calc(3 * var(--u)); height: calc(58 * var(--u)); box-shadow: 0 calc(80 * var(--u)) 0 #39442f, 0 calc(-76 * var(--u)) 0 calc(-14 * var(--u)) #39442f; }
.chassis::after { right: calc(-5.6 * var(--u)); top: 31%; width: calc(3 * var(--u)); height: calc(96 * var(--u)); }
.ecran { position: absolute; inset: 0; border-radius: calc(60 * var(--u)); overflow: hidden; background: var(--brume); isolation: isolate; transform: translateZ(0); }
.statut { position: absolute; left: 0; right: 0; top: 0; height: calc(59 * var(--u)); color: #0a0c08; transition: color .35s; pointer-events: none; }
.statut .heure { position: absolute; left: calc(50 * var(--u)); top: calc(19 * var(--u)); font: 600 calc(16.5 * var(--u))/1.3 var(--texte); letter-spacing: -.01em; }
.statut .ilot { position: absolute; left: 50%; top: calc(11 * var(--u)); width: calc(124 * var(--u)); height: calc(36 * var(--u)); margin-left: calc(-62 * var(--u)); border-radius: 99px; background: #050704; }
.statut .voyants { position: absolute; right: calc(32 * var(--u)); top: calc(23 * var(--u)); display: flex; align-items: center; gap: calc(6 * var(--u)); height: calc(13 * var(--u)); }
.reseau { width: calc(18 * var(--u)); height: calc(12 * var(--u)); background: linear-gradient(currentColor 0 0) 0 100%/18% 34% no-repeat, linear-gradient(currentColor 0 0) 27% 100%/18% 54% no-repeat, linear-gradient(currentColor 0 0) 62% 100%/18% 76% no-repeat, linear-gradient(currentColor 0 0) 100% 100%/18% 100% no-repeat; }
.wifi { width: calc(16 * var(--u)); height: calc(12 * var(--u)); background: currentColor; clip-path: polygon(50% 100%, 0 28%, 8% 18%, 24% 6%, 50% 0, 76% 6%, 92% 18%, 100% 28%); }
.batterie { position: relative; width: calc(25 * var(--u)); height: calc(12.5 * var(--u)); border-radius: calc(4 * var(--u)); box-shadow: inset 0 0 0 calc(1.2 * var(--u)) color-mix(in srgb, currentColor 45%, transparent); }
.batterie::before { content: ""; position: absolute; inset: calc(2.2 * var(--u)); border-radius: calc(2.2 * var(--u)); background: currentColor; }
.statut.clair { color: #fff; }
.barre-home { position: absolute; left: 50%; bottom: calc(8 * var(--u)); width: calc(139 * var(--u)); height: calc(5 * var(--u)); margin-left: calc(-69.5 * var(--u)); border-radius: 9px; background: #0a0c08; transition: background .35s; pointer-events: none; }
.barre-home.clair { background: #fff; }

/* Compteur à chiffres roulants */
.compteur { position: relative; display: inline-block; }
.lecture { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rouleaux { display: inline-flex; line-height: 1; }
.rouleaux .chiffre { display: inline-block; height: 1em; overflow: hidden; }
.rouleaux .colonne { display: block; transition: transform .8s var(--frein); }
.rouleaux i { display: block; height: 1em; line-height: 1; font-style: normal; font-variant-numeric: tabular-nums; }
.rouleaux .signe { white-space: pre; }

/* Bascule à deux choix */
.bascule, .choix-role { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--foret) 12%, transparent); isolation: isolate; }
.bascule button, .choix-role button { position: relative; z-index: 1; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--foret); white-space: nowrap; transition: color .3s; }
.bascule .curseur, .choix-role .curseur { position: absolute; z-index: 0; left: 5px; top: 5px; bottom: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--foret); transition: transform .55s var(--frein), background .4s; }
.bascule [aria-selected="true"], .choix-role [aria-checked="true"] { color: var(--lime); }
.bascule:has([data-role="conducteur"][aria-selected="true"]) .curseur, .choix-role:has(button:nth-child(2)[aria-checked="true"]) .curseur { transform: translateX(100%); }

/* Pied */
.pied { position: relative; z-index: 12; margin-top: calc(var(--rayon-bloc) * -1); background: #fff; color: var(--ardoise); padding: clamp(56px, 8vw, 120px) 0 40px; overflow: hidden; }
.pied-marque { display: flex; justify-content: space-between; font: 900 min(23.6vw, 394px)/.76 var(--titre); letter-spacing: -.045em; color: var(--lime); margin-bottom: clamp(40px, 6vw, 88px); user-select: none; }
.pied-marque span { display: inline-block; transition: transform .7s var(--frein); transform: translateY(calc((1 - var(--p, 1)) * (30% + var(--k, 0) * 22%))); }
.pied-bas { display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 32px; font-size: 15px; line-height: 1.5; border-top: 2px solid var(--brume); padding-top: 26px; }
.pied a { color: var(--foret); font-weight: 600; }
@media (max-width: 760px) { .pied-bas { grid-template-columns: 1fr; gap: 16px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
