/* ==========================================================================
   ArmorAuto — Saint-Brieuc
   Feuille de styles principale
   Issue de l'export Claude Design « ArmorAuto vitrine location ».
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de design
   -------------------------------------------------------------------------- */
:root {
  /* Bleus nuit / fonds sombres */
  --night:          #081330;
  --night-panel:    #12224A;
  --ink:            #0B1530;
  --ink-hover:      #16244A;

  /* Bleus d'accent */
  --blue:           #2453F0;
  --blue-hover:     #1A3FC4;
  --blue-deep:      #1A3FB8;
  --blue-sky:       #8FB0FF;

  /* Textes secondaires sur fond clair */
  --muted:          #5B6A8A;
  --label:          #33415F;
  --placeholder:    #7F8CA8;

  /* Textes sur fond sombre */
  --on-night-1:     #D5DEF2;
  --on-night-2:     #C7D2EA;
  --on-night-3:     #AFBEDD;
  --on-night-4:     #8C9BBD;

  /* Fonds clairs */
  --paper:          #FFFFFF;
  --mist:           #F4F7FD;
  --mist-card:      #F7F9FD;
  --mist-field:     #FAFBFE;
  --slot:           #EEF3FC;
  --tint:           #EEF3FF;
  --tint-strong:    #E3EAF8;

  /* Filets */
  --line:           #E6EBF5;
  --line-strong:    #DCE3F0;
  --line-card:      #E3E9F4;
  --line-blue:      #D5DFF5;
  --line-blue-2:    #C9D6F7;
  --line-night:     rgba(255, 255, 255, 0.14);

  /* Signaux */
  --green:          #22C55E;
  --danger:         #C62F45;

  /* Typographie — Archivo est utilisée élargie (font-stretch 112 % à 125 %) */
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Mise en page */
  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 80px;

  /* Ombres */
  --shadow-float: 0 10px 40px rgba(8, 19, 48, 0.18);
  --shadow-card:  0 22px 50px rgba(8, 19, 48, 0.10);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms ease;
  --t-base: 250ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Compense l’en-tête fixe lors des sauts d’ancre : hauteur de la pilule + marge */
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, p, blockquote, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }

abbr[title] { text-decoration: none; cursor: help; }

/* L'attribut hidden l'emporte toujours sur les display des composants */
[hidden] { display: none !important; }

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

/* Accessibilité : anneau de focus visible et cohérent partout */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.nuit :focus-visible,
.contact__info :focus-visible,
.site-footer :focus-visible { outline-color: var(--blue-sky); }

/* Lien d'évitement pour la navigation clavier */
.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  background: var(--blue);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--t-fast);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: #FFFFFF; }

/* Garde un nom composé sur une ligne (« Saint-Brieuc ») */
.nowrap { white-space: nowrap; }

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

/* Planche de pictogrammes, invisible */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }

/* --------------------------------------------------------------------------
   3. Briques réutilisables
   -------------------------------------------------------------------------- */
.shell {
  max-width: var(--maxw);
  margin-inline: auto;
}

