/* ==========================================================================
   Satofly — Fiches offre (public/hotel.html + public/offer.html)
   Surface-specific. S'appuie sur satofly.css (tokens + composants). Ne
   redéfinit aucun token ; ne touche jamais satofly.css.
   Réf. maquette : « Satofly Site - Fiche offre.dc.html ».
   ========================================================================== */

/* ---- Ossature commune --------------------------------------------------- */
.fiche-body {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start;
  padding-block: 32px 80px;
}
.fiche-main { flex: 1 1 600px; min-width: 0; }
.fiche-main-flow { display: flex; flex-direction: column; gap: 16px; }
.fiche-side { flex: 0 1 348px; min-width: 290px; position: sticky; top: 24px; }
/* Les colonnes s'empilent (flex-wrap) dès ~1100 px : le rail doit alors
   cesser d'être collant ET prendre toute la largeur, sinon il reste un
   bandeau étroit figé au milieu de la page (README l. 316 et 325). */
@media (max-width: 1100px) {
  .fiche-side { position: static; flex-basis: 100%; max-width: 100%; width: 100%; }
  /* Colonnes empilées : le prix et le bouton passent AVANT le détail, sinon
     l'utilisateur mobile doit traverser toute la fiche pour réserver. */
  .fiche-side { order: -1; }
}

/* ---- Fil d'Ariane ------------------------------------------------------- */
.fiche-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 14px; color: var(--sarcelle-700);
}
.fiche-back:hover { color: var(--sarcelle-900); }
.fiche-back-wrap { padding-top: 22px; }

/* ==========================================================================
   VUE HÔTEL
   ========================================================================== */

/* ---- En-tête de fiche : nom, étoiles, adresse, note ---------------------
   Même grammaire que l'accueil : surtitre en capitales espacées, titre très
   serré, pastille blanche à ombre douce pour la note. */
.hf-head { padding: 22px 0 22px; }
.hf-head .fiche-back { margin-bottom: 24px; }
.hf-head-row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 18px 30px;
}
.hf-head-main { flex: 1 1 520px; min-width: 0; }
.hf-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.hf-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 11px; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sarcelle-700);
}
.hf-kind .sf-icon { color: var(--sarcelle-700); }
.hf-addr {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px;
}
.hf-addr-line {
  display: inline-flex; align-items: flex-start; gap: 8px; min-width: 0;
  font-family: var(--mono); font-weight: 400; font-size: 13.5px; line-height: 1.45;
  color: var(--gris); overflow-wrap: anywhere;
}
.hf-addr-line .sf-icon { color: var(--sarcelle-700); margin-top: 2px; }
.hf-locnote {
  display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap;
  font-weight: 700; font-size: 12.5px; line-height: 1;
  color: var(--sarcelle-900); background: var(--sarcelle-100);
  border-radius: var(--r-pill); padding: 8px 13px;
}
.hf-locnote .mono { font-size: 13px; }

.hf-notecard {
  display: inline-flex; align-items: center; gap: 13px; flex: none;
  background: #fff; border-radius: var(--r-pill); padding: 9px 22px 9px 9px;
  box-shadow: var(--sh-card); color: var(--encre);
  transition: box-shadow .15s ease-out, transform .15s ease-out;
}
.hf-notecard:hover { color: var(--encre); box-shadow: var(--sh-hover); transform: translateY(-1px); }
.hf-notecard .score { min-width: 54px; font-size: 18px; padding: 11px 12px; border-radius: 14px; }
.hf-note-body { display: flex; flex-direction: column; gap: 3px; }
.hf-note-word { font-weight: 800; font-size: 16px; line-height: 1.1; letter-spacing: -0.02em; }
.hf-note-count { font-family: var(--mono); font-weight: 400; font-size: 12px; line-height: 1.1; color: var(--gris); }

/* ---- Galerie mosaïque (desktop) / carrousel plein cadre (mobile) --------
   Les coins arrondis sont portés par le rail, pas par chaque cellule : la
   mosaïque garde ainsi des angles nets à l'intérieur et un cadre arrondi à
   l'extérieur, quel que soit le nombre de photos (1 à 5). */
