/* ==========================================================================
   A.M.E · proposition v2 « premium »
   Catalogue d'ingénierie : fond blanc, grandes respirations, une prestation = un texte + une grande image.
   Une seule famille de caractères, le bleu AME réservé aux actions, un seul aplat sombre (bleu marine).
   Thème clair uniquement (choix de Valentin, 09/10) : la page ne suit pas le mode sombre du système.
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --surface: #F4F5F7;
  --ink: #0F1217;
  --ink-2: #4A5160;
  --ink-3: #626A7A;
  --line: #E3E6EA;
  --accent: #2B48A4;
  --accent-hover: #223C8C;
  --on-accent: #FFFFFF;
  --deep: #111B3D;
  --deep-line: #26325A;
  --on-deep: #FFFFFF;
  --on-deep-2: #B8C2E0;
  --studio: #F2F3F5;
  --todo: #E4E9F7;
  --star: #E0A019;
  --wood: #D8C29E;
  --open: #1E8E4E;
  --shadow: rgba(15, 18, 23, 0.08);
  /* Dessin du moteur */
  --motor: #2B48A4;
  --steel: #D5DADF;
  --steel-2: #A3ACB5;
  --steel-3: #E6E9EC;
  --alu: #F6F7F8;
  --hatch: #B5BDC5;
  --copper: #B65A2B;
  --copper-hi: #E7A26C;
  --copper-lo: #6E2F13;
  --paper: #FFFFFF;

  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(64px, 10vw, 148px);
  --radius: 6px;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "ss01";
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.todo { background: var(--todo); padding: 1px 6px; border-radius: 3px; font-size: 0.9em; }