/* Sur-titre « 01 — Catalogue », précédé d'un filet */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--blue-sky); }
.eyebrow--white { color: #FFFFFF; }

/* Titres de section */
.section-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-title--md { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; }
.section-title--light { color: #FFFFFF; }

.section-lede {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* Boutons en pilule. L'icône est une pastille ronde avec une flèche. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn--sm { padding: 10px 11px 10px 20px; font-size: 13px; gap: 10px; }
.btn--lg { padding: 14px 15px 14px 24px; }

.btn__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
}
.btn--sm .btn__icon { width: 22px; height: 22px; font-size: 11px; }

.btn--primary { background: var(--blue); color: #FFFFFF; }
.btn--primary .btn__icon { background: #FFFFFF; color: var(--blue); }
.btn--primary:hover { background: var(--blue-hover); color: #FFFFFF; }

/* Contour clair, sur fond sombre (sans pastille : marges égales) */
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.btn--ghost.btn--lg { padding: 14px 24px; }
.btn--ghost:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }

/* Plein blanc, sur fond sombre */
.btn--light { background: #FFFFFF; color: var(--ink); }
.btn--light .btn__icon { background: var(--blue); color: #FFFFFF; }
.btn--light:hover { background: var(--blue-sky); color: var(--ink); }

/* Contour foncé, sur fond clair */
.btn--outline { border-color: var(--ink); background: #FFFFFF; color: var(--ink); padding: 12px 20px; }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; }

/* --------------------------------------------------------------------------
   4. En-tête : pilule blanche flottante, fixée en haut de l'écran
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px var(--gutter) 0;
  /* La marge transparente autour de la pilule ne doit pas bloquer les clics */
  pointer-events: none;
}
.site-header__bar {
  position: relative;
  pointer-events: auto;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-float);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 15px;
}
.brand__name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand__accent { color: var(--blue); }
.brand--light, .brand--light:hover { color: #FFFFFF; }
.brand--light .brand__accent { color: var(--blue-sky); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}
.nav__link {
  position: relative;
  color: var(--ink);
  padding: 6px 0;
}
.nav__link:hover { color: var(--ink); }
/* Filet qui se déploie depuis la gauche au survol, et reste posé sur la
   section en cours de lecture. */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="true"]::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__phone { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color var(--t-fast);
}
.header-phone:hover { color: var(--ink); border-color: var(--blue); }
.header-phone__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* Bouton menu (mobile) */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink);
  flex: none;
}
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 160ms ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms ease, top 180ms ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* Le numéro de téléphone quitte la pilule quand la place manque */
@media (max-width: 1139px) {
  .header-phone { display: none; }
}

/* Sous 1000 px, les rubriques passent dans un menu déroulant */
@media (max-width: 999px) {
  /* Le bouton menu rejoint le bouton d'appel, à droite de la pilule */
  .nav-toggle { display: grid; margin-left: auto; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-float);
    max-height: calc(100dvh - var(--header-h) - 16px);
    overflow-y: auto;
    font-size: 15px;
    /* Fermé par défaut, sans piéger le focus clavier */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }

  .nav__link {
    padding: 14px 18px;
    border-radius: 12px;
    transition: background var(--t-fast);
  }
  .nav__link::after { display: none; }
  .nav__link:hover,
  .nav__link[aria-current="true"],
  .nav__link[aria-current="page"] { background: var(--mist); }

  .nav__phone {
    display: block;
    margin-top: 4px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    color: var(--blue);
    font-weight: 700;
  }
}

/* --------------------------------------------------------------------------
   5. Héro
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--night);
  color: #FFFFFF;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
}
/* Voile de la maquette : sombre en haut (sous la navigation) et en bas (sous le texte) */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(8, 19, 48, 0.55) 0%,
    rgba(8, 19, 48, 0) 28%,
    rgba(8, 19, 48, 0) 45%,
    rgba(8, 19, 48, 0.92) 88%,
    #081330 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding: calc(var(--header-h) + 100px) var(--gutter) 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 19, 48, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero__kicker-num {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.hero__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  /* Deux lignes, comme dans la maquette : la plus longue (« Roulez Armor. »)
     mesure 8,15 em. La taille suit la largeur de la colonne pour tenir. */
  font-size: clamp(34px, 10.5vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
@media (min-width: 1024px) {
  .hero__title { font-size: clamp(40px, 6.2vw, 90px); }
}
.hero__title-accent { color: var(--blue-sky); }

.hero__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 430px;
  justify-self: end;
}
.hero__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-night-1);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   6. Demande rapide (à cheval sur le héro)
   -------------------------------------------------------------------------- */
.quickbar-wrap {
  position: relative;
  z-index: 4;
  margin-top: -62px;
  padding: 0 var(--gutter);
}
.quickbar {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 19, 48, 0.18);
}
.quickbar__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--mist);
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
.quickbar__field:focus-within {
  background: #FFFFFF;
  box-shadow: inset 0 0 0 2px var(--blue);
}
.quickbar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.quickbar__control {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
/* Le champ entier porte déjà l'indication de focus */
.quickbar__control:focus-visible { outline: none; }
.quickbar__control::-webkit-date-and-time-value { text-align: left; }

.quickbar__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--t-base);
}
.quickbar__submit:hover { background: var(--blue); }
.quickbar__submit .icon { font-size: 16px; transition: translate 260ms var(--ease-out); }
.quickbar__submit:hover .icon { translate: 4px 0; }

@media (max-width: 899px) {
  .quickbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .quickbar__field:first-child,
  .quickbar__submit { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   7. Réassurance
   -------------------------------------------------------------------------- */
.assurances { padding: 56px var(--gutter) 0; }
.assurances__list {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.assurance {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px 26px 0;
}
.assurance__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  color: var(--blue);
  font-size: 20px;
}
.assurance__text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.assurance__text strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 1099px) {
  .assurances__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .assurances__list { grid-template-columns: 1fr; }
  .assurance { padding: 18px 0; }
  .assurance + .assurance { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   8. 01 — Catalogue
   -------------------------------------------------------------------------- */
.catalogue { padding: 110px var(--gutter) 120px; }

.catalogue__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 44px;
}
.catalogue__head > div { max-width: 640px; }

/* Onglets des catégories */
.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--mist);
}
.tabs__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.tabs__tab:hover { background: #FFFFFF; color: var(--ink); }
.tabs__count {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tint-strong);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
/* Sans script, les onglets sont de simples ancres : aucun n'est « actif » */
.js .tabs__tab.is-active {
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(11, 21, 48, 0.2);
}
.js .tabs__tab.is-active .tabs__count { background: var(--blue); color: #FFFFFF; }

/* Une seule catégorie visible quand le script a pris la main */
.js .catalogue__panel:not(.is-active) { display: none; }
.catalogue__panel + .catalogue__panel { margin-top: 56px; }
.js .catalogue__panel + .catalogue__panel { margin-top: 0; }

.catalogue__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 18px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}
.catalogue__cat {
  max-width: 680px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.catalogue__cat strong { color: var(--ink); font-weight: 700; }
.catalogue__from {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.catalogue__from strong { color: var(--ink); font-size: 15px; }

/* Grille : 4, puis 2, puis 1 véhicule par ligne — jamais une carte orpheline */
.cars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1179px) {
  .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .cars { grid-template-columns: 1fr; }
}

.car { display: flex; }
.car__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line-card);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.car__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #C4D2F2;
}

