/* Auto Glasse + · KM All One. TOUTES les couleurs du site sont ici : aucune couleur en dur plus bas.
   Pas de charte connue : palette « atelier » choisie avec ui-ux-pro-max (ligne Automotive : fond sombre premium + couleur d'action).
   Graphite de l'atelier, orange des étincelles de meuleuse (l'action, très visible), bleu vitrage pour le « Glasse ».
   Contrastes vérifiés : texte 4.5:1 minimum sur son fond. */
:root {
  --ink: #0b0d10;              /* fond : graphite de l'atelier */
  --ink-2: #111419;            /* sections alternées */
  --ink-3: #181c23;            /* cartes, champs */
  --paper: #f1f3f6;            /* texte, 17:1 sur --ink */
  --muted: #a3acb9;            /* texte secondaire, 8.4:1 sur --ink, 7.6:1 sur --ink-3 */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .4); /* bords des champs et boutons, 3:1 */
  --accent: #ff5a1f;           /* orange étincelle, 6.2:1 sur --ink */
  --accent-ink: #0b0d10;       /* texte posé sur --accent, 6.2:1 */
  --accent-2: #c23a0c;         /* orange brûlé (dégradés de la peinture) */
  --accent-3: #7a1f02;
  --verre: #7fd6f5;            /* bleu vitrage, 11:1 sur --ink */
  --verre-2: #2b6f8c;
  --etincelle: #ffc24a;        /* point chaud des étincelles et du feu moteur */
  --acier: #8a94a3;            /* traits techniques */
  --acier-2: #3a414d;          /* pièces sombres */
  --appret: #5b636f;           /* apprêt gris de carrosserie */
  --pneu: #121418;
  --pneu-2: #262a31;
  --jante: #c9d0d9;
  --phare: #fff3c4;
  --erreur: #ff8a7a;           /* erreurs, 7.9:1 sur --ink-3 */
  --ok: #4fe0a0;
  --barre: color-mix(in srgb, var(--ink-3) 94%, transparent);
  --ombre: #000;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1320px;
  --nav-h: 68px;
  --bar-h: 84px;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 1rem/1.6 var(--f-body); font-variation-settings: 'wdth' 100; overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--verre); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.defs { position: absolute; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow { font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.25rem; }
.h2 {
  font: 850 clamp(2.2rem, 6vw, 4.4rem)/.96 var(--f-display); font-variation-settings: 'wdth' 112;
  letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 1.5rem; text-wrap: balance;
}
.h2 em, .hero__title em { font-style: normal; color: var(--accent); }
h3 { font: 800 1.35rem/1.15 var(--f-display); font-variation-settings: 'wdth' 110; text-transform: uppercase; margin: 0 0 .5rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.petit { font-size: .875rem; color: var(--muted); margin: 1rem 0 0; }
.label { display: block; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }

/* Au doigt ou à la souris : le bon texte d'indice */
.sur-doigt { display: none; }
@media (hover: none) { .sur-souris { display: none; } .sur-doigt { display: inline; } }

/* ---------- Apparitions (main.js, « apparitions ») ---------- */
html.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); }
html.js .revele.vu { opacity: 1; transform: none; }
html.js .services .revele:nth-child(3n+2) { transition-delay: .12s; }
html.js .services .revele:nth-child(3n) { transition-delay: .24s; }
/* Listes : elles glissent de côté, en cascade */
html.js .revele--cote { transform: translateX(-22px); }
html.js .revele--cote:nth-child(2) { transition-delay: .09s; }
html.js .revele--cote:nth-child(3) { transition-delay: .18s; }
/* Visuels : ils se dévoilent depuis le centre */
html.js .revele--image { opacity: 1; transform: none; clip-path: inset(16% 12% round var(--r)); transition: clip-path 1.5s var(--ease); }
html.js .revele--image.vu { clip-path: inset(0 round var(--r)); }
/* Titres : chaque ligne monte de derrière un cache, l'une après l'autre */
.ligne { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ligne > span { display: inline-block; }
html.js .h2 .ligne > span { transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .11s); }
html.js .h2.vu .ligne > span { transform: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 1.5em;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; letter-spacing: .01em;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 28px -14px var(--accent); }
.btn--accent:hover { box-shadow: 0 16px 36px -12px var(--accent); }
.btn--ghost { border-color: var(--line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--paper); }
.btn:hover { transform: translateY(-2px); }
.btn > span[aria-hidden] { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover > span[aria-hidden] { transform: translateX(4px); }
.btn:hover > span[aria-hidden]:first-child { transform: translateX(-4px); }
.btn:active { transform: scale(.97); }

/* ---------- L'ouverture : le rideau métallique se lève ---------- */
.rideau { display: none; }
html.intro .rideau {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; pointer-events: none; will-change: transform;
  background: repeating-linear-gradient(var(--acier-2) 0 22px, var(--pneu-2) 22px 25px, var(--acier-2) 25px 27px);
  box-shadow: 0 30px 60px var(--ombre);
  animation: rideau 1.5s cubic-bezier(.7, 0, .2, 1) 1s forwards;
}
html.intro .rideau::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--pneu); }
.rideau__logo { font: 900 clamp(2rem, 8vw, 4.5rem)/1 var(--f-display); font-variation-settings: 'wdth' 125; text-transform: uppercase; color: var(--ink); opacity: .55; letter-spacing: -.02em; animation: tremble .5s steps(2) .8s 2; }
.rideau__logo b, .nav__brand b, .footer__nom b { color: var(--accent); }
@keyframes rideau { 0% { transform: none; } 12% { transform: translate3d(0, 2%, 0); } 100% { transform: translate3d(0, -104%, 0); } }
@keyframes tremble { 50% { transform: translateY(2px); } }

