/* ==========================================================================
   VAN-COMPARATOR — « signalétique de grand chemin » : fond sable chaud,
   encre vert sapin-asphalte, orange signalisation pour l'action, et pour
   signature les destinations en panneaux routiers vert sapin (bande blanche,
   flèche, kilométrage en mono) — la ligne médiane pointillée court en filigrane.
   Display : Bricolage Grotesque. Corps : Instrument Sans. Données : IBM Plex Mono.
   ========================================================================== */

:root {
  color-scheme: light dark;
  /* neutres chauds, un seul accent : le corail */
  --fond: #FFFFFF;
  --encre: #222222;
  --abysse: #000000;
  --papier: #FFFFFF;
  --ecume: #F7F7F7;
  --lagon: #F2F2F2;
  --trait: #EBEBEB;
  --trait-fort: #DDDDDD;
  --panneau: #222222;
  --panneau-fonce: #000000;
  --bouee: #FF5A3C;
  --bouee-fonce: #E0431F;
  --laiton: #B98A2F;
  --ok: #008A05;
  --texte-doux: #6A6A6A;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --ombre-1: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .08);
  --ombre-2: 0 3px 12px rgba(0, 0, 0, .08), 0 16px 40px rgba(0, 0, 0, .14);
}

/* Sombre : mêmes neutres, inversés proprement — le corail garde le cap. */
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #121212;
    --encre: #F2F2F2;
    --abysse: #000000;
    --papier: #1E1E1E;
    --ecume: #191919;
    --lagon: #272727;
    --trait: #303030;
    --trait-fort: #3D3D3D;
    --panneau: #F2F2F2;
    --panneau-fonce: #FFFFFF;
    --laiton: #D4A344;
    --ok: #4FC65A;
    --texte-doux: #A5A5A5;
    --ombre-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px rgba(0, 0, 0, .4);
    --ombre-2: 0 3px 12px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--fond);
  color: var(--encre);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--bouee); outline-offset: 2px; border-radius: 4px; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  color: var(--encre);
  padding: .8rem 1.5rem;
  border-bottom: 1px solid var(--trait);
}
.entete .marque { text-decoration: none; color: var(--bouee); }
.entete-nav { display: flex; align-items: center; gap: 1.4rem; }
.entete-nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .35rem .75rem;
  transition: background .15s, color .15s;
}
.entete-nav a:hover { color: var(--encre); background: var(--lagon); }
.entete-cta {
  background: var(--bouee);
  color: #fff !important;
  border-radius: 999px;
  padding: .45rem 1.1rem !important;
  box-shadow: 0 4px 12px -4px rgba(255, 90, 60, .55);
}
.entete-cta:hover { background: var(--bouee-fonce) !important; }

/* ---------- Héros : le billboard « carte routière », détouré et flottant ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(90% 120% at 85% -10%, rgba(255, 90, 60, .10), transparent 55%),
    radial-gradient(70% 100% at 10% 110%, rgba(255, 90, 60, .05), transparent 60%),
    var(--fond);
  color: var(--encre);
  padding: 4.2rem 3rem 7.6rem;
  overflow: hidden;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
}

.hero-carte { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; }

.marque { display: flex; align-items: center; gap: .55rem; }
.pavillon { width: 27px; height: 22px; color: currentColor; } /* pictogramme van */
.marque-nom {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1.02rem;
  white-space: nowrap;
}
.marque-mode {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bouee);
  border-radius: 999px;
  padding: .15rem .5rem;
  cursor: help;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  max-width: 22ch;
}
.hero h1 em { font-style: normal; color: var(--bouee); }
/* Entrée orchestrée : titre, sous-titre, preuves puis panneau, en cascade. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sous, .hero-preuves, .panneau { animation: lever .55s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-sous { animation-delay: .08s; }
  .hero-preuves { animation-delay: .16s; }
  .panneau { animation-delay: .22s; }
}
@keyframes lever { from { opacity: 0; transform: translateY(14px); } }

.hero-sous {
  margin-top: 1.1rem;
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--texte-doux);
}
.hero-sous strong { color: var(--encre); }

.hero-preuves {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: 1.4rem;
}
.hero-preuves li {
  font-size: .82rem;
  font-weight: 500;
  color: var(--texte-doux);
  background: var(--papier);
  border: 1px solid var(--trait-fort);
  border-radius: 999px;
  padding: .34rem .9rem;
  box-shadow: var(--ombre-1);
}
.hero-preuves strong { color: var(--encre); font-weight: 700; }

/* ---------- Panneau de recherche : la carte blanche qui chevauche ---------- */

main { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.panneau {
  position: relative;
  margin-top: -4.8rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-l);
  box-shadow: var(--ombre-2);
}

.onglets { display: flex; border-bottom: 1px solid var(--trait); padding: 0 .6rem; }
.onglet {
  background: none; border: none;
  font-weight: 650; font-size: .92rem;
  color: var(--texte-doux);
  padding: 1rem 1.2rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
}
.onglet:hover { color: var(--encre); }
.onglet.actif { color: var(--encre); border-bottom-color: var(--bouee); }

.formulaire { padding: 1.3rem 1.5rem 1.4rem; }

.ligne-principale {
  display: grid;
  grid-template-columns: 1.6fr .9fr .9fr auto auto;
  gap: .9rem;
  align-items: end;
}

.champ { display: flex; flex-direction: column; gap: .3rem; min-width: 0; position: relative; }
.champ label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--texte-doux);
  white-space: nowrap;
}
.champ input, .champ select, .assistant textarea {
  min-width: 0;
  font: inherit;
  font-size: .95rem;
  color: var(--encre);
  background: var(--papier);
  border: 1.5px solid var(--trait);
  border-radius: var(--r-s);
  padding: .6rem .75rem;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.champ input:focus, .champ select:focus, .assistant textarea:focus {
  outline: none; border-color: var(--encre);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, .08);
}

/* Autocomplete destination */
.autocomplete {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  z-index: 30;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  box-shadow: var(--ombre-2);
  max-height: 290px;
  overflow: auto;
  padding: .4rem;
}
.autocomplete li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  cursor: pointer;
}
.autocomplete li.survol, .autocomplete li:hover { background: var(--lagon); }
.ac-nom { font-weight: 650; font-size: .92rem; }
.ac-region { font-size: .72rem; color: var(--texte-doux); white-space: nowrap; }
.ac-vide { color: var(--texte-doux); font-size: .85rem; cursor: default; }
.ac-vide:hover { background: none; }
/* Option « recherche libre » (n'importe quelle ville) */
.autocomplete li.ac-libre { border-top: 1px dashed var(--trait); }
.autocomplete li.ac-libre .ac-nom { color: var(--bouee-fonce); }
.autocomplete li.ac-libre .ac-region { color: var(--bouee-fonce); opacity: .8; }
/* Option « autour de moi » : première entrée quand le champ est vide */
.autocomplete li.ac-geoloc { border-top: none; border-bottom: 1px dashed var(--trait); margin-bottom: .2rem; }

/* Bandeau géolocalisation (« Autour de vous : … ») — informatif, jamais bloquant */
.geoloc-bandeau {
  margin: 1rem 0 0;
  padding: .65rem 1.1rem;
  background: var(--lagon);
  border-radius: var(--r-m);
  font-size: .92rem;
  font-weight: 600;
}
.geoloc-bandeau[hidden] { display: none; }

/* Stepper voyageurs (couchages) */
.stepper {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  background: var(--papier);
  overflow: hidden;
  transition: border-color .15s;
}
.stepper:focus-within { border-color: var(--encre); }
.stepper-btn {
  width: 36px;
  border: none; background: none;
  font-size: 1.15rem; font-weight: 600;
  color: var(--texte-doux);
}
.stepper-btn:hover { background: var(--lagon); color: var(--encre); }
.stepper input {
  width: 3.6ch;
  border: none; text-align: center;
  font: inherit; font-weight: 700; font-size: .98rem;
  color: var(--encre);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

/* Ligne d'options : type, animaux, budget */
.ligne-options {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .55rem 1.3rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--trait);
}
.option-groupe { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: var(--texte-doux);
  padding: .38rem .85rem;
  transition: all .12s;
}
.chip:hover { border-color: var(--encre); color: var(--encre); }
.chip.actif { background: var(--encre); border-color: var(--encre); color: var(--fond); }