.car__media {
  position: relative;
  aspect-ratio: 16 / 11;
  margin: 8px 8px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--slot);
}
.car__media img { width: 100%; height: 100%; object-fit: cover; }
.car__tier {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.car__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 20px 0;
}
.car__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.car__name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.car__year { font-size: 12px; color: var(--muted); white-space: nowrap; }
.car__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.car__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.car__specs li {
  padding: 5px 10px;
  border: 1px solid var(--line-card);
  border-radius: 8px;
  background: var(--mist-field);
  font-size: 12px;
  font-weight: 600;
  color: var(--label);
}

.car__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
}
.car__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  overflow: hidden;
}
.car__price { padding: 10px 14px; }
.car__price + .car__price { border-left: 1px solid var(--line-blue); }
.car__price dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.car__price dd {
  margin-top: 2px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.car__price--weekend { background: var(--tint); }
.car__price--weekend dt { color: var(--blue); }

.car__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--t-base), color var(--t-base);
}
.car__cta:hover { background: var(--ink); color: #FFFFFF; }
.car__cta-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 13px;
}

.catalogue__note {
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.catalogue__note a { text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   9. Bandeau sombre : 02 — Notre histoire, 03 — Pourquoi ArmorAuto
   -------------------------------------------------------------------------- */
.nuit {
  background: var(--night);
  color: #FFFFFF;
  padding: 120px var(--gutter);
}

.histoire__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.histoire__media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 560px;
}
.histoire__photo {
  position: relative;
  width: 78%;
  aspect-ratio: 4 / 3.4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: var(--night-panel);
}
.histoire__photo img { width: 100%; height: 100%; object-fit: cover; }
.histoire__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(8, 19, 48, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.histoire__card {
  position: relative;
  align-self: flex-end;
  width: 72%;
  margin-top: -90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
  border-radius: 20px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.histoire__year {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-card);
}
.histoire__year-num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.histoire__year-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.histoire__quote p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--label);
  text-wrap: pretty;
}
.histoire__sign { font-size: 13px; font-weight: 700; }

.histoire__text > p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-night-2);
  text-wrap: pretty;
}
.histoire__text > h2 + p { margin-top: 26px !important; }
.histoire__text .btn { margin-top: 34px; }

.pourquoi { margin-top: 110px; }
.pourquoi .section-title { margin-bottom: 34px; }

/* Les filets entre cartes sont dessinés par l'espace de 1 px de la grille :
   ils restent justes quelle que soit la disposition (4, 2 ou 1 colonne). */
.promesses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-night);
  border: 1px solid var(--line-night);
  border-radius: 22px;
  overflow: hidden;
}
.promesse {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 34px;
  background: var(--night);
  transition: background var(--t-base);
}
.promesse:hover { background: #111C3A; }
.promesse__num {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid rgba(143, 176, 255, 0.5);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-sky);
}
.promesse__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.promesse__text { font-size: 14px; line-height: 1.6; color: var(--on-night-3); }

