/* ==========================================================
   Les Pins de l'Escalet — feuille de style commune
   Couleurs et polices principales : modifier ici (variables)
   ⚠️ Après modification, changer ?v=… dans les pages (cache navigateur)
   ========================================================== */

/* Police Poppins hébergée sur le site (aucun appel à Google) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

:root {
  --bleu: #1d67cd;        /* titres, liens, icônes */
  --bleu-fonce: #2b5672;
  --bleu-clair: #86aee6;  /* encadré Arrivées & Départs */
  --beige: #f5ebe6;       /* fonds de sections */
  --texte: #282626;
  --gris: #5d5d61;
  --fond: #ffffff;
  --pied: #212121;
  --largeur: 1100px;
  --titres: "Poppins", Helvetica, Arial, sans-serif;
  --corps: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; } /* évite une barre de défilement horizontale pendant les glissements */
body {
  margin: 0;
  font-family: var(--corps);
  font-weight: 300;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
.section--beige { background: var(--beige); }
.sans-haut { padding-top: 0; }
.centre { text-align: center; }
.titre-section { color: var(--bleu); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.titre-bleu { color: var(--bleu); font-size: 1.25rem; }
.espace-haut { margin-top: 1.6em; }
.sous-titre { color: var(--gris); margin-top: -.4em; }
.petit { font-size: .85rem; }

/* Lien « Aller au contenu » (clavier / lecteurs d'écran) */
.lien-evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 10px 16px; }
.lien-evitement:focus { left: 16px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.entete { transition: box-shadow .3s, background .3s; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .3s; }
.entete .logo img { height: 56px; width: auto; transition: height .3s; }
/* En-tête réduit après quelques pixels de défilement (classe posée par main.js) */
.entete--reduit { box-shadow: 0 2px 14px rgba(0,0,0,.12); background: rgba(255,255,255,.98); }
.entete--reduit .conteneur { height: 60px; }
.entete--reduit .logo img { height: 44px; }
.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--texte); font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a[aria-current="page"], .menu a.actif { color: var(--bleu); border-color: var(--bleu); }
/* Quand une rubrique de la page est affichée (ex. Contact), « Accueil » n'est plus surligné */
.menu:has(a.actif) a[aria-current="page"]:not(.actif) { color: var(--texte); border-color: transparent; }
.burger { display: none; background: none; border: 0; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; color: var(--texte); }

@media (max-width: 760px) {
  /* Bouton ☰ collé à droite (le bloc <nav>, vide à l'écran, ne doit pas le repousser au centre) ;
     la marge négative aligne le symbole sur le bord du contenu */
  .burger { display: grid; place-items: center; margin-left: auto; margin-right: -10px; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; box-shadow: 0 14px 20px rgba(0,0,0,.1);
    padding: 6px 0 14px;
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
  }
  .menu.ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s; }
  .menu li { border-bottom: 1px solid #f0e8e3; }
  .menu li:last-child { border-bottom: 0; }
  .menu a { display: block; padding: 16px 24px; border: 0; font-family: var(--titres); font-size: 1.05rem; }
  .menu a[aria-current="page"], .menu a.actif { border-left: 3px solid var(--bleu); padding-left: 21px; }
  .menu:has(a.actif) a[aria-current="page"]:not(.actif) { border-left: 0; padding-left: 24px; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; padding: 10px 26px; border: 1px solid currentColor; background: none;
  text-decoration: none; color: #fff; font: inherit; font-size: .95rem; cursor: pointer; transition: .2s;
}
.bouton:hover { background: #fff; color: var(--texte); border-color: #fff; }
.bouton--bleu { color: var(--bleu); }
.bouton--bleu:hover { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.bouton--sombre { color: #10213a; }
.bouton--sombre:hover { background: #10213a; color: #fff; border-color: #10213a; }

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, calc(100vh - 76px), 860px);
  display: flex; align-items: center;
  color: #fff;
}
.hero > .conteneur { position: relative; z-index: 1; }
.hero .fond-fixe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.2)); }
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 700px; }
.hero p { max-width: 560px; font-size: 1.05rem; }
.hero .accroche { font-family: var(--titres); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); margin: 1.4em 0; }
.hero .boutons { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 2em; }

/* ---------- Accueil : 3 cartes ---------- */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.carte {
  position: relative; min-height: 460px; display: flex; align-items: flex-start; padding: 40px 16px;
  border-radius: 4px; overflow: hidden;
}
.carte__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte__texte {
  position: relative;
  background: rgba(255,255,255,.82); backdrop-filter: blur(3px);
  border-radius: 14px; padding: 22px 20px; text-align: center; color: var(--bleu); font-size: .9rem;
}
.carte__texte h2 { font-size: 1.15rem; }
@media (max-width: 860px) { .cartes { grid-template-columns: 1fr; } .carte { min-height: 340px; } }