.segment { gap: 0; border: 1px solid var(--trait); border-radius: 999px; overflow: hidden; background: var(--papier); }
.seg {
  background: none; border: none;
  font-size: .82rem; font-weight: 600;
  color: var(--texte-doux);
  padding: .38rem .9rem;
}
.seg + .seg { border-left: 1px solid var(--trait); }
.seg:hover { color: var(--encre); background: var(--lagon); }
.seg.actif { background: var(--encre); color: var(--fond); }

.option-budget {
  display: flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--texte-doux);
  margin-left: auto;
}
.option-budget input {
  width: 5.5ch;
  font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--encre);
  border: 1.5px solid var(--trait); border-radius: 999px;
  padding: .32rem .6rem;
  -moz-appearance: textfield; appearance: textfield;
}
.option-budget input::-webkit-outer-spin-button, .option-budget input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.option-budget input:focus { outline: none; border-color: var(--encre); }

/* Mention rassurante sous le formulaire (permis B) */
.note-permis {
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--texte-doux);
}

.bouton-comparer {
  background: linear-gradient(100deg, #FF5A3C, #E0431F 55%, #D63116);
  color: #fff;
  font-weight: 750;
  font-size: .95rem;
  border: none;
  border-radius: 999px;
  padding: .78rem 1.5rem;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(255, 90, 60, .55);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
}
.bouton-comparer:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(255, 90, 60, .6); }
.bouton-comparer:active { transform: translateY(0); }

/* ---------- Assistant ---------- */

.assistant { padding: 1.3rem 1.5rem 1.5rem; }
.assistant-label { display: block; font-size: .88rem; font-weight: 600; color: var(--texte-doux); margin-bottom: .6rem; }
.assistant-saisie { display: flex; gap: .8rem; align-items: stretch; }
.assistant textarea { resize: vertical; flex: 1; border-radius: var(--r-m); }
.assistant-exemples { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.exemple {
  background: var(--lagon);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--encre);
  padding: .34rem .85rem;
  transition: border-color .15s;
}
.exemple:hover { border-color: var(--encre); }

.assistant-reponse {
  margin-top: 1rem;
  background: var(--ecume);
  border-left: 4px solid var(--bouee);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: .9rem 1rem;
  font-size: .95rem;
}
.assistant-reponse .lectures { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.lecture {
  font-family: var(--mono);
  font-size: .72rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 6px;
  padding: .12rem .45rem;
}

/* ---------- Progression (sonde) ---------- */

.progression { margin-top: 1.6rem; }
.progression-titre {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: .7rem;
}
.plateformes { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.plateforme-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 999px;
  padding: .32rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--ombre-1);
}
.plateforme-chip .point { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.plateforme-chip .etat { font-family: var(--mono); font-size: .7rem; color: var(--texte-doux); }
.plateforme-chip.inactive { opacity: .55; }
.plateforme-chip.attente .etat::after {
  content: '···';
  animation: sonde 1.1s infinite steps(4);
}
@keyframes sonde { 0% { content: ''; } 33% { content: '·'; } 66% { content: '··'; } 100% { content: '···'; } }

/* ---------- Résultats ---------- */

.resultats { margin-top: 1.8rem; }
.resultats-tete {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.stats { font-size: .95rem; }
.stats strong { font-weight: 800; }
.stats .economie { color: var(--ok); font-weight: 700; }
.tri { font-size: .85rem; color: var(--texte-doux); display: flex; gap: .5rem; align-items: center; }
.tri select {
  font: inherit; font-size: .85rem;
  border: 1.5px solid var(--trait); border-radius: 999px;
  background: var(--papier); color: var(--encre);
  padding: .32rem .7rem;
}

/* Filtres de résultats */
.filtres {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .55rem 1.2rem;
  padding: .75rem 1rem;
  margin-bottom: 1.1rem;
  background: var(--ecume);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
}
.filtres .chip { display: inline-flex; align-items: center; gap: .4rem; }
.filtres .chip .point { width: 8px; height: 8px; border-radius: 50%; }
.filtres .chip:not(.actif) { opacity: .5; text-decoration: line-through; }
.filtre-cap { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--texte-doux); }
.filtre-cap input { accent-color: var(--bouee); width: 15px; height: 15px; }
.stats-total { color: var(--texte-doux); font-weight: 400; }

.resultats-outils { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.bouton-carte {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: .85rem; font-weight: 650;
  color: var(--encre);
  padding: .38rem 1rem;
  box-shadow: var(--ombre-1);
  transition: box-shadow .15s, border-color .15s;
}
.bouton-carte:hover { border-color: var(--encre); box-shadow: var(--ombre-2); }

.carte-map {
  height: 420px;
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  margin-bottom: 1.1rem;
  z-index: 0;
  background: var(--lagon);
}
.carte-map .leaflet-popup-content { font-family: var(--sans); font-size: .85rem; line-height: 1.45; }
.carte-map a { color: var(--bouee-fonce); font-weight: 700; }

.proximite { margin-top: 2.4rem; }
.proximite-titre {
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -.01em;
  padding-top: 1.4rem;
  border-top: 1px solid var(--trait);
  margin-bottom: 1rem;
}
.proximite-vide { color: var(--texte-doux); font-size: .92rem; }
.carte-distance {
  display: inline-block;
  font-size: .74rem; font-weight: 700;
  color: var(--encre);
  background: var(--lagon);
  border-radius: 999px;
  padding: .15rem .6rem;
  margin-bottom: .35rem;
}

/* Squelettes de chargement */
#skeletons { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.2rem; }
#skeletons[hidden] { display: none; }
.skel-carte {
  height: 150px;
  border-radius: var(--r-m);
  border: 1px solid var(--trait);
  background: linear-gradient(100deg, var(--ecume) 40%, var(--lagon) 50%, var(--ecume) 60%);
  background-size: 200% 100%;
  animation: chatoiement 1.3s infinite linear;
}
@keyframes chatoiement { from { background-position: 120% 0; } to { background-position: -80% 0; } }

.voir-plus {
  display: block;
  margin: 1.4rem auto 0;
  background: var(--encre); color: var(--fond);
  border: none; border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  padding: .75rem 1.7rem;
  box-shadow: var(--ombre-1);
  transition: background .15s, box-shadow .15s;
}
.voir-plus:hover { filter: brightness(1.12); box-shadow: var(--ombre-2); }
.voir-plus[hidden] { display: none; }

.cartes { display: flex; flex-direction: column; gap: 1.2rem; }

.carte {
  display: grid;
  grid-template-columns: 210px 1fr 300px;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--ombre-1);
  transition: box-shadow .18s ease, transform .18s ease;
  animation: apparait .35s ease both;
}
.carte:hover { box-shadow: var(--ombre-2); transform: translateY(-2px); }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }

.carte-visuel { position: relative; min-height: 160px; }
.carte-visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}
.carte-photo.ok { opacity: 1; }
.carte-type {
  position: absolute; top: .6rem; left: .6rem;
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--papier) 92%, transparent); color: var(--encre);
  border-radius: 999px; padding: .2rem .55rem;
  box-shadow: var(--ombre-1);
}

.carte-infos { padding: 1.05rem 1.25rem; min-width: 0; }
.carte-nom { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.carte-modele { color: var(--texte-doux); font-size: .88rem; margin-top: .1rem; }
.carte-specs {
  display: flex; flex-wrap: wrap; gap: .35rem .95rem;
  margin-top: .6rem;
  font-family: var(--mono); font-size: .74rem; color: var(--encre);
}
.carte-note { margin-top: .55rem; font-size: .84rem; }
.carte-note .etoiles { color: var(--laiton); letter-spacing: .08em; }
.carte-note .nb-avis { color: var(--texte-doux); }
.carte-extras { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.extra {
  font-size: .7rem;
  background: var(--lagon);
  border-radius: 999px;
  padding: .14rem .55rem;
}
.carte-conditions { margin-top: .6rem; font-size: .76rem; color: var(--texte-doux); }

/* Comparatif de prix — la raison d'être du métamoteur */
.carte-offres {
  border-left: 1px solid var(--trait);
  padding: .95rem 1rem;
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--ecume);
}
.offre {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .2rem .6rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  padding: .42rem .6rem;
  transition: background .12s, border-color .12s;
}
.offre:hover { border-color: var(--trait); background: var(--papier); }
.offre-nom { display: flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 650; min-width: 0; }
.offre-nom .point { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.offre-prix { font-family: var(--mono); font-weight: 600; font-size: .95rem; text-align: right; }
.offre-detail { grid-column: 1 / -1; font-size: .68rem; color: var(--texte-doux); font-family: var(--mono); }

.offre.meilleure {
  border: 1.5px solid var(--bouee);
  background: var(--papier);
  position: relative;
  box-shadow: 0 4px 14px -8px rgba(255, 90, 60, .45);
}
.offre.meilleure .offre-prix { color: var(--bouee-fonce); font-weight: 700; font-size: 1.05rem; }
.drapeau {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: var(--bouee);
  border-radius: 999px; padding: .12rem .5rem;
  margin-bottom: .12rem;
}
.badge-eco {
  margin-top: .1rem;
  font-size: .74rem; font-weight: 700; color: var(--ok);
  text-align: right;
}
.bouton-reserver {
  margin-top: .5rem;
  display: block; text-align: center;
  background: var(--encre); color: var(--fond);
  text-decoration: none;
  font-weight: 700; font-size: .88rem;
  border-radius: 999px; padding: .65rem;
  transition: background .15s, box-shadow .15s;
}
.bouton-reserver:hover { filter: brightness(1.12); box-shadow: var(--ombre-1); }

/* ---------- État vide ---------- */

.vide { margin: 3rem auto; max-width: 44ch; text-align: center; color: var(--texte-doux); }
.vide-titre { font-weight: 800; font-size: 1.2rem; color: var(--encre); margin-bottom: .4rem; }

/* ---------- Sections découverte ---------- */

.decouverte { margin-top: 4.2rem; }
.section-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: .4rem;
}
.section-titre {
  font-family: var(--display);
  font-weight: 740;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -.018em;
  margin-bottom: 1.3rem;
}

/* Destinations populaires */
.populaires-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
/* Fiche destination façon annonce : visuel dégradé arrondi, texte dessous. */
.populaire {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  text-decoration: none;
  color: var(--encre);
  transition: transform .18s ease;
}
.populaire::before {
  content: '';
  display: block;
  aspect-ratio: 20 / 13;
  border-radius: var(--r-m);
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .12) 100%),
    linear-gradient(165deg,
      hsl(var(--h, 205), 60%, 78%),
      hsl(calc(var(--h, 205) + 20), 48%, 56%) 90%);
  transition: filter .18s ease;
}
.populaire::after {
  /* l'horizon : une simple ligne de crête dans le « visuel » */
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 26%;
  height: 1.5px;
  background: rgba(255, 255, 255, .5);
  transform: skewY(-3deg);
  border-radius: 2px;
  pointer-events: none;
}
.populaire:hover { transform: translateY(-2px); }
.populaire:hover::before { filter: brightness(1.04); }
.populaire-nom { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; line-height: 1.25; }
.populaire-region { font-size: .84rem; color: var(--texte-doux); margin-top: -.35rem; }
.populaires-note { margin-top: 1rem; font-size: .85rem; color: var(--texte-doux); }
.populaires-note a { color: var(--bouee-fonce); font-weight: 700; }