.hf-galwrap { padding-top: 4px; }
.hf-gal { position: relative; }
.hf-gal-track {
  display: grid; gap: 8px; border-radius: 26px; overflow: hidden;
  box-shadow: var(--sh-photo); background: var(--sarcelle-900);
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 205px 205px;
}
.hf-gcell {
  position: relative; display: block; overflow: hidden; min-width: 0;
  margin: 0; padding: 0; border: 0; cursor: zoom-in;
  -webkit-appearance: none; appearance: none;
  /* Dégradé de repli identique à .photo : si la source ne sert pas l'image,
     la cellule reste une surface sarcelle, jamais un rectangle blanc. */
  background-color: var(--sarcelle-900);
  background-image:
    radial-gradient(120% 120% at 70% 10%, rgba(138, 180, 184, 0.5), transparent 60%),
    linear-gradient(160deg, var(--sarcelle-700), var(--sarcelle-900));
}
.hf-gcell img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out;
  /* Texte alternatif d'une image absente : discret, jamais criard. */
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--creme-66);
}
.hf-gcell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(3, 31, 37, 0); transition: background .2s ease-out;
}
.hf-gcell:hover img { transform: scale(1.045); }
.hf-gcell:hover::after { background: rgba(3, 31, 37, 0.12); }
.hf-gcell:focus-visible { outline: 3px solid var(--abricot-500); outline-offset: -3px; }

/* Dispositions selon le nombre de photos réellement fournies. */
.hf-n5 .hf-g1, .hf-n3 .hf-g1 { grid-row: span 2; }
.hf-n4 .hf-gal-track { grid-template-columns: 1fr 1fr; grid-template-rows: 205px 205px; }
.hf-n3 .hf-gal-track { grid-template-columns: 2fr 1fr; grid-template-rows: 162px 162px; }
.hf-n2 .hf-gal-track { grid-template-columns: 1fr 1fr; grid-template-rows: 340px; }
.hf-n1 .hf-gal-track { grid-template-columns: 1fr; grid-template-rows: 420px; }