/* --------------------------------------------------------------------------
   Typo
   -------------------------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-weight: 500; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.038em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -0.032em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; }
.muted { color: var(--ink-3); }

.label {
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { max-width: 34em; font-size: clamp(1.1rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--surface); }
.btn--small { min-height: 42px; padding: 9px 20px; font-size: 0.94rem; }
.ico { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 200ms ease;
}
.link:hover { border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { height: 48px; width: auto; flex: none; }
/* Logo vectoriel (reconstruit d'après la plaquette) : l'engrenage peut tourner derrière les lettres */
@property --h { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.brand .logo { width: 47px; height: 48px; flex: none; overflow: visible; }
.logo__gear { fill: #989FA1; stroke: #989FA1; stroke-width: 3; stroke-linejoin: round; transform-box: view-box; transform-origin: 761.48px 125.57px; }
.logo__ring { fill: #989FA1; }
.logo__letters { stroke: #FFFFFF; stroke-width: 6.5; stroke-linejoin: round; paint-order: stroke; }
.logo__a, .logo__e { fill: #444041; }
.logo__m { fill: #2B48A4; }
@media (prefers-reduced-motion: no-preference) {
  .logo { transition: --h 0.9s cubic-bezier(0.3, 1.25, 0.5, 1); }
  .logo__gear { transform: rotate(calc(var(--g, 0) * 1deg + var(--h))); }
  .brand:hover .logo, .brand:focus-visible .logo { --h: 90deg; }
}
.brand__name { font-size: 0.86rem; font-weight: 500; line-height: 1.25; color: var(--ink-2); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) { font-size: 0.95rem; text-decoration: none; color: var(--ink-2); transition: color 200ms ease; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__tel { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink) !important; }
@media (max-width: 1060px) { .nav__sec { display: none; } }
@media (max-width: 720px) {
  .nav__links { gap: 0; }
  .nav__links .nav__tel, .nav__links .btn { display: none; }
  .nav__inner { height: 68px; }
}

/* Barre d'action sur mobile : appeler ou demander un devis, toujours à portée de pouce */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .callbar .btn { min-height: 46px; padding-inline: 14px; font-size: 0.92rem; gap: 6px; white-space: nowrap; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(40px, 7vw, 104px) clamp(56px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.hero__tel span { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 200ms ease; }
.hero__tel:hover span { border-color: var(--ink); }

.hero__figure { margin: 0; justify-self: center; width: 100%; max-width: 580px; }
.hero__figure figcaption { margin-top: 12px; text-align: center; font-size: 0.86rem; color: var(--ink-3); }
.hero__note {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.hero__note li { display: inline-flex; align-items: center; gap: 8px; }
.hero__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.hero__rating:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.ico--star { fill: var(--star); stroke: none; }

/* Moteur synchrone du hero : trois calques superposés (stator fixe, champ tournant, rotor).
   Le rotor et le champ tournent par « transform » sur leur propre calque : la carte graphique s'en charge, rien n'est redessiné. */
.motor { position: relative; width: 100%; aspect-ratio: 640 / 520; }
.motor > svg, .motor__glow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.motor__rotor { transform-origin: 50% 50%; will-change: transform; }
.motor__glow {
  pointer-events: none;
  -webkit-mask: url("img/moteur-encoches.svg") center / 100% 100% no-repeat;
  mask: url("img/moteur-encoches.svg") center / 100% 100% no-repeat;
}
/* 8 lobes lumineux, un par aimant, juste en avance sur le rotor */
.motor__field {
  position: absolute;
  left: 50%; top: 50%;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 221, 184, 0.92) 0deg, rgba(255, 221, 184, 0) 15deg, rgba(255, 221, 184, 0) 30deg, rgba(255, 221, 184, 0.92) 45deg);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: transform, opacity;
}
.motor.is-live .motor__field { opacity: 1; }

.m-frame rect { fill: var(--motor); }
.m-shell { fill: none; stroke: var(--motor); stroke-width: 14; }
.m-stator { fill: none; stroke: var(--steel); stroke-width: 66; }
.m-stator-hatch { fill: none; stroke: url(#hatch); stroke-width: 66; opacity: 0.45; }
.m-hatch { stroke: var(--hatch); stroke-width: 1; }
.m-slots rect { fill: url(#cu); stroke: var(--copper-lo); stroke-width: 0.6; }
.m-core { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1; }
.m-core-line { fill: none; stroke: var(--steel-2); stroke-width: 0.8; }
.m-mag path { stroke: var(--paper); stroke-width: 1; }
.m-mag--n path { fill: var(--deep); }
.m-mag--s path { fill: var(--steel-2); }
.m-flux path { fill: none; stroke: var(--accent); stroke-width: 1.1; stroke-linecap: round; opacity: 0.4; }
.m-vent { fill: var(--paper); stroke: var(--steel-2); stroke-width: 1; }
.m-shaft { fill: var(--steel-2); }
.m-shaft-hatch { fill: url(#hatch); opacity: 0.5; }
.m-key { fill: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .m-slots rect {
    transform-box: fill-box;
    transform-origin: center;
    animation: slot 0.5s cubic-bezier(0.2, 1.2, 0.4, 1) both;
    animation-delay: calc(0.3s + var(--i) * 30ms);
  }
  /* Entrée : le moteur apparaît, le stator se bobine, les aimants se posent, puis les lignes de champ se tracent */
  .motor { animation: motor-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both; }
  .m-mag { transform-box: fill-box; transform-origin: center; animation: mag-in 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) both; animation-delay: calc(1.05s + var(--k) * 70ms); }
  .m-flux path { stroke-dasharray: 1; animation: flux-in 1.2s cubic-bezier(0.3, 0.6, 0.2, 1) both; animation-delay: calc(2.1s + var(--k) * 60ms); }
  /* Sans JavaScript seulement : avec JS, le rotor est piloté par le script (inertie au défilement) */
  html:not(.js) .motor__rotor { animation: spinup 2.6s cubic-bezier(0.4, 0, 0.8, 0.6) 1.7s both, spin 24s linear 4.3s infinite; }
  .hero__text > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.08s; }
  .hero__text > :nth-child(3) { animation-delay: 0.16s; }
  .hero__text > :nth-child(4) { animation-delay: 0.24s; }
}
@keyframes slot { from { opacity: 0; transform: scale(0.3); } }
@keyframes spinup { from { transform: rotate(0deg); } to { transform: rotate(19.5deg); } }
@keyframes spin { from { transform: rotate(19.5deg); } to { transform: rotate(379.5deg); } }
@keyframes motor-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes mag-in { from { opacity: 0; transform: scale(0.4); } }
@keyframes flux-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { max-width: 400px; }
}
@media (max-width: 520px) {
  .hero__figure { max-width: 290px; }
}

/* Chiffres clés : grand nombre, unité plus petite, légende sous le nombre */
.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
}
.figures li { display: grid; gap: 10px; align-content: start; padding: clamp(32px, 4vw, 52px) clamp(16px, 2.5vw, 36px); }
.figures li:first-child { padding-left: 0; }
.figures li + li { border-left: 1px solid var(--line); }
.figures strong {
  display: block;
  font-size: clamp(2.6rem, 4.2vw, 3.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figures strong small { margin-left: 0.45em; font-size: 0.42em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.figures li > span { font-size: 1rem; line-height: 1.45; color: var(--ink-2); max-width: 16em; }
@media (max-width: 960px) {
  .figures ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures li { padding: 28px 0 28px 24px; }
  .figures li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .figures li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* Mobile : une ligne par chiffre, nombre à gauche, légende à droite */
@media (max-width: 560px) {
  .figures ul { grid-template-columns: minmax(0, 1fr); }
  .figures li, .figures li:nth-child(odd) {
    grid-template-columns: 10.5rem minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-left: 0;
  }
  .figures li + li { border-top: 1px solid var(--line); border-left: 0; }
  .figures strong { font-size: 2.1rem; }
  .figures li > span { font-size: 0.94rem; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section__head { max-width: 46rem; margin-bottom: clamp(56px, 8vw, 104px); }
.section__head h2 + .lead { margin-top: 24px; }

/* Prestations : une ligne = un texte + une grande image, en alternance */
.services { display: grid; gap: clamp(88px, 11vw, 160px); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.service--flip .service__media { order: -1; }
@media (min-width: 721px) {
  .service__media { position: sticky; top: 108px; }
}
.service h3 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.028em; line-height: 1.1; margin-bottom: 18px; }
.service__text > p:not(.label) { color: var(--ink-2); max-width: 32em; }
.service__media { margin: 0; }
/* overflow: clip (et non hidden) : le cadre découpe l'image sans devenir un conteneur de défilement,
   sinon les animations liées au défilement de la page (view()) restent figées */
.service__media picture { display: block; overflow: hidden; overflow: clip; border-radius: var(--radius); }
.service__media--studio { overflow: hidden; overflow: clip; }
.service__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}
.service__media figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--ink-3); }
/* Rendu 3D sur fond blanc : présenté comme une photo produit en studio */
.service__media--studio { background: var(--studio); border-radius: var(--radius); }
.service__media--studio img { object-fit: contain; background: transparent; padding: 6% 3%; mix-blend-mode: multiply; }

.items { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.items li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.items strong { font-weight: 600; }
.items span { font-size: 0.94rem; color: var(--ink-3); }

/* Visite préventive des ponts roulants */
.inspect {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 24px;
  align-items: center;
  margin-top: 32px;
  padding: 24px 26px;
  background: var(--surface);
  border-radius: var(--radius);
}
.inspect .inspect__n { color: var(--ink); grid-row: span 2; font-size: 3.4rem; font-weight: 400; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.inspect__n sup { font-size: 0.42em; vertical-align: 1em; color: var(--accent); margin-left: 2px; }
/* Cadran de 36 graduations autour du chiffre */
.inspect .inspect__n { position: relative; display: grid; grid-auto-flow: column; place-content: center; align-items: start; width: 104px; height: 104px; font-size: 2.3rem; }
.inspect__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.inspect__ring line { stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.inspect__n sup { vertical-align: 0; margin-top: 0.1em; }
@media (prefers-reduced-motion: no-preference) {
  .js .inspect__ring line { stroke: var(--line); transition: stroke 0.25s ease; transition-delay: calc(var(--i) * 35ms); }
  .js .inspect.is-in .inspect__ring line { stroke: var(--accent); }
}
.inspect strong { font-weight: 600; }
.inspect p { font-size: 0.94rem; color: var(--ink-2); }

/* Stock : caractéristiques comme sur une fiche produit */
.specs { margin: 32px 0 0; border-top: 1px solid var(--line); }
.specs > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { font-size: 0.9rem; color: var(--ink-3); }
.specs dd { margin: 0; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.specs dd small { font-size: 0.9rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.service__more { margin-top: 20px; font-size: 0.96rem; color: var(--ink-2); }

@media (max-width: 720px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .service__media { order: -1; }
}

/* Déroulé d'une demande : quatre étapes reliées par une ligne qui se trace au défilement (--t de 0 à 1) */
.steps { --t: 1; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps::before, .steps::after { content: ""; position: absolute; top: 21px; left: 22px; width: var(--len, calc(75% - 10px)); height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--accent); transform-origin: left center; transform: scaleX(var(--t)); }
.step { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1); }
.step h3 { font-size: 1.15rem; }
.step p { font-size: 0.96rem; color: var(--ink-2); }
.steps:not(.is-js) .step__n, .step.is-reached .step__n { background: var(--accent); color: var(--on-accent); }
.steps.is-js .step:not(.is-reached) .step__n { border-color: var(--line); color: var(--ink-3); }
.steps.is-js .step.is-reached .step__n { transform: scale(1.06); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before, .steps::after { top: 22px; left: 21px; width: 2px; height: var(--len, calc(100% - 120px)); }
  .steps::after { transform-origin: center top; transform: scaleY(var(--t)); }
  .step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; }
  .step__n { grid-row: span 2; margin-bottom: 0; }
}

/* Avis clients : bandeau qui défile en continu (pause au survol ou au focus) */
.section--line { border-top: 1px solid var(--line); }
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  gap: 16px;
  margin: 0;
  padding: 0 16px 0 0;
  list-style: none;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.quote {
  flex: 0 0 clamp(270px, 28vw, 380px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  margin: 0;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }
.quote__by { display: grid; gap: 2px; font-size: 0.92rem; }
.quote__by span { color: var(--ink-3); }
.reviews__foot { margin-top: 32px; }

/* Étoiles */
.stars { position: relative; display: inline-flex; vertical-align: middle; }
.stars__row { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; flex: none; fill: var(--star); }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

/* L'entreprise et la zone */
.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.company h2 { margin-bottom: 28px; }
.company__text { display: grid; gap: 18px; color: var(--ink-2); max-width: 32em; }
.company__text strong { color: var(--ink); font-weight: 600; }
/* Le dirigeant : portrait rond (liseré bleu qui se trace à l'apparition), puis ce qui rassure */
.director { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 22px; align-items: center; margin: 32px 0 0; padding: 22px; background: var(--bg); border-radius: 10px; box-shadow: 0 1px 2px var(--shadow); max-width: 34em; }
.director__photo { position: relative; width: 104px; height: 104px; }
.director__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; padding: 5px; background: var(--bg); }
.director__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.director__ring circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.director__body { display: grid; gap: 8px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.director__name { display: grid; gap: 1px; }
.director__name strong { font-size: 1.08rem; color: var(--ink); }
.director__name span { font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.trust { margin-top: 26px; }
.trust__title { margin-bottom: 10px; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.trust__list li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.trust__list .ico { margin-top: 0.15em; }
@media (max-width: 560px) {
  .director { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 18px; align-items: start; }
  .director__photo { width: 84px; height: 84px; }
  .trust__list { grid-template-columns: minmax(0, 1fr); }
}
.facts { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.facts dt { font-size: 0.86rem; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-weight: 500; }

.zone { margin: 0; }
/* Carte en pleine largeur sous la présentation */
.zone--wide { margin-top: clamp(48px, 6vw, 80px); }
.zone--wide .zone__map { border-radius: 10px; background: var(--studio); }
.company__side { display: grid; gap: 0; align-content: start; }
.company__side .director { margin-top: 0; }
.zone__map { width: 100%; height: auto; }
.zone figcaption { margin-top: 12px; text-align: center; font-size: 0.86rem; color: var(--ink-3); }
/* Carte de France : régions, contour du pays, zone d'intervention de 150 km */
.z-coast { fill: none; stroke: var(--steel-2); stroke-width: 2.2; stroke-linejoin: round; }
.z-region { fill: #FFFFFF; stroke: none; }
.z-dept { fill: none; stroke: #CBD1D8; stroke-width: 0.8; stroke-linejoin: round; }
.z-rborder { fill: none; stroke: var(--steel-2); stroke-width: 1.5; stroke-linejoin: round; }
.z-dlabel { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; fill: var(--ink-3); opacity: 0.5; }
.z-region--home { fill: color-mix(in srgb, var(--accent) 7%, #FFFFFF); }
.z-rlabel { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); opacity: 0.8; }
.z-rlabel--home { fill: var(--accent); opacity: 1; }
.z-area { fill: var(--accent); fill-opacity: 0.1; }
.z-ring { fill: none; stroke: var(--accent); stroke-opacity: 0.25; stroke-width: 0.8; stroke-dasharray: 2 3; }
.z-edge { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.z-km { font-family: var(--sans); font-size: 11.5px; font-weight: 600; fill: var(--accent); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; }
.z-town circle { fill: var(--ink-2); }
.z-town--minor circle { fill: var(--ink-3); }
.z-town text { font-family: var(--sans); font-size: 13.5px; font-weight: 500; fill: var(--ink-2); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; stroke-linejoin: round; }
.z-home { pointer-events: none; }
.z-home circle { fill: var(--accent); }
.z-home text { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3.5px; stroke-linejoin: round; }
.z-pulse { fill-opacity: 0.18; }
.z-country { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; fill: var(--ink-3); opacity: 0.6; }
/* Médaillon : la France entière, la zone agrandie encadrée */
.z-inset-bg { fill: #FFFFFF; stroke: var(--line); stroke-width: 1; }
.z-inset-land { fill: var(--surface); stroke: var(--steel-2); stroke-width: 0.5; stroke-linejoin: round; }
.z-inset-view { fill: var(--accent); fill-opacity: 0.12; stroke: var(--accent); stroke-width: 1.2; }
.z-inset-home { fill: var(--accent); }
@media (max-width: 560px) {
  /* Mobile : la carte est recadrée sur le cercle (600 unités pour ~350 px), textes agrandis en conséquence */
  .z-rlabel, .z-country { display: none; }
  .z-dlabel { font-size: 17px; }
  .z-dlabel--out { display: none; }
  .z-town--minor text { display: none; }
  .z-town text { font-size: 21px; }
  .z-home text { font-size: 22px; }
  .z-km { font-size: 18px; }
  .z-tip text { font-size: 21px; }
}
@media (max-width: 720px) {
  .company { grid-template-columns: minmax(0, 1fr); }
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-layout h2 { margin-bottom: 20px; }
.faq-layout .lead a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 250ms ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); }
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (max-width: 720px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Contact (seul aplat sombre, bleu marine)
   -------------------------------------------------------------------------- */

.contact-section { background: var(--deep); color: var(--on-deep); }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact .label { color: var(--on-deep-2); }
.contact h2 { color: var(--on-deep); margin-bottom: 20px; }
.contact .lead { color: var(--on-deep-2); margin-bottom: 44px; }
.reach { display: grid; gap: 0; border-top: 1px solid var(--deep-line); }
.reach > div { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--deep-line); }
.reach dt { font-size: 0.86rem; color: var(--on-deep-2); }
.reach dd { margin: 0; color: var(--on-deep); overflow-wrap: anywhere; }
.reach a { color: var(--on-deep); text-decoration: none; }
.reach a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reach__tel { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.reach .todo { background: var(--deep-line); color: var(--on-deep); }
.callback-cta {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius);
  color: var(--on-deep-2);
}
.callback-cta strong { color: var(--on-deep); font-weight: 600; }
.contact .link { color: var(--on-deep); border-color: var(--deep-line); margin-top: 24px; }
.contact .link:hover { border-color: var(--on-deep); }

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
}
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .form legend, .callback legend { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Type de demande : pastilles à choix unique */
.choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend { margin-bottom: 10px; padding: 0; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.choices__list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.94rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.choice span:hover { border-color: var(--ink-3); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Plaque signalétique : repliée par défaut */
.more { border: 1px solid var(--line); border-radius: 8px; }
.more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  font-size: 0.94rem;
  font-weight: 500;
}
.more summary::-webkit-details-marker { display: none; }
.more summary .opt { margin-left: 6px; }
.more summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: var(--ink-3); transition: transform 250ms ease; }
.more[open] summary::after { transform: rotate(45deg); }
.more__body { display: grid; gap: 16px; padding: 4px 16px 18px; }
.more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.unit { position: relative; display: block; }
.unit input { padding-right: 64px; }
.unit::after {
  content: attr(data-unit);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--ink-3);
  pointer-events: none;
}
.field input[type="file"] { padding: 10px; font-size: 0.92rem; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.form .btn { width: 100%; margin-top: 4px; }
/* Plaque signalétique : aperçu riveté qui se remplit pendant la saisie */
.plate {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px 22px 18px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #E9ECEF, #C9CFD6 55%, #DDE1E5);
  box-shadow: inset 0 0 0 1px rgba(15, 18, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(15, 18, 23, 0.08);
  color: #2C323C;
  font-variant-numeric: tabular-nums;
}
.plate__rivet { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFFFFF, #8A939E 70%); box-shadow: 0 1px 1px rgba(15, 18, 23, 0.25); }
.plate__rivet:nth-child(1) { top: 7px; left: 7px; } .plate__rivet:nth-child(2) { top: 7px; right: 7px; }
.plate__rivet:nth-child(3) { bottom: 7px; left: 7px; } .plate__rivet:nth-child(4) { bottom: 7px; right: 7px; }
.plate__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(15, 18, 23, 0.18); }
.plate__brand { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate__type { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: #5A6270; }
.plate__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plate__grid p { display: grid; gap: 2px; padding: 6px 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 0 1px rgba(15, 18, 23, 0.1); }
.plate__val { font-size: 1.15rem; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate__unit { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: #5A6270; }
.plate [data-plate]:not(.is-set) { color: #7E8794; }
/* Gravure : texte légèrement en creux */
.plate__brand, .plate__val { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.plate__help { margin-top: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .plate__val.is-stamp, .plate__brand.is-stamp { animation: stamp 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
}
@keyframes stamp { from { opacity: 0.2; transform: translateY(-5px) scale(1.12); } }
.plate__val, .plate__brand { display: inline-block; transform-origin: left center; }
/* Professionnel ou particulier : les particuliers sont invités à appeler (bascule en CSS, sans JavaScript) */
.form__pro { display: grid; gap: 20px; }
.form__ident { margin-top: -12px; }
.form .row { align-items: start; }
.form__pro:has(input[name="siret"][aria-invalid="true"]) .form__ident { display: none; }
.form__part { display: none; gap: 14px; justify-items: start; padding: 20px 22px; background: var(--surface); border-radius: 8px; }
.form__part p { color: var(--ink-2); }
.form__part strong { color: var(--ink); }
.form__part .btn, .callback .form__part .btn { width: auto; margin-top: 0; font-variant-numeric: tabular-nums; }
.form__hours { font-size: 0.88rem; color: var(--ink-3) !important; }
form:has(input[name="profil"][value="Particulier"]:checked) .form__part { display: grid; }
form:has(input[name="profil"][value="Particulier"]:checked) .form__pro { display: none; }
form:has(input[name="profil"][value="Particulier"]:checked) .callback__hours { display: none; }
.callback .form__pro { gap: 18px; }
.callback .form__ident { margin-top: -10px; }
.form__legal { font-size: 0.84rem; line-height: 1.5; color: var(--ink-3); }
.form__legal a { color: var(--ink-2); }
.form__preview { font-size: 0.9rem; color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }

@media (max-width: 960px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 721px) and (max-width: 960px) {
  .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .callback-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (max-width: 560px) {
  .form .row, .more__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Fenêtre « être rappelé » */
.callback {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(15, 18, 23, 0.45);
}
.callback::backdrop { background: rgba(15, 18, 23, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.callback__form { position: relative; display: grid; gap: 18px; padding: clamp(24px, 5vw, 36px); }
.callback .label { margin-bottom: -6px; }
.callback h2 { font-size: clamp(1.5rem, 4vw, 1.85rem); line-height: 1.12; padding-right: 32px; }
.callback__lead { color: var(--ink-2); margin-top: -6px; }
.callback .btn { width: 100%; }
.callback__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.callback__close:hover { color: var(--ink); border-color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .callback[open] { animation: dialog-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .callback[open]::backdrop { animation: dialog-fade 0.32s ease; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes dialog-fade { from { opacity: 0; } }

/* Pied de page */
.footer { padding-block: 48px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-3); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px 48px; }
@media (max-width: 960px) { .footer__inner { grid-template-columns: minmax(0, 1fr); } }
.footer__id { display: flex; align-items: center; gap: 16px; }
.footer__id .logo { width: 40px; height: 41px; flex: none; }
.footer__info { display: grid; gap: 4px; }
.status--foot { display: inline-flex; color: var(--ink-2); }
.footer__name { color: var(--ink); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Apparitions discrètes au défilement (CSS seul ; sans prise en charge, tout reste visible)
   -------------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

/* --------------------------------------------------------------------------
   Animations choisies (toutes coupées si l'utilisateur réduit les animations)
   -------------------------------------------------------------------------- */

/* Micro-interactions */
.ico--arrow { transition: transform 220ms ease; }
.btn:hover .ico--arrow, .link:hover .ico { transform: translateX(3px); }
.link .ico { transition: transform 220ms ease; }
/* Liens du menu : le soulignement est remplacé par le repère glissant (.nav__marker) */
.nav__links a.nav__sec { padding-block: 4px; transition: color 200ms ease; }
.nav__links a.nav__sec[aria-current] { color: var(--ink); }
.nav__links { position: relative; }
.nav__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w, 0);
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(var(--x, 0), calc(var(--y, 0px) + 3px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease;
}
.nav__marker.is-on { opacity: 1; }
.nav__marker.no-anim { transition: none; }
@media (max-width: 1060px) { .nav__marker { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav__marker { transition: opacity 0.2s ease; } }
.choice span { transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 150ms ease; }
.choice span:active { transform: scale(0.97); }
.more::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete; }
.more[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: no-preference) {
  /* Barre mobile : elle monte une fois la page affichée */
  .callbar { animation: barin 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s backwards; }

  /* Prestations : le texte puis chaque ligne de liste arrivent l'un après l'autre */
  .js [data-stagger] > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-stagger] [data-stagger] > * { transition-delay: calc(0.3s + var(--i, 0) * 70ms); }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }

  /* Carte : les cercles s'étendent depuis l'atelier, les villes s'allument selon leur distance */
  .js .zone .z-area, .js .zone .z-ring, .js .zone .z-edge {
    transform-box: view-box;
    transform-origin: 260px 260px;
    transform: scale(0.04);
    opacity: 0;
    transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
  }
  .js .zone .z-ring + .z-ring { transition-delay: 0.12s; }
  .js .zone .z-edge, .js .zone .z-area { transition-delay: 0.36s; }
  .js .zone .z-town { opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(0.3s + var(--d, 0s)); }
  .js .zone .z-km { opacity: 0; transition: opacity 0.6s ease 1.3s; }
  .js .zone.is-in .z-area, .js .zone.is-in .z-ring, .js .zone.is-in .z-edge { transform: none; opacity: 1; }
  .js .zone.is-in .z-town, .js .zone.is-in .z-km { opacity: 1; }
}
@keyframes barin { from { transform: translateY(100%); } }

/* Images des prestations : dévoilées au défilement (CSS seul, navigateurs compatibles) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service__media:not(.service__media--studio) img,
    .service__media--studio {
      animation: unveil linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
    /* La vue éclatée glisse légèrement, comme un moteur qu'on assemble */
    .service__media--studio img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
  }
}
@keyframes unveil {
  from { clip-path: inset(14% 5% 0 5% round var(--radius)); transform: translateY(28px); }
  to { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; }
}
@keyframes drift { from { transform: translateX(6%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .more::details-content, .nav__links a.nav__sec, .ico--arrow { transition: none; }
  .faq details::details-content { transition: none; }
}

/* --------------------------------------------------------------------------
   Ajustements du 09/10 : statut d'ouverture, devis par prestation, formulaires
   -------------------------------------------------------------------------- */

/* Ouvert / fermé (calculé en JS d'après les horaires) */
.status { display: inline-flex; align-items: center; gap: 8px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 3px color-mix(in srgb, var(--open) 18%, transparent); }
.status.is-open .status__text { color: var(--ink); }
.status--panel { margin: -24px 0 32px; font-size: 0.95rem; color: var(--on-deep-2); }
.status--panel.is-open .status__text { color: var(--on-deep); }
.status--panel .status__dot { background: var(--on-deep-2); }
.status--panel.is-open .status__dot { background: #3CCB7F; box-shadow: 0 0 0 3px rgba(60, 203, 127, 0.2); }

/* Lien « demander un devis » sous chaque prestation */
.service__cta { margin-top: 28px; }

/* Visite préventive : domaines cochés */
.inspect__list { grid-column: 2; list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.92rem; color: var(--ink); }
.inspect__list li { display: inline-flex; align-items: center; gap: 6px; }
.ico--check { color: var(--accent); stroke-width: 2.2; }
@media (max-width: 520px) { .inspect__list { grid-column: 1 / -1; } }

/* Formulaires : aide, erreurs, confirmation */
.field__help { font-size: 0.86rem; color: var(--ink-3); }
.field__error { font-size: 0.88rem; font-weight: 500; color: #B42318; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.callback__hours { margin-top: -8px; padding: 10px 14px; font-size: 0.92rem; color: var(--ink-2); background: var(--surface); border-radius: 8px; }
.form__done { display: grid; justify-items: start; gap: 12px; padding: 8px 0; outline: none; }
.form__done h2, .form__done h3 { font-size: 1.6rem; }
.form__done p { color: var(--ink-2); }
.form__done a { color: var(--ink); font-weight: 600; }

/* Mobile : le menu s'efface en descendant, la barre d'actions quand le formulaire est à l'écran */
.nav { transition: border-color 250ms ease, translate 300ms ease; }
.nav.is-hidden { translate: 0 -100%; }
@media (max-width: 720px) {
  .callbar { transition: translate 300ms ease; }
  .callbar.is-hidden { translate: 0 110%; }
}

/* Écrans tactiles et petits écrans : zones cliquables d'au moins 44 px */
@media (pointer: coarse), (max-width: 960px) {
  .nav__tel, .hero__tel, .hero__rating, .link, .reach a, .footer a, .faq-layout .lead a, .form__legal a, .form__done a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .link { padding-bottom: 0; }
  .footer__links { gap: 4px 28px; }
}

/* Écrans tactiles et petits écrans : textes à 14 px minimum */
@media (pointer: coarse), (max-width: 960px) {
  .label, .hero__figure figcaption, .service__media figcaption, .zone figcaption, .form__legal, .facts dt, .reach dt, .specs dt,
  .quote__by, .field__help, .opt, .footer { font-size: 0.875rem; }
}
/* Mobile : avis à faire défiler, photos moins hautes */
@media (max-width: 720px) {
  .service__media img { aspect-ratio: 16 / 10; }
  .section__head { margin-bottom: 40px; }
  .services { gap: 72px; }
}

/* Grands écrans : un peu plus de largeur et un moteur plus présent */
@media (min-width: 1600px) {
  :root { --wrap: 1320px; }
  .hero__figure { max-width: 640px; }
}

/* Portables peu hauts : le hero tient dans l'écran avec de l'air sous les boutons */
@media (min-width: 961px) and (max-height: 780px) {
  .hero { padding-block: 32px 56px; }
  .hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); margin-bottom: 20px; }
  .hero .lead { margin-bottom: 28px; }
  .hero__figure { max-width: 440px; }
}

/* Animations complémentaires */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service__media img { transition: scale 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .service__media:hover img { scale: 1.03; }
}
/* Le moteur s'arrête quand il sort de l'écran (économie de batterie) */
.hero__figure.is-paused .motor, .hero__figure.is-paused .motor * { animation-play-state: paused; }

/* Impression : tout le contenu visible, sans les barres fixes */
@media print {
  .js [data-stagger] > *, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .nav, .callbar, .callback { display: none !important; }
}

/* Pages secondaires */
.page { padding-block: clamp(56px, 8vw, 112px); }
.page h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 36px; }
.prose { max-width: 44rem; display: grid; gap: 14px; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; margin-top: 24px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Animations premium (09/10) : compteurs mécaniques, titres ligne par ligne,
   profondeur des photos, passage vers le bleu marine, carte interactive
   ========================================================================== */

/* Titres révélés ligne par ligne (découpage en JS, texte d'origine rétabli après l'animation) */
.js [data-stagger] > h2.lines { opacity: 1; transform: none; transition: none; }
h2.lines .line { display: block; overflow: hidden; padding-block: 0.1em 0.2em; margin-block: -0.1em -0.2em; }
h2.lines .line__inner { display: block; transform: translateY(112%); transition: transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--l, 0) * 95ms); }
h2.lines.is-in .line__inner { transform: none; }

/* Photos : légère profondeur, l'image glisse moins vite que son cadre */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service__media:not(.service__media--studio) img {
      scale: 1.1;
      animation: unveil linear both, parallax linear both;
      animation-timeline: view(), view();
      animation-range: entry 5% cover 35%, cover 0% cover 100%;
    }
    @media (hover: hover) {
      .service__media:not(.service__media--studio):hover img { scale: 1.13; }
    }
    /* Section contact : le fond passe du blanc au bleu marine en entrant à l'écran */
    @media (min-width: 721px) {
      .contact-section { animation: to-navy linear both; animation-timeline: view(); animation-range: entry 0% entry 22%; }
    }
  }
}
@keyframes parallax { from { translate: 0 -4%; } to { translate: 0 4%; } }
@keyframes to-navy { from { background-color: var(--bg); } }

/* Carte interactive : survol ou toucher d'une ville → trait depuis l'atelier et distance */
.z-town { cursor: pointer; outline: none; }
.z-hit { fill: #000; fill-opacity: 0; }
.z-dot { transform-box: fill-box; transform-origin: center; transition: transform 0.2s ease, fill 0.2s ease; }
.z-town.is-active .z-dot, .z-town:focus-visible .z-dot { fill: var(--accent); transform: scale(1.9); }
.z-town.is-active text { fill: var(--ink); }
.z-town:focus-visible text { text-decoration: underline; }
.z-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 0) 9999;
  stroke-dashoffset: var(--len, 0);
  opacity: 0;
  pointer-events: none;
}
.z-route.is-on { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.z-tip { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.z-tip.is-on { opacity: 1; }
.z-tip rect { fill: var(--ink); }
.z-tip text { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: #FFFFFF; }
@media (max-width: 560px) { .z-tip text { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  .z-route.is-on, .z-dot, .z-tip { transition: none; }
}

/* ==========================================================================
   Illustration du pont roulant (section « Sur site »)
   ========================================================================== */
.service__media--illus { position: relative; padding: clamp(14px, 3%, 28px); background: var(--studio); border-radius: var(--radius); }
.service__media--illus figcaption { margin-top: 12px; }
.crane__svg { width: 100%; height: auto; overflow: visible; }
/* Volumes isométriques : dessus clair, face avant gauche moyenne, face avant droite sombre */
.iso polygon { stroke: rgba(15, 18, 23, 0.14); stroke-width: 0.6; stroke-linejoin: round; }
.iso--steel .iso-t { fill: #E9ECEF; } .iso--steel .iso-l { fill: #CFD5DB; } .iso--steel .iso-r { fill: #B1B9C2; }
.iso--steel2 .iso-t { fill: #C9CFD6; } .iso--steel2 .iso-l { fill: #A3ACB5; } .iso--steel2 .iso-r { fill: #88919C; }
.iso--blue .iso-t { fill: #5470C6; } .iso--blue .iso-l { fill: var(--motor); } .iso--blue .iso-r { fill: #1F367F; }
.iso--rail .iso-t { fill: #6A7180; } .iso--rail .iso-l { fill: #4A5160; } .iso--rail .iso-r { fill: #3A404C; }
.iso--wood .iso-t { fill: #E6D5B5; } .iso--wood .iso-l { fill: var(--wood); } .iso--wood .iso-r { fill: #BFA67E; }
.iso--cab .iso-t { fill: #F4F5F7; } .iso--cab .iso-l { fill: #E3E6EA; } .iso--cab .iso-r { fill: #C9CED6; }
.c-ground { fill: #E8EBEF; }
.c-mark { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 3; opacity: 0.55; }
.c-rope line { stroke: var(--ink-2); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.c-hookline { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.c-sling { stroke: var(--ink-2); stroke-width: 1; }
.c-bolt { fill: var(--star); }
/* Flèches des trois mouvements : elles s'allument pendant le mouvement correspondant */
.c-axis { color: var(--ink-3); opacity: 0.8; }
.c-axis line, .c-axis path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-axis text { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; fill: currentColor; paint-order: stroke; stroke: var(--studio); stroke-width: 3px; }
.c-axis--side text { text-anchor: end; }
@media (max-width: 560px) { .c-axis text { font-size: 15px; } }

/* Points de contrôle */
.spot { cursor: pointer; outline: none; }
.spot__hit { fill: #000; fill-opacity: 0; }
.spot__dot { fill: var(--accent); stroke: #FFFFFF; stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform 0.2s ease; }
.spot text { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: #FFFFFF; pointer-events: none; }
.spot__ring { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.spot.is-active .spot__dot, .spot:focus-visible .spot__dot { transform: scale(1.25); }
@media (max-width: 720px) {
  .spot__dot, .spot__ring { r: 15px; }
  .spot text { font-size: 15px; }
}
.crane__tip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  width: min(260px, calc(100% - 16px));
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bg);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 16px 40px -18px rgba(15, 18, 23, 0.6);
  pointer-events: none;
}
.crane__tip strong { font-weight: 600; }
.crane__tip span { color: #C9CED6; }

/* Cycle de 20 s : le moteur est soulevé (levage), le chariot avance le long de la poutre (direction),
   le pont roule sur ses rails (translation), dépose sur la palette, puis le chemin inverse.
   Les déplacements à l'écran (--bx, --tx, --hup…) sont calculés par tools/build.py et posés sur le SVG. */
@media (prefers-reduced-motion: no-preference) {
  .c-bridge, .c-trolley, .c-hook, .c-rope, .c-axis { animation: 20s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .c-bridge { animation-name: c-bridge; }
  .c-trolley { animation-name: c-trolley; }
  .c-hook { animation-name: c-hook; }
  .c-rope { transform-box: view-box; animation-name: c-rope; }
  .c-axis { animation-timing-function: ease; }
  .c-axis--z { animation-name: c-axis-z; }
  .c-axis--y { animation-name: c-axis-y; }
  .c-axis--x { animation-name: c-axis-x; }
  .spot__ring { animation: spot-pulse 2.6s ease-out infinite; }
  .crane.is-paused .c-anim, .crane.is-offscreen .c-anim, .crane.is-paused .spot__ring, .crane.is-offscreen .spot__ring { animation-play-state: paused; }
}
@keyframes c-bridge {
  0%, 25% { transform: translate(0, 0); }
  37%, 61% { transform: translate(var(--bx), var(--by)); }
  73%, 100% { transform: translate(0, 0); }
}
@keyframes c-trolley {
  0%, 13% { transform: translate(0, 0); }
  25%, 73% { transform: translate(var(--tx), var(--ty)); }
  85%, 100% { transform: translate(0, 0); }
}
@keyframes c-hook {
  0%, 4% { transform: translateY(0); }
  13%, 37% { transform: translateY(var(--hup)); }
  46%, 52% { transform: translateY(var(--hdrop)); }
  61%, 85% { transform: translateY(var(--hup)); }
  94%, 100% { transform: translateY(0); }
}
@keyframes c-rope {
  0%, 4% { transform: scaleY(1); }
  13%, 37% { transform: scaleY(var(--rup)); }
  46%, 52% { transform: scaleY(var(--rdrop)); }
  61%, 85% { transform: scaleY(var(--rup)); }
  94%, 100% { transform: scaleY(1); }
}
@keyframes c-axis-z {
  0%, 2%, 15%, 35%, 48%, 50%, 63%, 83%, 96%, 100% { color: var(--steel-2); opacity: 0; }
  4%, 13%, 37%, 46%, 52%, 61%, 85%, 94% { color: var(--accent); opacity: 1; }
}
@keyframes c-axis-y {
  0%, 11%, 27%, 71%, 87%, 100% { color: var(--steel-2); opacity: 0; }
  13%, 25%, 73%, 85% { color: var(--accent); opacity: 1; }
}
@keyframes c-axis-x {
  0%, 23%, 39%, 59%, 75%, 100% { color: var(--steel-2); opacity: 0; }
  25%, 37%, 61%, 73% { color: var(--accent); opacity: 1; }
}
@keyframes spot-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

/* ==========================================================================
   « Dans l'atelier » : bobinage, pompe, coffret électrique
   ========================================================================== */
/* Scène de la prestation atelier : une vue par ligne de la liste, superposées et révélées en fondu */
.stage { padding: clamp(14px, 2.4vw, 28px); background: var(--studio); border-radius: var(--radius); }
.stage__panels { display: grid; }
.stage__panel { grid-area: 1 / 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s; }
.stage__panel.is-active { opacity: 1; visibility: visible; transition: opacity 0.45s ease; }
.stage__panel svg { display: block; width: 100%; height: auto; max-height: 430px; margin-inline: auto; }
.stage__panel.explode svg { max-height: none; }
/* Vue éclatée : le moteur s'ouvre quand la vue « Mécanique » est affichée, et se referme ensuite */
@property --e { syntax: "<number>"; inherits: true; initial-value: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .stage__panel.explode .explode__svg { --e: 0; transition: --e 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s; }
  .js .stage__panel.explode.is-active .explode__svg { --e: 1; }
}
.stage__panel figcaption { font-size: 0.86rem; color: var(--ink-3); }
html:not(.js) .stage__panel:first-child { opacity: 1; visibility: visible; }
.stage__tabs { display: none; }
@media (max-width: 720px) {
  .js .stage__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
  .stage__tab { min-height: 38px; padding: 6px 2px; font: inherit; font-size: 0.8rem; white-space: nowrap; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
  .stage__tab[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
}
/* Lignes de la liste : boutons ; la ligne active est marquée d'un trait bleu */
.items li:has(> .items__btn) { padding: 0; }
.items__btn { position: relative; display: grid; gap: 2px; width: 100%; padding: 16px 0; font: inherit; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; transition: padding-left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.items__btn::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.items__btn strong { font-weight: 600; transition: color 0.2s ease; }
.items__btn span { font-size: 0.94rem; color: var(--ink-3); }
.items__btn:hover strong { color: var(--accent); }
.items__btn[aria-pressed="true"] { padding-left: 14px; }
.items__btn[aria-pressed="true"]::before { transform: scaleY(1); }
.items__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .stage__panel, .items__btn, .items__btn::before { transition: none; } }

/* 1. Bobinage : --p (0 → 1) est posé par le script selon le défilement ; sans script, tout est bobiné */
.winding__svg { --p: 1; }
.w-edge { fill: none; stroke: var(--steel-2); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.6; }
.w-yoke { fill: none; stroke: var(--steel); stroke-width: 72; }
.w-yoke-hatch { fill: none; stroke: url(#hatch); stroke-width: 72; opacity: 0.45; }
.w-bore { fill: #FFFFFF; stroke: var(--steel-2); stroke-width: 1; }
.w-slot { fill: #FFFFFF; stroke: var(--steel-2); stroke-width: 0.8; }
.w-cu { fill: url(#cu); stroke: var(--copper-lo); stroke-width: 0.6; transform-box: fill-box; transform-origin: center bottom;
  opacity: clamp(0, calc(var(--p) * 36 - var(--i)), 1); transform: scaleY(clamp(0.2, calc(var(--p) * 36 - var(--i)), 1)); }
.w-spool rect { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1; }
.w-spool circle:first-of-type { fill: var(--copper); stroke: var(--copper-lo); stroke-width: 1; }
.w-spool circle:last-of-type { fill: var(--steel-2); }
.w-wire { stroke: var(--copper); stroke-width: 1.6; stroke-linecap: round; opacity: 0; transition: opacity 0.3s ease; }
.winding.is-winding .w-wire { opacity: 1; }
.w-count { font-family: var(--sans); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; fill: var(--ink); font-variant-numeric: tabular-nums; }
.w-count .w-n { font-weight: 600; }
.w-label { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; fill: var(--ink-3); }

/* 2. Pompe : la roue tourne, le fluide circule (défilement de tirets) */
.p-casing { fill: var(--steel); stroke: var(--steel-2); stroke-width: 1; stroke-linejoin: round; }
.p-casing-hatch { fill: url(#hatch); opacity: 0.45; }
.p-fluid { fill: #E3E9F8; stroke: var(--steel-2); stroke-width: 1; stroke-linejoin: round; }
.p-flange { fill: var(--steel-2); }
.p-flow { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 9; opacity: 0.55; }
.p-shroud { fill: var(--copper-hi); fill-opacity: 0.25; stroke: var(--copper); stroke-width: 1.2; }
.p-blade { fill: none; stroke: var(--copper); stroke-width: 5; stroke-linecap: round; }
.p-hub { fill: var(--copper); stroke: var(--copper-lo); stroke-width: 1; }
.p-shaft { fill: var(--steel-2); }
.p-key { fill: #FFFFFF; }
.p-impeller { transform-box: view-box; transform-origin: 150px 172px; }
.p-tag text { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; fill: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .p-impeller { animation: p-spin 2.4s linear infinite; }
  .p-flow { animation: p-flow 1.6s linear infinite; animation-delay: calc(var(--k) * -0.5s); }
  .pump.is-offscreen .p-impeller, .pump.is-offscreen .p-flow { animation-play-state: paused; }
  .stage__panel:not(.is-active) .p-impeller, .stage__panel:not(.is-active) .p-flow { animation-play-state: paused; }
}
@keyframes p-spin { to { transform: rotate(360deg); } }
@keyframes p-flow { to { stroke-dashoffset: -24; } }

/* 3. Coffret électrique : à la mise sous tension, le courant parcourt les fils et les appareils s'enclenchent */
.e-cab { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1.2; }
.e-plate { fill: #FFFFFF; stroke: var(--steel-2); stroke-width: 1; }
.e-duct { fill: var(--steel); stroke: var(--steel-2); stroke-width: 0.8; }
.e-main rect:first-child, .e-breaker rect:first-child, .e-contactor rect:first-child, .e-relay rect { fill: var(--steel-3); stroke: var(--ink-3); stroke-width: 1; }
.e-handle { fill: #C8321E; transform-box: fill-box; transform-origin: center; }
.e-lever { fill: var(--ink-2); transform-box: fill-box; transform-origin: center; }
.e-coil { fill: var(--steel-2); }
.e-term { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 0.8; }
.e-lamp { stroke: var(--ink-3); stroke-width: 1; }
.e-lamp--off { fill: #E9A23B; opacity: 0.35; }
.e-lamp--on { fill: #8FD3A9; opacity: 0.35; }
.e-small { font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: 0.14em; fill: var(--ink-3); }
.e-wires path { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linejoin: round; opacity: 0.55; }
.e-live path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
/* Sans animation (ou sans script) : le coffret est directement sous tension */
.panel:not(.is-js) .e-live path { stroke-dashoffset: 0; }
.panel:not(.is-js) .e-lamp--on { fill: #1E8E4E; opacity: 1; }
.panel:not(.is-js) .e-lever { transform: translateY(-5px); }
.panel.is-on .e-handle { transform: rotate(90deg); }
.panel.is-on .e-lever { transform: translateY(-5px); }
.panel.is-on .e-coil { fill: var(--accent); }
.panel.is-on .e-live path { stroke-dashoffset: 0; }
.panel.is-on .e-lamp--on { fill: #1E8E4E; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .panel .e-handle { transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
  .panel .e-lever { transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1); transition-delay: calc(0.35s + var(--k, 0) * 0.09s); }
  .panel .e-coil { transition: fill 0.2s ease 1.05s; }
  .panel .e-live path { transition: stroke-dashoffset 0.45s cubic-bezier(0.3, 0.6, 0.3, 1); transition-delay: calc(0.3s + var(--k) * 0.07s); }
  .panel .e-lamp--on { transition: fill 0.2s ease 1.3s, opacity 0.2s ease 1.3s; }
  .panel:not(.is-on) .e-live path, .panel:not(.is-on) .e-handle, .panel:not(.is-on) .e-lever, .panel:not(.is-on) .e-coil, .panel:not(.is-on) .e-lamp--on { transition-delay: 0s; transition-duration: 0.2s; }
}

/* ==========================================================================
   Vue éclatée du moteur (section « En atelier »)
   ========================================================================== */
.explode__svg { width: 100%; height: auto; overflow: visible; }
.ex-axis { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 14 4 2 4; opacity: 0.45; }
.ex-part { transform: translateX(calc(var(--dx, 0) * var(--e, 1) * 1px)); }
.ex-shaft, .ex-shield, .ex-foot, .ex-gland { fill: var(--steel-2); }
.ex-key, .ex-plate { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 0.8; }
.ex-core { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1; }
.ex-bar { stroke: var(--steel-2); stroke-width: 1.4; opacity: 0.8; }
.ex-ring { fill: var(--alu); stroke: var(--steel-2); stroke-width: 1; }
.ex-cu { fill: url(#cu); stroke: var(--copper-lo); stroke-width: 0.6; }
.ex-carter { fill: var(--motor); }
.ex-fin { stroke: #FFFFFF; stroke-width: 1; opacity: 0.28; }
.ex-box { fill: var(--accent-hover); }
.ex-bearing { fill: var(--alu); stroke: var(--ink-2); stroke-width: 1.2; }
.ex-race { stroke: var(--ink-2); stroke-width: 0.8; }
.ex-fan { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1; }
.ex-blade { stroke: var(--steel-2); stroke-width: 1.2; }
.ex-cover { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1.2; }
.ex-grille { stroke: var(--steel-2); stroke-width: 1.4; stroke-linecap: round; }
/* Étiquettes : elles apparaissent quand le moteur est ouvert */
.ex-label { opacity: clamp(0, calc((var(--e, 1) - 0.6) * 2.5), 1); }
.ex-label line { stroke: var(--ink-3); stroke-width: 1; }
.ex-label text { font-family: var(--sans); font-size: 12px; font-weight: 500; fill: var(--ink-2); }
@media (max-width: 560px) {
  .ex-label text { font-size: 17px; }
}

/* ==========================================================================
   Gamme en stock (section « Produits et stock »)
   ========================================================================== */
.range__svg { width: 100%; height: auto; overflow: visible; }
.ra-head { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; fill: var(--accent); }
.ra-body { fill: var(--motor); }
.ra-fin { stroke: #FFFFFF; stroke-width: 1; opacity: 0.28; }
.ra-box { fill: var(--accent-hover); }
.ra-cover { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1; }
.ra-shield, .ra-shaft, .ra-foot, .ra-flange { fill: var(--steel-2); }
.ra-key { fill: var(--copper); }
.ra-floor { stroke: var(--ink-3); stroke-width: 1.2; }
.ra-sep { stroke: var(--line); stroke-width: 1; }
.ra-plinth { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1; }
.ra-val { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.ra-arrow { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ra-arrowhead { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-linejoin: round; }
.ra-name { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.ra-sub { font-family: var(--sans); font-size: 12px; fill: var(--ink-3); }
.ra-dial { fill: var(--steel-3); stroke: var(--steel-2); stroke-width: 1.2; }
.ra-pole { fill: url(#cu); stroke: var(--copper-lo); stroke-width: 0.6; }
.ra-core { fill: var(--alu); stroke: var(--steel-2); stroke-width: 1; }
.ra-mark { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.ra-hub { fill: var(--steel-2); }
.ra-rotor { transform-box: fill-box; transform-origin: center; }
@media (max-width: 560px) {
  .ra-head { font-size: 17px; }
  .ra-val, .ra-name { font-size: 19px; }
  .ra-sub { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Entrée : les moteurs se rangent par taille, la flèche se trace */
  .js .range .ra-m { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .range.is-in .ra-m { opacity: 1; transform: none; }
  .js .range .ra-arrow { stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s; }
  .js .range.is-in .ra-arrow { stroke-dashoffset: 0; }
  .js .range .ra-arrowhead { opacity: 0; transition: opacity 0.3s ease 1.4s; }
  .js .range.is-in .ra-arrowhead { opacity: 1; }
  /* Cadrans : 4 pôles = 1 tour en 4 s, 2 pôles = 1 tour en 2 s (deux fois plus vite) */
  .ra-rotor { animation: ra-spin 4s linear infinite; }
  .ra-rotor--fast { animation-duration: 2s; }
  .range.is-offscreen .ra-rotor { animation-play-state: paused; }
}
@keyframes ra-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Ajouts du 10/10 : la liste pilote le pont roulant et la gamme, confirmation animée
   ========================================================================== */

/* Pont roulant : la prestation choisie dans la liste garde ses pièces nettes, les autres s'estompent.
   maintenance = cycle complet ; levage = le crochet monte et descend ; rénovation et dépannages = pont au repos. */
.crane { position: relative; }
.crane .spot, .crane .c-radio { transition: opacity 0.35s ease; }
.crane :is(.iso-t, .iso-l, .iso-r, .c-bolt) { transition: fill 0.35s ease, stroke 0.35s ease; }
.crane :is(.c-rope line, .c-sling, .c-hookline) { transition: stroke 0.35s ease; }
.crane .c-bridge, .crane .c-axis--x { transition: opacity 0.18s ease; }
.crane.is-swap .c-bridge, .crane.is-swap .c-axis--x { opacity: 0; }
/* Pièces en retrait : gris clair opaque (et non transparence, qui laisserait voir les pièces à travers) */
:is(.crane[data-focus="renovation"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"]), .crane[data-focus="levage"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="rope"], [data-p="hook"], [data-p="load"]), .crane[data-focus="depannages"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"], [data-p="end"])) .iso-t { fill: #F4F5F7; }
:is(.crane[data-focus="renovation"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"]), .crane[data-focus="levage"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="rope"], [data-p="hook"], [data-p="load"]), .crane[data-focus="depannages"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"], [data-p="end"])) .iso-l { fill: #E8EBEE; }
:is(.crane[data-focus="renovation"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"]), .crane[data-focus="levage"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="rope"], [data-p="hook"], [data-p="load"]), .crane[data-focus="depannages"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"], [data-p="end"])) .iso-r { fill: #DCE0E5; }
:is(.crane[data-focus="renovation"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"]), .crane[data-focus="levage"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="rope"], [data-p="hook"], [data-p="load"]), .crane[data-focus="depannages"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"], [data-p="end"])) polygon { stroke: rgba(15, 18, 23, 0.07); }
:is(.crane[data-focus="renovation"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"]), .crane[data-focus="levage"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="rope"], [data-p="hook"], [data-p="load"]), .crane[data-focus="depannages"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"], [data-p="end"])) line, :is(.crane[data-focus="renovation"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"]), .crane[data-focus="levage"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="rope"], [data-p="hook"], [data-p="load"]), .crane[data-focus="depannages"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"], [data-p="end"])):is(line, path) { stroke: #CDD2D9; }
:is(.crane[data-focus="renovation"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"]), .crane[data-focus="levage"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="rope"], [data-p="hook"], [data-p="load"]), .crane[data-focus="depannages"] [data-p]:not([data-p="ground"], [data-p="hoist"], [data-p="cab"], [data-p="end"])).c-bolt { fill: #DCE0E5; stroke: none; }
.crane:not([data-focus="maintenance"]) .spot { opacity: 0.3; }
.crane:not([data-focus="maintenance"]) .c-axis { animation: none; opacity: 0; }
.crane[data-focus="renovation"] .spot[data-n="4"],
.crane[data-focus="levage"] .spot[data-n="1"],
.crane[data-focus="depannages"] :is(.spot[data-n="2"], .spot[data-n="4"]) { opacity: 1; }
.crane[data-focus="levage"] .c-axis--z { opacity: 1; color: var(--accent); }
/* Le coffret, gris clair par nature, reçoit un liseré bleu quand il est concerné */
.crane:is([data-focus="renovation"], [data-focus="depannages"]) [data-p="cab"] polygon { stroke: var(--accent); stroke-width: 1.2; }
.crane:not([data-focus="maintenance"]) :is(.c-bridge, .c-trolley, .c-hook, .c-rope) { animation: none; }

/* Radiocommande : n'apparaît que pour « Levage et radiocommandes » */
.c-radio { opacity: 0; pointer-events: none; }
.crane[data-focus="levage"] .c-radio { opacity: 1; }
.c-radio__body { fill: var(--ink); }
.c-radio__screen { fill: #5470C6; }
.c-radio__key { fill: #FFFFFF; }
.c-radio__key--up { fill: #FFFFFF; }
.c-radio__stop { fill: #D64545; }
.c-radio__ant { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.c-radio__tip { fill: var(--ink); }
.c-wave { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .crane[data-focus="levage"] .c-hook { animation: c-lift 4.4s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .crane[data-focus="levage"] .c-rope { animation: c-lift-rope 4.4s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .crane[data-focus="levage"] .c-wave { animation: c-wave 1.5s ease-out infinite; animation-delay: calc(var(--k) * 0.18s); }
  .crane[data-focus="depannages"] .c-bolt { animation: c-blink 1.1s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .crane[data-focus="levage"] .c-wave { opacity: 1; }
}
@keyframes c-lift {
  0%, 12% { transform: translateY(0); }
  50%, 62% { transform: translateY(var(--hup)); }
  100% { transform: translateY(0); }
}
@keyframes c-lift-rope {
  0%, 12% { transform: scaleY(1); }
  50%, 62% { transform: scaleY(var(--rup)); }
  100% { transform: scaleY(1); }
}
@keyframes c-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Onglets du pont roulant (mobile) : mêmes pastilles que la scène « En atelier » */
.crane .stage__tabs { margin-bottom: 10px; }
@media (max-width: 720px) {
  .js .crane .stage__tabs { display: flex; }
  .crane .stage__tab { flex: 1 1 auto; padding-inline: 10px; }
}
/* La légende change avec la prestation : deux lignes réservées sur mobile pour que la page ne bouge pas */
@media (max-width: 560px) {
  .crane__cap { min-height: 3.3em; }
}

/* Gamme en stock : la ligne survolée de la fiche met en avant sa partie du schéma, avec un petit geste */
.ra-sec { transition: opacity 0.35s ease; }
.range[data-sec] .ra-sec { opacity: 0.25; }
.range[data-sec="puissance"] .ra-sec[data-sec="puissance"],
.range[data-sec="fixation"] .ra-sec[data-sec="fixation"],
.range[data-sec="vitesse"] .ra-sec[data-sec="vitesse"] { opacity: 1; }
.ra-dial { transition: stroke 0.35s ease; }
.range[data-sec="vitesse"] .ra-dial { stroke: var(--accent); }
.specs--vis > div { position: relative; transition: padding-left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.specs--vis > div::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.specs--vis > div.is-active { padding-left: 14px; }
.specs--vis > div.is-active::before { transform: scaleY(1); }
.specs--vis > div.is-active dt { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .range[data-sec="puissance"] .ra-mi { animation: ra-hop 0.6s cubic-bezier(0.3, 0.9, 0.4, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .range[data-sec="puissance"] .ra-arrow { animation: ra-draw 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
  .range[data-sec="fixation"] .ra-fixm--b3 { animation: ra-drop 0.6s cubic-bezier(0.3, 1.3, 0.5, 1) both; }
  .range[data-sec="fixation"] .ra-fixm--b5 { animation: ra-dock 0.6s cubic-bezier(0.3, 1.3, 0.5, 1) 0.1s both; }
}
@media (prefers-reduced-motion: reduce) {
  .specs--vis > div, .specs--vis > div::before, .ra-sec, .ra-dial { transition: none; }
}
@keyframes ra-hop { 40% { transform: translateY(-8px); } }
@keyframes ra-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ra-drop { from { transform: translateY(-12px); } }
@keyframes ra-dock { from { transform: translateX(14px); } }

/* Confirmation d'envoi : le moteur démarre, ralentit et s'efface, le cercle se ferme et la coche se trace.
   Sans animation, seul l'état final (cercle et coche verts) est affiché. */
.done-motor { width: 56px; height: 56px; overflow: visible; }
.dm-track { fill: none; stroke: var(--line); stroke-width: 2; }
.dm-slots rect { fill: var(--copper); }
.dm-n { fill: var(--deep); }
.dm-s { fill: var(--steel-2); }
.dm-hub { fill: #FFFFFF; stroke: var(--steel-2); stroke-width: 1; }
.dm-rotor, .dm-slots { opacity: 0; }
.dm-rotor { transform-box: view-box; transform-origin: 32px 32px; }
.dm-ring, .dm-check { fill: none; stroke: var(--open); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dm-slots { animation: dm-slots 1.5s ease both; }
  .dm-rotor { animation: dm-spin 1.5s both; }
  .dm-ring { animation: dm-draw 0.6s cubic-bezier(0.3, 0.6, 0.2, 1) 0.95s both; }
  .dm-check { animation: dm-draw 0.4s cubic-bezier(0.3, 0.6, 0.2, 1) 1.4s both; }
  .form__done > :not(.done-motor) { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1s both; }
}
@keyframes dm-slots { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dm-spin {
  0% { opacity: 0; transform: rotate(0deg) scale(0.6); animation-timing-function: cubic-bezier(0.5, 0, 0.6, 1); }
  12% { opacity: 1; transform: rotate(0deg) scale(1); animation-timing-function: cubic-bezier(0.55, 0, 0.35, 1); }
  72% { opacity: 1; transform: rotate(600deg) scale(1); animation-timing-function: ease-in; }
  100% { opacity: 0; transform: rotate(690deg) scale(0.35); }
}
@keyframes dm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Page « merci » : même confirmation au-dessus du titre */
.page .done-motor { margin-bottom: 20px; }

/* ==========================================================================
   Ajouts du 10/10 (suite) : camion sur la carte, statut « Ouvert », téléphone
   ========================================================================== */

/* Carte : le camion nacelle roule de l'atelier vers la ville choisie, puis la distance s'affiche */
.z-truck { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.z-truck.is-on { opacity: 1; }
.z-truck.is-driving { transition: opacity 0.25s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.z-truck__body { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(var(--ts, 1)); }
.z-truck.is-left .z-truck__body { transform: scale(calc(var(--ts, 1) * -1), var(--ts, 1)); }
.z-truck__box { fill: var(--accent); }
.z-truck__cab { fill: var(--accent-hover); }
.z-truck__glass { fill: #DCE4F7; }
.z-truck__chassis { fill: var(--ink-2); }
.z-truck__wheel { fill: var(--ink); stroke: #FFFFFF; stroke-width: 0.8; }
.z-truck__hub { fill: #FFFFFF; }
.z-truck__arm { fill: none; stroke: var(--steel-2); stroke-width: 2; stroke-linecap: round; }
.z-truck__basket { fill: #FFFFFF; stroke: var(--steel-2); stroke-width: 1.2; }
@media (max-width: 560px) { .z-truck { --ts: 1.5; } }
.z-tip.is-reset { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .z-tip.is-on { transition-delay: 0.5s; }
}

/* Statut « Ouvert » : le point vert respire lentement, seulement pendant les heures d'ouverture */
.status__dot { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .status.is-open .status__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: status-breathe 3.2s ease-out infinite;
  }
}
@keyframes status-breathe {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* Téléphone : le combiné vibre brièvement au survol des boutons d'appel */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a[href^="tel:"] .ico { transform-origin: 50% 50%; }
  a[href^="tel:"]:hover .ico { animation: tel-ring 0.6s ease-in-out; }
}
@keyframes tel-ring {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(11deg); }
  45% { transform: rotate(-8deg); }
  60% { transform: rotate(5deg); }
  75% { transform: rotate(-2deg); }
}
