/* ═══════════════════════════════════════════════════════════════════
   Chaîne & Cambouis — direction 1A
   Extraction du design Claude Design vers du CSS de production.
   Aucune dépendance JS : toutes les animations sont en CSS.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Jetons ─────────────────────────────────────────────────────── */
:root {
  /* Fonds et surfaces */
  --ink:        #12120f;
  --ink-hover:  #1b1b15;
  --surface:    #1c1c17;
  --surface-2:  #21211a;
  --hatch-a:    #1c1c17;
  --hatch-b:    #232319;
  --hatch-c:    #2c2c21;
  --glow:       #23231b;

  /* Traits */
  --line:    #2a2a22;
  --line-2:  #2f2f26;
  --line-3:  #3a3a2e;

  /* Bordure des champs de formulaire. Distincte de --line-2, qui ne mesure
     que 1,27:1 contre la carte : un champ vide n'a aucun texte, sa bordure
     est la SEULE chose qui signale qu'il y a là un champ. WCAG 1.4.11 exige
     3:1 pour un composant d'interface. Ici 3,17 contre la carte #1c1c17 et
     3,48 contre le fond du champ #12120f. */
  --field-border: #6b6b5e;

  /* Texte */
  --paper:  #f4f1e8;
  --soft:   #d7d3c7;
  --mute:   #c9c5b9;
  --muted:  #a8a49a;
  --dim:    #8f8b7d;
  --dim-2:  #6f6b60;
  --faint:  #4a4a3c;

  /* Accents */
  --acc:      #d9f24b;
  --acc-hi:   #e6ff5c;
  --acc-2:    #ff6b35;
  --acc-ring: 217 242 75;   /* --acc en composantes RVB, pour les halos */

  /* Typographie */
  --font-display: 'Anton', 'Arial Narrow', 'Haettenschweiler', sans-serif;
  --font-body:    'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Rythme */
  --gutter:    44px;
  --radius:    14px;
  --radius-lg: 16px;
  --radius-sm: 12px;

  /* Variateur de vitesse des animations.
     Multiplicateur de DURÉE : 1 = vitesse nominale, 2 = deux fois plus lent,
     0.5 = deux fois plus rapide.

     Réglé par une CLASSE sur <html> (voir .dur-* plus bas), jamais par un
     attribut style : la CSP du site est `style-src 'self'` sans
     'unsafe-inline', et un style inline y est purement et simplement bloqué. */
  --dur: 1;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* Paliers du variateur. Liste fermée : le réglage du back-office (lot 7)
   est un <select> sur ces cinq valeurs, pas un curseur libre. */
.dur-050 { --dur: 0.5;  }
.dur-075 { --dur: 0.75; }
.dur-100 { --dur: 1;    }
.dur-150 { --dur: 1.5;  }
.dur-200 { --dur: 2;    }

/* ── Remise à plat ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Les ancres de la nav ne doivent pas coller au bord haut. */
[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Pas de `overflow-x: hidden` sur body : il masquait le débordement au lieu
   de le corriger, et rendait le contenu coupé INJOIGNABLE — même pas de
   barre de défilement pour aller le chercher (échec WCAG 1.4.10 Reflow).
   Les grilles se replient désormais réellement ; ce garde empêche leurs
   enfants de refuser de rétrécir sous leur largeur min-content, qui est la
   cause profonde du débordement. */
.booking > *,
.form > *,
.split > *,
.cards > *,
.pricing > * {
  min-width: 0;
}

h1, h2, h3, p, figure { margin: 0; }

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Focus visible sur fond sombre — le design d'origine supprimait
   l'outline, ce qui rendait le site inutilisable au clavier. */
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--acc);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes bob       { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-14px) rotate(.4deg); } }
@keyframes road      { to { transform: translateX(-160px); } }
@keyframes chain     { to { stroke-dashoffset: -120; } }
@keyframes marquee   { to { transform: translateX(-50%); } }
@keyframes riseIn    { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0    rgb(var(--acc-ring) / .5); }
  70%  { box-shadow: 0 0 0 22px rgb(var(--acc-ring) / 0); }
  100% { box-shadow: 0 0 0 0    rgb(var(--acc-ring) / 0); }
}

/* Révélation à l'entrée dans le viewport.
   `animation-timeline: view()` est ignoré par les navigateurs qui ne le
   supportent pas : l'animation s'y joue alors au chargement, ce qui reste
   correct. */