/* Comment ça marche */
.etapes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.etapes li {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--ombre-1);
}
.etape-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--encre);
  color: var(--fond);
  font-family: var(--mono);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .7rem;
}
.etapes h3 { font-size: 1rem; font-weight: 750; margin-bottom: .35rem; }
.etapes p { font-size: .88rem; color: var(--texte-doux); }

/* Plateformes comparées */
.plateformes-grille {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.plateformes-grille li {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  padding: .95rem 1.05rem;
  box-shadow: var(--ombre-1);
}
.plateformes-grille .point { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.plateformes-grille .p-nom { font-weight: 750; font-size: .95rem; }
.plateformes-grille .p-etat { display: block; font-family: var(--mono); font-size: .68rem; color: var(--texte-doux); }

/* Mur de liens : toutes les destinations (accueil) */
.mur-liens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.4rem 2rem;
}
.mur-groupe h3 {
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .04em;
  margin-bottom: .45rem;
}
.mur-groupe h3 a { color: var(--encre); text-decoration: none; }
.mur-groupe h3 a:hover { color: var(--bouee-fonce); text-decoration: underline; }
.mur-groupe ul { list-style: none; display: flex; flex-direction: column; gap: .22rem; }
.mur-groupe li a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: .82rem;
}
.mur-groupe li a:hover { color: var(--encre); text-decoration: underline; }

/* FAQ */
#faq details {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  padding: .95rem 1.15rem;
  margin-bottom: .6rem;
  transition: box-shadow .15s;
}
#faq details[open] { box-shadow: var(--ombre-1); }
#faq summary {
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  list-style-position: outside;
}
#faq details p { margin-top: .6rem; font-size: .9rem; color: var(--texte-doux); max-width: 75ch; }

