/*
 * Fiche d'hébergement (prestation/show). Mobile d'abord, puis on élargit.
 * Plain CSS volontairement (pas de compilation) : les réglages se lisent ici, en tête de fichier.
 *
 * Gamme : <main data-gamme="vert"> fournit --g (r g b, réglé dans l'admin, table backgroundcolor).
 * Tout le reste en dérive : fond clair, trait, texte foncé. Changer une gamme = changer UNE couleur.
 */
.fiche {
  /* Espacement : une seule échelle de 8 px. Les sections respirent de la même façon partout. */
  --sp-1: .5rem; --sp-2: 1rem; --sp-3: 1.5rem; --sp-4: 2rem; --sp-5: 3rem;
  --section-y: clamp(2.5rem, 1.5rem + 4vw, 5rem);   /* blanc entre deux sections */
  --gutter: clamp(1rem, .5rem + 2.5vw, 2rem);       /* marge latérale */
  --measure: 62ch;                                    /* largeur de lecture */

  /* Couleurs dérivées de la gamme */
  --g-main: rgb(var(--g, 63 120 63));
  --g-deep: color-mix(in srgb, var(--g-main) 58%, #000);   /* texte, boutons : contraste AA sur blanc */
  --g-soft: color-mix(in srgb, var(--g-main) 14%, #fff);   /* fonds de bloc */
  --g-tint: color-mix(in srgb, var(--g-main) 6%, #fff);    /* fond de page alternatif */
  --ink: #2b2b2b; --ink-soft: #5b5b5b; --line: #e6e1d8; --paper: #fbf9f4;

  /* Typographie : titres Lora en graisse moyenne, texte Alegreya Sans. Pas de gras partout. */
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .5vw, 1.35rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem);
  --fs-title: clamp(1.85rem, 1.2rem + 2.6vw, 3rem);

  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.6;
}
.fiche *, .fiche *::before, .fiche *::after { box-sizing: border-box; }

/* Largeur unique pour TOUS les blocs de la page : fini les largeurs qui changent d'une section à l'autre. */
.fiche-wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.fiche-section { padding-block: var(--section-y); }
.fiche-section:nth-of-type(even) { background: var(--paper); }
.fiche-intro { background: #fff; padding-top: clamp(1.5rem, 1rem + 3vw, 3.5rem); }

.fiche h2, .fiche h3 { background: none; padding: 0; border-radius: 0; text-shadow: none; font-family: "Lora", serif; font-weight: 500; line-height: 1.2; color: var(--g-deep); margin: 0; }
.fiche-h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3) !important; }
.fiche-h3 { font-size: 1.2rem; margin-bottom: var(--sp-2) !important; }

/* ── Icônes ─────────────────────────────────────────────── */
.ico { width: 1.5rem; height: 1.5rem; flex: none; color: var(--g-deep); }

/* ── 1. Identité ────────────────────────────────────────── */
.fiche-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 992px) {
  .fiche-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
}
.fiche-eyebrow { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-deep); margin: 0 0 var(--sp-1); }
.fiche-title { font-family: "Lora", serif; font-weight: 500; font-size: var(--fs-title) !important; line-height: 1.12 !important; color: var(--g-deep); margin: 0 0 var(--sp-2) !important; text-wrap: balance; }
.fiche-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: var(--measure); margin: 0 0 var(--sp-3); }

/* Équipements : une ligne d'icônes, lisible d'un coup d'œil */
.facts { list-style: none; margin: 0 0 var(--sp-4); padding: var(--sp-2) 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); border-block: 1px solid var(--line); }
.fact { display: flex; align-items: center; gap: .625rem; font-size: 1rem; }
.fact strong { font-weight: 600; }
.fact-label { color: var(--ink-soft); }
.facts--compact { margin: var(--sp-1) 0 0; padding: 0; border: 0; gap: .25rem var(--sp-2); }
.facts--compact .fact { font-size: .9375rem; gap: .375rem; }
.facts--compact .ico { width: 1.25rem; height: 1.25rem; }

/* Les plus : liste à coches, deux colonnes dès que la place existe */
.plus-list ul { list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .plus-list ul { column-count: 2; column-gap: 2.5rem; } }
.plus-list li { position: relative; padding-left: 1.75rem; margin-bottom: .85rem; break-inside: avoid; }
.plus-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; background: var(--g-main); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.plus-list i, .plus-list em { color: var(--ink-soft); }