.reveal {
  animation: riseIn calc(var(--dur) * .7s) both;
  animation-timeline: view();
  animation-range: entry 0% cover 25%;
}

/* ── Coquille ───────────────────────────────────────────────────── */
.page { background: var(--ink); color: var(--paper); overflow: hidden; }

.section { padding: 0 var(--gutter) 60px; }
.section--first { padding-block: 60px; }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  text-transform: uppercase;
}
.h2--lg  { font-size: 46px; }
.h2--sm  { font-size: 34px; }
.h2--gap { margin-bottom: 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acc);
}

.lede {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
}

.slot-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  /* Le fond est un dégradé hachuré #1c1c17/#232319, pas --ink : le ratio
     réel de --dim-2 y tombait à 2,98 — le pire contraste texte du site. */
  color: var(--muted);
}

/* Réserve de photo, en attendant les visuels réels. */
.slot {
  background: repeating-linear-gradient(45deg, var(--hatch-a) 0 10px, var(--hatch-b) 10px 20px);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
}

/* ── Bandeau démo ───────────────────────────────────────────────── */
.demo-bar {
  background: var(--acc-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}

/* ── En-tête ────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }

.brand__wheel {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid var(--acc);
  display: grid;
  place-items: center;
  flex: none;
  animation: spin calc(var(--dur) * 3.2s) linear infinite;
}
.brand__spoke { width: 3px; height: 22px; background: var(--acc); }

.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover, .nav a:focus-visible { color: var(--paper); }

/* ── Boutons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover { text-decoration: none; }

.btn--acc {
  background: var(--acc);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 30px;
}
.btn--acc:hover { transform: translateY(-2px); background: var(--acc-hi); }

.btn--ghost {
  border: 2px solid var(--line-3);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
}
.btn--ghost:hover { border-color: var(--acc); }

.btn--tel {
  background: var(--acc);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  animation: pulseRing calc(var(--dur) * 2.4s) ease-out infinite;
}
.btn--tel:hover { background: var(--acc-hi); }
.btn--tel .icon { font-size: 15px; }

.btn--block { width: 100%; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 54px var(--gutter) 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 380px at 50% 42%, var(--glow) 0%, var(--ink) 70%);
}

.hero__grid {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px 32px;
}

/* Le titre est premier dans le DOM (voir partials/hero.php) ; sur grand
   écran, `order` le remet visuellement entre l'intro et la statistique,
   comme dans le design. Aucun élément focusable ici, l'ordre de tabulation
   n'est donc pas concerné. */
.hero__intro {
  order: -1;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 320px;
  animation: riseIn calc(var(--dur) * .8s) both;
}
.hero__intro p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  text-wrap: pretty;
}

.hero__center { flex: 2 1 460px; min-width: 0; text-align: center; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero__title em { font-style: normal; color: var(--acc); }

.hero__stat {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 300px;
  text-align: right;
  animation: riseIn calc(var(--dur) * .8s) calc(var(--dur) * .12s) both;
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 54px;
  line-height: 1;
  color: var(--acc);
}
.hero__stat p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mute);
}

.hero__cta {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 0 46px;
}

/* ── Vélo animé ─────────────────────────────────────────────────── */
.bike {
  position: relative;
  margin: 6px auto 0;
  width: min(900px, 100%);
}

.bike__svg {
  width: 100%;
  display: block;
  overflow: visible;
  animation: bob calc(var(--dur) * 2.6s) ease-in-out infinite;
}

.bike__frame     { stroke: var(--paper); stroke-width: 9; }
.bike__bar       { stroke: var(--paper); stroke-width: 11; }
.bike__rim       { stroke: var(--paper); stroke-width: 10; }
.bike__rim-inner { stroke: var(--faint); stroke-width: 3; }
.bike__spokes    { stroke: var(--dim); stroke-width: 2.5; }

.bike__chain {
  stroke: var(--acc);
  stroke-width: 4;
  stroke-dasharray: 9 7;
  animation: chain calc(var(--dur) * 1.1s) linear infinite;
}
.bike__chain--rev { animation-direction: reverse; }