/* ---------- Pages SEO (destinations, guides) ---------- */

.seo-main { max-width: 820px; margin: 0 auto; padding: 1.6rem 1.5rem 3rem; }
.fil { font-size: .78rem; color: var(--texte-doux); margin-bottom: 1.6rem; }
.fil a { color: var(--texte-doux); }
.fil span[aria-current] { color: var(--encre); font-weight: 600; }
.page-seo h1 {
  font-family: var(--display);
  font-weight: 760;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.1; letter-spacing: -.02em;
  margin: .4rem 0 1rem;
}
.page-seo h2 { font-family: var(--display); font-weight: 680; font-size: 1.28rem; margin: 2rem 0 .7rem; letter-spacing: -.012em; }
.page-seo article > p, .page-seo article li, .seo-main > p { font-size: .98rem; line-height: 1.65; margin-bottom: .8rem; }
.seo-intro { font-size: 1.05rem !important; color: var(--texte-doux); }
.page-seo article ul:not(.liens-voisins):not(.annuaire) { padding-left: 1.2rem; margin-bottom: .8rem; }
.seo-cta { display: inline-block; text-decoration: none; margin: .4rem 0 .6rem; }
.page-seo details {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  padding: .85rem 1.05rem;
  margin-bottom: .5rem;
}
.page-seo summary { font-weight: 700; font-size: .95rem; cursor: pointer; }
.page-seo details p { margin-top: .5rem; color: var(--texte-doux); font-size: .92rem; }
.liens-voisins { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.liens-voisins a { color: var(--encre); font-weight: 650; }
.liens-voisins .km { font-family: var(--mono); font-size: .72rem; color: var(--texte-doux); margin-left: .4rem; }
.annuaire { list-style: none; columns: 2; gap: 2rem; margin-bottom: 1.4rem; }
.annuaire li { margin-bottom: .45rem; break-inside: avoid; }
.annuaire a { color: var(--encre); font-weight: 650; }
.annuaire .km { font-size: .74rem; color: var(--texte-doux); margin-left: .35rem; }
.sommaire-guides { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.sommaire-guides a {
  display: block;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-m);
  padding: 1.05rem 1.25rem;
  text-decoration: none;
  color: var(--encre);
  box-shadow: var(--ombre-1);
  transition: box-shadow .15s, transform .15s;
}
.sommaire-guides a:hover { box-shadow: var(--ombre-2); transform: translateY(-2px); }
.sommaire-guides strong { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.sommaire-guides span { font-size: .86rem; color: var(--texte-doux); }
@media (max-width: 720px) { .annuaire { columns: 1; } }

/* ---------- Pied de page ---------- */

.pied {
  margin-top: 4.5rem;
  border-top: 1px solid var(--trait);
  background: var(--ecume);
  color: var(--texte-doux);
  padding: 2.6rem 1.5rem 2rem;
  font-size: .85rem;
}
.pied-colonnes {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.pied-marque .marque-nom { color: var(--encre); font-size: .9rem; }
.pied-marque .pavillon { color: var(--encre); }
.pied-marque p { margin-top: .6rem; max-width: 30ch; }
.pied-coord { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--texte-doux); opacity: .7; }
.pied-col h3 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: .7rem;
}
.pied-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.pied-col a { color: var(--encre); text-decoration: none; }
.pied-col a:hover { color: var(--bouee-fonce); text-decoration: underline; }
.pied-legal {
  max-width: 1080px;
  margin: 2.2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--trait);
  font-size: .74rem;
  color: var(--texte-doux);
}
.pied-legal a { color: var(--encre); }
.page-seo .pied { margin-top: 0; }
.page-seo .pied-legal { border-top: none; margin-top: 0; padding-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .ligne-principale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .champ-destination { grid-column: span 2; }
  .champ-pers { grid-column: span 2; justify-self: start; }
  .bouton-comparer[type="submit"] { grid-column: 1 / -1; }
}

.visuel-paysage { display: none; }