.hf-more {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; pointer-events: none;
  font-family: var(--ui); font-weight: 700; font-size: 12.5px; line-height: 1;
  color: var(--encre); background: var(--creme);
  border-radius: var(--r-pill); padding: 11px 15px;
  box-shadow: 0 6px 18px rgba(3, 31, 37, 0.24);
}
.hf-gal-all {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--ui); font-weight: 700; font-size: 13px; line-height: 1;
  color: var(--encre); background: var(--creme); border: 0;
  border-radius: var(--r-pill); padding: 12px 18px;
  box-shadow: 0 6px 18px rgba(3, 31, 37, 0.24);
  transition: background .15s ease-out, transform .1s ease-out;
}
.hf-gal-all:hover { background: #fff; }
.hf-gal-all:active { transform: scale(0.98); }
.hf-gal-all .sf-icon { color: var(--sarcelle-700); }

/* Points du carrousel : mobile uniquement (remplis par sf-fiche.js). */
.hf-dots { display: none; }
.hf-dots[hidden] { display: none; }
.hf-dot {
  width: 24px; height: 24px; padding: 8px; border: 0; background: transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.hf-dot::before {
  content: ""; display: block; width: 8px; height: 8px; border-radius: var(--r-pill);
  background: rgba(3, 31, 37, 0.22); transition: background .2s ease-out;
}
.hf-dot.is-on::before { background: var(--sarcelle-700); }

/* Sans photo fournie par la source : l'emplacement reste digne (dégradé
   sarcelle + légende), jamais une image inventée. */
.hf-gal-empty { height: 320px; border-radius: 26px; box-shadow: var(--sh-photo); }

@media (max-width: 760px) {
  /* Carrousel plein cadre : une photo par écran, calage au balayage. */
  .hf-gal-track {
    display: flex; gap: 0; border-radius: 20px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .hf-gal-track::-webkit-scrollbar { display: none; }
  .hf-gcell { flex: 0 0 100%; width: 100%; height: 268px; scroll-snap-align: center; }
  .hf-dots { display: flex; justify-content: center; align-items: center; gap: 2px; padding-top: 10px; }
  .hf-gal-all { left: 12px; bottom: 12px; padding: 10px 15px; font-size: 12.5px; }
  .hf-more { right: 12px; bottom: 12px; }
  .hf-gal-empty { height: 220px; border-radius: 20px; }
}

/* ---- Rythme des sections de la fiche ------------------------------------ */
.hf-sec { padding-block: 38px; border-top: 1px solid var(--creme-300); }
.hf-sec-top { border-top: 0; padding-top: 30px; }
.hf-sec > :last-child { margin-bottom: 0; }
.hf-sec-rel { padding-bottom: 0; }
.hf-sec-rel .fiche-related { margin-top: 0; }
.hf-sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 6px 20px; margin-bottom: 20px;
}
.hf-sec-head .fiche-h2 { margin-bottom: 0; }
.hf-sec-note { font-family: var(--mono); font-weight: 400; font-size: 12.5px; line-height: 1.4; color: var(--gris); }
#avis { scroll-margin-top: 20px; }

/* ---- Ancienne galerie 5 cellules (fiche séjour du catalogue) ------------ */
.fiche-gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 170px 170px; gap: 10px; padding-top: 24px;
}
.fiche-gcell { position: relative; overflow: hidden; border-radius: 8px; }
.fiche-g1 { grid-row: span 2; border-radius: 24px 8px 8px 24px; }
.fiche-g3 { border-radius: 0 24px 0 0; }
.fiche-g5 { border-radius: 0 0 24px 0; }
.fiche-more {
  position: absolute; right: 14px; bottom: 14px; pointer-events: none;
  font-family: var(--ui); font-weight: 700; font-size: 12px; line-height: 1;
  color: var(--encre); border: 0;
  background: var(--creme); border-radius: var(--r-pill); padding: 10px 14px;
}
.fiche-more.is-btn { pointer-events: auto; cursor: pointer; transition: background .15s ease-out; }
.fiche-more.is-btn:hover { background: #fff; }
.fiche-more.is-btn:active { transform: scale(0.98); }
@media (max-width: 720px) {
  /* 5 cellules dont une en span 2 sur 2 colonnes = 3 rangées : sans
     grid-auto-rows la 3e rangée est en `auto` et les cellules 4 et 5
     (dont celle du badge « + N photos ») s'écrasent à 0 px. */
  .fiche-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 130px 130px; grid-auto-rows: 130px; }
  .fiche-g1 { grid-row: span 2; border-radius: 20px 8px 8px 20px; }
  .fiche-g3 { border-radius: 0 20px 0 0; }
  .fiche-g5 { border-radius: 0 0 20px 0; }
}

/* ---- Titre + note ------------------------------------------------------- */
.fiche-name {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04;
  letter-spacing: -0.04em; text-wrap: pretty; overflow-wrap: break-word;
}
.fiche-metarow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 26px;
}
.fiche-addr {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--gris);
}
.fiche-addr .sf-icon { color: var(--sarcelle-700); }

/* ---- Pastilles d'équipement --------------------------------------------- */
.fiche-amenities { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.fiche-amen {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 13.5px; line-height: 1; color: var(--sarcelle-900);
  background: #fff; border-radius: var(--r-pill); padding: 13px 18px;
  box-shadow: var(--sh-card);
}
.fiche-amen .sf-icon { color: var(--sarcelle-700); }

/* ---- Titres de section + texte ------------------------------------------ */
.fiche-h2 {
  font-size: clamp(23px, 2.6vw, 28px); line-height: 1.1;
  letter-spacing: -0.032em; margin: 0 0 18px;
}
.fiche-lead { max-width: 68ch; font-size: 17.5px; line-height: 1.72; color: #2b3335; margin: 0 0 34px; text-wrap: pretty; }
/* « À proximité » : pastilles blanches, comme les équipements. */
.fiche-nearby { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.fiche-nearby li {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; min-width: 0;
  font-weight: 700; font-size: 13.5px; line-height: 1.25; color: var(--sarcelle-900);
  background: #fff; border-radius: var(--r-pill); padding: 12px 17px;
  box-shadow: var(--sh-card);
}
.fiche-nearby .nm { min-width: 0; overflow-wrap: anywhere; }
.fiche-nearby .sf-icon { color: var(--sarcelle-700); }
.fiche-nearby .cat {
  font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--gris);
  padding-left: 9px; border-left: 1px solid var(--creme-300);
}

/* ---- Chambres disponibles ----------------------------------------------- */
.fiche-rooms { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.fiche-room {
  background: #fff; border-radius: 22px; padding: 22px 26px;
  box-shadow: var(--sh-card); display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center;
  transition: box-shadow .15s ease-out, transform .15s ease-out;
}
.fiche-room:hover { box-shadow: var(--sh-hover); transform: translateY(-1px); }
.fiche-room-info { flex: 1 1 240px; min-width: 0; }
.fiche-room-name { font-weight: 800; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 8px; }
.fiche-room-sub { font-size: 14px; line-height: 1.5; color: var(--gris); }
.fiche-room-price { text-align: right; flex-shrink: 0; }
.fiche-room-price .old { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--gris); text-decoration: line-through; }
.fiche-room-price .now { font-family: var(--mono); font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--sarcelle-900); }
.fiche-room-price .per { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--gris); }
.fiche-room form { flex-shrink: 0; margin: 0; }