.promesse--accent { background: var(--blue); }
.promesse--accent:hover { background: #1F4BE0; }
.promesse--accent .promesse__num { border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }
.promesse--accent .promesse__text { color: #E6ECFF; }

@media (max-width: 1099px) {
  .promesses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .promesses { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. 04 — Avis clients
   -------------------------------------------------------------------------- */
.avis { padding: 110px var(--gutter) 0; }
.avis__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 34px;
}
.rating {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.rating__score {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.rating__meta { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.rating__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
  color: var(--blue);
  font-size: 14px;
}

.avis__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 959px) {
  .avis__grid { grid-template-columns: 1fr; }
}
.review {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line-card);
  border-radius: 20px;
  background: var(--mist-card);
}
.review__text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.review__author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-card);
}
.review__name { font-size: 14px; font-weight: 700; }
.review__meta {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.review__car {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   11. Contact & demande de devis
   -------------------------------------------------------------------------- */
.contact { padding: 110px var(--gutter); }
.contact__panel {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 70px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background: var(--blue-deep);
  color: #FFFFFF;
  overflow: hidden;
}
@media (max-width: 899px) {
  .contact__panel { grid-template-columns: 1fr; }
}
.contact__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.contact__ring--lg { right: -120px; top: -120px; width: 380px; height: 380px; border: 1px solid rgba(255, 255, 255, 0.18); }
.contact__ring--sm { right: -60px; top: -60px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, 0.14); }

.contact__info { position: relative; display: flex; flex-direction: column; }
.contact__lede {
  max-width: 440px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #E3EAFF;
}
.contact__lines { display: grid; gap: 10px; margin-top: 36px; }
.contact__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  color: #FFFFFF;
  transition: background var(--t-fast);
}
.contact__line:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.contact__line-label { font-size: 13px; color: #DCE5FF; flex: none; }
.contact__line-value { font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.contact__hours { margin-top: 18px; font-size: 13px; line-height: 1.6; color: #DCE5FF; }

.quote-card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 20px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(8, 19, 48, 0.25);
}

.quote-form { display: flex; flex-direction: column; gap: 14px; }
.quote-form__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.quote-form__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.quote-form__badge {
  padding: 5px 10px;
  border: 1px solid var(--line-blue-2);
  border-radius: 8px;
  background: var(--tint);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 12px; font-weight: 700; color: var(--label); }
.field__input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--mist-field);
  color: var(--ink);
  font-size: 15px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field__input:focus { outline: none; border-color: var(--blue); background: #FFFFFF; }
.field__input:focus-visible { box-shadow: 0 0 0 3px rgba(36, 83, 240, 0.18); }
textarea.field__input { resize: vertical; min-height: 92px; }
/* Champ obligatoire laissé vide après une tentative d'envoi */
.was-validated .field__input:invalid { border-color: var(--danger); background: #FFF7F8; }

/* Choix de la durée : des boutons radio habillés en segments */
.segmented { border: 0; padding: 0; margin: 0; }
.segmented legend { padding: 0; margin-bottom: 6px; }
.segmented__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.segmented__option { position: relative; display: flex; }
.segmented__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.segmented__option span {
  flex: 1;
  padding: 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--label);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.segmented__option:hover span { border-color: #9FB5EC; }
.segmented__option input:checked + span {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 0.5px var(--blue);
  background: var(--tint);
  color: var(--blue);
  font-weight: 700;
}
.segmented__option input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Piège à robots : hors écran, jamais atteint au clavier */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 9px 9px 9px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  transition: background var(--t-base);
}
.quote-form__submit:hover { background: var(--ink-hover); }
.quote-form__submit:disabled { opacity: 0.6; cursor: progress; }
.quote-form__submit-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 16px;
}
.quote-form__submit-icon .icon { transition: translate 260ms var(--ease-out); }
.quote-form__submit:hover .quote-form__submit-icon .icon { translate: 3px 0; }

.form-status {
  min-height: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--label);
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status a { text-decoration: underline; text-underline-offset: 2px; }

.quote-form__legal { font-size: 12px; line-height: 1.5; color: var(--muted); }
.quote-form__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.quote-form__legal a:hover { color: var(--ink); }

.quote-sent {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.quote-sent:focus { outline: none; }
.quote-sent__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-blue-2);
  border-radius: 14px;
  background: var(--tint);
  color: var(--blue);
  font-size: 24px;
}
.quote-sent__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.quote-sent__text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.quote-sent .btn { margin-top: 8px; }

/* --------------------------------------------------------------------------
   12. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--on-night-2);
  padding: 70px var(--gutter) 30px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}
@media (max-width: 899px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
.site-footer__about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer__about p { max-width: 260px; font-size: 14px; line-height: 1.6; }
.site-footer__label {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.site-footer__links { display: grid; gap: 10px; font-size: 14px; }
.site-footer__links a,
.site-footer__address { color: var(--on-night-2); }
.site-footer__links a:hover { color: #FFFFFF; }
.site-footer__address { font-style: normal; font-size: 14px; line-height: 1.75; }
.site-footer__phone { color: #FFFFFF; font-weight: 700; }
.site-footer__phone:hover { color: var(--blue-sky); }

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: var(--on-night-4);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__legal a { color: var(--on-night-4); }
.site-footer__legal a:hover,
.site-footer__legal a[aria-current="page"] { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   13. Pages secondaires (mentions légales, CGV, confidentialité)
   -------------------------------------------------------------------------- */
.page-top {
  background: var(--night);
  color: #FFFFFF;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) var(--gutter) clamp(48px, 6vw, 80px);
}
.page-top__inner,
.page__inner { max-width: 780px; margin-inline: auto; }
.page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-sky);
}
.page__back:hover { color: #FFFFFF; }
.page__back .icon { rotate: 180deg; }
.page__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page__lede {
  margin-top: 20px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-night-2);
}

.page { padding: clamp(48px, 7vw, 90px) var(--gutter) clamp(64px, 9vw, 120px); }
.page h2 {
  margin: clamp(34px, 4vw, 48px) 0 14px;
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 25px);
  letter-spacing: -0.01em;
}
.page h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.page h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 700; }
.page p, .page li { font-size: 15.5px; line-height: 1.75; color: var(--label); }
.page p { margin: 0 0 14px; }
.page ul { display: grid; gap: 8px; margin: 0 0 14px; }
.page ul li { position: relative; padding-left: 20px; }
.page ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.page a { text-decoration: underline; text-underline-offset: 2px; }
.page__updated {
  margin-top: clamp(40px, 5vw, 60px) !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px !important;
  color: var(--muted) !important;
}
/* Encadré « à compléter » : à supprimer une fois les champs remplis */
.todo {
  padding: 14px 18px;
  border-left: 3px solid #E8912D;
  border-radius: 0 10px 10px 0;
  background: #FFF4E5;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #6B4A1E !important;
  margin-bottom: 28px !important;
}
.todo strong { color: #4A300C; }

/* --------------------------------------------------------------------------
   13 bis. Pages de contenu (catalogue, histoire, engagements, avis)
   -------------------------------------------------------------------------- */

/* Lien souligné avec flèche : « Tout le catalogue → » */
.link-rule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: color var(--t-fast);
}
.link-rule:hover { color: var(--blue); }
.link-rule .icon { font-size: 15px; transition: translate 260ms var(--ease-out); }
.link-rule:hover .icon { translate: 4px 0; }
.link-rule--light { color: #FFFFFF; }
.link-rule--light:hover { color: var(--blue-sky); }

/* Pied de section : note à gauche, lien « voir plus » à droite */
.section-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 22px;
}
.section-foot .catalogue__note { margin-top: 0; max-width: 780px; }
.section-foot--end { justify-content: flex-end; margin-top: 28px; }

.histoire__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 34px;
}
.histoire__actions .btn { margin-top: 0; }

