/* ==========================================================================
   AM AUTO - Garage mecanique, Pau
   Le site est construit autour d'une sequence en ecorche CGI : un vehicule
   fantome, du face-avant jusqu'a l'etrier de frein. La video est defilee
   image par image sur un canvas fixe et sert d'environnement a toute la
   premiere partie de la page.

   Principes de cette passe :
   - le fond du site EST le noir de la video (mesure, pas estime) ;
   - la video n'a jamais de bord : plein cadre en paysage, bande fondue en
     portrait ;
   - le texte s'appuie sur des voiles fixes pleine hauteur, jamais sur des
     blocs ou des cartes ;
   - une seule couleur d'accent, le bleu de la charte, utilise avec parcimonie.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. POLICES AUTO-HEBERGEES (licence OFL)
   Archivo : grotesque technique a axe de largeur, nommee dans le brief
   d'origine. Inter : texte courant et interface.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   Palette mesuree sur la video (une image par seconde, 15 images) :
   - percentile 5 de luminance, le vrai noir du plateau : #060a0d a #0a0d12 ;
   - percentile 20 : #0d1518 a #14181b ;
   Le fond se place entre les deux. Les gris froids reprennent la teinte des
   reflets du sol et du chrome ; le bleu est celui de la charte AM AUTO.
   -------------------------------------------------------------------------- */

:root {
  --void: #0a0d10;
  --void-rgb: 10, 13, 16;
  --carbon: #11161a;
  --graphite: #1c2227;
  --chrome: #b8bec4;
  --mist: #8b939b;
  --paper: #e9edf1;
  --paper-dim: #c7cdd3;
  --blue: #1b6fd6;
  --blue-light: #4a8fe4;
  --glow: #8cc8ff;
  --line: rgba(233, 237, 241, 0.1);
  --line-strong: rgba(233, 237, 241, 0.22);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 2px;
  --wrap: 1360px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Colonne de texte du storytelling et position de son bord : partagees
     par les sections et par les voiles, qui suivent ainsi le texte quelle
     que soit la largeur d'ecran. */
  --col: clamp(19rem, 28vw, 27rem);
  --edge-x: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3. RESET
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lenis pilote le defilement : on neutralise le lissage natif. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

img,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 360;
  font-stretch: 100%;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Libelle technique : Archivo en largeur maximale, comme une plaque de
   specification. Seul element en capitales espacees du site. */
.section-label,
.info-label,
.footer-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
}

/* --------------------------------------------------------------------------
   4. CHARGEUR
   -------------------------------------------------------------------------- */

#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--void);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2rem;
  padding: var(--gutter);
  transition: opacity 900ms var(--ease), visibility 900ms var(--ease);
}

#loader.is-done {
  opacity: 0;
  visibility: hidden;
  /* Pendant le fondu, il ne doit plus intercepter les clics. */
  pointer-events: none;
}

.loader-logo {
  width: clamp(104px, 14vw, 156px);
  height: auto;
}

.loader-track {
  width: min(240px, 50vw);
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--paper);
  transition: width 200ms linear;
}

#loader-percent {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   5. EN-TETE FIXE
   Transparent sur la video ; prend un fond plein, sans flou, des que la
   partie courante du site passe dessous (classe posee par js/app.js).
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(var(--void-rgb), 0);
  border-bottom: 1px solid transparent;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease);
}

.site-header.is-solid {
  background: rgba(var(--void-rgb), 1);
  border-bottom-color: var(--line);
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.brand img {
  height: 46px;
  width: auto;
}

.site-nav {
  margin-left: auto;
  display: none;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.site-nav > ul > li > a {
  font-size: 0.8125rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper-dim);
  padding-block: 0.35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 240ms ease, background-size 400ms var(--ease);
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a[aria-current] {
  color: var(--paper);
  background-size: 100% 1px;
}

.header-tel {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.95rem;
  transition: border-color 240ms ease, background-color 240ms ease;
}

.header-tel:hover {
  border-color: var(--paper);
}

.burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
}

.burger .icon-close,
.burger[aria-expanded="true"] .icon-open {
  display: none;
}

.burger[aria-expanded="true"] .icon-close {
  display: block;
}

#mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 89;
  background: var(--void);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.75rem;
  display: none;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}