@media (max-width: 720px) {
  .hero { padding: 2.2rem 1.4rem 6rem; }
  .hero h1 { font-size: clamp(1.65rem, 7.2vw, 1.9rem); }
  .hero-sous { font-size: .95rem; margin-top: .8rem; }
  .hero-preuves { margin-top: 1.2rem; gap: .45rem .55rem; }
  .hero-preuves li { padding: .26rem .7rem; font-size: .72rem; }
  .entete { padding: .6rem .9rem; gap: .6rem; flex-wrap: wrap; }
  .marque-nom { font-size: .82rem; letter-spacing: -.01em; }
  .marque-mode { display: none; }
  .pavillon { width: 16px; height: 20px; }
  .entete-nav { gap: .3rem; }
  .entete-nav a { font-size: .78rem; padding: .3rem .55rem; }
  .entete-nav a.masquer-mobile { display: none; }
  .entete-cta { display: none; } /* la recherche est juste dessous ; évite le débordement */
  /* Cibles tactiles confortables */
  .chip, .seg { padding: .55rem .9rem; }
  /* Le contrôle segmenté devient des puces : pas de bordure cassée au retour à la ligne */
  .segment { border: none; background: none; overflow: visible; gap: .4rem; flex-wrap: wrap; }
  .segment .seg {
    border: 1px solid var(--trait) !important;
    border-radius: 999px;
    background: var(--papier);
  }
  .segment .seg.actif { background: var(--encre); border-color: var(--encre) !important; color: var(--fond); }
  .onglet { padding: .85rem .9rem; font-size: .88rem; }
  .stepper-btn { width: 42px; }
  .offre { padding: .55rem .6rem; }
  .bouton-reserver { padding: .8rem; }
  .etapes { grid-template-columns: 1fr; }
  .pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .pied-col a { overflow-wrap: break-word; }
  .ligne-principale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .champ-destination, .champ-pers { grid-column: span 2; }
  .option-budget { margin-left: 0; }
  .carte { grid-template-columns: 1fr; }
  .carte-visuel { min-height: 0; aspect-ratio: 200 / 110; }
  .visuel-portrait { display: none; }
  .visuel-paysage { display: block; }
  .carte-offres { border-left: none; border-top: 1px solid var(--trait); }
  .assistant-saisie { flex-direction: column; }
  .resultats-tete { flex-direction: column; align-items: flex-start; }
}

/* Très petits écrans : l'en-tête doit tenir sans rogner la nav (overflow-x clippé) */
@media (max-width: 480px) {
  .entete { padding: .6rem .75rem; gap: .35rem .5rem; }
  .entete-nav { gap: .25rem; }
  .entete-nav a { font-size: .74rem; padding: .25rem .45rem; }
  .marque-nom { font-size: .74rem; letter-spacing: -.01em; }
  .pavillon { width: 14px; height: 17px; }
}

/* Tableau de statistiques (page données publiques) */
.tableau-stats { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; font-size: .92rem; }
.tableau-stats th, .tableau-stats td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--trait); }
.tableau-stats th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-doux); }
.tableau-stats td strong { font-family: var(--mono); }

/* ---------- Annuaire des destinations (/destinations/) ---------- */

.page-annuaire .seo-main { max-width: 1100px; }

