/* Domaine de la Fougeraie, gîtes à Aurèle-la-Ville (modèle imaginaire VIGNEDEV) : « La fougeraie ». Une crosse de fougère, la maison de maître, une feuille par gîte.
   DM Serif Display pour la voix et Libre Franklin pour lire. */
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("polices/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-style: italic; font-display: swap; src: url("polices/dm-serif-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-style: normal; font-display: swap; src: url("polices/libre-franklin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-style: normal; font-display: swap; src: url("polices/libre-franklin-latin-600-normal.woff2") format("woff2"); }

:root {
  --nuit: #0f1a10;
  --nuit-barre: rgba(15, 26, 16, .86);
  --contour: rgb(8 14 8);
  --halo: 0 0 2px rgb(8 14 8 / .9), 0 0 6px rgb(8 14 8 / .65), 0 0 12px rgb(8 14 8 / .4);
  --papier: #f3f0e4;
  --papier-doux: #c6c9b4;
  --mousse: #2f6b3a;
  --tendre: #b9dc84;
  --marge: clamp(16px, 4.4vw, 64px);
  --voix: "DM Serif Display", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--nuit); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--papier); font: 400 1.125rem/1.55 "Libre Franklin", "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--tendre); outline-offset: 3px; }

/* L'en-tête se pose sur la première image, avec ou sans film : le premier écran tient dans l'écran et laisse en bas la place du numéro (décision de Bruno du 17/11/2026). */
.haut { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.entete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem var(--marge) 0; }
.nom { font-family: var(--voix); font-size: 1.5rem; }
.et { font-style: italic; }

/* --- La salle : le film est derrière le texte, l'ascenseur reste libre --- */
.salle { position: relative; }
.fond { display: none; }
.film .fond { display: block; position: absolute; inset: 0; z-index: 0; }
.film #film { display: block; position: sticky; top: 0; width: 100%; height: 100vh; height: 100lvh; opacity: 0; transition: opacity .9s linear; background: var(--nuit); touch-action: pan-y; }
.film #film.pret { opacity: 1; }
main { position: relative; z-index: 1; }

.plan { position: relative; }
.affiche { display: block; position: absolute; inset: 0; overflow: hidden; }
.affiche img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film .affiche { display: none; }

h1, h2 { font-family: var(--voix); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, min(4.6vw + .4rem, 9vh), 4.8rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 2.6vw + .8rem, 3.3rem); line-height: 1.02; }