#mobile-nav[data-open="true"] {
  display: block;
}

#mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  padding: 0.85rem 0;
}

#mobile-nav li + li a {
  border-top: 1px solid var(--line);
}

#mobile-nav .btn {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 1000px) {
  .burger,
  #mobile-nav {
    display: none;
  }
  .site-nav,
  .header-tel {
    display: flex;
  }
}

/* Sous-menu « Nos prestations ».
   Bureau : panneau pleine largeur sous l'en-tete, ouvert au survol, ou au
   clic sur le chevron (clavier, ecran tactile). Meme aplat noir que
   l'en-tete, filets fins, aucune ombre. */
.nav-sub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

/* Pont invisible entre le lien et le panneau : le survol ne se perd pas en
   descendant la souris. */
.nav-sub::after {
  content: "";
  position: absolute;
  left: -1rem;
  right: -1rem;
  top: 100%;
  height: calc(var(--header-h) / 2 + 6px);
}

.nav-sub__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--paper-dim);
  cursor: pointer;
  font-size: 0.875rem;
}

.nav-sub__toggle .icon {
  transition: transform 300ms var(--ease);
}

.nav-sub__panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--void);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 2.25rem 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 300ms var(--ease), visibility 0s linear 300ms;
}

.nav-sub.is-open .nav-sub__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.nav-sub.is-open .nav-sub__toggle .icon {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .nav-sub:hover .nav-sub__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 60ms, 60ms, 0s;
  }
  .nav-sub:hover .nav-sub__toggle .icon {
    transform: rotate(180deg);
  }
  .site-header:has(.nav-sub:hover:not(.is-closing)) {
    background: var(--void);
    border-bottom-color: var(--line);
  }
}

/* Apres un clic sur un lien du panneau : on referme, meme sous la souris. */
.nav-sub.is-closing .nav-sub__panel {
  opacity: 0;
  visibility: hidden;
}

.site-header:has(.nav-sub.is-open) {
  background: var(--void);
  border-bottom-color: var(--line);
}

.nav-sub__inner {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.nav-sub__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 1.25rem;
}

.nav-sub__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
}

.nav-sub__all:hover {
  color: var(--blue-light);
}

.nav-sub__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.nav-sub__list li {
  border-top: 1px solid var(--line);
}

.nav-sub__list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  font-size: 0.9375rem;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 200ms ease;
}

.nav-sub__list a .icon {
  font-size: 1.15rem;
  color: var(--chrome);
  transition: color 200ms ease;
}

.nav-sub__list a:hover,
.nav-sub__list a[aria-current="page"] {
  color: var(--paper);
}

.nav-sub__list a:hover .icon,
.nav-sub__list a[aria-current="page"] .icon {
  color: var(--blue-light);
}

/* Mobile : « Nos prestations » se deplie dans le menu. */
.mnav-sub {
  border-top: 1px solid var(--line);
}

.mnav-sub__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 340;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
}

.mnav-sub__toggle .icon {
  font-size: 1.15rem;
  color: var(--chrome);
  transition: transform 300ms var(--ease);
}

.mnav-sub__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.mnav-sub__list {
  margin: 0 0 0.75rem;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--line);
}

#mobile-nav .mnav-sub__list li a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  padding: 0.5rem 0;
  border-top: 0;
  color: var(--paper-dim);
}

#mobile-nav .mnav-sub__list li a[aria-current="page"] {
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   6. BOUTONS
   Pas de relief, pas d'ombre : seule la matiere change au survol.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 260ms ease, border-color 260ms ease,
    color 260ms ease;
}

.btn .icon {
  font-size: 1.05em;
  transition: transform 400ms var(--ease);
}

.btn:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.btn:hover svg:has(use[href="#i-arrow-narrow-right"]) {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--paper);
}

/* --------------------------------------------------------------------------
   7. HERO
   Transparent : la premiere image de la video est deja la, plein cadre.
   Le titre s'installe en bas a gauche, sur le sol du studio, sous un voile
   lateral fixe ; il s'efface au defilement et la lumiere revient sur le
   vehicule.
   -------------------------------------------------------------------------- */

