/* ==========================================================================
   BOATSCAN — carte marine : encre navy sur papier d'écume, accent bouée.
   Display : Archivo (large graisse, chasse serrée). Données : IBM Plex Mono.
   ========================================================================== */

:root {
  --encre: #0B2545;
  --abysse: #071B33;
  --ecume: #EFF5F7;
  --papier: #FBFDFE;
  --lagon: #DCEBF1;
  --trait: #C6D8E0;
  --bouee: #FF5A3C;
  --bouee-fonce: #E0431F;
  --laiton: #B9862F;
  --ok: #1E7F5C;
  --texte-doux: #4A6076;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; 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(--ecume);
  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: var(--abysse);
  color: var(--ecume);
  padding: .75rem 1.5rem;
  border-bottom: 1px solid rgba(239, 245, 247, .12);
}
.entete .marque { text-decoration: none; color: inherit; }
.entete-nav { display: flex; align-items: center; gap: 1.4rem; }
.entete-nav a {
  color: rgba(239, 245, 247, .85);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}
.entete-nav a:hover { color: #fff; }
.entete-cta {
  background: var(--bouee);
  color: #fff !important;
  border-radius: 999px;
  padding: .4rem 1rem;
}
.entete-cta:hover { background: var(--bouee-fonce); }

/* ---------- Héros ---------- */

.hero {
  position: relative;
  background: linear-gradient(168deg, var(--abysse) 0%, var(--encre) 60%, #113259 100%);
  color: var(--ecume);
  padding: 3.4rem 1.5rem 7.2rem;
  overflow: hidden;
}

.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: 22px; height: 26px; color: var(--ecume); }
.marque-nom {
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: .18em;
  font-size: .95rem;
  padding-left: .18em; /* compense le tracking du dernier caractère */
  white-space: nowrap;
}
.marque-mode {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--abysse);
  background: var(--bouee);
  border-radius: 3px;
  padding: .15rem .45rem;
  cursor: help;
}

.hero h1 {
  font-weight: 850;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 24ch;
}
.hero h1 em { font-style: normal; color: var(--bouee); }

.hero-sous {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 1.02rem;
  color: rgba(239, 245, 247, .82);
}
.hero-sous strong { color: #fff; }

.hero-preuves {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: 1.4rem;
}
.hero-preuves li {
  font-family: var(--mono);
  font-size: .76rem;
  color: rgba(239, 245, 247, .8);
  border: 1px solid rgba(239, 245, 247, .25);
  border-radius: 999px;
  padding: .3rem .8rem;
}
.hero-preuves strong { color: #fff; }

/* ---------- Panneau de recherche ---------- */

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

.panneau {
  position: relative;
  margin-top: -4.6rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(7, 27, 51, .35);
}

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

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

.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: #fff;
  border: 1.5px solid var(--trait);
  border-radius: 8px;
  padding: .55rem .65rem;
  width: 100%;
}
.champ input:focus, .champ select:focus, .assistant textarea:focus {
  outline: none; border-color: var(--encre);
}

/* Autocomplete destination */
.autocomplete {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  z-index: 30;
  background: #fff;
  border: 1.5px solid var(--trait);
  border-radius: 10px;
  box-shadow: 0 14px 30px -12px rgba(7, 27, 51, .3);
  max-height: 290px;
  overflow: auto;
  padding: .3rem;
}
.autocomplete li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  padding: .5rem .65rem;
  border-radius: 6px;
  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; }

/* Stepper passagers */
.stepper {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--trait);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.stepper:focus-within { border-color: var(--encre); }
.stepper-btn {
  width: 34px;
  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, skipper, budget */
.ligne-options {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .55rem 1.3rem;
  margin-top: .95rem;
  padding-top: .95rem;
  border-top: 1px dashed var(--trait);
}
.option-groupe { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  background: #fff;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: var(--texte-doux);
  padding: .34rem .8rem;
  transition: all .12s;
}
.chip:hover { border-color: var(--encre); color: var(--encre); }
.chip.actif { background: var(--encre); border-color: var(--encre); color: #fff; }

.segment { gap: 0; border: 1.5px solid var(--trait); border-radius: 999px; overflow: hidden; background: #fff; }
.seg {
  background: none; border: none;
  font-size: .82rem; font-weight: 600;
  color: var(--texte-doux);
  padding: .34rem .85rem;
}
.seg + .seg { border-left: 1.5px solid var(--trait); }
.seg:hover { color: var(--encre); background: var(--lagon); }
.seg.actif { background: var(--encre); color: #fff; }

.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: 8px;
  padding: .3rem .45rem;
  -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); }

.bouton-comparer {
  background: var(--bouee);
  color: #fff;
  font-weight: 750;
  font-size: .95rem;
  border: none;
  border-radius: 8px;
  padding: .72rem 1.3rem;
  white-space: nowrap;
  transition: background .15s;
}
.bouton-comparer:hover { background: var(--bouee-fonce); }

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

.assistant { padding: 1.2rem 1.4rem 1.4rem; }
.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; }
.assistant-exemples { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.exemple {
  background: var(--lagon);
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--encre);
  padding: .32rem .8rem;
}
.exemple:hover { border-color: var(--encre); }

.assistant-reponse {
  margin-top: 1rem;
  background: var(--ecume);
  border-left: 4px solid var(--bouee);
  border-radius: 0 8px 8px 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: #fff;
  border: 1px solid var(--trait);
  border-radius: 4px;
  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: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .82rem;
  font-weight: 600;
}
.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: 6px;
  background: #fff; color: var(--encre);
  padding: .3rem .5rem;
}

