/* =========================================================
   Taxi Lina, Reims et Bezannes
   Feuille de style unique, conforme à DA-taxi-lina-v2.

   Principe : une seule couleur, le vert de panneau de direction,
   travaillée sur quatre valeurs. Aucun accent chaud, aucun dégradé,
   aucune ombre. La profondeur vient de l'écart entre le vert sombre
   et le blanc.
   ========================================================= */

/* ---------- 1. Polices, servies depuis le projet ----------
   Aucun appel à un CDN : l'adresse IP des visiteurs ne sort pas. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2-variations");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body,
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }

ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }

/* ---------- 3. Jetons ---------- */
:root {
  /* zones sombres : haut de page, bloc véhicule, pied de page */
  --nuit:         #16382C;
  --nuit-profond: #0E2620;
  --nuit-trait:   #2A4A3B;
  --nuit-texte:   #A3B8AB;

  /* zones claires : corps de page */
  --papier:       #F1F1EE;
  --papier-creux: #E7E7E2;
  --encre:        #1C201E;
  --encre-doux:   #4E5651;
  --trait:        #C8C9C3;

  /* verts fonctionnels */
  --vert-moyen:   #4A7C61;
  --vert-texte:   #2F5C46;
  --vert-clair:   #BCDCC6;  /* vert clair des boutons du héros */
  --vert-clair-fonce: #A9CFB4;
  --lumiere:      #F7F7F4;

  --alerte:       #A63A2A;

  --contenu:   60rem;
  --marge:     clamp(1.25rem, 5vw, 4rem);
  --section-y: 3.5rem;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Texte secondaire : 0,95 du corps de 19px. Écrit en pixels pour
     rester au-dessus du plancher de 18px fixé par la DA. */
  --secondaire: 18px;
}

/* ---------- 4. Base ---------- */
body {
  font-family: var(--texte);
  font-size: 19px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
}

p { max-width: 70ch; }
strong { font-weight: 700; }

a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
main a { color: var(--vert-texte); text-decoration-color: var(--vert-moyen); }
main a:hover { text-decoration-color: var(--vert-texte); }

:focus-visible {
  outline: 3px solid var(--vert-moyen);
  outline-offset: 3px;
}

.enveloppe {
  width: 100%;
  max-width: var(--contenu);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: .8rem 1.2rem;
  background: var(--nuit);
  color: var(--lumiere);
}
.lien-evitement:focus { left: 0; }

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

/* Marqueur des informations non fournies.
   Volontairement visible. Retirer la règle une fois la page complétée. */
.a-completer {
  display: inline-block;
  padding: .1em .4em;
  border: 2px dashed var(--alerte);
  border-radius: 2px;
  color: var(--alerte);
  font-weight: 700;
  font-size: var(--secondaire);
  line-height: 1.4;
}
.sombre .a-completer,
.entete .a-completer {
  border-color: var(--nuit-texte);
  color: var(--lumiere);
  background: var(--nuit-profond);
}

/* ---------- Animations d'apparition (slide-up + fade-in) ----------
   Logique centralisée et réutilisable : tout élément portant l'attribut
   [data-anim] démarre transparent et décalé de 30px vers le bas, puis
   glisse en place quand le JavaScript lui ajoute la classe .est-visible
   (via IntersectionObserver, une seule fois par élément).

   L'état masqué initial n'est appliqué QUE si :
     - la classe .anim-ready est posée sur <html> (script en-tête, donc
       JavaScript actif) ET
     - l'utilisateur n'a pas demandé la réduction des animations.
   Sans JavaScript ou en réduction de mouvement, rien n'est masqué :
   tout le contenu s'affiche normalement, sans animation. */