/* ---------- En-tête : transparent sur le héros, plein ensuite ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter);
  transition: background-color .45s, box-shadow .45s;
}
html.intro .nav { opacity: 0; transform: translateY(-12px); animation: montre .8s var(--ease) 2.5s forwards; }
@keyframes montre { to { opacity: 1; transform: none; } }
.nav--plein { background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; font: 850 1.15rem/1 var(--f-display); font-variation-settings: 'wdth' 118; text-transform: uppercase; letter-spacing: -.01em; }
.nav__logo { width: 36px; height: 36px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav__logo circle { stroke: var(--line-2); }
.nav__logo .plus { stroke: var(--accent); stroke-width: 3; }
.nav__links { display: none; gap: .25rem; }
.nav__links a { text-decoration: none; font-weight: 600; min-height: 44px; padding: 0 .9rem; border-radius: 10px; display: inline-flex; align-items: center; transition: background-color .25s, color .25s; }
.nav__links a:hover { background: var(--line); color: var(--accent); }
.nav__cta { display: none; }
.nav__tel { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); }
.nav__tel svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 900px) { .nav__links, .nav__cta { display: inline-flex; } .nav__tel { display: none; } }

/* ---------- 01 · Héros ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: start; overflow: hidden; isolation: isolate; }
.hero__fond { position: absolute; inset: 0; z-index: -1; }
.hero__mur { position: absolute; inset: 0; width: 100%; height: 100%; }
.trou { fill: var(--line); }
.panneau { opacity: .9; }
.outils { fill: var(--ink-3); stroke: var(--line); stroke-width: 2; }
.outil--pistolet { fill: var(--acier-2); opacity: .5; }
.neon { fill: var(--paper); filter: drop-shadow(0 0 18px var(--verre)); }
.cone { opacity: .9; }
.s-lampe-1 { stop-color: var(--verre); stop-opacity: .16; }
.s-lampe-0 { stop-color: var(--verre); stop-opacity: 0; }
.sol { fill: var(--ink-2); }
.sol__ligne { stroke: var(--line-2); stroke-width: 1.5; fill: none; opacity: .5; }
.sol__marquage { stroke: var(--etincelle); stroke-width: 6; stroke-dasharray: 18 14; opacity: .35; fill: none; }
/* Néons qui s'allument en grésillant pendant que le rideau se lève */
html.intro .neon { animation: gresille 1.3s steps(1) .3s both; }
html.intro .neon--2 { animation-delay: .55s; }
html.intro .cone { animation: allume 1.3s steps(1) .3s both; }
@keyframes gresille { 0% { opacity: .1; } 15% { opacity: 1; } 22% { opacity: .2; } 40% { opacity: 1; } 46% { opacity: .3; } 60%, 100% { opacity: 1; } }
@keyframes allume { 0% { opacity: 0; } 15% { opacity: .9; } 22% { opacity: 0; } 40% { opacity: .9; } 46% { opacity: .1; } 60%, 100% { opacity: .9; } }