.hero-standalone {
  position: relative;
  z-index: 40;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: transparent;
  padding-top: var(--header-h);
}

/* Le vehicule occupe le centre de la premiere image, du pare-brise au
   bouclier : le texte se range dans la bande basse, sur le sol du studio,
   et laisse le capot, les phares et le moteur entierement degages. */
.hero-inner {
  align-self: end;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(1.25rem, 3vh, 2.25rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
}

.hero-standalone .section-label {
  display: block;
  margin-bottom: 1.1rem;
}

.hero-heading {
  font-size: clamp(2.5rem, 9.5vw, 4.5rem);
  font-weight: 300;
  font-stretch: 104%;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.hero-heading span > i {
  font-style: normal;
}

/* Le libelle « Garage automobile à Pau » est dans le titre (pour les
   moteurs de recherche) mais garde exactement son allure de libelle. */
.hero-heading .section-label {
  line-height: 1.65;
  white-space: normal;
}

.hero-heading .accent {
  color: var(--blue-light);
}

.hero-tagline {
  max-width: 40ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--paper-dim);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-aspect-ratio: 1/1) and (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    column-gap: 3rem;
  }
  .hero-standalone .section-label,
  .hero-heading {
    grid-column: 1 / -1;
  }
  .hero-heading {
    font-size: clamp(2.75rem, 4.3vw, 4.75rem);
    white-space: nowrap;
  }
  .hero-heading .hero-line {
    display: inline;
  }
  .hero-tagline {
    max-width: 62ch;
    margin-bottom: 0;
  }
  .hero-actions {
    justify-content: flex-end;
  }
}

@media (max-aspect-ratio: 1/1), (max-width: 999px) {
  .hero-heading .hero-line {
    display: block;
  }
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) 2rem;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.scroll-cue::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--chrome);
  transform-origin: left;
  animation: cue 3.2s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: scaleX(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   8. LA VIDEO ET SON ENVIRONNEMENT
   Ordre des couches fixes (bas vers haut) :
   10 canvas   15 voile d'ouverture   16 fondus haut/bas
   17-18 voiles de lecture
   -------------------------------------------------------------------------- */

/* Le canvas remplit le viewport. Son fond est le noir du site : en
   portrait, la bande video se fond dedans par le haut et par le bas (degrade
   dessine dans le canvas lui-meme, voir drawFrame dans js/app.js). */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--void);
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
}

/* Voile d'ouverture : la video arrive legerement assombrie sous le titre et
   s'eclaire quand le hero s'efface. Opacite pilotee par js/app.js. */
#canvas-veil {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: var(--void);
  opacity: 0.32;
  pointer-events: none;
}

/* Fondus haut et bas, toujours presents : sous l'en-tete pour sa lisibilite,
   et en bas pour preparer la continuite avec la suite de la page. Jamais de
   vignette radiale : l'eclairage du studio en porte deja une. */
#canvas-vignette {
  position: fixed;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--void-rgb), 0.78) 0, rgba(var(--void-rgb), 0) 22vh),
    linear-gradient(to top, rgba(var(--void-rgb), 0.6) 0, rgba(var(--void-rgb), 0) 20vh);
}

/* Voiles de lecture : pleine hauteur, fixes, ils ne bougent pas avec le
   texte. Seule leur opacite change quand une section entre ou sort, de sorte
   qu'aucune bande a bord net ne traverse jamais la video. */
.scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

.scrim.is-on {
  opacity: 1;
}

#scrim-left {
  z-index: 17;
  background: linear-gradient(
    90deg,
    rgba(var(--void-rgb), 0.9) 0,
    rgba(var(--void-rgb), 0.84) calc(var(--edge-x) + var(--col) * 0.85),
    rgba(var(--void-rgb), 0.55) calc(var(--edge-x) + var(--col) + 4vw),
    rgba(var(--void-rgb), 0.2) calc(var(--edge-x) + var(--col) + 12vw),
    rgba(var(--void-rgb), 0) calc(var(--edge-x) + var(--col) + 22vw)
  );
}

