/* La Fuste : charte « refuge soigné ». Aucune ombre, profondeur par les couleurs et les filets. */

@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sapin: #20352f;
  --sapin-clair: #2b463e;
  --miel: #d6a55c;
  --neige: #ffffff;
  --lin: #ede7dd;
  --lichen: #56645d;
  --pierre: #a3ada7;
  --filet-clair: rgba(255, 255, 255, 0.22);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;

  --espace-section: clamp(48px, 7vw, 88px);
  --gouttiere: 16px;
  --largeur: 1200px;
  --pilule: 80px;
  --hauteur-entete: 72px;
}

@media (min-width: 768px) { :root { --gouttiere: 32px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sapin);
  background: var(--neige);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--hauteur-entete) + 24px); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 24px; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.2vw, 2.75rem); line-height: 1.15; }
h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

.evitement { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--sapin); color: var(--neige); padding: 12px 20px; border-radius: var(--pilule); }
.evitement:focus { top: 16px; }

/* ---------- Mise en page ---------- */
.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.etroit { max-width: 760px; margin-inline: auto; }
.section { padding-block: var(--espace-section); }
.section--lin { background: var(--lin); }
.section--sapin { background: var(--sapin); color: var(--neige); }
.centre { text-align: center; }
.centre .chapo, .centre .boutons { margin-inline: auto; justify-content: center; }

.surtitre {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.167em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.chapo { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.6; max-width: 36em; }
.discret { color: var(--lichen); font-size: 0.9375rem; }
.section--sapin .discret { color: rgba(255, 255, 255, 0.78); }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 28px;
  border: 1.5px solid var(--sapin-clair); border-radius: var(--pilule);
  background: transparent; color: var(--sapin);
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.167em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--sapin); color: var(--neige); }
.btn--clair { border-color: var(--neige); color: var(--neige); }
.btn--clair:hover { background: var(--neige); color: var(--sapin); }
.lien-fleche { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.167em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--miel); padding-bottom: 4px; }
.lien-fleche:hover { border-bottom-color: currentColor; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: var(--neige); border-bottom: 1px solid rgba(32, 53, 47, 0.12); }
.entete__barre { display: flex; align-items: center; gap: 24px; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); height: var(--hauteur-entete); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marque__picto { width: 36px; height: 36px; color: var(--miel); flex: none; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque__nom { font-family: var(--serif); font-size: 1.5rem; }
.marque__sous { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lichen); margin-top: 4px; }

.navigation__liste { list-style: none; display: flex; gap: 32px; }
.navigation__liste a { display: block; padding: 8px 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid transparent; }
.navigation__liste a:hover { border-bottom-color: var(--sapin); }
.navigation__liste a[aria-current="page"] { border-bottom-color: var(--miel); }
.navigation__reserver { display: none; }

.menu-bouton { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--sapin); font: 700 0.75rem/1 var(--sans); letter-spacing: 0.167em; text-transform: uppercase; cursor: pointer; }
.menu-bouton__icone, .menu-bouton__icone::before, .menu-bouton__icone::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.2s ease; }
.menu-bouton__icone::before, .menu-bouton__icone::after { content: ""; position: absolute; left: 0; }
.menu-bouton__icone::before { top: -7px; }
.menu-bouton__icone::after { top: 7px; }
.menu-ouvert .menu-bouton__icone { background: transparent; }
.menu-ouvert .menu-bouton__icone::before { transform: translateY(7px) rotate(45deg); }
.menu-ouvert .menu-bouton__icone::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 999px) {
  .menu-bouton { display: inline-flex; }
  .navigation { display: none; position: fixed; inset: var(--hauteur-entete) 0 0 0; background: var(--neige); padding: 32px var(--gouttiere); overflow-y: auto; }
  .menu-ouvert .navigation { display: block; }
  .menu-ouvert { overflow: hidden; }
  .navigation__liste { flex-direction: column; gap: 0; }
  .navigation__liste a { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 16px 0; border-bottom: 1px solid rgba(32, 53, 47, 0.12); }
  .navigation__liste a[aria-current="page"] { color: var(--sapin); border-bottom-color: var(--miel); }
  .navigation__reserver { display: inline-flex; margin-top: 32px; }
}
@media (max-width: 599px) { .entete__reserver { display: none; } }