/* --- En-tête des pages internes --------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #FFFFFF;
  padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) var(--gutter) clamp(72px, 9vw, 112px);
}
/* Deux cercles concentriques, comme la portée d'un phare */
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before { right: -170px; bottom: -250px; width: 560px; height: 560px; border: 1px solid rgba(255, 255, 255, 0.08); }
.page-hero::after  { right: -90px; bottom: -170px; width: 400px; height: 400px; border: 1px solid rgba(255, 255, 255, 0.06); }
.page-hero__inner { position: relative; max-width: var(--maxw); margin-inline: auto; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: end;
}
@media (max-width: 959px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
}
.page-hero__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.page-hero__title-accent { color: var(--blue-sky); }
.page-hero__lede {
  max-width: 560px;
  margin-top: 24px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--on-night-1);
  text-wrap: pretty;
}

/* Fil d'Ariane */
.crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-night-3);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.3); }
.crumbs a { color: var(--on-night-2); }
.crumbs a:hover { color: #FFFFFF; }
.crumbs [aria-current="page"] { color: #FFFFFF; }

/* Carte « verre » posée sur fond sombre */
.glass {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

/* Sections claires des pages internes */
.band { padding: clamp(72px, 9vw, 112px) var(--gutter); }
.band--mist { background: var(--mist); }
.band--night { background: var(--night); color: #FFFFFF; }
.band__head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.band__head--split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.band__head--split > div { max-width: 680px; }

/* --- Catalogue : tuiles des catégories dans l'en-tête ------------------ */
.cat-tiles { display: grid; gap: 10px; }
.cat-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 18px 18px 18px 22px;
  color: #FFFFFF;
  transition: background var(--t-base), border-color var(--t-base);
}
.cat-tile:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(143, 176, 255, 0.5); color: #FFFFFF; }
.cat-tile__name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 20px;
}
.cat-tile__meta { grid-column: 1; font-size: 13.5px; color: var(--on-night-3); }
.cat-tile__meta strong { color: #FFFFFF; }
.cat-tile__icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 15px;
  transition: translate 260ms var(--ease-out);
}
.cat-tile__icon .icon { rotate: 90deg; }
.cat-tile:hover .cat-tile__icon { translate: 0 3px; }

/* --- Catalogue : sous-navigation collante ------------------------------ */
.catalogue-page { position: relative; }
.subnav {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 30;
  display: flex;
  justify-content: center;
  margin-top: -27px;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.subnav__track {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(244, 247, 253, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(8, 19, 48, 0.12);
  pointer-events: auto;
}
.subnav__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 300ms var(--ease-out), background var(--t-fast);
}
.subnav__link:hover { color: var(--ink); background: #FFFFFF; }
.subnav__count {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tint-strong);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  transition: background 300ms, color 300ms;
}
.subnav__link[aria-current="true"] { color: #FFFFFF; background: transparent; font-weight: 700; }
.subnav__link[aria-current="true"] .subnav__count { background: var(--blue); color: #FFFFFF; }
/* Pastille sombre sous la catégorie en cours : elle glisse d'une rubrique à l'autre */
.subnav__indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--ind-w, 0px);
  translate: var(--ind-x, 0px) 0;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 4px 14px rgba(11, 21, 48, 0.2);
  opacity: 0;
  transition: translate 450ms var(--ease-out), width 450ms var(--ease-out), opacity 250ms ease;
}
.subnav.has-active .subnav__indicator { opacity: 1; }

.cat-section {
  padding: clamp(72px, 9vw, 104px) var(--gutter) clamp(64px, 8vw, 96px);
  /* laisse la place de l'en-tête et de la sous-navigation lors d'un saut d'ancre */
  scroll-margin-top: 64px;
}
.cat-section:nth-of-type(even) { background: var(--mist); }
.cat-section__from { font-size: 14px; color: var(--muted); white-space: nowrap; }
.cat-section__from strong { color: var(--ink); font-size: 18px; }

/* --- Ce qui est inclus ------------------------------------------------- */
.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.perk {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line-card);
  border-radius: 18px;
  background: #FFFFFF;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.perk:hover { border-color: #C4D2F2; box-shadow: var(--shadow-card); }
.perk__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.perk__text strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--ink); }
@media (max-width: 899px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .perks { grid-template-columns: 1fr; } }

/* --- Comment ça se passe (étapes) -------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
/* Fil qui relie les étapes : il se trace à l'apparition (section 16) */
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 23px;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 176, 255, 0.6), rgba(143, 176, 255, 0.08));
}
.step { position: relative; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(143, 176, 255, 0.55);
  border-radius: 50%;
  background: var(--night);
  color: var(--blue-sky);
  font-size: 14px;
  font-weight: 700;
}
.step__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}
.step__text { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--on-night-3); }
@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 559px) { .steps { grid-template-columns: 1fr; } }