.bike__wheel {
  transform-box: view-box;
  animation: spin calc(var(--dur) * 1.6s) linear infinite;
}
.bike__wheel--front { transform-origin: 120px 230px; }
.bike__wheel--rear  { transform-origin: 470px 230px; }
.bike__wheel--crank { transform-origin: 300px 230px; }

.bike__crank-ring { stroke: var(--acc); stroke-width: 6; }
.bike__crank-arm  { stroke: var(--acc-2); stroke-width: 8; }

.road {
  position: relative;
  height: 4px;
  margin-top: -6px;
  overflow: hidden;
}
.road__dashes {
  position: absolute;
  inset: 0;
  width: 200%;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 70px, transparent 70px 160px);
  animation: road calc(var(--dur) * .9s) linear infinite;
}

/* ── Bandeau défilant ───────────────────────────────────────────── */
.marquee {
  background: var(--acc);
  color: var(--ink);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: marquee calc(var(--dur) * 22s) linear infinite;
}

/* Bouton de pause — WCAG 2.2.2 (niveau A) : tout mouvement automatique qui
   dure plus de 5 secondes et porte de l'information doit pouvoir être arrêté.
   C'était le seul manquement de niveau A du site.
   Réalisé avec une case à cocher et le sélecteur ~ : aucun JavaScript, et le
   bouton reste fonctionnel même si le CSS des états de survol échoue. */
.marquee { position: relative; }

.marquee__toggle:checked ~ .marquee__track { animation-play-state: paused; }

.marquee__btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: rgb(18 18 15 / .08);
  transition: background-color .18s var(--ease);
}
.marquee__btn:hover { background: rgb(18 18 15 / .18); }
.marquee__toggle:focus-visible + .marquee__btn {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Deux glyphes empilés : « pause » quand ça défile, « lecture » une fois
   arrêté. Le libellé accessible, lui, est porté par le <label>. */
.marquee__btn::before { content: '❙❙'; font-size: 13px; letter-spacing: 1px; }
.marquee__toggle:checked ~ .marquee__btn::before { content: '▶'; font-size: 14px; }

/* Le bandeau laisse la place au bouton pour ne pas passer dessous. */
.marquee__track { padding-right: 68px; }

/* ── Tarifs ─────────────────────────────────────────────────────── */
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.section__head p {
  max-width: 340px;
  font-size: 14px;
  color: var(--muted);
}
.section__head--baseline { align-items: baseline; margin-bottom: 22px; }

.section__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--acc);
  white-space: nowrap;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 40px;
}
.pricing__col { display: flex; flex-direction: column; }

.pricing__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 12px;
  margin-inline: -12px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: background-color .18s var(--ease);
}
.pricing__row:hover { background: var(--ink-hover); }

.pricing__label { font-weight: 600; font-size: 16px; }
.pricing__price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--acc);
  white-space: nowrap;
}

/* ── Réservation ────────────────────────────────────────────────── */
.booking {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.booking__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.booking__card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.booking__card > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__full { grid-column: span 2; }

/* Le piège à robots. Masqué ICI et jamais par un attribut style : la CSP
   du site est `style-src 'self'` sans 'unsafe-inline', un style inline
   serait purement et simplement bloqué et le champ deviendrait visible. */
.hp { display: none; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

/* Libellés VISIBLES, et non plus des .sr-only doublés d'un placeholder :
   l'audit du lot 4 a signalé qu'un champ ainsi étiqueté perd son libellé
   dès la première frappe — précisément au moment où l'on relit sa saisie. */
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field-label__note {
  font-weight: 400;
  color: var(--dim);
}

/* État d'erreur. L'erreur n'est JAMAIS signalée par la seule couleur
   (WCAG 1.4.1) : il y a aussi un message texte sous le champ, un
   aria-invalid, et un résumé en tête de formulaire.
   --acc-2 #ff6b35 mesure 6,62:1 sur le fond sombre — au-delà des 4,5
   exigés pour du texte et des 3:1 pour une bordure d'interface. */
.field--erreur { border-color: var(--acc-2); }

.field-erreur {
  font-size: 13px;
  color: var(--acc-2);
  font-weight: 500;
}

.form__alerte {
  grid-column: span 2;
  border-left: 4px solid var(--acc-2);
  background: var(--ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--soft);
}

.form__mention {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}
.form__mention a { text-decoration: underline; text-underline-offset: 3px; }

.field {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--field-border);
  color: var(--paper);
  font: 500 15px var(--font-body);
  padding: 13px 14px;
  border-radius: 8px;
  transition: border-color .18s var(--ease);
}
.field::placeholder { color: var(--dim); }
.field:hover { border-color: var(--line-3); }
.field:focus-visible { border-color: var(--acc); }
textarea.field { resize: vertical; min-height: 88px; }

/* Le <select> natif, restylé — remplace le <sc-raw-select> du canvas. */
select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select.field option { background: var(--ink); color: var(--paper); }

.booking__aside { display: flex; flex-direction: column; gap: 18px; }
.booking__photo { flex: 1; min-height: 190px; border-radius: var(--radius-lg); }

.mecano {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.mecano__head { display: flex; gap: 14px; align-items: center; }
.mecano__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, var(--hatch-b) 0 8px, var(--hatch-c) 8px 16px);
  flex: none;
}
.mecano__name { font-weight: 700; font-size: 16px; }
.mecano__role { font-size: 13px; color: var(--muted); }
.mecano__quote {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
}