/* ---------- Ouverture de l'accueil ---------- */
.ouverture { position: relative; background: var(--sapin); color: var(--neige); padding: clamp(56px, 9vw, 120px) var(--gouttiere) clamp(72px, 10vw, 140px); overflow: hidden; }
.ouverture__grille { display: grid; grid-template-columns: 1fr minmax(0, 640px) 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); max-width: var(--largeur); margin-inline: auto; }
.ouverture__texte { text-align: center; }
.ouverture__texte .chapo { margin-inline: auto; color: rgba(255, 255, 255, 0.88); }
.ouverture__texte .boutons { justify-content: center; }
.medaillon { position: relative; width: clamp(150px, 19vw, 270px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.medaillon img { width: 100%; height: 100%; object-fit: cover; }
.medaillon::after { content: ""; position: absolute; inset: 0; background: var(--sapin); opacity: 0.16; }
.medaillon--gauche { justify-self: end; transform: translateY(-36px); }
.medaillon--droite { justify-self: start; transform: translateY(36px); }
.medaille { position: absolute; top: 32px; left: 32px; width: 104px; height: 104px; border: 1px solid var(--miel); border-radius: var(--pilule); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; margin: 0; }
.medaille strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; letter-spacing: 0; text-transform: none; }
.defiler { position: absolute; left: 32px; bottom: 32px; display: flex; align-items: center; gap: 12px; color: var(--neige); text-decoration: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.167em; text-transform: uppercase; }
.defiler__losange { width: 32px; height: 32px; border: 1px solid currentColor; transform: rotate(45deg); display: grid; place-items: center; }
.defiler__losange svg { width: 12px; height: 12px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .ouverture__grille { grid-template-columns: 1fr 1fr; }
  .ouverture__texte { grid-column: 1 / -1; grid-row: 2; }
  .medaillon { width: clamp(120px, 34vw, 200px); }
  .medaillon--gauche { transform: none; }
  .medaillon--droite { transform: translateY(24px); }
  .medaille, .defiler { display: none; }
}

/* ---------- Entrée des pages intérieures et blocs en deux colonnes ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; background: var(--sapin); color: var(--neige); }
.duo--clair { background: var(--neige); color: var(--sapin); }
.duo--lin { background: var(--lin); color: var(--sapin); }
.duo__texte { align-self: center; padding: var(--espace-section) clamp(24px, 6vw, 96px); max-width: 640px; justify-self: end; width: 100%; }
.duo__photo { min-height: 360px; }
.duo__photo img { width: 100%; height: 100%; object-fit: cover; }
.duo--inverse .duo__photo { order: -1; }
.duo--inverse .duo__texte { justify-self: start; }
.duo .chapo { color: inherit; opacity: 0.92; }
@media (max-width: 899px) {
  .duo { grid-template-columns: 1fr; }
  .duo__texte { padding: 56px var(--gouttiere); max-width: none; }
  .duo__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .duo--inverse .duo__photo { order: 0; }
}

/* ---------- Bloc éditorial centré ---------- */
.editorial { max-width: 760px; margin-inline: auto; text-align: center; }
.editorial__photo { margin: 0 0 48px; }
.editorial__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.editorial .chapo { margin-inline: auto; }

/* ---------- Texte et photo côte à côte ---------- */
.texte-photo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.texte-photo + .texte-photo { margin-top: var(--espace-section); }
.texte-photo__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.texte-photo--portrait .texte-photo__photo img { aspect-ratio: 4 / 5; }
.texte-photo--inverse .texte-photo__photo { order: -1; }
@media (max-width: 799px) {
  .texte-photo { grid-template-columns: 1fr; }
  .texte-photo--inverse .texte-photo__photo { order: 0; }
}

/* ---------- Chiffres clés ---------- */
.chiffres { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--pierre); margin-top: 40px; }
.chiffres li { padding: 24px 16px; text-align: center; }
.chiffres li + li { border-left: 1px solid var(--pierre); }
.chiffres__valeur { display: block; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.1; }
.chiffres__libelle { display: block; margin-top: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lichen); }
@media (max-width: 599px) {
  .chiffres { grid-template-columns: 1fr; }
  .chiffres li + li { border-left: 0; border-top: 1px solid var(--pierre); }
}