/* --- Conditions et questions fréquentes -------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } }

.rules { margin-top: 28px; border-top: 1px solid var(--line); }
.rules__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rules dt { font-size: 14px; color: var(--muted); }
.rules dd { font-size: 15px; font-weight: 700; text-align: right; }
.rules-more { margin-top: 22px; }

.faq { border-top: 1px solid var(--line); }
.split .faq { margin-top: 28px; }
.story__grid + .stats { margin-top: clamp(48px, 6vw, 80px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue); }
.faq__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: rotate 300ms var(--ease-out), background var(--t-fast), border-color var(--t-fast);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  translate: -50% -50%;
}
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon { rotate: 45deg; background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.faq__a { padding: 0 46px 22px 0; font-size: 15px; line-height: 1.7; color: var(--label); }

/* --- Bandeau d'appel à l'action (bas des pages) ------------------------ */
.cta-band { padding: clamp(64px, 8vw, 104px) var(--gutter); }
.cta-band__panel {
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 28px;
  background: var(--blue-deep);
  color: #FFFFFF;
}
.cta-band__panel > div { position: relative; }
.cta-band__text { flex: 1 1 440px; max-width: 620px; }
.cta-band__lede { margin-top: 14px; max-width: 520px; font-size: 16px; line-height: 1.6; color: #E3EAFF; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.45); color: #FFFFFF; padding: 14px 22px; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; color: #FFFFFF; }
.btn--outline-light .icon { font-size: 15px; }

/* --- Notre histoire ---------------------------------------------------- */
.histoire__card--hero { width: 100%; margin-top: 0; align-self: auto; }
.story__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.story__col h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
}
.story__col p { margin-top: 16px; font-size: 16px; line-height: 1.75; color: var(--label); text-wrap: pretty; }
.story__year {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border: 1px solid var(--line-blue-2);
  border-radius: 8px;
  background: var(--tint);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
@media (max-width: 767px) { .story__grid { grid-template-columns: 1fr; } }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 34px 24px 34px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--blue);
}
.stat__label { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 899px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.value {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 32px;
  border: 1px solid var(--line-card);
  border-radius: 20px;
  background: var(--mist-card);
}
.value__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--blue);
  font-size: 20px;
}
.value__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
}
.value__text { font-size: 15px; line-height: 1.65; color: var(--muted); }
@media (max-width: 899px) { .values { grid-template-columns: 1fr; } }

.agence__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 899px) { .agence__grid { grid-template-columns: minmax(0, 1fr); } }
.agence__photo {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: var(--night-panel);
}
.agence__photo img { width: 100%; height: 100%; object-fit: cover; }
.agence__lede { margin-top: 22px; font-size: 16px; line-height: 1.7; color: var(--on-night-2); }
.agence__lines { display: grid; gap: 10px; margin-top: 30px; }
.agence__lines .contact__line { border-color: rgba(255, 255, 255, 0.22); }
.agence__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* --- Pourquoi nous ----------------------------------------------------- */
.promise-index { padding: 8px; }
.promise-index a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 14px;
  border-radius: 14px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--t-fast);
}
.promise-index a:hover { background: rgba(255, 255, 255, 0.07); color: #FFFFFF; }
.promise-index li + li a { border-top: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 0 14px 14px; }
.promise-index__num {
  padding: 4px 9px;
  border: 1px solid rgba(143, 176, 255, 0.5);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-sky);
}
.promise-index .icon { font-size: 15px; color: var(--blue-sky); rotate: 90deg; transition: translate 260ms var(--ease-out); }
.promise-index a:hover .icon { translate: 0 3px; }

.promise { scroll-margin-top: 16px; }
.promise__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.promise--flip .promise__text { order: 2; }
@media (max-width: 899px) {
  .promise__grid { grid-template-columns: minmax(0, 1fr); }
  .promise--flip .promise__text { order: 0; }
}
/* Grand numéro en contour */
.promise__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(64px, 9vw, 116px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
}
.promise__lede { margin-top: 20px; max-width: 520px; font-size: 17px; line-height: 1.65; color: var(--label); text-wrap: pretty; }
.promise__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  overflow: hidden;
  background: var(--slot);
}
.promise__media img { width: 100%; height: 100%; object-fit: cover; }

.checklist {
  padding: 10px 28px;
  border: 1px solid var(--line-card);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--label);
}
.checklist li + li { border-top: 1px solid var(--line); }
.checklist strong { color: var(--ink); }
.checklist__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue);
  font-size: 15px;
}
.checklist + .link-rule,
.promise__text .link-rule { margin-top: 26px; }

/* Promesse mise en avant, comme dans la maquette */
.promise--accent { background: var(--blue); color: #FFFFFF; }
.promise--accent .eyebrow { color: #FFFFFF; }
.promise--accent .promise__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.85); }
.promise--accent .promise__lede { color: #E6ECFF; }
.promise--accent .checklist { border-color: transparent; box-shadow: 0 30px 60px rgba(8, 19, 48, 0.25); }

.proof { max-width: 880px; margin-inline: auto; text-align: center; }
.proof__quote {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.proof__author { margin-top: 20px; font-size: 14px; color: var(--muted); }
.proof__author strong { color: var(--ink); }
.proof .link-rule { margin-top: 26px; }

/* --- Avis -------------------------------------------------------------- */
.rating-card {
  display: grid;
  gap: 14px;
  padding: 28px 30px;
  border-radius: 20px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.rating-card__score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-card);
}
.rating-card__num {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.rating-card__stars { display: flex; gap: 3px; color: var(--blue); font-size: 18px; }
.rating-card__label { margin-top: 4px; font-size: 13px; color: var(--muted); }
.rating-card__text { font-size: 14.5px; line-height: 1.6; color: var(--label); }
.rating-card .link-rule { justify-self: start; }

.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 767px) { .reviews { grid-template-columns: 1fr; } }
.review--lg { padding: 34px; }
.review--lg .review__text p { font-size: 18px; line-height: 1.6; }
.review-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 34px;
  border-radius: 20px;
  background: var(--blue-deep);
  color: #FFFFFF;
}
.review-cta__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}
.review-cta p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: #E3EAFF; }
.review-cta .btn { align-self: flex-start; }