#scrim-right {
  z-index: 18;
  background: linear-gradient(
    270deg,
    rgba(var(--void-rgb), 0.9) 0,
    rgba(var(--void-rgb), 0.84) calc(var(--edge-x) + var(--col) * 0.85),
    rgba(var(--void-rgb), 0.55) calc(var(--edge-x) + var(--col) + 4vw),
    rgba(var(--void-rgb), 0.2) calc(var(--edge-x) + var(--col) + 12vw),
    rgba(var(--void-rgb), 0) calc(var(--edge-x) + var(--col) + 22vw)
  );
}

/* Voile bas : sous le titre du hero sur tous les ecrans, et sous les
   sections en portrait. Il assombrit le sol du studio, jamais le vehicule. */
#scrim-bottom {
  z-index: 17;
  background: linear-gradient(
    to top,
    rgba(var(--void-rgb), 0.9) 0%,
    rgba(var(--void-rgb), 0.72) 18%,
    rgba(var(--void-rgb), 0.3) 32%,
    rgba(var(--void-rgb), 0) 44%
  );
}

/* --------------------------------------------------------------------------
   9. CONTENEUR DE DEFILEMENT ET SECTIONS
   Les plages data-enter / data-leave et l'ordre des sections sont ceux de la
   version precedente : seule la mise en page change. Pendant sa plage, une
   section se tient immobile a cote de la mecanique, a la maniere d'une
   annotation de planche technique, au lieu de traverser l'ecran.
   -------------------------------------------------------------------------- */

#scroll-container {
  position: relative;
  z-index: 30;
  height: 850vh;
  pointer-events: none;
}

.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  /* Bord gauche du texte = bord du contenu de l'en-tete : la grille reste
     la meme du logo au pied de page. */
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}

html.js-mode .scroll-section:not([data-persist="true"]) {
  position: fixed;
  top: 50%;
}

.scroll-section .section-inner,
.scroll-section .cta-row,
.scroll-section a,
.scroll-section button {
  pointer-events: auto;
}

.align-left {
  padding-left: var(--edge);
  padding-right: var(--gutter);
}

.align-right {
  display: flex;
  justify-content: flex-end;
  padding-right: var(--edge);
  padding-left: var(--gutter);
}

.align-left .section-inner,
.align-right .section-inner {
  width: var(--col);
}

/* Trait d'annotation : depuis le libelle, vers le vehicule. */
.scroll-section .section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.align-left .section-label::after,
.align-right .section-label::before {
  content: "";
  height: 1px;
  width: clamp(2.5rem, 6vw, 6rem);
  background: linear-gradient(90deg, var(--chrome), rgba(184, 190, 196, 0));
  opacity: 0.7;
}

.align-right .section-label::before {
  order: 0;
  background: linear-gradient(270deg, var(--chrome), rgba(184, 190, 196, 0));
}

.align-right .section-label {
  flex-direction: row;
}

.section-heading {
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  margin-bottom: 1.15rem;
}

/* Titres du storytelling : ce sont des phrases (« Un embrayage qui patine,
   ce n'est pas normal. »), pas des libelles. Ils peuvent depasser un peu la
   colonne pour tenir sur deux lignes, coupees a la virgule (retour a la
   ligne dans le HTML). Le bord gauche reste toujours aligne sur le texte :
   a gauche le titre deborde vers le vehicule, a droite vers la marge de
   l'ecran, sans jamais sortir de l'ecran. */
.align-left .section-heading,
.align-right .section-heading {
  font-size: clamp(1.875rem, 2.75vw, 2.875rem);
  width: calc(var(--col) * 1.22);
}

.align-right .section-heading {
  width: calc(var(--col) + min(var(--col) * 0.22, var(--edge-x) - 1.25rem));
}

.section-body {
  color: var(--paper);
  font-size: clamp(0.9688rem, 1.05vw, 1.0625rem);
  margin-bottom: 1.5rem;
}

.section-note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--paper-dim);
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}

.section-note strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 0.35rem;
}

/* Appel final : seul moment ou le texte est centre. */
.section-cta {
  padding-inline: var(--gutter);
  text-align: center;
}

/* Appel final : il defile avec la fin de la sequence (position absolue
   calculee par js/app.js) pour ne jamais croiser la suite de la page. Un
   voile elliptique a bords nuls le detache de l'etrier illumine. */