.hero__voiture { position: absolute; left: 50%; bottom: calc(26% - 16px); width: min(130vw, 680px); max-width: none; transform: translateX(-50%); overflow: visible; }
@media (min-width: 900px) { .hero__voiture { left: auto; right: -4%; bottom: 6%; width: min(64vw, 1000px); transform: none; } }
html.intro .hero__voiture { animation: arrive 1.6s var(--ease) 1.5s both; }
@keyframes arrive { from { opacity: 0; transform: translate3d(calc(-50% + 30px), 0, 0); } }
@media (min-width: 900px) { @keyframes arrive { from { opacity: 0; transform: translate3d(60px, 0, 0); } } }
.ombre { fill: var(--ombre); opacity: .6; filter: blur(6px); }
.peinture { fill: url(#g-peinture); }
.s-peinture-1 { stop-color: var(--accent); }
.s-peinture-2 { stop-color: var(--accent-2); }
.s-peinture-3 { stop-color: var(--accent-3); }
.vitre { fill: url(#g-vitre); stroke: var(--pneu); stroke-width: 3; }
.s-vitre-1 { stop-color: var(--verre); stop-opacity: .85; }
.s-vitre-2 { stop-color: var(--verre-2); stop-opacity: .9; }
.s-reflet-0 { stop-color: var(--paper); stop-opacity: 0; }
.s-reflet-1 { stop-color: var(--paper); stop-opacity: .55; }
.trait { fill: none; stroke: var(--ombre); stroke-opacity: .45; stroke-width: 2; stroke-linecap: round; }
.poignee, .retro { fill: var(--pneu); }
.phare { fill: var(--phare); }
.feu { fill: var(--accent-3); }
.pneu { fill: var(--pneu); }
.pneu__flanc { fill: none; stroke: var(--pneu-2); stroke-width: 3; }
.disque { fill: var(--acier-2); }
.etrier { fill: var(--accent); }
.jante { fill: none; stroke: var(--jante); stroke-width: 3; }
.rayons, .ecrous { fill: var(--jante); }
.moyeu { fill: var(--acier); }
.hero__brillance { transform: translateX(var(--brille, 0px)); transition: transform 1.4s var(--ease); }
html.intro .hero__brillance { animation: brille 1.8s var(--ease) 2.4s both; }
@keyframes brille { from { transform: translateX(0); } to { transform: translateX(1000px); } }

.hero__inner { position: relative; width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--nav-h) + clamp(36px, 10vh, 110px)) var(--gutter) 0; }
@media (min-width: 900px) { .hero { align-items: center; } .hero__inner { padding-top: var(--nav-h); padding-bottom: 12vh; } }
.hero__title { font: 900 clamp(2.4rem, 11.6vw, 6rem)/.9 var(--f-display); font-variation-settings: 'wdth' 118; letter-spacing: -.03em; text-transform: uppercase; margin: 0; text-shadow: 0 4px 40px var(--ombre); }
html.intro .hero__title .ligne > span { animation: monte 1.1s var(--ease) both; animation-delay: calc(1.75s + var(--i, 0) * .11s); }
.hero__title .ligne:nth-child(2) { --i: 1; } .hero__title .ligne:nth-child(3) { --i: 2; }
@keyframes monte { from { transform: translate3d(0, 108%, 0); } }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin: 1.75rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__avis { margin-top: 1.75rem; color: var(--muted); font-size: .95rem; }
.hero__avis b { color: var(--paper); }
.etoiles { color: var(--etincelle); letter-spacing: .1em; }
html.intro .hero__inner > :not(.hero__title) { animation: leve 1.1s var(--ease) 2.1s both; }
@keyframes leve { from { opacity: 0; transform: translateY(26px); } }
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: block; } .hero__cta.desktop-only { display: flex; } }
@media (min-width: 900px) { .hero__title { font-size: clamp(3.4rem, 7vw, 7.4rem); } }
@media (min-width: 900px) and (max-height: 760px) { .hero__title { font-size: clamp(3rem, 6vw, 5.6rem); } }