.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 899px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; gap: 16px; }
.check__text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.check__text strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* --- Adaptations mobiles des pages internes ---------------------------- */
@media (max-width: 559px) {
  .subnav__track { width: 100%; }
  .subnav__link { flex: 1; padding: 10px 8px; gap: 6px; font-size: 13.5px; }
  .rules__row { flex-direction: column; gap: 4px; }
  .rules dd { text-align: left; }
  .cta-band__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .cta-band__actions .btn--outline-light { justify-content: center; }
  .agence__actions .btn { flex: 1 1 100%; }
  .stat { padding: 26px 16px 26px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .checklist { padding: 6px 20px; }
  .review--lg, .review-cta { padding: 26px; }
}
@media (max-width: 379px) {
  .subnav__count { display: none; }
}

/* --------------------------------------------------------------------------
   14. Adaptations mobiles
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  html { scroll-padding-top: 88px; }

  .hero { min-height: 720px; }
  /* Le texte occupe presque tout le héro : le voile fonce plus tôt pour
     que le paragraphe reste lisible au-dessus de l'illustration. */
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(8, 19, 48, 0.55) 0%,
      rgba(8, 19, 48, 0.1) 20%,
      rgba(8, 19, 48, 0.5) 40%,
      rgba(8, 19, 48, 0.9) 62%,
      #081330 85%);
  }
  .hero__inner { padding-top: calc(var(--header-h) + 64px); gap: 28px; }
  .hero__kicker { margin-bottom: 20px; }
  .hero__side { justify-self: start; }

  .catalogue { padding: 80px var(--gutter) 90px; }
  .catalogue__head { margin-bottom: 32px; }
  .nuit { padding: 90px var(--gutter); }
  .pourquoi { margin-top: 90px; }
  .avis { padding-top: 80px; }
  .contact { padding: 80px var(--gutter); }
}

@media (max-width: 559px) {
  :root { --header-h: 72px; }
  .site-header { padding-top: 14px; }
  .site-header__bar { padding-left: 16px; gap: 10px; }
  .brand__name { font-size: 17px; }
  .site-header__actions .btn--sm { padding-left: 16px; }

  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; }

  .tabs { width: 100%; }
  .tabs__tab { flex: 1; padding: 11px 8px; gap: 6px; font-size: 13.5px; }

  .histoire__photo { width: 88%; }
  .histoire__card { width: 88%; margin-top: -60px; padding: 20px 20px; }

  .contact__line { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact__line-value { text-align: left; }
  .segmented__option span { padding: 12px 4px; font-size: 13px; }
}

/* Pilule d'en-tête sur téléphone : marque, menu et bouton d'appel doivent
   tenir sur 360 px. Le bouton perd sa pastille, les espacements se resserrent. */
@media (max-width: 429px) {
  .site-header__bar { padding: 7px 7px 7px 14px; gap: 8px; }
  .brand { gap: 8px; }
  .brand__mark { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
  .brand__name { font-size: 16px; }
  .nav-toggle { width: 40px; height: 40px; }
  .site-header__actions .btn--sm { padding: 11px 14px; font-size: 12.5px; }
  .site-header__actions .btn--sm .btn__icon { display: none; }
}

@media (max-width: 379px) {
  .tabs__count { display: none; }
  .brand__name { font-size: 15px; }
  .site-header__actions .btn--sm { padding: 11px 12px; font-size: 12px; }
}

/* Libellé court du bouton d'appel sur les plus petits téléphones (320 px).
   display: none retire aussi le libellé masqué de la lecture vocale. */
.label-short { display: none; }
@media (max-width: 359px) {
  .label-long { display: none; }
  .label-short { display: inline; }
}

/* --------------------------------------------------------------------------
   15. Apparition au défilement
   -------------------------------------------------------------------------- */
/* L'état masqué n'est appliqué que si le script a pris la main : sans
   JavaScript, ou s'il échoue, tout le contenu reste visible. */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms var(--ease-out);
}
.js-motion .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   16. Couche d'animation
   Règle de conduite : chaque effet doit rendre une information plus lisible
   ou une action plus évidente. Tout est coupé par prefers-reduced-motion
   (section 17) et rien ne conditionne la lecture du contenu.
   ========================================================================== */

/* --- Héro : parallaxe au défilement et au curseur ------------------------
   Le script écrit --hero-shift (défilement : l'image descend moins vite que
   la page) et --hero-mx / --hero-my (curseur : quelques pixels à l'opposé de
   la souris). L'image est agrandie de 4 % pour que ses bords ne se voient
   jamais pendant le déplacement. */
.js-motion .hero__media img {
  translate: var(--hero-mx, 0px) calc(var(--hero-shift, 0px) + var(--hero-my, 0px));
  scale: 1.04;
  will-change: translate;
}

/* --- Parallaxe des photos ------------------------------------------------
   L'image déborde de 30 px en haut et en bas de son cadre ; le script la fait
   glisser dans cette marge au fil du défilement. */