@media (prefers-reduced-motion: no-preference) {
  html.anim-ready [data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  html.anim-ready [data-anim].est-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Léger décalage (stagger) entre éléments d'un même groupe. */
  html.anim-ready .entete__actions[data-anim] { transition-delay: 0.12s; }
  html.anim-ready .services-cartes .service:nth-child(2)[data-anim] { transition-delay: 0.09s; }
  html.anim-ready .services-cartes .service:nth-child(3)[data-anim] { transition-delay: 0.18s; }
  html.anim-ready .pied__coordonnees .coordonnee:nth-child(2)[data-anim] { transition-delay: 0.09s; }
  html.anim-ready .pied__coordonnees .coordonnee:nth-child(3)[data-anim] { transition-delay: 0.18s; }

  /* Cartes et colonnes portent déjà un décalage horizontal (--sx) sur
     grand écran : on le compose avec la translation verticale de l'anim
     pour ne pas écraser l'écartement. */
  html.anim-ready .services-cartes .service[data-anim],
  html.anim-ready .pied__coordonnees .coordonnee[data-anim] {
    transform: translateX(var(--sx, 0px)) translateY(30px);
  }
  html.anim-ready .services-cartes .service[data-anim].est-visible,
  html.anim-ready .pied__coordonnees .coordonnee[data-anim].est-visible {
    transform: translateX(var(--sx, 0px)) translateY(0);
  }
}

/* ---------- 5. Sections ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--trait); }

.sombre {
  background: var(--nuit);
  color: var(--nuit-texte);
  border-top: 0;
}
.sombre + .section,
.section + .sombre { border-top: 0; }

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--encre);
  margin-bottom: 1rem;
}
.sombre h2, .sombre h3 { color: var(--lumiere); }

.intro { max-width: 55ch; color: var(--encre-doux); }
.sombre .intro { color: var(--nuit-texte); }
.espace { margin-top: 1.25rem; }

/* ---------- 6. Barre de navigation ---------- */
.nav {
  background: var(--nuit-profond);
  border-bottom: 1px solid var(--nuit-trait);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.nav__marque {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--lumiere);
  text-decoration: none;
}
.nav__burger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .6rem;
  background: transparent;
  border: 1px solid var(--nuit-trait);
  border-radius: 2px;
  color: var(--lumiere);
  font-size: var(--secondaire);
  font-weight: 700;
  cursor: pointer;
}
.nav__burger-trait,
.nav__burger-trait::before,
.nav__burger-trait::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--lumiere);
  position: relative;
}
.nav__burger-trait::before,
.nav__burger-trait::after { content: ""; position: absolute; left: 0; }
.nav__burger-trait::before { top: -6px; }
.nav__burger-trait::after { top: 6px; }

/* La barre occupe toute la largeur : « Taxi Lina » collé à gauche,
   les liens répartis du centre jusqu'au bord droit. */
.nav .enveloppe { max-width: none; padding-inline: clamp(1rem, 2vw, 2rem); }
.nav__marque { margin-right: auto; }
.nav__menu { display: flex; align-items: center; gap: .25rem; }
@media (min-width: 46.01rem) {
  .nav__menu {
    flex: 0 1 auto;
    width: min(56%, 46rem);
    justify-content: space-between;
    gap: 1rem;
  }
}
.nav__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .7rem;
  color: var(--lumiere);
  font-size: var(--secondaire);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__menu a:hover { border-bottom-color: var(--vert-moyen); }
.nav__langue {
  text-decoration: underline !important;
  text-decoration-color: var(--vert-moyen) !important;
  text-decoration-thickness: 2px !important;
}

/* Petit écran : menu repliable derrière le bouton. */
@media (max-width: 46rem) {
  .nav__menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: .5rem;
  }
  .nav__menu.ouvert { display: flex; }
  .nav__menu a {
    min-height: 48px;
    padding: 0;
    border-bottom: 1px solid var(--nuit-trait);
  }
  .nav__menu a:hover { border-bottom-color: var(--nuit-trait); }
  .nav__inner { flex-wrap: wrap; }
}
@media (min-width: 46.01rem) {
  .nav__burger { display: none; }
}

/* ---------- 6 bis. Haut de page ----------
   Photo des vignes en fond plein cadre, informations par-dessus.
   Un voile vert foncé garde le texte lisible sur le ciel de coucher de
   soleil ; c'est une dérogation assumée au fond vert uni de la DA. */
.entete {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* contenu vers le haut, la voiture reste visible dessous */
  background-image:
    linear-gradient(180deg,
      rgba(14, 38, 32, .80) 0%,
      rgba(14, 38, 32, .46) 46%,
      rgba(14, 38, 32, .82) 100%),
    url("../img/entete-vignoble.webp");
  background-size: cover;
  background-position: center; /* la voiture est recadrée au centre de l'image */
  color: var(--lumiere);
  padding-block: 2.25rem 2.75rem;
}

/* Une seule colonne : le texte se pose sur la photo, avec de l'air. */
.entete__grille { display: grid; gap: 2rem; }

/* Héros centré, à la demande de la cliente, en dérogation à l'alignement
   à gauche de la DA. */