/* Carte prix : collante sur grand écran, sous le texte sur mobile */
.aside-card { background: var(--g-soft); border-radius: 1rem; padding: var(--sp-3); }
@media (min-width: 992px) { .aside-card { position: sticky; top: 1.5rem; } }
.aside-price { margin: 0 0 var(--sp-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.aside-from { font-size: .9375rem; color: var(--ink-soft); }
.aside-price strong { font-family: "Lora", serif; font-weight: 500; font-size: 2.25rem; line-height: 1; color: var(--g-deep); }
.aside-price small { color: var(--ink-soft); }
.aside-cta { display: block; text-align: center; background: var(--g-deep); color: #fff; text-decoration: none; padding: .85rem 1rem; border-radius: .6rem; font-weight: 600; }
.aside-cta:hover, .aside-cta:focus-visible { background: color-mix(in srgb, var(--g-deep) 80%, #000); color: #fff; }

/* ── 2. Réservation ─────────────────────────────────────── */
.fiche-booking { background: var(--g-tint) !important; padding-block: var(--sp-5); }
.booking-closed { position: relative; overflow: hidden; display: flex; gap: var(--sp-2); align-items: flex-start; background: #fff; border-radius: .75rem; padding: var(--sp-3) var(--sp-3) var(--sp-3) calc(14px + var(--sp-3)); box-shadow: 0 0 0 1px var(--line); }
.booking-closed::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: var(--g-main); }
.booking-closed .ico { width: 2rem; height: 2rem; margin-top: .15rem; }
.booking-closed-title { margin: 0; font-family: "Lora", serif; font-size: 1.25rem; color: var(--g-deep); }
.booking-closed-sub { margin: .25rem 0 0; color: var(--ink-soft); }
.booking-card { background: #fff; border-radius: .75rem; overflow: hidden; border: 1px solid var(--line); }
.booking-head { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); padding: var(--sp-2) var(--sp-3); background: var(--g-soft); color: var(--g-deep); }
.booking-dates { font-weight: 600; }

/* ── 3. Photos ──────────────────────────────────────────── */
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-3); }
.gallery-head .fiche-h2 { margin: 0 !important; }
.gallery-count { font-family: "Alegreya Sans", sans-serif; font-size: .9375rem; color: var(--ink-soft); margin-left: .5rem; }
.gallery-full { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: .6rem; padding: .5rem .9rem; color: var(--g-deep); cursor: pointer; font: inherit; }
.gallery-full:hover { background: var(--g-soft); }
.gallery-mosaic { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.gallery-mosaic .g-main { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .gallery-mosaic { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
  .gallery-mosaic .g-main { grid-column: 1 / 3; grid-row: 1 / 3; }
}
.g-item { position: relative; display: block; overflow: hidden; border-radius: .5rem; background: var(--g-soft); line-height: 0; }
.g-item img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }
.g-main img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 767px) { .g-main img { aspect-ratio: 16 / 10; } }
.g-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .5); color: #fff; font: 600 1.5rem "Lora", serif; line-height: 1; }
.gallery-rest { display: grid; gap: 8px; margin-top: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery-rest { grid-template-columns: repeat(4, 1fr); } }
.gallery-rest[hidden] { display: none; }
.gallery-toggle { margin-top: var(--sp-3); background: none; border: 1px solid var(--g-deep); color: var(--g-deep); border-radius: .6rem; padding: .7rem 1.25rem; font: inherit; font-weight: 600; cursor: pointer; }
.gallery-toggle:hover { background: var(--g-soft); }

/* ── 4. Vidéos ──────────────────────────────────────────── */
.videos-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 768px) { .videos-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); } }