/* ---- Le quartier -------------------------------------------------------- */
.fiche-quartier {
  position: relative; height: 280px; border-radius: 22px; overflow: hidden;
  box-shadow: var(--sh-dense); margin-bottom: 34px;
}
.fiche-quartier-pin {
  position: absolute; left: 20px; top: 20px; pointer-events: none; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 13px; color: var(--encre);
  background: var(--creme); border-radius: var(--r-pill); padding: 12px 16px;
}
.fiche-quartier-pin .sf-icon { color: var(--sarcelle-700); }
.fiche-quartier-gps {
  position: absolute; right: 20px; bottom: 20px; z-index: 2; pointer-events: none;
  font-size: 12px; color: var(--creme-86);
  background: var(--glass-14); border-radius: var(--r-pill); padding: 8px 12px;
}
/* Repère de localisation tant qu'aucune capture de carte n'est déposée dans
   static/img/slots/ : trame locale (aucune ressource externe) + point. */
.fiche-quartier-plan {
  position: absolute; inset: 0; z-index: 1; opacity: 0.9;
  background-image:
    linear-gradient(rgba(249, 245, 236, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 245, 236, 0.10) 1px, transparent 1px),
    linear-gradient(rgba(249, 245, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 245, 236, 0.05) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
.fiche-quartier-plan .pin {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
  margin: -9px 0 0 -9px; border-radius: var(--r-pill);
  background: var(--abricot-500); box-shadow: 0 0 0 8px rgba(235, 175, 134, 0.25);
}

/* ---- Avis : panneau de synthèse, critères, extraits ---------------------- */
.hf-rev { background: #fff; border-radius: 24px; box-shadow: var(--sh-card); padding: 28px 30px; }
.hf-rev-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--creme-200);
}
.hf-rev-top .score { min-width: 60px; font-size: 21px; padding: 12px 14px; border-radius: 14px; }
.hf-rev-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hf-rev-word { font-weight: 800; font-size: 21px; line-height: 1.1; letter-spacing: -0.025em; }
.hf-rev-count { font-family: var(--mono); font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--gris); }
.hf-rev-cols { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px 40px; }
.hf-rev-col { min-width: 0; }
.hf-rev-lbl {
  display: block; font-weight: 700; font-size: 10.5px; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); margin-bottom: 16px;
}
.hf-rev-col .fiche-hist, .hf-rev-col .fiche-crit { max-width: none; margin-bottom: 0; }
/* Une seule colonne alimentée (l'hôtel n'expose pas toujours les deux) :
   elle prend toute la largeur au lieu de laisser un demi-panneau vide. */
.hf-rev-col:only-child { grid-column: 1 / -1; }
.hf-rev-col:only-child .fiche-hist { max-width: 440px; }
.hf-rev-col:only-child .fiche-crit { max-width: 620px; }
@media (max-width: 900px) { .hf-rev-cols { grid-template-columns: 1fr; } }

.fiche-crit { display: flex; flex-direction: column; gap: 12px; margin: 0 0 6px; max-width: 620px; }
.crit-row { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 12px; }
.crit-name { font-weight: 600; font-size: 14px; }
.crit-track { height: 8px; border-radius: var(--r-pill); background: var(--creme-300); overflow: hidden; }
.crit-fill { height: 100%; border-radius: var(--r-pill); background: var(--sarcelle-700); }
.crit-pct { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--gris); text-align: right; }
.crit-note { margin: 10px 0 0; }