/* ---------- Accueil : les logements ---------- */
.intro-hebergement { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.intro-hebergement .note { color: var(--bleu); font-style: italic; }
.logements { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.logement { background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.07); overflow: hidden; }
.logement img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.logement__corps { padding: 26px 28px 32px; }
.logement h3 { color: var(--bleu); font-size: 1.4rem; margin-bottom: .2em; }
.logement__resume { color: var(--gris); margin: 0 0 14px; }
.logement ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.logement li::before { content: "✓ "; color: var(--bleu); }
@media (max-width: 760px) { .logements { grid-template-columns: 1fr; } }

/* ---------- Avis clients ---------- */
.avis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.avis blockquote { margin: 0; background: #fff; padding: 26px 22px; border-radius: 6px; font-style: italic; }
.avis blockquote p { margin: 0; }
.avis cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--bleu); }
@media (max-width: 1100px) { .avis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .avis { grid-template-columns: 1fr; } }

/* ---------- Cap Taillat ---------- */
.bandeau-photo { position: relative; height: clamp(320px, 60vh, 560px); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.deux-colonnes h2, .deux-colonnes h3 { color: var(--bleu); }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; gap: 30px; } }

/* Mosaïque photos */
.mosaique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mosaique img { aspect-ratio: 1; object-fit: cover; width: 100%; cursor: zoom-in; }