/* ── 5. Mot du directeur ────────────────────────────────── */
.director-card { display: grid; gap: var(--sp-3); margin: 0; align-items: center; }
@media (min-width: 768px) { .director-card { grid-template-columns: 220px minmax(0, 1fr); gap: var(--sp-5); } }
.director-photo { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.director-title { font-size: 1.25rem !important; margin-bottom: var(--sp-1) !important; }
.director-quote { font-family: "Lora", serif; font-size: var(--fs-lead); line-height: 1.55; font-style: italic; max-width: var(--measure); }

/* ── 6. Comparer ────────────────────────────────────────── */
.compare-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .compare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .compare-grid { grid-template-columns: repeat(3, 1fr); } }
.compare-card { --g-main: rgb(var(--g, 63 120 63)); --g-deep: color-mix(in srgb, var(--g-main) 58%, #000); display: flex; flex-direction: column; height: 100%; background: #fff; position: relative; box-shadow: 0 0 0 1px var(--line); border-radius: .75rem; overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.compare-card:hover, .compare-card:focus-visible { box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1); transform: translateY(-2px); color: var(--ink); }
.compare-card::before { content: ""; display: block; height: 12px; background: var(--g-main); }
.compare-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.compare-body { display: flex; flex-direction: column; gap: .35rem; padding: var(--sp-2) var(--sp-3) var(--sp-3); flex: 1; }
.compare-name { font-family: "Lora", serif; font-weight: 500; font-size: 1.2rem; color: var(--g-deep); }
.compare-diff { font-size: .9375rem; color: var(--ink); }
.compare-diff + .compare-diff { color: var(--ink-soft); }
.compare-price { margin-top: auto; padding-top: var(--sp-1); color: var(--ink-soft); }
.compare-price strong { color: var(--g-deep); font-size: 1.15rem; }

/* ── 7. Offres ──────────────────────────────────────────── */
.fiche-offers .fiche-h2 { text-align: center; }

@media (prefers-reduced-motion: reduce) { .compare-card { transition: none; } }

/* Le carrousel d'offres (tiny-slider) déborde de quelques pixels sur mobile : on le contient. */
.fiche-offers { overflow-x: clip; }

/* ── Colonne latérale : prix, accès rapides, atouts ───────── */
.aside-limited { margin: 0 0 var(--sp-2); font-size: .9375rem; color: var(--g-deep); font-weight: 600; }
.aside-secure { margin: var(--sp-2) 0 0; display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--ink-soft); }
.aside-secure .ico { width: 1.1rem; height: 1.1rem; color: var(--ink-soft); }
.aside-block { margin-top: var(--sp-4); }
.aside-title { font-family: "Alegreya Sans", sans-serif !important; font-size: .8125rem !important; font-weight: 700 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft) !important; margin: 0 0 var(--sp-2) !important; }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.aside-links a { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; color: var(--ink); text-decoration: none; }
.aside-links a:hover { color: var(--g-deep); }
.atouts-compact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.atout { display: flex; gap: .75rem; align-items: center; }
.atout img { flex: none; width: 32px; height: 32px; }
.atout span { display: grid; line-height: 1.3; }
.atout small { color: var(--ink-soft); font-size: .875rem; }
.ico-sm { width: 1.1rem; height: 1.1rem; }

/* ── Sommaire : discret, seulement sur grands écrans ──────── */
.fiche-nav { display: none; }
@media (min-width: 1200px) {
  .fiche-nav { display: block; opacity: 0; pointer-events: none; transition: opacity .25s; position: fixed; z-index: 20; top: 50%; transform: translateY(-50%); left: max(8px, calc((100vw - 1160px) / 2 - 56px)); }
  .fiche-nav.on { opacity: 1; pointer-events: auto; }
  .fiche-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .fiche-nav a { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; text-decoration: none; }
  .fiche-nav a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--g-main) 30%, #fff); transition: background .2s, transform .2s; }
  .fiche-nav a.active::before { background: var(--g-deep); transform: scale(1.5); }
  .fiche-nav a span { position: absolute; left: 100%; margin-left: 4px; white-space: nowrap; font-size: .8125rem; color: var(--g-deep); background: #fff; padding: .15rem .5rem; border-radius: .35rem; box-shadow: 0 1px 4px rgb(0 0 0 / .12); opacity: 0; pointer-events: none; transition: opacity .15s; }
  .fiche-nav a:hover span, .fiche-nav a:focus-visible span, .fiche-nav a.active span { opacity: 1; }
}
@media (min-width: 1460px) {
  /* assez de marge : les libellés restent visibles, à gauche des points */
  .fiche-nav { left: max(8px, calc((100vw - 1160px) / 2 - 170px)); }
  .fiche-nav a { width: auto; min-width: 150px; justify-content: flex-start; gap: .75rem; flex-direction: row-reverse; }
  .fiche-nav a span { position: static; opacity: 1; background: none; box-shadow: none; padding: 0; margin: 0; color: var(--ink-soft); flex: 1; text-align: right; }
  .fiche-nav a.active span { color: var(--g-deep); font-weight: 600; }
}
.fiche [id] { scroll-margin-top: 4.5rem; }