/* Filtres de résultats */
.filtres {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .55rem 1.2rem;
  padding: .7rem .9rem;
  margin-bottom: 1.1rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 10px;
}
.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: #fff;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  font-size: .85rem; font-weight: 650;
  color: var(--encre);
  padding: .34rem .9rem;
}
.bouton-carte:hover { border-color: var(--encre); }

.carte-map {
  height: 420px;
  border: 1px solid var(--trait);
  border-radius: 12px;
  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 dashed 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: 4px;
  padding: .15rem .5rem;
  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: 12px;
  border: 1px solid var(--trait);
  background: linear-gradient(100deg, var(--papier) 40%, var(--lagon) 50%, var(--papier) 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: #fff;
  border: none; border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  padding: .7rem 1.6rem;
  transition: background .15s;
}
.voir-plus:hover { background: var(--abysse); }
.voir-plus[hidden] { display: none; }

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

.carte {
  display: grid;
  grid-template-columns: 190px 1fr 300px;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 12px;
  overflow: hidden;
  animation: apparait .35s ease both;
}
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } }

.carte-visuel { position: relative; min-height: 150px; }
.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: rgba(7, 27, 51, .78); color: var(--ecume);
  border-radius: 4px; padding: .18rem .5rem;
}

.carte-infos { padding: 1rem 1.2rem; 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: 4px;
  padding: .12rem .45rem;
}
.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 dashed var(--trait);
  padding: .9rem 1rem;
  display: flex; flex-direction: column; gap: .4rem;
  background: linear-gradient(180deg, #fff, var(--papier));
}
.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: 8px;
  padding: .38rem .55rem;
}
.offre:hover { border-color: var(--trait); background: #fff; }
.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: #fff;
  position: relative;
}
.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: 3px; padding: .1rem .4rem;
  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: #fff;
  text-decoration: none;
  font-weight: 700; font-size: .88rem;
  border-radius: 8px; padding: .6rem;
  transition: background .15s;
}
.bouton-reserver:hover { background: var(--abysse); }

/* ---------- É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-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bouee-fonce);
  margin-bottom: .4rem;
}
.section-titre {
  font-weight: 830;
  font-stretch: 110%;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -.015em;
  margin-bottom: 1.3rem;
}

/* Destinations populaires */
.populaires-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .9rem;
}
.populaire {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
  border: none;
  border-radius: 12px;
  padding: .9rem 1rem;
  text-align: left;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 27, 51, 0) 30%, rgba(7, 27, 51, .72) 100%),
    linear-gradient(160deg, hsl(var(--h, 200), 52%, 52%), hsl(calc(var(--h, 200) + 18), 58%, 34%));
  transition: transform .15s ease, box-shadow .15s ease;
}
.populaire::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 34%;
  height: 2px;
  background: rgba(255, 255, 255, .25);
  border-radius: 2px;
  transform: skewY(-4deg);
}
.populaire:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(7, 27, 51, .5); }
.populaire-nom { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; position: relative; z-index: 1; }
.populaire-region { font-size: .75rem; opacity: .85; position: relative; z-index: 1; }
.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: 12px;
  padding: 1.2rem 1.2rem 1.3rem;
}
.etape-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--encre);
  color: #fff;
  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: .9rem;
}
.plateformes-grille li {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: .9rem 1rem;
}
.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); }

/* FAQ */
#faq details {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin-bottom: .6rem;
}
#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-weight: 830; font-stretch: 110%;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.12; letter-spacing: -.015em;
  margin: .4rem 0 1rem;
}
.page-seo h2 { font-weight: 780; font-size: 1.25rem; margin: 2rem 0 .7rem; letter-spacing: -.01em; }
.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: 10px;
  padding: .8rem 1rem;
  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: 12px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--encre);
  transition: border-color .15s;
}
.sommaire-guides a:hover { border-color: var(--encre); }
.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(--abysse);
  color: rgba(239, 245, 247, .78);
  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: #fff; font-size: .9rem; }
.pied-marque p { margin-top: .6rem; max-width: 30ch; }
.pied-coord { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: rgba(239, 245, 247, .45); }
.pied-col h3 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(239, 245, 247, .55);
  margin-bottom: .7rem;
}
.pied-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.pied-col a { color: rgba(239, 245, 247, .85); text-decoration: none; }
.pied-col a:hover { color: #fff; text-decoration: underline; }
.pied-legal {
  max-width: 1080px;
  margin: 2.2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(239, 245, 247, .14);
  font-size: .74rem;
  color: rgba(239, 245, 247, .55);
}
.pied-legal a { color: rgba(239, 245, 247, .8); }
.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.5rem 6.4rem; }
  .entete { padding: .6rem .9rem; gap: .6rem; }
  .marque-nom { font-size: .72rem; letter-spacing: .1em; }
  .marque-mode { display: none; }
  .pavillon { width: 16px; height: 20px; }
  .entete-nav { gap: .7rem; }
  .entete-nav a { font-size: .78rem; }
  .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: 1.5px solid var(--trait) !important;
    border-radius: 999px;
    background: #fff;
  }
  .segment .seg.actif { background: var(--encre); border-color: var(--encre) !important; color: #fff; }
  .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 dashed var(--trait); }
  .assistant-saisie { flex-direction: column; }
  .resultats-tete { flex-direction: column; align-items: flex-start; }
}