.entete__centre { justify-items: center; text-align: center; }
.entete__centre .accroche {
  max-width: 20ch;
  margin: 0 auto; /* l'espacement est géré par le gap de la grille */
  line-height: 1.18;
}
/* Nettement plus d'air entre le titre et les boutons. */
.entete__centre .entete__actions--duo { margin-top: 2rem; }

/* Sur ordinateur : titre sur une seule ligne, boutons de part et d'autre
   du taxi (poussés aux deux bords), le tout au niveau vertical du taxi. */
@media (min-width: 52rem) {
  .entete { padding-top: calc(2.25rem + 30px); }
  .entete__centre {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
  }
  .entete__centre .accroche {
    grid-row: 1;
    max-width: none;
    white-space: nowrap;
    margin: 0 auto;
  }
  .entete__centre .entete__actions--duo {
    grid-row: 2;
    align-self: center;
    /* Deux colonnes égales poussées aux deux bords : le taxi reste pile
       au milieu, entre des boutons de largeur identique. */
    grid-template-columns: 17rem 17rem;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .entete__actions .bouton--hero { width: 100%; min-width: 0; }
  .entete__maintenant { width: 100%; }
}

.entete__intro { max-width: 44ch; color: var(--lumiere); }
.entete__actions { display: block; }

/* Deux boutons de taille égale : même largeur par la grille, même hauteur
   par l'étirement. Empilés sur mobile, côte à côte ensuite. */
.entete__actions--duo {
  display: grid;
  gap: 40px; /* 40px entre les deux boutons */
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}
@media (min-width: 34rem) {
  /* Deux boutons côte à côte, espacés de 40px. */
  .entete__actions--duo {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    column-gap: 40px;
  }
}
/* Sélecteurs à deux classes pour passer devant la règle de base .bouton,
   déclarée plus loin dans le fichier. */
.entete__actions .bouton--hero {
  width: 100%;
  min-height: 66px;
  padding-inline: 1rem;
  text-align: center;
  border-radius: 16px; /* bords adoucis, à la demande de la cliente */
}
/* Boutons vert clair, texte foncé, bien lisibles sur la photo. */
.entete__actions .bouton--clair {
  background: var(--vert-clair);
  color: var(--nuit);
  border-color: var(--vert-clair);
}
.entete__actions .bouton--clair:hover {
  background: var(--vert-clair-fonce);
  border-color: var(--vert-clair-fonce);
  color: var(--nuit);
}

/* Le numéro dévoilé prend la place exacte du second bouton, dans une boîte
   de mêmes dimensions, pour que rien ne bouge quand il apparaît. */
.entete__maintenant { display: grid; }
.entete__maintenant .bouton--hero { height: 100%; }
.entete__maintenant .appel {
  width: 100%;
  height: 66px;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: .3rem 1rem;
  background: var(--vert-clair);
  border-color: var(--vert-clair);
  border-radius: 16px;
  text-align: center;
}
.entete__maintenant .appel .appel__intitule { font-size: .95rem; line-height: 1.1; color: var(--vert-texte); }
.entete__maintenant .appel .appel__numero { margin-top: 0; font-size: 1.3rem; line-height: 1.1; }
.tel-revele--noscript { width: 100%; max-width: 22rem; margin: .5rem auto 0; }

.marque {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1rem .7rem;
  margin-bottom: 1.5rem;
}
.marque__nom {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: -.01em;
  color: var(--lumiere);
}
.marque__lieu {
  font-size: var(--secondaire);
  color: var(--nuit-texte);
}

.accroche {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--lumiere);
}

/* Bloc téléphone : la seule zone claire du haut de page.
   Aucune ombre, aucun halo, le contraste de valeur suffit. */
.appel {
  display: block;
  max-width: 22rem;
  padding: 1rem 1.25rem 1.15rem;
  border: 1px solid var(--lumiere);
  border-radius: 3px;
  background: var(--lumiere);
  color: var(--nuit);
  text-decoration: none;
}
.appel:hover { background: #FFFFFE; border-color: var(--vert-moyen); }
.appel__intitule {
  display: block;
  font-size: var(--secondaire);
  color: var(--encre-doux);
}
.appel__numero {
  display: block;
  margin-top: .15rem;
  font-weight: 700;
  font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--nuit);
}

.devis-lien {
  display: inline-block;
  margin-top: 1rem;
  min-height: 44px;
  padding-block: .55rem;
  color: var(--lumiere);
  text-decoration: underline;
  text-decoration-color: var(--vert-moyen);
  text-decoration-thickness: 2px;
}
.devis-lien:hover { text-decoration-color: var(--lumiere); }