.section-cta {
  padding-block: 12vh;
  background: radial-gradient(
    ellipse 55% 60% at center,
    rgba(var(--void-rgb), 0.78) 0%,
    rgba(var(--void-rgb), 0.5) 55%,
    rgba(var(--void-rgb), 0) 100%
  );
}

.cta-heading {
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.cta-sub {
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   10. PARTIE COURANTE DU SITE
   Elle monte par-dessus la video, qui reste visible jusqu'au bout : son
   haut est transparent et rejoint le noir du site sur 60 % de la hauteur
   d'ecran. Le dernier plan s'eteint donc sous les prestations, sans ligne de
   coupure et sans ecran noir entre les deux.
   -------------------------------------------------------------------------- */

.page-body {
  position: relative;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(var(--void-rgb), 0) 0,
    rgba(var(--void-rgb), 0.82) 32vh,
    var(--void) 60vh
  );
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(3rem, 6vw, 4.75rem);
}

.section-head .section-heading,
.page-body .section-heading {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 320;
  letter-spacing: -0.03em;
}

.section-head .section-heading {
  margin-bottom: 1.25rem;
}

.section-head p {
  color: var(--mist);
  max-width: 52ch;
}

/* Prestations : un index editorial a filets, pas une grille de cartes.
   Les dix entrees, leurs textes et leurs volets depliables sont inchanges. */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  row-gap: 0.4rem;
  align-content: start;
  padding-block: 1.75rem 1.6rem;
  border-top: 1px solid var(--line);
  background: none;
}

.card > :not(.card-icon) {
  grid-column: 2;
}

.card-icon {
  grid-column: 1;
  grid-row: 1;
  font-size: 1.375rem;
  margin-top: 0.15rem;
  color: var(--chrome);
  transition: color 300ms ease;
}

.card:hover .card-icon {
  color: var(--blue-light);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.25rem;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.card-title a {
  text-decoration: none;
  transition: color 220ms ease;
}

.card-title a:hover {
  color: var(--blue-light);
}

.card-more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--chrome);
  text-decoration: none;
  transition: color 220ms ease;
}

.card-more:hover {
  color: var(--paper);
}

.card-more .icon {
  transition: transform 400ms var(--ease);
}

.card-more:hover .icon {
  transform: translateX(3px);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--mist);
  max-width: 48ch;
}

.card-disclosure {
  margin-top: 0.6rem;
}

.card-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--paper);
  padding-block: 0.25rem;
  border-radius: var(--radius);
}

.card-summary:hover {
  color: var(--blue-light);
}

.card-summary .icon {
  font-size: 0.9rem;
}

.card-summary::-webkit-details-marker {
  display: none;
}

.card-disclosure[open] .icon-plus,
.card-disclosure .icon-minus {
  display: none;
}

.card-disclosure[open] .icon-minus {
  display: block;
}

.card-detail {
  font-size: 0.9063rem;
  color: var(--paper-dim);
  padding-top: 0.6rem;
  max-width: 50ch;
}

.card-detail strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome);
  margin-bottom: 0.3rem;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pourquoi */
.why-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.why-grid > div > p {
  color: var(--mist);
  max-width: 44ch;
}

/* Lien vers la page « À propos ». */
.why-grid > div > .card-more {
  margin-top: 1.25rem;
}

.why-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}

.why-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.why-list .icon {
  font-size: 1.375rem;
  margin-top: 0.15rem;
  color: var(--chrome);
}

.why-item-title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.25rem;
  letter-spacing: -0.012em;
  margin-bottom: 0.4rem;
}

.why-item-text {
  color: var(--mist);
  font-size: 0.9375rem;
  max-width: 52ch;
}