/* auto-fit : un extrait isolé occupe toute la largeur au lieu d'une demi-colonne. */
.fiche-excerpts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.exc-card { background: #fff; border-radius: 22px; box-shadow: var(--sh-card); padding: 22px 24px; }
.exc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.exc-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-pill); flex-shrink: 0;
  background: var(--sarcelle-100); color: var(--sarcelle-900); font-weight: 800; font-size: 15px;
}
.exc-who { display: flex; flex-direction: column; min-width: 0; }
.exc-who strong { font-weight: 800; font-size: 15px; }
.exc-who .meta { font-size: 12px; color: var(--gris); }
.exc-score {
  margin-left: auto; flex-shrink: 0; font-family: var(--mono); font-weight: 500; font-size: 13px;
  color: var(--confirme); background: var(--confirme-bg); border-radius: var(--r-badge); padding: 4px 8px;
}
.exc-text { font-size: 15px; line-height: 1.6; color: #2b3335; }
.exc-text summary { list-style: none; cursor: pointer; }
.exc-text summary::-webkit-details-marker { display: none; }
.exc-more { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--sarcelle-700); }
/* Le <details> ne contient que la SUITE du texte : pas de doublon avec
   l'accroche restée visible dans le <summary>. */
.exc-rest { margin-top: 10px; }
.exc-text[open] .exc-more { display: none; }

/* ---- Répartition des notes (5 barres) ----------------------------------- */
.fiche-hist { display: flex; flex-direction: column; gap: 7px; max-width: 420px; margin: 0 0 24px; }
.hist-row { display: grid; grid-template-columns: 44px 1fr 52px; align-items: center; gap: 12px; }
.hist-star { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--gris); }
.hist-star .sf-icon { color: var(--abricot-800); }
.hist-track { height: 8px; border-radius: var(--r-pill); background: var(--creme-300); overflow: hidden; }
.hist-fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--abricot-500); }
.hist-count { font-size: 12px; color: var(--gris); text-align: right; }

/* ==========================================================================
   VISIONNEUSE PLEIN ÉCRAN (lightbox) — construite par sf-fiche.js
   Aucune dépendance, aucune ressource externe. Le fond de page ne défile
   plus et sort de l'arbre d'accessibilité tant qu'elle est ouverte.
   ========================================================================== */
.hf-lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; overscroll-behavior: contain;
}
.hf-lb[hidden] { display: none; }
/* Voile opaque plutôt qu'un flou d'arrière-plan : même profondeur, aucun
   calque de composition supplémentaire, rendu identique partout. */
.hf-lb-veil { position: absolute; inset: 0; background: rgba(3, 31, 37, 0.96); }
.hf-lb-bar {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 18px;
}
.hf-lb-count {
  font-family: var(--mono); font-weight: 500; font-size: 13px; line-height: 1;
  color: var(--creme-86); background: var(--glass-10);
  border-radius: var(--r-pill); padding: 10px 15px;
}
.hf-lb-close {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0;
  font-family: var(--ui); font-weight: 700; font-size: 13px; line-height: 1;
  color: var(--encre); background: var(--creme);
  border-radius: var(--r-pill); padding: 11px 17px;
  transition: background .15s ease-out, transform .1s ease-out;
}
.hf-lb-close:hover { background: #fff; }
.hf-lb-close:active { transform: scale(0.98); }

.hf-lb-stage {
  position: relative; z-index: 2; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 84px; touch-action: pan-y;
}
.hf-lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 14px; box-shadow: var(--sh-glass);
  transition: opacity .18s ease-out;
}
.hf-lb.is-loading .hf-lb-img { opacity: 0.35; }

.hf-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 54px; height: 54px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass-14); color: var(--creme);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .15s ease-out, color .15s ease-out;
}
.hf-lb-nav:hover { background: var(--creme); color: var(--encre); }
.hf-lb-nav.prev { inset-inline-start: 18px; }
.hf-lb-nav.next { inset-inline-end: 18px; }
.hf-lb.is-single .hf-lb-nav, .hf-lb.is-single .hf-lb-thumbs { display: none; }
.hf-lb.is-single .hf-lb-stage { padding-inline: 18px; }