.aujourdhui {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nuit-trait);
  max-width: 55ch;
  font-size: var(--secondaire);
  color: var(--nuit-texte);
}
.aujourdhui b { color: var(--lumiere); font-weight: 700; }

/* ---------- 7. Prestations ---------- */
.sur-titre {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: var(--secondaire);
  font-weight: 700;
  color: var(--encre-doux);
  text-align: center;
  margin-bottom: .4rem;
}
#services > .enveloppe > h2 { text-align: center; }

.services-cartes {
  display: grid;
  gap: 2.75rem 2rem;
  margin-top: 2.75rem;
}
@media (min-width: 46rem) {
  .services-cartes { grid-template-columns: repeat(3, 1fr); }
}
/* Sur grand écran, on écarte les cartes latérales pour occuper la largeur.
   overflow-x: clip évite toute barre de défilement si le décalage frôle le bord. */
@media (min-width: 90rem) {
  #services { overflow-x: clip; }
  .services-cartes .service:first-child { --sx: -225px; transform: translateX(var(--sx)); }
  .services-cartes .service:last-child  { --sx: 225px;  transform: translateX(var(--sx)); }
}
.service { text-align: center; }
.service__icone {
  display: block;
  width: auto;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 1rem;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: .4rem;
}
.service p {
  color: var(--encre-doux);
  font-size: 15px;
  max-width: 34ch;
  margin-inline: auto;
}

/* ---------- 8. Communes ---------- */
.communes {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}
.communes li {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .9rem;
  border: 1px solid var(--trait);
  border-radius: 2px;
  background: var(--papier-creux);
  font-size: var(--secondaire);
}

/* ---------- 9. La voiture ---------- */
.photos {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 46rem) {
  .photos { grid-template-columns: 1fr 1fr; align-items: start; }
}
/* Aucun rapport d'image imposé : les photos gardent leur cadrage
   d'origine, sans recadrage automatique. Les attributs width et height
   du HTML réservent la place et évitent le décalage au chargement. */
.photos img {
  width: 100%;
  height: auto;
  background: var(--nuit-profond);
}
.photos figcaption {
  margin-top: .5rem;
  font-size: var(--secondaire);
  color: var(--nuit-texte);
}

.equipements { margin-top: 1.75rem; border-top: 1px solid var(--nuit-trait); }
.equipements > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--nuit-trait);
}
.equipements dt { color: var(--nuit-texte); }
.equipements dd { color: var(--lumiere); font-weight: 700; text-align: right; }

/* ---------- 10. Horaires ---------- */
.horaires {
  width: 100%;
  max-width: 34rem;
  margin-top: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.horaires th,
.horaires td {
  padding-block: .8rem;
  text-align: left;
  border-bottom: 1px solid var(--trait);
}
.horaires th { font-weight: 400; color: var(--encre-doux); }
.horaires td { text-align: right; font-weight: 700; }
.horaires tr:first-child th,
.horaires tr:first-child td { border-top: 1px solid var(--encre); }

/* ---------- 11. Devis ---------- */
/* Titre de la section réservation centré, à la demande de la cliente. */
#reserver > .enveloppe > h2 { text-align: center; }

.devis__grille { margin-top: 1.75rem; }

/* Espace réservé à une future image, à droite du formulaire.
   Masqué sur mobile et tablette, visible seulement sur ordinateur. */
.devis__media { display: none; }

@media (min-width: 52rem) {
  /* Champs à gauche, image à droite. */
  .devis__grille {
    display: grid;
    grid-template-columns: minmax(0, 34rem) 1fr;
    gap: 3rem;
    align-items: stretch;
  }
  .devis__grille .formulaire { max-width: none; }
}

/* Décalage des champs de 150px vers la gauche, uniquement là où la largeur
   le permet sans rogner les champs (sinon ils sortiraient de l'écran). */
@media (min-width: 72rem) {
  #reserver { overflow-x: clip; }
  .devis__grille .formulaire { transform: translateX(-150px); }
  .devis__media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* min-width: 0 empêche l'image (large) d'élargir sa colonne et donc
       de rogner le formulaire : les champs gardent leur taille d'origine. */
    min-width: 0;
    min-height: 100%;
  }
  /* Image doublée qui déborde vers la droite, dans la marge, sans toucher
     le formulaire. La largeur est plafonnée pour ne jamais sortir de l'écran.
     Sélecteur plus spécifique pour l'emporter sur la règle globale. */
  .devis__grille .devis__image {
    flex: none;
    width: min(480px, calc(50vw - 200px));
    max-width: none;
  }
}
.devis__image {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.5rem;
  border: 1px solid var(--nuit);
  border-radius: 2px;
  background: var(--nuit);
  color: var(--lumiere);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: var(--nuit-profond); border-color: var(--nuit-profond); }