@media (min-width: 1000px) {
  .why-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* Localisation */
.place-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.info-block + .info-block {
  margin-top: 2rem;
}

.info-label {
  margin-bottom: 0.55rem;
}

.info-block a {
  text-decoration-color: var(--line-strong);
}

.info-block a:hover {
  text-decoration-color: currentColor;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hours th,
.hours td {
  padding: 0.85rem 0;
  font-size: 0.9375rem;
}

.hours th {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom: 1px solid var(--line-strong);
}

.hours th:last-child {
  text-align: right;
}

.hours tbody tr {
  border-bottom: 1px solid var(--line);
}

.hours td:first-child {
  color: var(--paper-dim);
}

.hours td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours .is-closed td:last-child {
  color: var(--mist);
}

/* Carte : couleurs OpenStreetMap d'origine, les plus lisibles pour trouver
   le garage (rues, parkings, points de repere). */
#map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  height: 100%;
  background: var(--carbon);
}

.map-fallback {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 2rem;
  text-align: center;
  color: var(--mist);
}

/* Repere en goutte (Tabler Icons, version pleine) au bleu de la marque ;
   le liseré blanc le detache de n'importe quelle couleur de la carte. */
.map-pin {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--blue);
}

.map-pin path {
  stroke: #fff;
  stroke-width: 1.3px;
  paint-order: stroke;
}

.leaflet-container {
  background: var(--carbon);
  font-family: var(--font-body);
}

#map .leaflet-bar {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

#map .leaflet-bar a {
  background: var(--void);
  color: var(--paper);
  border-bottom-color: var(--line);
}

#map .leaflet-bar a:hover {
  background: var(--graphite);
}

#map .leaflet-control-attribution {
  background: rgba(var(--void-rgb), 0.75);
  color: var(--mist);
}

#map .leaflet-control-attribution a {
  color: var(--paper-dim);
}

#map .leaflet-popup-content-wrapper,
#map .leaflet-popup-tip {
  background: var(--void);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--line-strong);
}

@media (min-width: 1000px) {
  .place-grid {
    grid-template-columns: 1fr 1.3fr;
  }
  #map {
    min-height: 480px;
  }
}

/* Contact : formulaire ouvert, sans panneau autour. */
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-row + .form-row {
  margin-top: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--paper-dim);
  margin-bottom: 0.5rem;
}

.field .req {
  color: var(--mist);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--carbon);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
  transition: border-color 220ms ease, background-color 220ms ease;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(233, 237, 241, 0.34);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  background: var(--graphite);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field-help {
  font-size: 0.8125rem;
  color: var(--mist);
  margin-top: 0.45rem;
}

.field-error {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--glow);
  margin-top: 0.45rem;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-color: var(--glow);
}

.field[data-invalid="true"] .field-error {
  display: flex;
}

.form-actions {
  margin-top: 1.75rem;
}

.form-status {
  margin-top: 1.25rem;
  border-left: 1px solid var(--blue-light);
  padding: 0.25rem 0 0.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--paper-dim);
}

.form-status:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aside .info-block {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

@media (min-width: 900px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Pied de page : meme noir que le reste, un seul filet pour le separer. */
.site-footer {
  position: relative;
  z-index: 50;
  background: var(--void);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-logo {
  height: 68px;
  width: auto;
}

.footer-grid > div > p {
  color: var(--mist);
  max-width: 30ch;
  margin-top: 1rem;
}

.footer-title {
  margin-bottom: 1rem;
}

.footer-list {
  color: var(--mist);
  font-size: 0.9375rem;
}

.footer-list li + li {
  margin-top: 0.5rem;
}

.footer-list a {
  text-decoration: none;
  transition: color 220ms ease;
}

.footer-list a:hover {
  color: var(--paper);
}

.social {
  display: flex;
  gap: 1.25rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  color: var(--chrome);
  transition: color 220ms ease;
}

.social a:hover {
  color: var(--paper);
}

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--mist);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--paper);
}

@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.15fr 0.9fr 1.1fr 1.15fr 0.7fr;
  }
}

/* Page mentions legales */
.legal {
  max-width: 74ch;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}

.legal h1.section-heading {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 320;
  letter-spacing: -0.03em;
}

.legal h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 400;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal p {
  color: var(--mist);
}

.legal p + p {
  margin-top: 0.9rem;
}

.legal ul {
  list-style: square;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  color: var(--mist);
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal .todo {
  background: var(--blue);
  color: #fff;
  padding: 0.05rem 0.35rem;
  font-weight: 500;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   11. PORTRAIT (mobile, tablette verticale)
   La video ne peut plus etre plein cadre sans perdre les deux tiers du
   vehicule : elle devient une bande fondue dans le tiers superieur (voir
   drawFrame), et le texte s'installe dessous, sur un voile bas.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  #scroll-container {
    height: 620vh;
  }
}