/* ---------- Saisons ---------- */
.saisons { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: 56px; }
.saison__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 32px; }
@media (max-width: 699px) { .saisons { grid-template-columns: 1fr; } }

/* ---------- Listes ---------- */
.liste-losange { list-style: none; display: grid; gap: 12px; }
.liste-losange li { position: relative; padding-left: 28px; }
.liste-losange li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; background: var(--miel); transform: rotate(45deg); }
.colonnes-listes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 5vw, 64px); margin-top: 48px; }
.colonnes-listes h3 { padding-bottom: 16px; border-bottom: 1px solid var(--pierre); }
.section--sapin .colonnes-listes h3 { border-bottom-color: var(--filet-clair); }
@media (max-width: 899px) { .colonnes-listes { grid-template-columns: 1fr; } }

.etapes { list-style: none; counter-reset: etape; display: grid; gap: 20px; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: baseline; }
.etapes li::before { content: counter(etape); font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--sapin); }

/* ---------- Fiche technique ---------- */
.fiche { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); margin: 48px 0 0; }
.fiche div { padding: 20px 0; border-top: 1px solid var(--filet-clair); }
.fiche dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.8; margin-bottom: 6px; }
.fiche dd { margin: 0; font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; }
@media (max-width: 699px) { .fiche { grid-template-columns: 1fr; } }

/* ---------- Tarifs ---------- */
.tarifs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--pierre); margin-top: 48px; }
.tarif { padding: 40px 24px; text-align: center; }
.tarif + .tarif { border-left: 1px solid var(--pierre); }
.tarif__libelle { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lichen); }
.tarif__prix { display: block; font-family: var(--serif); font-size: clamp(2.75rem, 5vw, 3.5rem); line-height: 1.1; margin: 12px 0 4px; }
.tarif__unite { color: var(--lichen); }
@media (max-width: 799px) {
  .tarifs { grid-template-columns: 1fr; }
  .tarif + .tarif { border-left: 0; border-top: 1px solid var(--pierre); }
}

/* ---------- Encarts, citation, contact ---------- */
.encart { background: var(--neige); border-left: 2px solid var(--miel); padding: 24px 28px; }
.encart h3 { font-size: 1.375rem; margin-bottom: 12px; }
.grille-acces { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 48px; }
.grille-acces > div { display: grid; gap: 32px; align-content: start; }
@media (max-width: 899px) { .grille-acces { grid-template-columns: 1fr; } }

.citation { margin: 0 auto; max-width: 22em; text-align: center; font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.25; }
.citation::before { content: ""; display: block; width: 48px; height: 1.5px; background: var(--miel); margin: 0 auto 32px; }

.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.tel { white-space: nowrap; }
.coordonnees { font-style: normal; }

/* ---------- Galerie et photos de chantier ---------- */
.galerie { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 48px; }
@media (min-width: 900px) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.galerie__lien { display: block; height: 100%; }
.galerie__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.2s ease; }
.galerie__lien:hover .galerie__img { opacity: 0.88; }