.hf-lb-thumbs {
  position: relative; z-index: 3; flex: none;
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
  padding: 16px 18px 20px; scrollbar-width: none;
}
.hf-lb-thumbs::-webkit-scrollbar { display: none; }
.hf-lb-thumb {
  flex: 0 0 auto; width: 88px; height: 60px; padding: 0; border: 0; cursor: pointer;
  border-radius: 11px; overflow: hidden; background: var(--sarcelle-900);
  opacity: 0.48; transition: opacity .15s ease-out, box-shadow .15s ease-out;
}
.hf-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hf-lb-thumb:hover { opacity: 0.8; }
.hf-lb-thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--abricot-500); }

.hf-lb button:focus-visible {
  outline: 3px solid var(--abricot-500); outline-offset: 2px;
}

@media (max-width: 760px) {
  .hf-lb-bar { padding: 12px 14px; }
  .hf-lb-stage { padding: 4px 12px; }
  .hf-lb-nav { width: 44px; height: 44px; }
  .hf-lb-nav.prev { inset-inline-start: 8px; }
  .hf-lb-nav.next { inset-inline-end: 8px; }
  .hf-lb-thumbs { padding: 12px 14px 16px; gap: 6px; }
  .hf-lb-thumb { width: 64px; height: 46px; border-radius: 9px; }
  .hf-lb-close span { display: none; }
  .hf-lb-close { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-gcell img, .hf-lb-img, .hf-notecard, .fiche-room { transition: none; }
  .hf-gcell:hover img { transform: none; }
}

/* ---- « À voir aussi » : relie les fiches offre entre elles --------------- */
.fiche-related { margin-top: 44px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rel-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px;
  overflow: hidden; box-shadow: var(--sh-card); color: var(--encre);
  transition: box-shadow .15s ease-out, transform .15s ease-out;
}
.rel-card:hover { box-shadow: 0 16px 40px rgba(3, 31, 37, 0.12); color: var(--encre); }
.rel-photo { display: block; height: 128px; }
.rel-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.rel-title { font-weight: 800; font-size: 16px; line-height: 1.25; }
.rel-sub { font-size: 13px; line-height: 1.4; color: var(--gris); }
.rel-price { display: flex; align-items: baseline; gap: 9px; margin-top: 4px; }
.rel-price .strike { font-size: 13px; color: var(--gris); text-decoration: line-through; }
.rel-price .now { font-weight: 500; font-size: 20px; color: var(--sarcelle-900); }

/* ==========================================================================
   RAIL DE RÉSERVATION (sarcelle) — commun hôtel + vol
   ========================================================================== */
.fiche-rail {
  background: var(--sarcelle-900); color: var(--creme);
  border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-rail);
}
.rail-eyebrow {
  font-weight: 700; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--creme-66); margin-bottom: 12px;
}
.rail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.rail-now { font-family: var(--mono); font-weight: 500; font-size: 34px; line-height: 1; color: var(--creme); }
.rail-old { font-family: var(--mono); font-weight: 400; font-size: 14px; line-height: 1; color: var(--creme-66); text-decoration: line-through; }
.rail-meta { font-family: var(--mono); font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--creme-76); margin-bottom: 22px; }

.rail-fields { display: flex; gap: 8px; margin-bottom: 12px; }
.rail-field { flex: 1; background: var(--glass-10); border-radius: var(--r-field); padding: 13px 15px; min-width: 0; }
.rail-field.full { display: block; margin-bottom: 20px; }
.rail-field-lbl {
  display: block; font-weight: 700; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--creme-66); margin-bottom: 7px;
}
.rail-field-val { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--creme); }
.rail-field-val.ui { font-family: var(--ui); font-weight: 700; }

.rail-cta { margin-bottom: 16px; }
.rail-note { margin: 0; text-align: center; font-size: 12px; color: var(--creme-66); }
.rail-crypto { margin: 4px 0 18px; }