@media (max-aspect-ratio: 1/1) {
  .hero-inner {
    padding-bottom: clamp(1rem, 3vh, 2rem);
  }

  .hero-heading {
    font-size: clamp(2.5rem, 11.5vw, 4.5rem);
  }

  .scroll-cue {
    display: none;
  }

  html.js-mode .scroll-section.align-left,
  html.js-mode .scroll-section.align-right {
    top: auto;
    bottom: max(4.5vh, env(safe-area-inset-bottom));
    transform: none;
    padding-inline: var(--gutter);
    justify-content: flex-start;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    width: 100%;
    max-width: 34rem;
  }

  .align-left .section-label::after,
  .align-right .section-label::before {
    display: none;
  }

  .section-heading,
  .align-left .section-heading,
  .align-right .section-heading {
    font-size: clamp(1.625rem, 6.8vw, 2.375rem);
    width: auto;
  }

  .section-body {
    margin-bottom: 1.1rem;
  }

  /* Plus de voiles lateraux : le texte vit sous la bande video, sur le voile
     bas, plus haut qu'en paysage pour couvrir tout le bloc de texte. */
  #scrim-left,
  #scrim-right {
    display: none;
  }

  #scrim-bottom {
    background: linear-gradient(
      to top,
      rgba(var(--void-rgb), 0.94) 0%,
      rgba(var(--void-rgb), 0.86) 34%,
      rgba(var(--void-rgb), 0.4) 50%,
      rgba(var(--void-rgb), 0) 62%
    );
  }
}

/* --------------------------------------------------------------------------
   12. MOUVEMENT REDUIT ET ABSENCE DE JAVASCRIPT
   La page se replie en un document classique : le canvas devient une image
   fixe, fondue sur ses bords comme la video, et les sections reprennent le
   flux normal. Rien ne depend du defile.
   -------------------------------------------------------------------------- */

html.static-mode #loader {
  display: none;
}

html.static-mode .canvas-wrap,
html.static-mode #canvas-veil,
html.static-mode #canvas-vignette,
html.static-mode .scrim {
  display: none;
}

html.static-mode .hero-standalone {
  min-height: auto;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 2rem;
}

html.static-mode .site-header {
  background: var(--void);
  border-bottom-color: var(--line);
}

html.static-mode #scroll-container {
  height: auto;
  pointer-events: auto;
  padding-block: 1rem 2rem;
}

html.static-mode .scroll-section {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  display: block;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  background: none;
}

html.static-mode .align-left .section-inner,
html.static-mode .align-right .section-inner {
  width: auto;
  max-width: 40rem;
  margin-inline: auto;
}

html.static-mode .align-left .section-heading,
html.static-mode .align-right .section-heading {
  width: auto;
}

html.static-mode .page-body {
  background: var(--void);
  padding-top: 0;
}

.static-still {
  display: none;
}

html.static-mode .static-still {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto clamp(1rem, 3vw, 2rem);
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at center, #000 55%, transparent 100%);
}

/* --------------------------------------------------------------------------
   13. PAGES PRESTATIONS
   Meme grammaire que l'accueil : image tiree de la video, fondue dans le
   noir du site sans aucun bord, texte sur filets fins, aucune carte.
   -------------------------------------------------------------------------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--mist);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--chrome);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--paper);
}

/* En-tete : l'image occupe la droite et se dissout vers le texte, vers le
   bas et sous l'en-tete fixe. */
.svc-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(84svh, 800px);
  padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 6rem));
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
}

.svc-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(70%, 1200px);
}

.svc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(var(--void-rgb), 0.86) 14%, rgba(var(--void-rgb), 0.32) 42%, rgba(var(--void-rgb), 0) 64%),
    linear-gradient(0deg, var(--void) 0%, rgba(var(--void-rgb), 0.55) 18%, rgba(var(--void-rgb), 0) 42%),
    linear-gradient(180deg, rgba(var(--void-rgb), 0.75) 0%, rgba(var(--void-rgb), 0) 24%);
}

.svc-hero__inner {
  position: relative;
  z-index: 1;
}

.svc-hero__inner > * {
  max-width: 40rem;
}

.svc-title {
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
}