/* ---------- À proximité ---------- */
.distances { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.distances li { background: #fff; border-radius: 6px; padding: 26px 14px; }
.distances strong { display: block; font-family: var(--titres); font-weight: 600; color: var(--bleu); font-size: 1.4rem; }
@media (max-width: 760px) { .distances { grid-template-columns: 1fr 1fr; } }

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid #e4dcd7; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--titres); font-weight: 500; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 1.6rem; color: var(--bleu); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--gris); }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-infos h3 { color: var(--bleu); margin-top: 1.4em; }
.contact-infos p { margin: .3em 0; }
.formulaire { position: relative; }
.formulaire label { display: block; font-size: .9rem; margin-bottom: 14px; }
.formulaire input, .formulaire textarea, .formulaire select {
  width: 100%; padding: 11px 12px; margin-top: 4px; font: inherit;
  border: 1px solid #cfc6c1; background: #fff; border-radius: 3px;
}
.formulaire input, .formulaire select { height: 44px; }
.formulaire select { padding: 0 12px; }
.formulaire textarea { min-height: 130px; resize: vertical; }
.form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-ligne--3 { grid-template-columns: 1.2fr 1fr 1fr; }
@media (max-width: 560px) { .form-ligne, .form-ligne--3 { grid-template-columns: 1fr; } }
.piege { display: none; } /* champ piège anti-robots */
.formulaire button[type="submit"] { cursor: pointer; background: var(--bleu); color: #fff; border: 0; padding: 12px 34px; font: inherit; }
.formulaire button[type="submit"]:hover { background: var(--bleu-fonce); }
.formulaire button:disabled { opacity: .6; cursor: wait; }
.form-mention { font-size: .8rem; color: var(--gris); margin: 12px 0 0; }
.form-statut { margin-top: 16px; padding: 12px 16px; border-radius: 4px; }
.form-statut.ok { background: #e3f4e6; color: #1e5b2a; }
.form-statut.erreur { background: #fbe4e4; color: #8a1f1f; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

/* Carte Google Maps : chargée seulement après un clic */
.carte-maps {
  height: 380px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: #e8eef5 linear-gradient(135deg, #e8eef5 0%, #dfe9e0 100%);
}
.carte-maps iframe { width: 100%; height: 100%; border: 0; display: block; }
.carte-maps__invite { max-width: 460px; padding: 20px; }
.carte-maps__adresse { font-family: var(--titres); font-weight: 500; font-size: 1.1rem; }
.carte-maps__note { font-size: .82rem; color: var(--gris); margin-top: 14px; }

/* ---------- Pages logement ---------- */
.diaporama { position: relative; background: #fff; padding-top: 20px; }
.diaporama__cadre { position: relative; overflow: hidden; aspect-ratio: 3 / 2; max-height: 78vh; margin-inline: auto; background: #f3f0ee; }
.diaporama__cadre img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s;
}
.diaporama__cadre img.actif { opacity: 1; }
.diaporama button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.8); border: 0; width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; color: var(--texte);
}
.diaporama .prec { left: 14px; } .diaporama .suiv { right: 14px; }
.diaporama__cadre img { cursor: zoom-in; }
.diaporama__compteur { position: absolute; bottom: 12px; right: 16px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 10px; border-radius: 12px; font-size: .85rem; z-index: 2; }

.fil { font-size: .85rem; color: var(--gris); margin-bottom: 18px; }
.fil a { color: var(--gris); }
.description { max-width: 860px; margin: 0 auto; text-align: center; }
.description h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.atouts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 50px 0 0; text-align: center; }
.atouts svg { width: 46px; height: 46px; stroke: var(--bleu); fill: none; stroke-width: 1.5; margin: 0 auto 10px; display: block; }
.atouts span { font-weight: 600; }
@media (max-width: 600px) { .atouts { grid-template-columns: 1fr 1fr; } }

.harmonie h2 { color: var(--texte); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.harmonie p { color: var(--gris); font-size: 1.1rem; }
.harmonie img.zoom { cursor: zoom-in; }
.photos-sup { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photos-sup img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; cursor: zoom-in; }

.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tarif { background: var(--beige); text-align: center; padding: 40px 20px; }
.tarif h3 { font-weight: 500; font-size: 1.2rem; }
.tarif .periode { font-size: .85rem; color: var(--gris); }
.tarif .prix { font-size: 1.5rem; font-family: var(--titres); font-weight: 600; color: var(--bleu); margin: .6em 0 0; }
.tarif .min { font-size: .9rem; }
@media (max-width: 700px) { .tarifs { grid-template-columns: 1fr; } }

.encadre {
  max-width: 640px; margin: 60px auto 0; background: var(--bleu-clair); border-radius: 14px;
  padding: 36px 30px; text-align: center; color: #10213a;
}
.encadre h2 { font-weight: 400; }
.encadre p { margin: .4em 0; font-weight: 500; }
.encadre .espace { margin-top: 1em; }
.encadre .espace-grand { margin-top: 1.4em; }
.encadre a { color: #10213a; }

/* ---------- Pages texte (mentions légales, conditions) ---------- */
.page-texte { max-width: 820px; }
.page-texte h1 { color: var(--bleu); }
.page-texte h2 { color: var(--bleu); font-size: 1.25rem; margin-top: 2em; }
.tableau { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .95rem; }
.tableau th, .tableau td { border: 1px solid #e4dcd7; padding: 10px 12px; text-align: left; vertical-align: top; }
.tableau thead th { background: var(--beige); font-family: var(--titres); font-weight: 500; }

/* ---------- Page 404 ---------- */
.hero--404 { min-height: calc(100vh - 76px); }
.hero--404 .fond-fixe::after { background: linear-gradient(rgba(10,30,60,.55), rgba(10,30,60,.45)); }
.hero .code-404 { font-family: var(--titres); font-weight: 600; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; margin: 0 auto .1em; opacity: .9; max-width: none; }
.hero--404 h1 { margin-inline: auto; }
.hero .intro-404 { margin: 0 auto; }
.boutons--centre { justify-content: center; }

/* ---------- Pied de page ---------- */
.pied { background: var(--pied); color: #bbb; font-size: .85rem; padding: 36px 0; }
.pied .conteneur { display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; align-items: start; }
.pied p { margin: 0; }
.pied__nom { color: #fff; font-family: var(--titres); font-weight: 500; font-size: 1rem; margin-bottom: 4px !important; }
.pied a { color: #ddd; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied p a { text-decoration: underline; } /* lien dans une phrase : pas seulement une couleur */
.pied__liens { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.pied__copy { grid-column: 1 / -1; border-top: 1px solid #3a3a3a; padding-top: 14px; }
@media (max-width: 700px) { .pied .conteneur { grid-template-columns: 1fr; } .pied__liens { justify-content: flex-start; } }

/* ---------- Visionneuse photo (lightbox) : voir plus bas ---------- */
/* ==========================================================
   ANIMATIONS
   Ajouter data-anim="haut" | "droite" | "bas" | "fondu" sur un élément
   pour qu'il apparaisse en glissant quand on fait défiler la page.
   data-delai="200" (en ms) pour décaler l'apparition.
   Sans JavaScript, tout reste visible (scripting: enabled).
   ========================================================== */
@media (scripting: enabled) {
  [data-anim] {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(.25,.46,.45,.94), transform 1.2s cubic-bezier(.25,.46,.45,.94);
  }
  [data-anim="haut"]   { transform: translateY(-60px); }
  [data-anim="bas"]    { transform: translateY(60px); }
  [data-anim="droite"] { transform: translateX(60px); }
  [data-anim].visible  { opacity: 1; transform: none; }
}

/* Fond fixe "révélation" :
   la photo reste collée à l'écran pendant que la section défile par-dessus.
   Structure HTML : <div class="fond-fixe"><div class="fond-fixe__media"><img …></div></div>
   placée dans une section en position: relative. Fonctionne aussi sur mobile. */
.fond-fixe { position: absolute; inset: 0; overflow: hidden; overflow: clip; z-index: 0; } /* hidden = repli pour Safari < 16 (photo simplement non fixe) */
.fond-fixe__media { height: calc(100% + 200vh); margin-top: -100vh; height: calc(100% + 200lvh); margin-top: -100lvh; } /* vh = repli pour navigateurs anciens */
.fond-fixe__media img { position: sticky; top: 0; width: 100%; height: 100vh; height: 100lvh; object-fit: cover; }

/* Légers effets au survol */
.logement img, .mosaique img, .photos-sup img { transition: transform .5s ease; }
.logement:hover img, .mosaique img:hover, .photos-sup img:hover { transform: scale(1.04); }

/* Visiteurs qui ont désactivé les animations dans leur système */
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fond-fixe__media { height: 100%; margin-top: 0; }
  .fond-fixe__media img { position: static; height: 100%; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================
   CONFORT DE NAVIGATION
   ========================================================== */

/* Flèche « défiler » en bas du bandeau d'accueil */
.hero__defiler {
  position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%);
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); color: #fff;
  animation: rebond 2.2s ease-in-out infinite;
}
.hero__defiler svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }
.hero__defiler:hover { background: rgba(255,255,255,.15); }
@keyframes rebond { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (max-height: 620px) { .hero__defiler { display: none; } }
/* Sur mobile, le bandeau tient au-dessus de la barre « Appeler / Réserver » */
@media (max-width: 760px) { .hero:not(.hero--404) { min-height: calc(100vh - 76px - 58px); min-height: calc(100svh - 76px - 58px); } }

/* Bouton « retour en haut » (apparaît après défilement) */
.haut-de-page {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bleu); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility 0s .3s, bottom .3s;
}
.haut-de-page svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.haut-de-page.visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, bottom .3s; }
.haut-de-page:hover { background: var(--bleu-fonce); }

/* Barre « Appeler / Réserver » sur mobile */
.barre-mobile { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform .3s;
  }
  .barre-mobile.cachee { transform: translateY(100%); }
  .barre-mobile a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px;
    text-decoration: none; font-family: var(--titres); font-weight: 500; font-size: 1rem;
  }
  .barre-mobile svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .barre-mobile__appel { background: var(--bleu); color: #fff; }
  .barre-mobile__resa { color: var(--bleu); }
  .haut-de-page { bottom: calc(58px + 16px + env(safe-area-inset-bottom)); right: 14px; }
  .barre-mobile.cachee ~ .haut-de-page, body:has(.barre-mobile.cachee) .haut-de-page { bottom: 16px; }
}

/* Miniatures sous le diaporama */
.diaporama__miniatures { display: flex; gap: 8px; justify-content: center; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.diaporama__miniatures button {
  position: static; transform: none; flex: 0 0 auto; width: 96px; height: 64px; padding: 0;
  border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: none; opacity: .6; transition: opacity .2s, border-color .2s;
}
.diaporama__miniatures button:hover, .diaporama__miniatures button.actif { opacity: 1; border-color: var(--bleu); }
.diaporama__miniatures img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .diaporama__miniatures { justify-content: flex-start; } .diaporama__miniatures button { width: 72px; height: 48px; } }

/* Visionneuse plein écran (photos agrandies, avec navigation) */
.visionneuse {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,12,16,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.visionneuse.ouverte { opacity: 1; visibility: visible; transition: opacity .3s; }
.visionneuse img { max-height: 84vh; max-width: 92vw; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.visionneuse__legende { color: #ddd; font-size: .9rem; margin-top: 12px; text-align: center; min-height: 1.4em; }
.visionneuse button {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.9rem; line-height: 1; display: grid; place-items: center;
}
.visionneuse button:hover { background: rgba(255,255,255,.25); }
.visionneuse__fermer { top: 16px; right: 16px; }
.visionneuse__prec { left: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse.seule .visionneuse__prec, .visionneuse.seule .visionneuse__suiv { display: none; }
@media (max-width: 600px) { .visionneuse__prec, .visionneuse__suiv { top: auto; bottom: 18px; transform: none; } }
body.sans-defilement { overflow: hidden; }

/* Tableau des tarifs (page Conditions) : une carte par saison sur mobile */
@media (max-width: 640px) {
  .tableau thead { position: absolute; left: -9999px; }
  .tableau, .tableau tbody, .tableau tr, .tableau th, .tableau td { display: block; width: 100%; }
  .tableau tr { border: 1px solid #e4dcd7; border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
  .tableau th[scope="row"] { background: var(--beige); font-family: var(--titres); font-weight: 600; border: 0; padding: 10px 14px; }
  .tableau th[scope="row"]::after { content: " saison"; font-weight: 400; }
  .tableau td { border: 0; border-top: 1px solid #f0e8e3; display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; text-align: right; }
  .tableau td::before { content: attr(data-label); font-weight: 500; text-align: left; color: var(--gris); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__defiler { animation: none; }
}