/* ---------- 12. Pied de page ---------- */
.pied {
  background: var(--nuit);
  color: var(--nuit-texte);
  padding-block: 2.5rem 0;
  font-size: var(--secondaire);
}
.pied__sur-titre {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: var(--secondaire);
  font-weight: 700;
  color: var(--nuit-texte);
  text-align: center;
  margin-bottom: .3rem;
}
.pied__titre {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--lumiere);
  text-align: center;
  margin-bottom: 2.25rem;
}
.pied__titre::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--vert-clair);
  margin: .9rem auto 0;
}
.pied__grille {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--nuit-trait);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* Bloc coordonnées : icône, titre et lignes centrés, en colonne. */
.coordonnee {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}
.coordonnee__icone {
  display: inline-flex;
  color: var(--vert-clair);
}
.coordonnee__corps { min-width: 0; }

/* Sur grand écran, on écarte les colonnes latérales du bloc contact. */
@media (min-width: 90rem) {
  #contact { overflow-x: clip; }
  .pied__coordonnees .coordonnee:first-child { --sx: -225px; transform: translateX(var(--sx)); }
  .pied__coordonnees .coordonnee:last-child  { --sx: 225px;  transform: translateX(var(--sx)); }
}

/* Barre noire pleine largeur en bas de page pour les mentions. */
.pied__barre {
  background: #0A0A0A;
  color: var(--nuit-texte);
  margin-top: 1.75rem;
  padding-block: .85rem;
}
.pied__barre-texte {
  margin: 0;
  text-align: center;
  line-height: 1.7;
}
.pied__barre a { color: var(--lumiere); }
/* Sur ordinateur, tout tient sur une seule ligne. */
@media (min-width: 80rem) {
  .pied__barre-texte { max-width: none; white-space: nowrap; }
}
.pied h2 {
  font-family: var(--texte);
  font-size: var(--secondaire);
  font-weight: 700;
  color: var(--lumiere);
  margin-bottom: .4rem;
}
.pied li { margin-bottom: .1rem; }
.pied a { color: var(--lumiere); }
.pied li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .55rem;
}
.pied__mentions {
  padding-top: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.pied__mentions p { max-width: 70ch; }
.pied__mentions p + p { margin-top: .4rem; }

/* ---------- 13. Formulaire ----------
   Un champ par ligne, y compris sur grand écran.
   Étiquette au-dessus, toujours visible. */
.formulaire { max-width: 34rem; }

.champ { display: block; margin-bottom: 1.25rem; }
/* Jour et heure côte à côte, pour gagner de la place. */
.champ-ligne { display: flex; gap: 1rem; }
.champ-ligne .champ { flex: 1; min-width: 0; }

/* Deuxième étape du formulaire, dévoilée après le premier clic. */
.form__etape2-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .9rem;
  margin: 0 0 1.1rem;
  padding-top: .25rem;
  font-weight: 700;
  color: var(--vert-texte);
}
.lien-retour {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 400;
  color: var(--vert-texte);
  text-decoration: underline;
  text-decoration-color: var(--vert-moyen);
  text-underline-offset: .18em;
  cursor: pointer;
}
.lien-retour:hover { text-decoration-color: var(--vert-texte); }
.champ > span:first-child {
  display: block;
  margin-bottom: .3rem;
  font-weight: 700;
  font-size: var(--secondaire);
  color: var(--encre);
}
.champ .facultatif { font-weight: 400; color: var(--encre-doux); }
.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: .65rem .8rem;
  font-size: 18px;
  color: var(--encre);
  background: var(--lumiere);
  border: 1px solid var(--trait);
  border-radius: 2px;
}
.champ textarea { min-height: 7rem; resize: vertical; }
.champ input:hover,
.champ select:hover,
.champ textarea:hover { border-color: var(--vert-moyen); }
.champ :is(input, select, textarea)[aria-invalid="true"] {
  border: 2px solid var(--alerte);
}

.erreur {
  display: none;
  margin-top: .3rem;
  font-weight: 700;
  font-size: var(--secondaire);
  color: var(--alerte);
}
.erreur.visible { display: block; }