/* Plan 1 : le titre attend en bas à gauche ; le logo vit à droite (en haut sur téléphone). */
.plan-crosse { padding: 0 var(--marge); }
.film .plan-crosse { padding-bottom: 140vh; padding-bottom: 140svh; }
.premier { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 7rem 0 clamp(78px, 11vh, 120px); }
.ouverture { position: relative; z-index: 1; width: min(36rem, 100%); }
.surtitre { font-family: var(--voix); font-style: italic; font-size: 1.375rem; color: var(--tendre); margin-bottom: .5rem; }
.chapeau { margin-top: 1rem; max-width: 33rem; font-size: 1.1875rem; text-wrap: pretty; }
.appels { margin-top: 1.5rem; }
.appel { display: inline-flex; align-items: center; min-height: 56px; padding: .7rem 1.35rem; border-radius: 3px; color: #fff; background: var(--mousse); text-decoration: none; font-weight: 700; font-size: 1.1875rem; line-height: 1.2; font-variant-numeric: lining-nums; }
.appel:hover { background: #255a2f; }

/* Plans 2 et 3 : le calendrier à droite, le texte à gauche ; sur téléphone, le calendrier en haut. */
.plan-ciel, .plan-arbres { min-height: 100vh; min-height: 100svh; }
.film .plan-ciel { min-height: 230vh; min-height: 230svh; }
.film .plan-arbres { min-height: 330vh; min-height: 330svh; }
.scene { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 6rem var(--marge) 6.5rem; }
.film .scene { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; touch-action: pan-y; }
.texte { position: relative; z-index: 2; width: min(31rem, 100%); }
.film .texte { opacity: var(--o, 0); }
.texte > p { margin-top: .8rem; font-size: 1.125rem; text-wrap: pretty; }
.texte h2 { margin-top: .3rem; }
.signe { font-family: var(--voix); font-style: italic; font-size: 1.3125rem !important; color: var(--tendre); }
.feuilles[hidden] { display: none; }
.site-nom { margin-top: .7rem; font-size: .9375rem; font-weight: 600; color: var(--papier-doux); }
.rang { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.rang button { min-height: 44px; padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid rgba(185, 220, 132, .55); background: rgba(15, 26, 16, .55); color: var(--papier); font-weight: 600; font-size: 1rem; cursor: pointer; text-shadow: none; }
.rang button:hover { border-color: var(--tendre); }
.rang button[aria-pressed="true"] { background: var(--tendre); border-color: var(--tendre); color: #13210f; }
.fiche { margin-top: 1.2rem; }
.fiche h2 { font-size: clamp(1.9rem, 2vw + .8rem, 2.8rem); }
.fiche p { margin-top: .4rem; font-size: 1.0625rem; }
.fiche .mesures { font-weight: 600; color: var(--tendre); }
.film .fiche { display: none; }
.film .fiche.ici { display: block; }
.source { font-size: .9375rem !important; color: var(--papier-doux); }

/* Plan 4 : la grille de ses prix, puis le séjour qui se calcule ; plan 5 : le soir. */
.plan-eau, .plan-soir { min-height: 100vh; min-height: 100svh; }
.film .plan-eau { min-height: 320vh; min-height: 320svh; }
.film .plan-soir { min-height: 190vh; min-height: 190svh; }
.film #scene-eau { display: grid; align-items: end; }
.film #scene-eau .texte { grid-area: 1 / 1; }
#scene-eau .texte-calcul { margin-top: 3rem; }
.film #scene-eau .texte-calcul { margin-top: 0; }
.grille { margin-top: 1rem; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; font-size: 1.0625rem; }
.grille th, .grille td { padding: .3rem .55rem; text-align: right; border-bottom: 1px solid rgba(243, 240, 228, .35); }
.grille td, .grille thead th { white-space: nowrap; }
.film .texte-calcul { width: min(42rem, 100%); }
.grille thead th { font-weight: 600; font-size: .9375rem; color: var(--tendre); }
.grille tbody th { text-align: left; font-weight: 600; max-width: 13rem; padding-left: 0; }
.saisons { font-size: 1rem !important; }
.lisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calcul[hidden] { display: none; }
.choix-nom { margin-top: .6rem; font-size: 1rem; font-weight: 600; color: var(--papier-doux); }
.resultat { font-weight: 600; font-size: 1.1875rem !important; color: var(--papier); font-variant-numeric: lining-nums; }

/* Le pied de page : le numéro, l'adresse, et d'où vient cette page. */
.pied { position: relative; z-index: 1; padding: 4.5rem var(--marge) 7rem; background: var(--nuit); }
.pied > p { margin-top: .8rem; max-width: 40rem; }
.numero { font-family: var(--voix); font-weight: 700; font-size: clamp(2.2rem, 2.4vw + 1.2rem, 3.2rem); font-variant-numeric: lining-nums; }
.numero a { text-decoration: none; }
.adresse { color: var(--papier-doux); }

/* Le numéro reste à l'écran du début à la fin. */
.telephone { position: fixed; left: var(--marge); bottom: 12px; z-index: 6; margin: 0; padding: .35rem .85rem .45rem; border-radius: 6px; background: var(--nuit-barre); line-height: 1.15; }
.telephone span { display: block; font-size: .8125rem; color: var(--papier-doux); }
.telephone a { font-family: var(--voix); font-weight: 700; font-size: 1.5rem; text-decoration: none; font-variant-numeric: lining-nums; white-space: nowrap; }
/* la carte s'efface quand un lien ou un bouton passe dessous (commun/carte.js, 16/11/2026) */
.telephone { transition: opacity .2s, visibility .2s; }
.telephone.efface:not(:focus-within) { opacity: 0; visibility: hidden; pointer-events: none; }

/* La régie : la pause. */
.regie { position: fixed; right: var(--marge); bottom: 12px; z-index: 6; display: flex; gap: .5rem; }
.regie[hidden] { display: none; }
.regie button { min-height: 44px; font-size: 1rem; line-height: 1; padding: .55rem .9rem; border-radius: 6px; color: var(--papier); background: var(--nuit-barre); border: 1px solid rgba(244, 240, 232, .45); cursor: pointer; }
.regie button:hover { border-color: currentColor; }
.regie button[aria-pressed="true"] { background: var(--papier); color: var(--nuit); }

/* Aucun voile sur l'image : le texte se pose sur le film, un contour sombre peint sous la lettre et un halo léger. */
.entete, .ouverture, .texte { text-shadow: var(--halo); }
.grille { text-shadow: var(--halo); }
@supports (paint-order: stroke fill) {
  .entete, .ouverture, .texte h2, .texte .signe { -webkit-text-stroke: 2.5px var(--contour); paint-order: stroke fill; }
  .rang button { -webkit-text-stroke: 0; }
  .ouverture .chapeau, .ouverture .surtitre, .texte > p:not(.signe), .grille th, .grille td, .choix-nom { -webkit-text-stroke: 2.5px var(--contour); paint-order: stroke fill; }
  .texte > p.appels { -webkit-text-stroke: 0; }
  .appel { -webkit-text-stroke: 0; }
}
.appel { text-shadow: none; }

/* Sans film : les images fixes portent le texte, plan après plan. */
.capture main > * > *:not(.affiche), .capture .haut, .capture .regie, .capture .telephone { visibility: hidden !important; }

@media (max-width: 700px) {
  .premier { padding-bottom: 6.2rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .chapeau { font-size: 1.0625rem; margin-top: .7rem; }
  .surtitre { font-size: 1.0625rem; margin-bottom: .4rem; }
  .appels { margin-top: 1.1rem; }
  .appel { width: 100%; justify-content: center; }
  .telephone { left: 10px; bottom: 10px; padding: .3rem .65rem .4rem; }
  .telephone a { font-size: 1.3rem; }
  .regie { right: 10px; bottom: 10px; }
  .regie button { min-height: 40px; font-size: .9375rem; padding: .45rem .7rem; }
}
/* Écran en hauteur : le calendrier occupe le haut, le texte le bas. */
@media (max-aspect-ratio: 19/20) {
  .film .scene { padding: 0 var(--marge) 74px; }
  .film .texte { width: 100%; }
  .film .texte h2 { font-size: clamp(1.7rem, 7.4vw, 2.3rem); }
  .film .texte > p { font-size: 1rem; margin-top: .5rem; }
  .film .texte .source { display: none; }
  .film .fiche .atout { display: none; }
  .film .fiche h2 { font-size: 1.6rem; }
  .film .fiche { margin-top: .6rem; }
  .film .site-nom { margin-top: .4rem; font-size: .875rem; }
  .film .rang { gap: .3rem; }
  .film .rang button { min-height: 40px; padding: .3rem .65rem; font-size: .9375rem; }
  .film .grille { font-size: 1rem; margin-top: .6rem; }
  .film .grille thead th { white-space: normal; }
  .film .grille th, .film .grille td { padding: .2rem .3rem; }
  .film .grille tbody th { max-width: 7.5rem; font-size: .8125rem; line-height: 1.25; }
  .film .grille thead th { font-size: .8125rem; }
  .film .saisons { font-size: 1rem !important; line-height: 1.4; }
  .film .choix-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .film .calcul .rang { margin-top: .45rem; }
  .film .calcul .rang button { min-height: 36px; padding: .2rem .55rem; font-size: .875rem; }
  .film .texte-calcul > p { font-size: 1rem; }
  .film .resultat { font-size: 1rem !important; }
  .film .texte-calcul h2 { display: none; }
}
/* quand « Pause » et « Écouter le film » ne tiennent plus à côté du numéro (petit téléphone) : l'un sur l'autre */
.regie.serree { flex-direction: column; align-items: flex-end; gap: .4rem; }
@media (max-width: 420px) { .regie { gap: .4rem; } .regie button { padding: .45rem .6rem; } .telephone { padding-left: .5rem; padding-right: .5rem; } }

/* Les surfaces du navigateur aux couleurs du film, et un bouton qui s'enfonce un peu quand on clique (règles de design du 09/11/2026). */
:root { caret-color: var(--tendre); scrollbar-color: var(--mousse) var(--nuit); }
::selection { background: var(--tendre); color: #13210f; }
.appel, .rang button, .regie button { transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
:is(.appel, .rang button, .regie button):active { transform: scale(.97); }