/* Les étincelles que laissent la souris et le doigt (main.js, « heros ») */
.hero__etincelles { position: absolute; inset: 0; pointer-events: none; }
.etincelle {
  position: absolute; width: 2px; height: 14px; margin: -7px 0 0 -1px; border-radius: 2px;
  background: linear-gradient(var(--phare), var(--etincelle) 40%, var(--accent));
  box-shadow: 0 0 8px var(--etincelle); will-change: transform, opacity;
  animation: gicle var(--d, .8s) cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes gicle {
  from { transform: translate3d(0, 0, 0) rotate(var(--a)) scaleY(1.4); opacity: 1; }
  to { transform: translate3d(var(--x), var(--y), 0) rotate(var(--a)) scaleY(.3); opacity: 0; }
}
.eclat { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(var(--phare), var(--etincelle) 30%, transparent 70%); animation: eclat .45s ease-out forwards; }
@keyframes eclat { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.hero__indice { position: absolute; left: var(--gutter); right: var(--gutter); text-align: center; bottom: calc(var(--bar-h) + 28px); margin: 0; font: 500 .75rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 1.2s ease; }
.hero.is-pret .hero__indice { opacity: 1; }
@media (min-width: 900px) { .hero__indice { left: auto; text-align: right; bottom: 2.2vh; } }
.hero.a-joue .hero__indice { opacity: 0; }

/* ---------- Bandeau qui défile ---------- */
.bandeau { overflow: hidden; background: var(--accent); color: var(--accent-ink); padding: 16px 0; border-block: 3px solid var(--ink); }
.bandeau__piste { display: flex; align-items: center; gap: 28px; width: max-content; animation: defile 46s linear infinite; }
.bandeau span { font: 900 clamp(1.4rem, 3.5vw, 2.2rem)/1 var(--f-display); font-variation-settings: 'wdth' 120; text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; }
.bandeau i { width: 14px; height: 14px; border: 3px solid currentColor; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px currentColor; }
@keyframes defile { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 02 · L'atelier : la scène pilotée par le défilement ---------- */
.atelier { position: relative; background: radial-gradient(ellipse at 50% 70%, var(--ink-3), var(--ink) 70%); }
html.js .atelier { height: 520vh; }
@media (max-width: 899px) { html.js .atelier { height: 430vh; } }
.atelier__colle { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
html.js .atelier__colle {
  position: sticky; top: 0; height: 100svh; padding: calc(var(--nav-h) + 12px) 0 calc(var(--bar-h) + 16px);
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden;
}
@media (min-width: 900px) { html.js .atelier__colle { padding-bottom: 36px; } }
.atelier__tete .h2 { font-size: clamp(1.9rem, 5vw, 3.8rem); margin-bottom: 0; }
.atelier__scene { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.scene { width: 100%; max-width: 1180px; max-height: 100%; overflow: visible; }
.scene .appret { fill: var(--appret); }
.scene .contour { fill: none; stroke: var(--paper); stroke-opacity: 0; stroke-width: 2; stroke-dasharray: 6 6; }
.chandelles path { fill: var(--etincelle); stroke: var(--acier-2); stroke-width: 3; stroke-linejoin: round; }
.chandelles path + path { fill: none; stroke: var(--etincelle); stroke-width: 5; stroke-linecap: round; }
.moteur__bloc { fill: var(--acier); }
.moteur__culasse { fill: var(--jante); }
.moteur__pistons rect { fill: var(--etincelle); }
.moteur__poulie { fill: var(--pneu-2); stroke: var(--jante); stroke-width: 2; }
.parechoc { fill: var(--appret); stroke: var(--pneu); stroke-width: 1; }
.bosses ellipse { fill: var(--ombre); opacity: .35; }
.bosses path { fill: none; stroke: var(--ombre); stroke-opacity: .55; stroke-width: 2.5; stroke-linecap: round; }
.bosses .rayure { stroke: var(--paper); stroke-opacity: .7; stroke-width: 1.6; }
.fissures { fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-linecap: round; }
.reperes circle:first-child { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.reperes circle + circle { fill: var(--accent); }
.reperes > g > circle:first-child { animation: repere 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes repere { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.scan { stroke: var(--verre); stroke-width: 3; filter: drop-shadow(0 0 8px var(--verre)); }
.marteau { fill: var(--jante); stroke: var(--pneu); stroke-width: 2; }
.marteau rect { fill: var(--accent-2); }
.impact path { stroke: var(--etincelle); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--etincelle)); }
.pistolet > path { fill: var(--jante); stroke: var(--pneu); stroke-width: 2; }
.brume circle { fill: var(--accent); opacity: .45; }
.faisceau { opacity: 0; }
.s-phare-1 { stop-color: var(--phare); stop-opacity: .75; }
.s-phare-0 { stop-color: var(--phare); stop-opacity: 0; }
/* Sans JS ou animations réduites : la voiture est finie, les outils rangés */
.scan, .marteau, .impact, .pistolet, .bosses, .reperes, .fissures, .chandelles, .moteur { opacity: 0; }
.reflet { transform: translateX(-200px); }
html.js .roue--ar { transform: translate(190px, 232px); }
html.js .roue--av { transform: translate(630px, 232px); }
.roue--ar { transform: translate(190px, 232px); }
.roue--av { transform: translate(630px, 232px); }

.atelier__hud { display: grid; gap: 10px 2rem; align-items: end; }
@media (min-width: 900px) { .atelier__hud { grid-template-columns: auto 1fr; } }
.atelier__compte { font: 500 .8rem/1 var(--f-mono); letter-spacing: .12em; color: var(--muted); margin: 0; }
.atelier__compte b { font: 900 clamp(2.4rem, 6vw, 4rem)/1 var(--f-display); font-variation-settings: 'wdth' 120; color: var(--accent); letter-spacing: -.02em; vertical-align: -.12em; }
.atelier__texte { min-height: 5.6em; transition: opacity .35s, transform .45s var(--ease); }
.atelier__texte.change { opacity: 0; transform: translateY(-10px); transition-duration: .2s; }
.atelier__titre { font: 850 clamp(1.25rem, 2.6vw, 1.9rem)/1.1 var(--f-display); font-variation-settings: 'wdth' 112; text-transform: uppercase; margin: 0 0 .35rem; }
.atelier__desc { color: var(--muted); margin: 0; max-width: 58ch; }
.atelier__barre { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.atelier__barre i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--etincelle)); transform-origin: left; transform: scaleX(1); }
/* Sans JS : la liste des étapes se lit normalement, le compteur se cache */
.atelier__compte, .atelier__texte, .atelier__barre { display: none; }
.atelier__etapes { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-left: 1.4em; color: var(--muted); display: grid; gap: .5rem; }
html.js .atelier__compte { display: block; }
html.js .atelier__texte, html.js .atelier__barre { display: block; }
html.js .atelier__etapes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
@media (max-width: 899px) { .atelier__texte { min-height: 7.4em; } .atelier__desc { font-size: .95rem; } }
@media (max-height: 640px) { .atelier__tete .h2 { font-size: 1.6rem; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--alt { background: var(--ink-2); }

/* ---------- 03 · Services ---------- */
.services { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.service {
  position: relative; overflow: hidden; padding: 28px 26px 26px; border-radius: var(--r);
  background: var(--ink-3); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease);
}
.service:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.service > * { position: relative; }
.service p { color: var(--muted); margin: 0; }
.service__num { position: absolute; top: 24px; right: 24px; font: 500 .75rem/1 var(--f-mono); color: var(--muted); }
/* Lueur qui suit la souris (main.js pose --mx / --my) */
[data-halo]::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
[data-halo]:hover::before { opacity: 1; }

/* Les pictos : chacun bouge selon son métier, au survol ou une fois quand la carte arrive */
.picto { width: 78px; height: 78px; padding: 11px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); margin-bottom: 1.25rem; fill: none; stroke: var(--paper); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.picto--carrosserie .p-marteau { fill: var(--accent); stroke: none; transform-origin: 40px 40px; }
.picto--carrosserie .tole-bosse { stroke: var(--accent); }
.picto--peinture > path { fill: var(--ink-3); }
.picto--peinture .p-brume circle { fill: var(--accent); stroke: none; transform-box: fill-box; transform-origin: center; }
.picto--mecanique .p-piston { fill: var(--accent); stroke: none; }
.picto--mecanique .vilo { stroke: var(--acier); }
.picto--pneus .p-pneu { transform-origin: 32px 32px; }
.picto--pneus .p-pneu circle:first-child { stroke-width: 6; stroke: var(--paper); }
.picto--pneus .p-pneu path { stroke: var(--accent); }
.picto--vitrage > path { stroke: var(--verre); fill: color-mix(in srgb, var(--verre) 14%, transparent); }
.picto--vitrage .p-reflet { fill: var(--paper); stroke: none; opacity: .8; }
.picto--location .p-cle { transform-origin: 22px 32px; }
.picto--location .p-cle circle:first-child { fill: var(--accent); stroke: var(--accent); }
.picto--location .p-cle circle + circle { stroke: var(--ink-3); }

.service:hover .p-marteau, .service.joue .p-marteau { animation: tape .9s var(--ease) 2; }
@keyframes tape { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-28deg); } 55% { transform: rotate(6deg); } }
.service:hover .tole-bosse, .service.joue .tole-bosse { animation: redresse 1.8s var(--ease) forwards; }
@keyframes redresse { 0% { d: path('M18 50q14-10 28 0'); } 100% { d: path('M18 50q14 0 28 0'); } }
.service:hover .p-brume circle, .service.joue .p-brume circle { animation: brume 1.1s ease-out 2; }
.p-brume circle:nth-child(2) { animation-delay: .1s !important; } .p-brume circle:nth-child(3) { animation-delay: .2s !important; }
@keyframes brume { 0% { transform: translateX(-10px) scale(.2); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateX(6px) scale(1.4); opacity: 0; } }
.service:hover .p-piston, .service.joue .p-piston { animation: pompe .5s ease-in-out 4 alternate; }
@keyframes pompe { to { transform: translateY(12px); } }
.service:hover .p-pneu, .service.joue .p-pneu { animation: roule 1.4s var(--ease); }
@keyframes roule { to { transform: rotate(360deg); } }
.picto--vitrage .p-reflet { transform: translateX(-30px); opacity: 0; }
.service:hover .p-reflet, .service.joue .p-reflet { animation: reflet 1.2s var(--ease); }
@keyframes reflet { 0% { transform: translateX(-12px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateX(34px); opacity: 0; } }
.service:hover .p-cle, .service.joue .p-cle { animation: contact 1.2s var(--ease); }
@keyframes contact { 40%, 70% { transform: rotate(-35deg); } }

/* ---------- 04 · Sous le capot ---------- */
.capot__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .capot__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); } }
.puces { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.puces li { display: flex; align-items: center; gap: .8rem; font-weight: 600; padding: 14px 18px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); }
.puces li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.moteur4 { position: relative; margin: 0; padding: clamp(18px, 3vw, 32px); border-radius: var(--r); background: var(--ink-3); border: 1px solid var(--line); }
.moteur4 > svg { width: 100%; height: auto; overflow: visible; }
.m4__bloc { fill: var(--acier-2); stroke: var(--acier); stroke-width: 2; }
.m4__culasse { fill: var(--acier); }
.m4__bougies rect { fill: var(--jante); }
.m4__cyl rect { fill: var(--pneu); stroke: var(--line-2); stroke-width: 1.5; }
.m4__feux ellipse { fill: var(--etincelle); opacity: 0; filter: drop-shadow(0 0 12px var(--accent)); }
.m4__pistons g { fill: var(--jante); }
.m4__pistons path { stroke: var(--acier-2); stroke-width: 2; }
.m4__bielles line { stroke: var(--acier); stroke-width: 9; stroke-linecap: round; }
.m4__vilo { stroke: var(--acier-2); stroke-width: 12; stroke-linecap: round; }
.m4__manetons circle { fill: var(--accent); }
.regime { position: absolute; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); width: 132px; padding: 10px 12px 8px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 85%, transparent); border: 1px solid var(--line); text-align: center; }
.regime svg { width: 100%; height: auto; }
.regime__fond { fill: none; stroke: var(--line-2); stroke-width: 6; stroke-linecap: round; }
.regime__rouge { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.regime__aiguille { stroke: var(--paper); stroke-width: 3; stroke-linecap: round; transform-origin: 60px 64px; transform: rotate(-70deg); }
.regime circle { fill: var(--paper); }
.regime p { margin: 2px 0 0; font: 500 .75rem/1.2 var(--f-mono); color: var(--muted); }
.regime b { color: var(--paper); font-weight: 500; }
.moteur4__note { margin-top: 12px; font: 500 .75rem/1.4 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; max-width: calc(100% - 150px); }

/* ---------- 05 · Pneus ---------- */
.pneus__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .pneus__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); } }
.pneus__visuel { max-width: 520px; width: 100%; margin-inline: auto; }
.gros-pneu { width: 100%; height: auto; overflow: visible; }
.gros-pneu__tourne { transform-origin: 200px 200px; }
.gp__gomme { fill: var(--pneu); }
.gp__sculptures rect { fill: var(--pneu-2); }
.gp__flanc { fill: var(--pneu-2); stroke: var(--pneu); stroke-width: 4; }
.gp__texte { font: 900 30px var(--f-display); font-variation-settings: 'wdth' 125; letter-spacing: 2px; fill: var(--acier); }
.gp__texte--petit { font: 500 15px var(--f-mono); letter-spacing: 1px; }
.gp__texte tspan { transition: fill .4s; }
.gp__texte tspan.on { fill: var(--accent); }
.gp__jante { fill: var(--acier-2); stroke: var(--jante); stroke-width: 6; }
.gp__branches path { fill: var(--jante); }
.gp__moyeu { fill: var(--accent); stroke: var(--jante); stroke-width: 4; }
.codes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.codes button {
  min-width: 56px; min-height: 48px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font: 500 1rem/1 var(--f-mono); background: var(--ink-3); border: 1px solid var(--line-2);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.codes button:hover { border-color: var(--accent); transform: translateY(-2px); }
.codes button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.code-info { min-height: 8.5em; padding: 22px 24px; border-radius: var(--r); background: var(--ink-3); border: 1px solid var(--line); }
.code-info > * { transition: opacity .4s ease, transform .5s var(--ease); }
.code-info.change > * { opacity: 0; transform: translateY(-8px); transition-duration: .2s; }
.code-info__titre { font: 850 1.3rem/1.15 var(--f-display); font-variation-settings: 'wdth' 110; text-transform: uppercase; margin: 0 0 .4rem; }
.code-info__texte { color: var(--muted); margin: 0; }

/* ---------- 06 · Devis ---------- */
.devis__grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .devis__grid { grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } .devis__intro { position: sticky; top: calc(var(--nav-h) + 40px); } }
.devis { padding: clamp(20px, 3.5vw, 40px); border-radius: var(--r); background: var(--ink-3); border: 1px solid var(--line); }
.devis__etapes { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font: 500 .75rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.devis__etapes li { position: relative; display: flex; align-items: center; gap: 8px; padding-top: 12px; }
.devis__etapes li::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--line); }
.devis__etapes li::after { content: ''; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.devis__etapes li.is-on::after, .devis__etapes li.is-fait::after { transform: scaleX(1); }
.devis__etapes li.is-on, .devis__etapes li.is-fait { color: var(--paper); }
.devis__etapes span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; flex: none; }
.devis__pas { border: 0; padding: 0; margin: 0; min-width: 0; }
.devis__pas.entre, .devis__fin.entre { animation: entre .6s var(--ease); }
@keyframes entre { from { opacity: 0; transform: translateX(24px); } }
.devis__pas.entre-retour { animation: entreRetour .6s var(--ease); }
@keyframes entreRetour { from { opacity: 0; transform: translateX(-24px); } }
legend { font: 850 clamp(1.3rem, 2.6vw, 1.7rem)/1.15 var(--f-display); font-variation-settings: 'wdth' 110; text-transform: uppercase; padding: 0; margin-bottom: .4rem; }
.aide { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }
.puces-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puces-choix label { position: relative; cursor: pointer; }
.puces-choix input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puces-choix span {
  display: inline-flex; align-items: center; gap: .5em; min-height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-weight: 600; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.puces-choix span::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 2px solid currentColor; flex: none; transition: background-color .2s; }