.zones-grille {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: .6rem;
}
.zone-carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  color: var(--encre);
  text-decoration: none;
  transition: transform .18s ease;
}
.zone-carte::before {
  content: '';
  display: block;
  aspect-ratio: 20 / 11;
  border-radius: var(--r-m);
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .12) 100%),
    linear-gradient(165deg,
      hsl(var(--h, 205), 60%, 78%),
      hsl(calc(var(--h, 205) + 20), 48%, 56%) 90%);
  transition: filter .18s ease;
}
.zone-carte::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 24%;
  height: 1.5px;
  background: rgba(255, 255, 255, .5);
  transform: skewY(-3deg);
  border-radius: 2px;
  pointer-events: none;
}
.zone-carte:hover { transform: translateY(-2px); }
.zone-carte:hover::before { filter: brightness(1.04); }
.zone-nom { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.zone-nb { font-size: .82rem; color: var(--texte-doux); margin-top: -.35rem; }
.types-puces { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.type-puce {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  border: 1.5px solid var(--trait);
  border-radius: var(--r-s);
  padding: .6rem .9rem;
  text-decoration: none;
  color: var(--encre);
  background: var(--papier);
  transition: border-color .15s ease, transform .15s ease;
}
.type-puce strong { font-size: .9rem; font-weight: 750; }
.type-puce span { font-family: var(--mono); font-size: .68rem; color: var(--texte-doux); }
.type-puce:hover { border-color: var(--encre); transform: translateY(-1px); }
.type-puce--accent { border-color: var(--bouee); background: color-mix(in srgb, var(--bouee) 8%, var(--papier)); }
.type-puce--accent span { color: var(--bouee-fonce); }

.pays-section { margin-top: 2.4rem; }
.page-seo .pays-entete { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: 1.15rem; }
.pavillon-pays {
  width: 19px; height: 13px; flex: none;
  background: linear-gradient(165deg, hsl(var(--h, 205), 60%, 72%), hsl(calc(var(--h, 205) + 20), 48%, 52%));
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
}
.pays-nb {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 400;
  color: var(--texte-doux);
  margin-left: .15rem;
  padding: .12rem .55rem;
  border: 1px solid var(--trait);
  border-radius: 999px;
}
.villes-grille {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .6rem;
}
.ville-tuile {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  border: 1px solid var(--trait);
  border-radius: var(--r-s);
  background: var(--ecume);
  padding: .6rem .8rem;
  text-decoration: none;
  color: var(--encre);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ville-tuile strong { font-size: .92rem; font-weight: 720; letter-spacing: -.005em; }
.ville-tuile span { font-family: var(--mono); font-size: .66rem; color: var(--texte-doux); }
.ville-tuile:hover { background: var(--papier); border-color: var(--encre); transform: translateY(-1px); box-shadow: var(--ombre-1); }

/* ---------- Sommaire des guides : grille + pagination ---------- */

.sommaire-guides { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sommaire-guides li { display: flex; }
.sommaire-guides li a { flex: 1; }

/* Pagination « ligne de route » : les pages sont des bouées reliées par un
   trait, la page courante est la bouée corail. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--trait);
  font-family: var(--mono);
}
.pagination-pages { position: relative; display: inline-flex; align-items: center; }
.pagination-pages::before {
  content: '';
  position: absolute;
  left: 10px; right: 10px; top: 50%;
  height: 2px;
  background: var(--trait);
}
.page-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  margin: 0 .22rem;
  border-radius: 50%;
  border: 1.5px solid var(--trait);
  background: var(--papier);
  color: var(--texte-doux);
  font-size: .82rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
a.page-num:hover { border-color: var(--encre); color: var(--encre); transform: translateY(-2px); }
span.page-num[aria-current] {
  background: var(--bouee);
  border-color: var(--bouee);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 90, 60, .38);
}
.page-fleche {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  padding: .5rem 1.05rem;
  background: var(--papier);
  color: var(--encre);
  font-weight: 600;
  font-size: .78rem;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
a.page-fleche:hover { border-color: var(--encre); background: var(--lagon); }
.page-fleche--off { opacity: .35; }
@media (max-width: 560px) { .fleche-texte { display: none; } .page-num { width: 2.2rem; height: 2.2rem; margin: 0 .14rem; } }

/* Carte orpheline en fin de sommaire : pleine largeur, assumée. */
.sommaire-guides li:last-child:nth-child(odd) { grid-column: 1 / -1; }


@media (max-width: 720px) {
  .zones-grille { grid-template-columns: repeat(2, 1fr); }
  .villes-grille { grid-template-columns: repeat(2, 1fr); }
  .sommaire-guides { grid-template-columns: 1fr; }
}


/* ---------- Détails/FAQ : chevron qui pivote, ouverture marquée ---------- */

.page-seo summary, #faq summary { list-style: none; position: relative; padding-right: 1.6rem; }
.page-seo summary::-webkit-details-marker, #faq summary::-webkit-details-marker { display: none; }
.page-seo summary::after, #faq summary::after {
  content: '';
  position: absolute;
  right: .15rem; top: .42em;
  width: .55em; height: .55em;
  border-right: 2px solid var(--encre);
  border-bottom: 2px solid var(--encre);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.page-seo details[open] summary::after, #faq details[open] summary::after { transform: rotate(225deg); top: .55em; }
.page-seo details[open], #faq details[open] { border-color: var(--trait-fort); box-shadow: var(--ombre-1); }

/* En dernier pour gagner à spécificité égale : l'attribut hidden doit toujours
   masquer, même quand une classe pose un display: (flex, grid…). */
[hidden] { display: none; }