.chantier { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.chantier figure { margin: 0; }
.chantier img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.chantier figcaption { font-size: 0.875rem; color: var(--lichen); margin-top: 8px; }
@media (max-width: 799px) { .chantier { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Visionneuse ---------- */
.visionneuse { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; color: var(--neige); }
.visionneuse::backdrop { background: rgba(18, 30, 27, 0.94); }
.visionneuse__figure { margin: 0; }
.visionneuse__img { max-width: 94vw; max-height: 80vh; width: auto; margin-inline: auto; }
.visionneuse__legende { text-align: center; margin-top: 12px; font-size: 0.9375rem; }
.visionneuse__fermer { display: flex; margin: 16px auto 0; }

/* ---------- Pied de page ---------- */
.pied { background: var(--sapin); color: var(--neige); padding-top: 80px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.pied__picto { width: 44px; height: 44px; color: var(--miel); margin-bottom: 16px; }
.pied__nom { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin-bottom: 8px; }
.pied__accroche { color: rgba(255, 255, 255, 0.78); max-width: 22em; }
.pied__titre { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.167em; text-transform: uppercase; margin-bottom: 16px; color: rgba(255, 255, 255, 0.78); }
.pied__liste { list-style: none; display: grid; gap: 8px; }
.pied__adresse { font-style: normal; margin-bottom: 16px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-block: 24px; border-top: 1px solid var(--filet-clair); font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 799px) { .pied__grille { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Mentions légales ---------- */
.mentions h2 { font-size: 1.75rem; margin-top: 48px; }
.mentions h2:first-child { margin-top: 0; }
.faq__item { margin-top: 40px; }
.faq__question { font-size: 1.5rem; margin-bottom: 8px; }
.faq .note-bas { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* ---------- Aperçu : infos à confirmer ---------- */
.apercu [data-a-confirmer] { outline: 2px dashed #c0392b; outline-offset: 2px; background: rgba(255, 214, 0, 0.28); }
.apercu::after { content: "Aperçu : les éléments en pointillés rouges sont à confirmer"; position: fixed; left: 12px; bottom: 12px; z-index: 90; background: #c0392b; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 8px 14px; border-radius: var(--pilule); }
.boutons--centre { justify-content: center; }
.titre-relance { margin-top: 64px; }
.note-bas { margin-top: 48px; }

/* ---------- Cartes (blocs regroupés) ---------- */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 40px; }
.carte__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
.carte h3 { margin-bottom: 12px; }
.carte p { margin-bottom: 16px; }
@media (max-width: 899px) { .cartes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .cartes { grid-template-columns: 1fr; } }

.recit { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.recit h2, .recit h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; padding-bottom: 12px; border-bottom: 1px solid var(--pierre); }
@media (max-width: 899px) { .recit { grid-template-columns: 1fr; } }

.encart--large { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; align-items: baseline; }
.encart--large h3 { margin: 0; }
.encart--large p { margin: 0; }
@media (max-width: 699px) { .encart--large { grid-template-columns: 1fr; } }

/* ---------- Tarifs par saison ---------- */
.saisons-tarifs { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--pierre); margin-top: 40px; }
.saison-tarif { padding: 32px 24px; text-align: center; }
.saison-tarif + .saison-tarif { border-left: 1px solid var(--pierre); }
.saison-tarif h3 { margin-bottom: 4px; }
.saison-tarif__periode { color: var(--lichen); margin-bottom: 24px; }
.saison-tarif dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.saison-tarif dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lichen); }
.saison-tarif dd { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.5vw, 3.25rem); line-height: 1.1; }
@media (max-width: 699px) {
  .saisons-tarifs { grid-template-columns: 1fr; }
  .saison-tarif + .saison-tarif { border-left: 0; border-top: 1px solid var(--pierre); }
}

.liens-utiles { columns: 2; column-gap: 48px; margin-top: 16px; }
.liens-utiles li { break-inside: avoid; margin-bottom: 12px; }
@media (max-width: 699px) { .liens-utiles { columns: 1; } }

/* ---------- Photos par deux ---------- */
.paire { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.paire--large { grid-template-columns: 2fr 1fr; }
.paire figure { margin: 0; }
.paire img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.paire--large img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.paire figcaption { font-size: 0.875rem; color: var(--lichen); margin-top: 8px; }
.galerie__lien { cursor: zoom-in; }
@media (max-width: 699px) {
  .paire, .paire--large { grid-template-columns: 1fr; }
  .paire--large img { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Ouverture animée au défilement (neige l'hiver, lac l'été) ---------- */
.ouverture--video { padding: 0; overflow: visible; background: var(--sapin); }
.ouverture__scene { position: relative; display: flex; align-items: center; justify-content: center; min-height: min(88svh, 860px); padding: 96px var(--gouttiere); overflow: hidden; background: var(--sapin) url("../media/ouverture-hiver.jpg") center / cover no-repeat; }
html[data-saison="ete"] .ouverture__scene { background-image: url("../media/ouverture-ete.jpg"); }
/* Fond choisi dans l'en-tête (WebP, saison et taille d'écran) ; les JPG restent pour les navigateurs sans JavaScript. */
html[data-fond-ouverture] .ouverture__scene { background-image: var(--fond-ouverture); }
.ouverture__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ouverture__voile { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(18, 32, 28, 0.72) 0%, rgba(18, 32, 28, 0.55) 60%, rgba(18, 32, 28, 0.45) 100%); }
.ouverture--video .ouverture__texte { position: relative; z-index: 1; max-width: 760px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.ouverture--video .medaille, .ouverture--video .defiler { z-index: 1; }
.ouverture--video .medaille { background: rgba(18, 32, 28, 0.55); }
.ouverture__prix { margin-top: 24px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
/* Version animée : la scène reste fixe pendant que la page défile, la vidéo avance avec le défilement. */
.ouverture--animee { height: 220svh; }
.ouverture--animee .ouverture__scene { position: sticky; top: var(--hauteur-entete); height: calc(100svh - var(--hauteur-entete)); min-height: 0; }
.ouverture--animee .ouverture__texte, .ouverture--animee .medaille, .ouverture--animee .defiler { opacity: calc(1 - clamp(0, (var(--p, 0) - 0.55) / 0.35, 1)); }
.ouverture--animee .ouverture__voile { opacity: calc(1 - 0.6 * clamp(0, (var(--p, 0) - 0.55) / 0.35, 1)); }
@media (max-width: 899px) {
  .ouverture__scene { min-height: 78svh; padding-block: 72px; }
  .ouverture--animee { height: 190svh; }
}

.panorama { margin: 40px 0 0; }
.panorama img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 78%; }
.panorama figcaption { font-size: 0.875rem; color: var(--lichen); margin-top: 8px; }
@media (max-width: 599px) { .panorama img { aspect-ratio: 4 / 3; } }

.liens-ligne { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--pierre); }
.liens-ligne .discret { margin-top: 16px; }

/* ---------- Barre d'appel sur mobile (réservation par téléphone uniquement) ---------- */
.barre-appel { display: none; }
@media (max-width: 899px) {
  .barre-appel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--sapin); border-top: 1px solid var(--filet-clair); }
  .barre-appel__lien { display: flex; align-items: center; justify-content: center; min-height: 48px; color: var(--neige); text-decoration: none; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: var(--pilule); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .apercu::after { bottom: 80px; }
}

/* ---------- Photo de la Fuste selon la saison ---------- */
.photo-saison { margin: 40px 0; }
.photo-saison figure { margin: 0; }
.photo-saison img { width: 100%; height: auto; }
.photo-saison__ete { display: none; }
html[data-saison="ete"] .photo-saison__ete { display: block; }
html[data-saison="ete"] .photo-saison__hiver { display: none; }

/* ---------- Photo des chevaux en format réduit, ornée de chaque côté ---------- */
.panorama--encadre { display: grid; grid-template-columns: 1fr minmax(0, 640px) 1fr; align-items: center; column-gap: 24px; }
.panorama--encadre .panorama__photo img { aspect-ratio: 3 / 2; object-position: 50% 82%; }
.panorama--encadre figcaption { grid-column: 2; text-align: center; }
.panorama__ornement svg { width: 100%; max-width: 220px; height: auto; display: block; }
.panorama__ornement--gauche svg { margin-left: auto; }
.panorama__ornement--droite svg { transform: scaleX(-1); }
.ornement__trait { stroke: var(--pierre); stroke-width: 1; }
.ornement__losange { stroke: var(--miel); stroke-width: 1.5; fill: var(--miel); fill-opacity: 0.25; }
.ornement__sapin { stroke: var(--miel); stroke-width: 1.6; }
.ornement__sapin--petit { stroke-width: 1.3; opacity: 0.75; }
@media (max-width: 699px) {
  .panorama--encadre { grid-template-columns: 1fr; }
  .panorama__ornement { display: none; }
  .panorama--encadre figcaption { grid-column: 1; }
  .panorama--encadre .panorama__photo img { aspect-ratio: 4 / 3; }
}