.accord {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.5rem 0 .4rem;
  max-width: 62ch;
  font-size: var(--secondaire);
}
.accord input {
  width: 24px; height: 24px;
  flex: none;
  margin-top: .25rem;
  accent-color: var(--nuit);
}

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

/* ---------- Curseurs passagers et bagages ---------- */
.curseur { margin-bottom: 1.25rem; }
.curseur > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}
.curseur > label > span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: var(--secondaire);
  color: var(--encre);
}
.curseur__icone {
  flex: none;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.curseur output {
  font-family: var(--texte);
  font-weight: 700;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--vert-texte);
  min-width: 1.2em;
  text-align: right;
}

/* La piste et la pastille sont dessinées à la main, sans ombre.
   Zone tactile d'au moins 44px de haut autour de la piste. */
.curseur input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.curseur input[type="range"]:focus-visible {
  outline: 3px solid var(--vert-moyen);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Piste, WebKit */
.curseur input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 2px;
  background: var(--trait);
}
.curseur input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border: 3px solid var(--lumiere);
  border-radius: 50%;
  background: var(--nuit);
}
/* Piste, Firefox */
.curseur input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 2px;
  background: var(--trait);
}
.curseur input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 2px;
  background: var(--vert-moyen);
}
.curseur input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 3px solid var(--lumiere);
  border-radius: 50%;
  background: var(--nuit);
}
.curseur__reperes {
  display: flex;
  justify-content: space-between;
  margin-top: .35rem;
  padding: 0 2px;
  font-size: var(--secondaire);
  font-variant-numeric: tabular-nums;
  color: var(--encre-doux);
}

.bouton--large { width: 100%; margin-top: 1.5rem; }
.form__delai {
  margin-top: .5rem;
  font-size: var(--secondaire);
  color: var(--encre-doux);
  text-align: center;
}
.form__paiement {
  margin-top: .25rem;
  font-size: var(--secondaire);
  color: var(--encre-doux);
  text-align: center;
}
.bouton[disabled] { background: var(--encre-doux); border-color: var(--encre-doux); cursor: progress; }

.retour {
  display: none;
  margin-top: 1.15rem;
  padding: .85rem 1rem;
  border-left: 3px solid;
  max-width: 62ch;
  font-size: var(--secondaire);
}
.retour.visible { display: block; }
.retour.ok { border-color: var(--vert-moyen); background: var(--papier-creux); color: var(--encre); }
.retour.ko { border-color: var(--alerte); background: var(--papier-creux); color: var(--alerte); }

.note-formulaire {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: var(--secondaire);
  color: var(--encre-doux);
}

/* ---------- 14. Pages annexes ---------- */
.page-simple { padding-block: var(--section-y); }
.page-simple h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin-bottom: 1rem;
}
.page-simple p { color: var(--encre-doux); }
.page-simple p + p { margin-top: 1rem; }
.page-simple .appel {
  margin-top: 2rem;
  border-color: var(--trait);
  background: var(--papier-creux);
}
.page-simple .appel:hover { border-color: var(--vert-moyen); background: var(--lumiere); }
.page-simple__liens {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait);
  font-size: var(--secondaire);
}

.legal { padding-block: var(--section-y); }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: .5rem; }
.legal__date { margin-bottom: 2.5rem; font-size: var(--secondaire); color: var(--encre-doux); }
.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: .7rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
}
.legal h3 {
  margin-top: 1.5rem;
  margin-bottom: .4rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}
.legal p + p { margin-top: .85rem; }
.legal ul { margin: .85rem 0; display: grid; gap: .4rem; }
.legal li { position: relative; padding-left: 1.1rem; max-width: 70ch; }
.legal li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 6px; height: 1px;
  background: var(--vert-moyen);
}
.legal table { width: 100%; margin: 1.15rem 0; font-size: var(--secondaire); }
.legal th, .legal td {
  padding: .7rem 1rem .7rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--trait);
}
.legal thead th { border-bottom-color: var(--encre); }
.legal .encadre {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--vert-moyen);
  background: var(--papier-creux);
  font-size: var(--secondaire);
}
.legal .encadre p { max-width: none; }
.retour-accueil {
  display: inline-block;
  min-height: 44px;
  margin-bottom: 1.25rem;
  padding-block: .55rem;
  font-size: var(--secondaire);
}

@media print {
  .sombre, .entete, .pied { background: #FFFFFE; color: var(--encre); }
  .sombre h2, .entete .accroche, .entete .marque__nom { color: var(--encre); }
  .appel { border: 1px solid var(--encre); }
}