.frame--parallax { position: relative; overflow: hidden; }
.js-motion .frame--parallax > img {
  position: absolute;
  left: 0;
  top: -30px;
  width: 100%;
  height: calc(100% + 60px);
  object-fit: cover;
  translate: 0 var(--par-y, 0px);
  will-change: translate;
}

/* --- Photos de véhicules : léger zoom au survol de la carte -------------- */
.car__media img { transition: scale 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .car__card:hover .car__media img { scale: 1.05; }
}

/* --- Halo du phare -------------------------------------------------------
   Dans les sections sombres, une lueur bleutée suit la souris, comme le
   faisceau d'un phare. Elle passe au-dessus du contenu en mode « screen » :
   elle éclaircit sans jamais masquer le texte. Souris uniquement. */
[data-glow] { position: relative; }
.glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 600ms ease;
  background: radial-gradient(
    clamp(260px, 30vw, 440px) circle at var(--gx, 50%) var(--gy, 50%),
    rgba(143, 176, 255, 0.14), rgba(143, 176, 255, 0) 70%);
}
[data-glow].is-glowing .glow { opacity: 1; }

/* --- Boutons aimantés ----------------------------------------------------
   Le script écrit `translate` ; amplitude volontairement faible (5 px). */
[data-magnetic] { will-change: translate; }

/* --- Étapes : le fil qui les relie se trace à l'apparition --------------- */
.js-motion .steps::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms var(--ease-out) 250ms;
}
.js-motion .steps.is-visible::before { transform: none; }

/* --- Questions fréquentes : la réponse se déplie en douceur --------------
   Navigateurs récents seulement ; ailleurs, elle s'ouvre d'un coup. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 380ms var(--ease-out), content-visibility 380ms allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; }
}

/* --- En-tête : il se resserre dès qu'on quitte le haut de page ----------- */
.site-header { transition: padding 320ms var(--ease-out); }
.site-header__bar { transition: box-shadow 320ms var(--ease-out); }
.site-header.is-condensed { padding-top: 10px; }
.site-header.is-condensed .site-header__bar { box-shadow: 0 14px 44px rgba(8, 19, 48, 0.24); }

/* --- Flèches : elles pivotent vers l'avant au survol de l'action --------- */
.btn__icon .icon,
.car__cta-icon .icon { transition: rotate 260ms var(--ease-out); }
.btn:hover .btn__icon .icon,
.car__cta:hover .car__cta-icon .icon { rotate: 45deg; }

/* --- Changement de catégorie : les cartes entrent en cascade ------------- */
@keyframes car-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.catalogue__panel.is-entering .car {
  animation: car-in 420ms var(--ease-out) both;
}
.catalogue__panel.is-entering .car:nth-child(2) { animation-delay: 50ms; }
.catalogue__panel.is-entering .car:nth-child(3) { animation-delay: 100ms; }
.catalogue__panel.is-entering .car:nth-child(4) { animation-delay: 150ms; }

/* --- Champ pré-rempli : un bref éclat montre ce qui vient d'être saisi --- */
@keyframes prefill {
  0%, 35% { border-color: var(--blue); background: #E4ECFF; box-shadow: 0 0 0 4px rgba(36, 83, 240, 0.16); }
  100%    { border-color: var(--line-strong); background: var(--mist-field); box-shadow: 0 0 0 0 rgba(36, 83, 240, 0); }
}
.field__input.is-prefilled { animation: prefill 1600ms ease-out; }

/* --------------------------------------------------------------------------
   17. Préférences système
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-motion .reveal { opacity: 1; transform: none; }
  .js-motion .hero__media img { translate: none; scale: none; }
  .js-motion .frame--parallax > img { top: 0; height: 100%; translate: none; }
  .car__card:hover { transform: none; }
  .car__card:hover .car__media img { scale: none; }
  .glow { display: none; }
  .js-motion .steps::before { transform: none; }
}

@media print {
  .site-header, .skip-link, .quickbar-wrap, .hero__media, .tabs, .subnav, .glow,
  .car__cta, .quote-card, .contact__ring, .histoire__media, .btn, .cta-band,
  .agence__photo, .page-hero::before, .page-hero::after { display: none !important; }
  .page-hero, .band--night, .promise--accent { background: #FFFFFF !important; color: #000000 !important; }
  .page-hero *, .band--night *, .promise--accent * { color: #000000 !important; }
  .page-hero { padding-top: 24px; }
  .faq__item::details-content { block-size: auto !important; content-visibility: visible !important; }
  body { background: #FFFFFF; color: #000000; }
  .hero, .nuit, .contact__panel, .site-footer, .page-top, .promesse, .promesse--accent {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .hero { min-height: 0; }
  .hero__inner { padding: 24px 0; }
  /* Les textes clairs des zones sombres passent en noir sur le papier */
  .hero *, .nuit *, .contact__panel *, .site-footer * { color: #000000 !important; }
  .hero__kicker, .hero__kicker-num { background: none !important; border-color: #999999 !important; }
  .promesse__num, .contact__line { border-color: #999999 !important; }
  /* Le catalogue imprimé montre les trois catégories */
  .js .catalogue__panel:not(.is-active), .catalogue__panel[hidden] { display: block !important; }
  .js-motion .reveal { opacity: 1 !important; transform: none !important; }
  .car__card { break-inside: avoid; }
}