/* ── Cartes en grille ───────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

/* Avis */
.review {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.review:hover { transform: translateY(-4px); background: var(--surface-2); }
.review__stars { color: var(--acc); font-size: 15px; letter-spacing: .18em; }
.review__text {
  margin: 12px 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--soft);
}
.review__author {
  font-size: 13px;
  color: var(--dim);
  font-family: var(--font-mono);
}

/* Occasions */
.bike-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s var(--ease);
}
.bike-card:hover { border-color: var(--acc); text-decoration: none; }
.bike-card__media { height: 170px; border: none; }
.bike-card__body {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bike-card__name { font-weight: 700; }
.bike-card__meta { font-size: 13px; color: var(--muted); }
.bike-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--acc);
  white-space: nowrap;
}

/* ── Conseils et horaires ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}
.split .h2 { margin-bottom: 20px; }

.tips { display: flex; flex-direction: column; gap: 12px; }

.tip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.tip:hover { border-color: var(--acc); transform: translateX(4px); text-decoration: none; }
.tip__num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--faint);
  flex: none;
}
.tip__title { font-weight: 700; display: block; }
.tip__meta { font-size: 13px; color: var(--muted); }

.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-size: 15px;
  margin-bottom: 18px;
}
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
.hours dd.is-closed { color: var(--dim); }


/* ── Pied de page ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--dim);
}
.site-footer__links { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 0; }

/* Les liens du pied de page avaient exactement la couleur du texte statique
   voisin et aucun soulignement : rien ne permettait de savoir que c'étaient
   des liens avant de les survoler — ce qu'un utilisateur au clavier ou au
   doigt ne fait jamais. */
.site-footer__links a {
  display: inline-block;
  padding-block: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-3);
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible { text-decoration-color: currentColor; }

.site-footer__tel { color: var(--acc); font-weight: 600; }
.site-footer__tel { text-decoration-color: var(--line-3); }

/* ── Pages secondaires ──────────────────────────────────────────────
   /occasions, /occasions/{slug} et /conseils/{slug} n'existent pas dans le
   design. Elles reprennent la grammaire posée par pages/404.php au lot 2 :
   ce bloc n'ajoute qu'une famille (.prose) et trois petites classes. */

.breadcrumb {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--dim); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.breadcrumb [aria-current] { color: var(--muted); }

.price-lg {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--acc);
  margin-bottom: 14px;
}

/* Réutilise la grille de .hours : deux colonnes libellé / valeur. */
.specs { max-width: 460px; margin-top: 26px; }

.section__suite { margin-top: 48px; }

.article__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Photos réelles. La hauteur fixe est celle de la réserve .slot qu'elles
   remplacent : la place est donc réservée avant le chargement, sans avoir
   à stocker les dimensions en base. */
.bike-card__img { width: 100%; object-fit: cover; display: block; }

.fiche__photos { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
/* height: auto est indispensable dès que les attributs width/height sont
   posés sur l'image : sans lui, la hauteur de l'attribut s'applique telle
   quelle et la photo est écrasée. */
.fiche__photos img { width: 100%; height: auto; border-radius: var(--radius); }
.fiche__slot { min-height: 260px; border-radius: var(--radius); margin-top: 26px; }

/* ── Texte long ─────────────────────────────────────────────────────
   Indispensable : le reset de ce fichier fait `p { margin: 0 }`, donc sans
   .prose un article Markdown sortirait en un seul pavé sans interlignage. */
.prose {
  max-width: 68ch;
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--mute);
  text-wrap: pretty;
}
.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--paper);
  margin-top: 1.8em;
  line-height: 1.15;
}
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }

.prose strong { color: var(--paper); font-weight: 600; }
.prose em     { font-style: italic; }

.prose a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--dim); }

.prose blockquote {
  border-left: 3px solid var(--acc);
  padding: 2px 0 2px 18px;
  color: var(--soft);
}

.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Un tableau doit pouvoir défiler seul plutôt que d'élargir la page. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.prose th { color: var(--paper); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   Points de rupture
   ═══════════════════════════════════════════════════════════════════

   Trois paliers, chacun dérivé d'un seuil MESURÉ sur le contenu, jamais
   d'une taille d'appareil :

     1180  le triptyque du hero (240 + 460 + 200 + 2 gaps + gouttières
           = 1052) cesse de respirer ; à 1052 la colonne d'intro tombe à
           28 caractères par ligne.
     900   les trois blocs à `white-space: nowrap` de l'en-tête totalisent
           816 px et ne tiennent plus sur une ligne sous 904 px. C'est aussi
           le point de rupture unique du back-office (admin.css).
     600   les grilles de cartes (`minmax(270px, 1fr)`) basculent à 646.

   Écrit en `max-width` seuls : le CSS ci-dessus EST le design desktop tel
   qu'extrait au lot 1, et il reste intact au-delà de 1180 px. Les paliers
   s'emboîtent par la cascade, donc chaque déclaration n'est écrite qu'une
   fois, au palier où elle change. */

/* ── ≤ 1180 : le hero se déplie ─────────────────────────────────── */
@media (max-width: 1180px) {
  .hero__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  /* Une fois empilé, l'ordre visuel redevient celui du DOM : titre, intro,
     chiffre. C'est le H1 qui doit ouvrir la page, pas un paragraphe. */
  .hero__intro { order: 0; }

  .hero__intro,
  .hero__stat {
    max-width: none;
    text-align: left;
  }

  .hero__center { text-align: left; }

  .hero__stat b { font-size: 44px; }
}