.rail-decomp {
  display: flex; flex-direction: column; gap: 11px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--glass-14);
  font-size: 14px; line-height: 1.4; color: var(--creme-86);
}
.rail-decomp .row { display: flex; justify-content: space-between; gap: 12px; }
.rail-decomp .amt { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.rail-decomp .amt.remise { color: var(--confirme-clair); }

.rail-reassure { display: flex; flex-direction: column; gap: 11px; font-weight: 600; font-size: 13px; line-height: 1.45; color: var(--creme-86); }
.rail-reassure span { display: flex; align-items: flex-start; gap: 9px; }
.rail-reassure .sf-icon { color: var(--abricot-500); flex: none; margin-top: 1px; }

/* ---- Carte « remise » (sous le rail) ------------------------------------ */
.fiche-remise { background: #fff; border-radius: 22px; padding: 22px; margin-top: 14px; box-shadow: var(--sh-card); }
.fiche-remise-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fiche-remise-head .sf-icon { color: var(--abricot-800); }
.fiche-remise-title { font-weight: 800; font-size: 15px; color: var(--encre); }
.fiche-remise p { font-size: 13px; line-height: 1.5; color: var(--gris); }

/* ==========================================================================
   VUE VOL
   ========================================================================== */
/* L'en-tête sarcelle reste PLEIN et se pose AU-DESSUS du hero (maquette) :
   le hero n'a donc pas à réserver 120 px pour un en-tête transparent. */
.fiche-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; }
.fiche-hero-bg { position: absolute; inset: 0; }
.fiche-hero-inner { position: relative; width: 100%; padding: 40px 0; }
.fiche-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.fiche-hero-sub { font-weight: 600; font-size: 13px; color: var(--creme-86); }
.fiche-hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.04em; color: var(--creme); }

/* ---- Cartes d'itinéraire ------------------------------------------------ */
.fiche-leg { background: #fff; border-radius: 22px; padding: 26px 28px; box-shadow: var(--sh-card); }
.fiche-leg-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.fiche-leg-title { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.fiche-leg-dur { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--gris); }

.fiche-timeline { display: flex; gap: 20px; }
.tl-axis { display: flex; flex-direction: column; align-items: center; padding-top: 6px; flex-shrink: 0; }
.tl-dot { width: 11px; height: 11px; border-radius: var(--r-pill); }
.tl-dot.dep { background: var(--sarcelle-900); }
.tl-dot.arr { background: var(--abricot-500); }
.tl-line { width: 2px; flex: 1; min-height: 70px; background: var(--creme-300); }
.tl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.tl-stop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.tl-time { font-family: var(--mono); font-weight: 500; font-size: 22px; }
.tl-place { font-weight: 700; font-size: 16px; line-height: 1.3; }
.tl-place .code { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--gris); }
.tl-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tl-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--gris);
  background: var(--creme); border-radius: var(--r-pill); padding: 9px 14px;
}
.tl-note { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--gris); }

/* ---- Ce qui est compris ------------------------------------------------- */
.fiche-incl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; font-size: 15px; line-height: 1.5; }
/* Variante hors carte blanche (vue séjour, à la suite du fil de la page). */
.fiche-incl-flat { margin-bottom: 34px; }
.incl { display: flex; align-items: flex-start; gap: 10px; }
.incl .sf-icon { color: var(--confirme); flex: none; margin-top: 2px; }
.incl.no { color: var(--gris); }
.incl.no .sf-icon { color: var(--alerte); }

/* ---- Repli mobile ------------------------------------------------------- */
@media (max-width: 760px) {
  .fiche-body { padding-block: 24px 56px; gap: 22px; }
  .fiche-hero-inner { padding: 32px 0; }
  .fiche-quartier { height: 220px; }
  .crit-row { grid-template-columns: 116px 1fr 44px; gap: 10px; }
  .hf-head { padding: 16px 0 18px; }
  .hf-head .fiche-back { margin-bottom: 18px; }
  .hf-head-row { align-items: flex-start; }
  .hf-notecard { padding: 8px 18px 8px 8px; }
  .hf-notecard .score { min-width: 48px; font-size: 16px; padding: 10px; }
  .hf-sec { padding-block: 30px; }
  .hf-sec-top { padding-top: 26px; }
  .hf-rev { padding: 22px 20px; border-radius: 20px; }
  .hf-rev-top { gap: 12px; padding-bottom: 18px; margin-bottom: 20px; }
  .fiche-rail { padding: 24px 22px; }
}
@media (max-width: 560px) {
  /* Carte chambre : nom sur sa ligne, puis prix à gauche et bouton à droite. */
  .fiche-room { padding: 20px; gap: 14px 12px; }
  .fiche-room-info { flex: 1 1 100%; }
  .fiche-room-price { flex: 1 1 auto; text-align: start; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
  .fiche-room form, .fiche-room > .btn { margin-inline-start: auto; }
  .rail-now { font-size: 30px; }
}