.puces-choix label:hover span { border-color: var(--paper); }
.puces-choix input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.puces-choix input:checked + span::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--accent); }
.puces-choix input:focus-visible + span { outline: 2px solid var(--verre); outline-offset: 3px; }
.puces-choix input:active + span { transform: scale(.96); }
.zones { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 640px) { .zones { grid-template-columns: 170px 1fr; } }
.zones__voiture { width: 150px; margin-inline: auto; overflow: visible; }
@media (min-width: 640px) { .zones__voiture { width: 100%; } }
.zones__roue { fill: var(--pneu); stroke: var(--line-2); }
.zones__voiture [data-zone] { fill: var(--ink-2); stroke: var(--acier); stroke-width: 1.5; cursor: pointer; transition: fill .3s; }
.zones__voiture [data-zone]:hover { fill: color-mix(in srgb, var(--accent) 30%, var(--ink-2)); }
.zones__voiture [data-zone].on { fill: var(--accent); animation: tic .4s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes tic { 50% { transform: scale(.94); } }
.puces-choix--zones span { min-height: 44px; padding: 0 14px; font-size: .9rem; }
.devis__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 1.75rem; }
.devis__nav .btn--accent { margin-left: auto; }
.champs { display: grid; gap: 4px 16px; margin-top: 1rem; }
@media (min-width: 640px) { .champs { grid-template-columns: 1fr 1fr; } .field--large { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--paper); font: inherit; font-size: 1rem; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--verre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--verre) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--erreur); }
.field__err { min-height: 1.4em; margin: 4px 0 8px; font-size: .875rem; color: var(--erreur); }
#besoin-err { margin-top: 10px; }
.form__note { margin: 1.25rem 0 0; font-size: .875rem; color: var(--muted); }
.devis__fin { text-align: center; padding: 1rem 0; outline: none; }
.devis__fin svg { width: 72px; height: 72px; margin: 0 auto 1rem; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.devis__fin path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: coche .7s var(--ease) .25s forwards; }
@keyframes coche { to { stroke-dashoffset: 0; } }
.devis__fin-titre { font: 850 1.5rem/1.15 var(--f-display); font-variation-settings: 'wdth' 110; text-transform: uppercase; }
.devis__fin p:not(.devis__fin-titre) { color: var(--muted); }
.devis__fin .btn { margin-top: 1rem; }