/* ── ≤ 900 : l'en-tête et le formulaire ─────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 32px; }

  /* Rangée 1 : la marque et le téléphone. Rangée 2 : la nav sur toute la
     largeur. Pas de menu repliable : les cinq libellés totalisent 260 px
     et tiennent sur une ligne dès que la gouttière rétrécit. Un burger
     n'aurait résolu aucun problème réel, tout en ajoutant un état à gérer. */
  .site-header {
    flex-wrap: wrap;
    row-gap: 14px;
  }
  /* `order: 1` pousse la nav SOUS le bouton téléphone. Sans ça, sa base de
     100 % la plaçait au milieu et rejetait le téléphone — l'action
     principale du site — sur une troisième rangée, tout en bas de l'en-tête. */
  .nav {
    order: 1;
    flex-basis: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 0 22px;
    scrollbar-width: thin;
  }
  .nav a { white-space: nowrap; }

  /* L'outline de focus serait rogné par le conteneur de défilement. */
  .nav a:focus-visible { outline-offset: -2px; }

  /* LA casse mesurée : les colonnes exigeaient 482 px de large et la grille
     ne se repliait pas, si bien qu'à 375 px la colonne droite était coupée
     à 437 px ET le formulaire écrasé à deux champs de 47 px. */
  .booking {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── ≤ 600 : une seule colonne, échelle de poche ────────────────── */
@media (max-width: 600px) {
  :root { --gutter: 20px; }

  .section { padding-bottom: 44px; }
  .section--first { padding-block: 44px; }

  /* L'en-tête occupait 206 px, soit un quart du premier écran. */
  .site-header { padding-block: 14px; row-gap: 10px; }
  .hero { padding-top: 30px; }

  /* Le H1 est déjà à son plancher de clamp (48 px) : sans cette règle, la
     statistique « 48h » à 54 px était 12,5 % PLUS GROSSE que le titre de
     la page. Inversion de hiérarchie mesurée. */
  .hero__stat b { font-size: 38px; }

  .h2      { font-size: 30px; }
  .h2--lg  { font-size: 32px; }
  .h2--sm  { font-size: 26px; }
  .price-lg { font-size: 32px; }
  .prose    { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .booking__card h2 { font-size: 26px; }

  .hero__cta { padding: 22px 0 34px; }
  .hero__cta .btn { flex: 1 1 100%; }

  .marquee__track { font-size: 16px; gap: 26px; }

  .booking__card { padding: 22px; }
  .form { grid-template-columns: 1fr; }
  .form__full { grid-column: auto; }

  /* 16 px est le seuil sous lequel iOS zoome automatiquement à la mise au
     point d'un champ — et ne dézoome jamais ensuite. */
  .field { font-size: 16px; }

  /* Le `minmax(320px, 1fr)` du design impose un plancher de 320 px par
     colonne. À 320 px de viewport il ne reste que 280 px utiles : la grille
     débordait de 40 px, et `.page { overflow: hidden }` le rognait en
     silence — le contenu devenait injoignable, sans barre de défilement
     pour aller le chercher. Ces grilles sont déjà en colonne unique ici :
     on retire simplement le plancher. */
  .pricing,
  .split {
    grid-template-columns: 1fr;
  }
  .pricing { gap: 0; }
  .split   { gap: 28px; }

  /* Même cause, même remède : les prix en Anton ne doivent pas pousser la
     ligne au-delà du conteneur. */
  .pricing__row { flex-wrap: wrap; row-gap: 2px; }

  .site-footer { flex-direction: column; align-items: flex-start; }

  /* Cibles tactiles. Ces liens passent déjà WCAG 2.5.8 AA grâce à
     l'exception d'espacement (aucune paire de centres à moins de 24 px) :
     l'agrandissement vise le critère AAA 2.5.5 et, surtout, le confort
     réel d'un doigt. Padding compensé par une marge négative, pour ne pas
     déplacer la ligne de base. */
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .section__link {
    display: inline-block;
    padding-block: 12px;
    margin-block: -12px;
  }
  .brand { min-height: 44px; }
  .btn--tel { min-height: 44px; }
}

/* ── Mouvement réduit ───────────────────────────────────────────────
   Sept animations tournent en boucle infinie. Sous prefers-reduced-motion,
   on les arrête toutes plutôt que de les accélérer. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track,
  .road__dashes,
  .bike__svg,
  .bike__wheel,
  .bike__chain,
  .brand__wheel {
    animation: none !important;
    transform: none !important;
  }

  /* Le trou que la règle universelle ne bouchait pas : .reveal est piloté
     par `animation-timeline: view()`, dont la progression dépend du
     DÉFILEMENT et non du temps. Écraser `animation-duration` n'a donc aucun
     effet sur lui — dix-sept éléments continuaient de monter de 48 px au
     défilement, et un test fait au chargement ne pouvait pas le montrer.

     `animation: none` suffit (plus d'animation, donc plus de timeline).
     `opacity` et `transform` en !important sont la ceinture : une
     déclaration !important l'emporte sur une animation, donc l'élément
     reste visible même si le moteur conservait la règle animée. */
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Pages légales ──────────────────────────────────────────────────
   L'avertissement d'incomplétude doit se voir sans être lu : encadré et
   coloré, il ne peut pas passer pour du corps de texte. */
.legal-alerte {
  max-width: 68ch;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--acc-2);
  border-left-width: 3px;
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}

.legal-dl {
  display: grid;
  grid-template-columns: minmax(11rem, auto) 1fr;
  gap: 6px 24px;
  margin: 18px 0 0;
}
.legal-dl dt { color: var(--dim); }
.legal-dl dd { margin: 0; color: var(--paper); }

@media (max-width: 600px) {
  /* Deux colonnes sur un téléphone donneraient une colonne d'étiquettes de
     six caractères de large : on empile. */
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl dd { margin-bottom: 12px; }
}

/* ── Adresse et itinéraire ──────────────────────────────────────────
   Remplace la réserve de carte du design. Pas d'iframe : voir le
   commentaire de partials/conseils-horaires.php. */
.carte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  background: repeating-linear-gradient(45deg, var(--hatch-a) 0 10px, var(--hatch-b) 10px 20px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-style: normal;
}
.carte__adresse { color: var(--soft); font-size: 16px; line-height: 1.5; }