.svc-lede {
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  color: var(--paper-dim);
  max-width: 46ch;
  margin-bottom: 2rem;
}

/* L'accueil aligne ses boutons a droite au bureau : pas ici. */
.svc-hero .hero-actions {
  justify-content: flex-start;
}

/* Corps : texte a gauche, contact a droite. */
.svc-layout {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.svc-main {
  max-width: 46rem;
}

.svc-block + .svc-block {
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.svc-block h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.svc-block p {
  color: var(--paper-dim);
}

.svc-block > p + p {
  margin-top: 1rem;
}

.svc-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.svc-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
}

.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.6em;
  width: 0.875rem;
  height: 1px;
  background: var(--chrome);
}

.svc-complement {
  margin-top: 1.25rem;
}

.svc-faq details {
  border-top: 1px solid var(--line);
}

.svc-faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.svc-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--paper);
}

.svc-faq summary:hover {
  color: var(--blue-light);
}

.svc-faq summary::-webkit-details-marker {
  display: none;
}

.svc-faq summary .icon {
  font-size: 1rem;
  margin-top: 0.25rem;
  color: var(--chrome);
}

.svc-faq details[open] .icon-plus,
.svc-faq details .icon-minus {
  display: none;
}

.svc-faq details[open] .icon-minus {
  display: block;
}

.svc-faq details p {
  margin: 0;
  padding-bottom: 1.35rem;
  max-width: 60ch;
}

.svc-aside {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}

.svc-aside .info-block p:not(.info-label) {
  color: var(--paper-dim);
}

.svc-aside .btn {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}

@media (min-width: 1000px) {
  .svc-layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: start;
  }
  .svc-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.svc-cta {
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  border-top: 1px solid var(--line);
}

.svc-others {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.svc-others h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.svc-others ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  column-gap: clamp(2rem, 4vw, 3rem);
}

.svc-others li {
  border-top: 1px solid var(--line);
}

.svc-others a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color 220ms ease;
}

.svc-others a:hover {
  color: var(--paper);
}

.svc-others .icon {
  font-size: 1.25rem;
  color: var(--chrome);
}

@media (min-width: 640px) {
  .svc-others ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .svc-others ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Portrait : l'image passe au-dessus du texte, fondue par le bas. */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
  .svc-hero {
    display: block;
    min-height: 0;
    padding-top: var(--header-h);
    padding-bottom: 2.5rem;
  }
  .svc-hero__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .svc-hero__media::after {
    background:
      linear-gradient(0deg, var(--void) 0%, rgba(var(--void-rgb), 0) 45%),
      linear-gradient(180deg, rgba(var(--void-rgb), 0.5) 0%, rgba(var(--void-rgb), 0) 25%);
  }
  .svc-hero__inner {
    margin-top: -2rem;
  }
}

/* --------------------------------------------------------------------------
   14. PAGE « À PROPOS »
   Meme squelette que les pages prestations. Les engagements reprennent la
   liste de l'accueil ; le deroule d'une intervention est une ligne de
   repere continue, sans numerotation.
   -------------------------------------------------------------------------- */

.page-a-propos .why-list {
  margin-top: 1.5rem;
}

.about-steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.about-steps li {
  position: relative;
  padding: 0 0 1.75rem 2rem;
}

.about-steps li:last-child {
  padding-bottom: 0;
}

/* Repere de l'etape. */
.about-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5625rem;
  height: 0.5625rem;
  border: 1px solid var(--chrome);
  border-radius: 50%;
  background: var(--void);
}

/* Ligne qui relie les etapes. */
.about-steps li::after {
  content: "";
  position: absolute;
  left: calc(0.28125rem - 0.5px);
  top: 1.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: var(--line-strong);
}

.about-steps li:last-child::after {
  display: none;
}

.about-steps h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.svc-block > .card-more {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::before {
    animation: none;
    transform: scaleX(1);
  }
  .btn,
  .btn .icon,
  .card-icon,
  .social a,
  .site-nav > ul > li > a,
  .nav-sub__panel,
  .nav-sub__toggle .icon,
  .mnav-sub__toggle .icon,
  .header-tel,
  .site-header,
  .scrim,
  #loader {
    transition: none;
  }
}