/* ---------- 07 · Nous trouver ---------- */
.acces__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .acces__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 7vw, 7rem); } }
.infos { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.infos a, .infos li > span:not(.label) { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.infos a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.acces__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.confiance { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { position: relative; overflow: hidden; padding: 26px 22px; border-radius: var(--r); background: var(--ink-3); border: 1px solid var(--line); }
.note > * { position: relative; }
.note__chiffre { margin: 0; font: 900 clamp(2.6rem, 6vw, 4rem)/1 var(--f-display); font-variation-settings: 'wdth' 120; letter-spacing: -.03em; }
.note__chiffre span { font-size: .45em; color: var(--muted); }
.note__etoiles { display: flex; gap: 4px; margin: .6rem 0 .4rem; }
.note__etoiles i { width: 18px; height: 18px; background: var(--etincelle); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
html.js .note.revele .note__etoiles i { transform: scale(0); transition: transform .5s var(--ease); }
html.js .note.vu .note__etoiles i { transform: none; }
.note__etoiles i:nth-child(2) { transition-delay: .3s !important; } .note__etoiles i:nth-child(3) { transition-delay: .38s !important; }
.note__etoiles i:nth-child(4) { transition-delay: .46s !important; } .note__etoiles i:nth-child(5) { transition-delay: .54s !important; }
.note__etoiles i:nth-child(1) { transition-delay: .22s; }
.note__texte { margin: 0; color: var(--muted); }
.note--depuis .note__texte:first-child { margin-bottom: .6rem; }
.plaque {
  grid-column: 1 / -1; display: flex; align-items: stretch; height: 74px; border-radius: 10px; overflow: hidden;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--acier), 0 20px 40px -20px var(--ombre);
}
.plaque__bleu { display: grid; place-items: center; width: 44px; background: var(--verre-2); color: var(--paper); font: 800 1rem var(--f-display); }
.plaque__texte { flex: 1; display: grid; place-items: center; font: 900 clamp(1.3rem, 4.5vw, 2rem)/1 var(--f-display); font-variation-settings: 'wdth' 90; letter-spacing: .08em; }
.plaque__bleu--971 { font-size: .85rem; }

/* ---------- Pied de page ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__grid { display: grid; gap: .25rem; }
.footer a { display: inline-block; padding: 12px 0; text-underline-offset: 3px; }
.footer__nom { font: 900 1.6rem var(--f-display); font-variation-settings: 'wdth' 120; text-transform: uppercase; color: var(--paper); margin-bottom: .75rem; }
.footer__maquette { font-size: .8125rem; margin-top: .75rem; }

/* ---------- Barre d'actions mobile ---------- */
.actionbar {
  position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1.25fr 1fr 1fr; gap: 6px; padding: 6px; border-radius: 20px;
  background: var(--barre); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px var(--ombre);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .6s var(--ease);
}
html.js .actionbar { transform: translate3d(0, 150%, 0); }
html.js .actionbar.is-visible { transform: none; }
.actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; border-radius: 14px; font-size: .75rem; font-weight: 700; text-decoration: none; }
.actionbar a:active { background: var(--line); }
.actionbar a.is-main { background: var(--accent); color: var(--accent-ink); }
.actionbar svg { width: 21px; height: 21px; fill: currentColor; }
@media (min-width: 900px) { .actionbar { display: none; } }

/* ---------- Page intérieure (mentions légales) ---------- */
.page-tete { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); }
.prose { max-width: 70ch; color: var(--muted); }
.prose h2 { font: 850 1.3rem/1.2 var(--f-display); text-transform: uppercase; color: var(--paper); margin: 2.5rem 0 .75rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .bandeau__piste { animation: none; }
}

/* Animations réduites : la scène de l'atelier ne s'épingle pas, la voiture est montrée finie avec la liste des étapes */
html.js .atelier.calme { height: auto; }
html.js .atelier.calme .atelier__colle { position: static; height: auto; display: block; padding: clamp(64px, 9vw, 120px) 0; }
html.js .atelier.calme .atelier__texte, html.js .atelier.calme .atelier__barre, html.js .atelier.calme .atelier__compte { display: none; }
html.js .atelier.calme .atelier__etapes { position: static; width: auto; height: auto; clip: auto; overflow: visible; margin-top: 1.5rem; }

/* Téléphone : la scène de l'atelier passe en plein cadre, la voiture déborde un peu des deux côtés */
@media (max-width: 899px) {
  .atelier__scene { padding: 0; }
  .atelier__tete .h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}
@media (max-width: 639px) { .scene { width: 122vw; max-width: none; } }
@media (max-width: 639px) {
  .service { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; padding: 20px 18px; }
  .service .picto { grid-row: span 2; width: 64px; height: 64px; padding: 9px; margin: 0; }
  .service h3 { font-size: 1.15rem; padding-right: 2rem; }
  .service p { font-size: .95rem; }
  .service__num { top: 20px; right: 18px; }
}
