/* Villa Aremiti : direction A, « lagon plein écran ».
   Grandes photos, typographie fine, beaucoup d'espace. Palette lagon, sable, bois sombre. */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --lagon: #0f5a6b;
  --lagon-profond: #0a3640;
  --sable: #efe7da;
  --sable-fonce: #d9ccb6;
  --ecume: #fbf8f3;
  --bois: #2a1e16;
  --bois-moyen: #5b4332;
  --f-titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-texte: "Jost", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1200px;
  --gouttiere: max(20px, 5vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ecume);
  color: var(--bois);
  font-family: var(--f-texte);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lagon); outline-offset: 3px; }

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere);
}

.surtitre {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lagon);
  margin: 0 0 18px;
}

h1, h2, h3 { font-family: var(--f-titre); font-weight: 300; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(36px, 5vw, 58px); }
h2 em, h1 em { font-style: italic; }
h3 { font-size: 26px; font-weight: 400; }

.bouton {
  display: inline-block;
  font-family: var(--f-texte);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border: 1px solid currentColor;
  transition: background-color .3s, color .3s, border-color .3s;
}
.bouton-plein { background: var(--lagon); border-color: var(--lagon); color: var(--ecume); }
.bouton-plein:hover { background: var(--lagon-profond); border-color: var(--lagon-profond); }

/* ---------- En-tête ---------- */
.entete {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  color: var(--ecume);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.logo {
  font-family: var(--f-titre);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .28em;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
}
.menu { display: flex; align-items: center; gap: 30px; }
.menu ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a, .langue a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.menu ul a { padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .3s; }
.menu ul a:hover { border-bottom-color: currentColor; }
.langue { display: flex; gap: 10px; font-size: 14px; letter-spacing: .14em; }
.langue span[aria-current] { font-weight: 500; }
.langue a { opacity: .75; }
.langue a:hover { opacity: 1; }
.bouton-menu {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

/* ---------- Ouverture ---------- */
.ouverture {
  position: relative;
  /* La photo d'origine fait 1448 x 1086 px : on accepte de l'agrandir de 20 % au plus (1740 px),
     au-delà elle paraîtrait pixelisée. */
  max-width: 1740px;
  margin-left: auto;
  margin-right: auto;
  min-height: min(75vw, 100vh, 1300px);
  padding-top: 130px; /* le texte ne passe jamais sous le menu, même sur une fenêtre basse */
  display: flex;
  align-items: flex-end;
  color: var(--ecume);
  background: var(--lagon-profond);
  overflow: hidden;
}
.ouverture picture, .ouverture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.ouverture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 30, 36, .62) 0%, rgba(8, 30, 36, 0) 30%, rgba(8, 30, 36, 0) 48%, rgba(8, 30, 36, .72) 100%);
}
.ouverture .conteneur {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 7vh, 72px);
}
.ouverture .lieu { color: var(--ecume); margin-bottom: 14px; }
.ouverture h1 {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .95;
  letter-spacing: .005em;
  max-width: 12ch;
}
.ouverture .droite { display: grid; gap: 18px; justify-items: end; text-align: right; }
.note { font-size: 14px; letter-spacing: .06em; }
.note strong { font-weight: 400; letter-spacing: .16em; }
.ouverture .bouton:hover { background: var(--ecume); color: var(--lagon-profond); border-color: var(--ecume); }

/* ---------- Présentation ---------- */
.presentation { padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.presentation .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.presentation p { max-width: 50ch; margin: 28px 0 0; color: var(--bois-moyen); }
.presentation .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.presentation .duo img { width: 100%; object-fit: cover; }
.presentation .duo img:first-child { aspect-ratio: 3 / 4; }
.presentation .duo img:last-child { aspect-ratio: 4 / 3; margin-bottom: 60px; }

/* ---------- L'arrivée ---------- */
.arrivee { padding: 0 0 clamp(80px, 10vw, 130px); }
.arrivee .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.arrivee-grande { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.arrivee-texte p:not(.surtitre) { color: var(--bois-moyen); margin: 24px 0 32px; max-width: 42ch; }
.arrivee-texte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- La villa en chiffres ---------- */
.chiffres { background: var(--sable); padding: clamp(60px, 8vw, 96px) 0; }
.chiffres h2 { font-size: clamp(48px, 7vw, 88px); margin-bottom: 48px; }
.chiffres ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}
.chiffres li { display: grid; gap: 6px; border-top: 1px solid var(--sable-fonce); padding-top: 20px; }
.chiffres b { font-family: var(--f-titre); font-weight: 300; font-size: 46px; line-height: 1; }
.chiffres span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--bois-moyen); }
.chiffres .details { margin: 48px 0 0; max-width: 70ch; color: var(--bois-moyen); }

/* ---------- Grande image + texte ---------- */
.panorama { position: relative; color: var(--ecume); background: var(--lagon-profond); }
.panorama img { width: 100%; height: clamp(420px, 62vw, 760px); object-fit: cover; }
.panorama .texte {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(8, 30, 36, .78) 0%, rgba(8, 30, 36, 0) 100%);
  padding: 120px 0 clamp(36px, 6vw, 64px);
}
.panorama .surtitre { color: var(--ecume); }
.panorama p { max-width: 54ch; margin: 18px 0 0; }

/* ---------- Galerie courte ---------- */
.apercu { padding: clamp(80px, 10vw, 130px) 0; }
.apercu .tete { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.apercu .tete a { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.grille-photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.grille-photos figure { margin: 0; }
.grille-photos img { width: 100%; height: auto; object-fit: cover; }
.grille-photos figcaption { font-size: 13px; color: var(--bois-moyen); margin-top: 10px; }
/* rangée 1 : large + étroite ; rangées suivantes : trois photos égales */
.g-large { grid-column: span 6; } .g-large img { aspect-ratio: 3 / 2; }
.g-etroite { grid-column: span 6; } .g-etroite img { aspect-ratio: 3 / 2; }
.g-tiers { grid-column: span 4; } .g-tiers img { aspect-ratio: 4 / 5; }
.g-demi { grid-column: span 6; } .g-demi img { aspect-ratio: 4 / 3; }
.g-pleine { grid-column: 1 / -1; } .g-pleine img { aspect-ratio: 16 / 7; }
.grille-photos h3 { grid-column: 1 / -1; font-size: 30px; font-weight: 300; margin: 40px 0 0; }

/* ---------- Résidence ---------- */
.residence { background: var(--sable); padding: clamp(80px, 10vw, 130px) 0; }
.residence .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.residence img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.residence figcaption { font-size: 13px; color: var(--bois-moyen); margin-top: 10px; }
.residence figure { margin: 0; }
.residence .annexe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.residence .annexe img { aspect-ratio: 4 / 3; }
/* repère provisoire, à retirer avant la mise en ligne */
.a-completer { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 12px; border: 1px dashed var(--bois-moyen); color: var(--bois-moyen); font-size: 13px; }
.residence p { color: var(--bois-moyen); margin: 24px 0 0; max-width: 48ch; }

/* ---------- Avis ---------- */
.avis { padding: clamp(80px, 10vw, 130px) 0; text-align: center; }
.avis .grande-note { font-family: var(--f-titre); font-weight: 300; font-size: clamp(80px, 12vw, 140px); line-height: 1; }
.avis .grande-note small { font-size: .35em; color: var(--bois-moyen); }
.avis .sous { margin: 14px 0 0; letter-spacing: .06em; color: var(--bois-moyen); }
.avis ul {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.avis li { border: 1px solid var(--sable-fonce); padding: 10px 18px; font-size: 14px; }
.avis li b { font-weight: 400; color: var(--lagon); margin-left: 6px; font-variant-numeric: tabular-nums; }
.avis .source { font-size: 13px; color: var(--bois-moyen); margin: 28px 0 0; }

/* ---------- Accès ---------- */
.acces { padding: clamp(80px, 10vw, 120px) 0; }
.acces .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 100px);
}
.acces p { color: var(--bois-moyen); margin: 24px 0 0; max-width: 46ch; }
.acces dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.acces dt, .acces dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--sable-fonce); }
.acces dd { text-align: right; font-family: var(--f-titre); font-size: 22px; font-weight: 400; }

/* ---------- Appel final ---------- */
.appel { position: relative; color: var(--ecume); background: var(--lagon-profond); text-align: center; }
.appel img { width: 100%; height: clamp(460px, 56vw, 680px); object-fit: cover; opacity: .55; }
.appel .texte { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 26px; padding: 0 var(--gouttiere); }
.appel h2 { max-width: 16ch; }
.appel .bouton:hover { background: var(--ecume); color: var(--lagon-profond); border-color: var(--ecume); }
.appel .contacts { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.appel .contacts a { text-decoration: none; border-bottom: 1px solid rgba(251, 248, 243, .5); }

/* ---------- Pied de page ---------- */
.pied { background: var(--bois); color: var(--sable-fonce); padding: 64px 0 40px; font-size: 14px; }
.pied .conteneur { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.pied .logo { color: var(--ecume); display: inline-block; margin-bottom: 14px; }
.pied p { margin: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--ecume); }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid rgba(217, 204, 182, .2); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; }

/* ---------- Bandes latérales sur grand écran ----------
   Une fine frise tapa, au milieu de chaque marge, sur les sections claires. Elle glisse doucement au défilement (--f, calculé par main.js). */
@media (min-width: 1480px) {
  .presentation, .arrivee, .chiffres, .apercu, .residence, .avis, .acces {
    background-image: var(--frise), var(--frise);
    background-repeat: repeat-y, repeat-y;
    background-size: 100px var(--frise-h), 100px var(--frise-h);
    background-position:
      calc((100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px),
      calc(100vw - (100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .bouton-menu { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--lagon-profond);
    padding: 24px var(--gouttiere) 32px;
    flex-direction: column;
    align-items: flex-start;
  }
  .menu.ouvert { display: flex; }
  .menu ul { flex-direction: column; gap: 18px; }
  .presentation .conteneur, .residence .conteneur, .acces .conteneur, .arrivee .conteneur { grid-template-columns: 1fr; }
  .chiffres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-large, .g-etroite, .g-demi { grid-column: 1 / -1; }
  .g-tiers { grid-column: span 1; }
  .g-tiers:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
  .pied .conteneur { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ouverture { min-height: 88vh; }
  .ouverture img { object-position: 50% 70%; }
  .ouverture .droite { justify-items: start; text-align: left; }
  .logo { font-size: 18px; letter-spacing: .18em; }
  .presentation .duo img:last-child { margin-bottom: 30px; }
  .acces dd { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .menu ul a { transition: none; }
}

/* ---------- Animations au défilement ----------
   Actives seulement quand js/main.js a ajouté la classe .anim sur <html>
   (donc jamais sans JavaScript, ni si le visiteur a demandé moins d'animations). */

/* Ouverture : la photo apparaît en se dézoomant à peine (jamais agrandie au-delà de sa taille réelle) ; le texte s'efface en descendant. */
@keyframes aremiti-dezoom { from { transform: scale(1.04); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes aremiti-monte { from { transform: translateY(34px); filter: opacity(0); } to { transform: none; filter: opacity(1); } }
.anim .ouverture img {
  animation: aremiti-dezoom 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
.anim .ouverture .conteneur {
  animation: aremiti-monte 1.6s .35s cubic-bezier(.2, .7, .2, 1) both;
  opacity: calc(1 - var(--s, 0) * 1.8);
  translate: 0 calc(var(--s, 0) * -90px);
}

/* Apparitions douces */
.anim .a-reveler {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.2, .7, .2, 1), clip-path 1.6s cubic-bezier(.2, .7, .2, 1);
}
.anim .a-reveler.visible { opacity: 1; transform: none; }

/* Images qui s'ouvrent depuis le centre */
.anim .s-ouvre { clip-path: inset(9% 9% 9% 9%); transition: clip-path 1.6s cubic-bezier(.2, .7, .2, 1), opacity 1.1s ease, transform 1.3s cubic-bezier(.2, .7, .2, 1); }
.anim .visible .s-ouvre, .anim .s-ouvre.visible { clip-path: inset(0 0 0 0); }

/* Grandes bandes photo : elles s'ouvrent jusqu'aux bords et se dézooment au fil du défilement */
.anim .panorama, .anim .appel {
  clip-path: inset(calc((1 - var(--e, 0)) * 7%) calc((1 - var(--e, 0)) * 12%) round calc((1 - var(--e, 0)) * 18px));
}
.anim .panorama > img, .anim .appel > img { scale: calc(1.2 - var(--e, 0) * .2); }

@media (prefers-reduced-motion: reduce) {
  .anim .ouverture img, .anim .ouverture .conteneur { animation: none; }
}

/* ---------- Vagues tapa entre les sections ----------
   Visibles pour tout le monde ; avec les animations, elles se tracent depuis le centre au défilement (--v). */
.arrivee::before, .apercu::before, .avis::before, .acces::before {
  content: "";
  display: block;
  width: min(600px, 72%);
  height: 34px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  background: var(--separateur) center / contain no-repeat;
}
.anim .arrivee::before, .anim .apercu::before, .anim .avis::before, .anim .acces::before {
  clip-path: inset(0 calc((1 - var(--v, 0)) * 50%));
  opacity: calc(.25 + var(--v, 0) * .75);
}

/* ---------- Version « immersive » : photos en fond, texte par-dessus ----------
   Activée par <body class="immersif">. Les couleurs claires deviennent du texte clair sur photo voilée. */
body.immersif {
  --bois: #fbf8f3;
  --bois-moyen: rgba(251, 248, 243, .84);
  --sable-fonce: rgba(251, 248, 243, .28);
  --lagon: #a9d6de;
  --voile: rgba(8, 26, 31, .6);
  background: #10232a;
  color: var(--bois);
}
.immersif .presentation { --photo: url("/images/salon-vue-lagon.webp"); --photo-2: url("/images/salon.webp"); --cadrage: entier; }
.immersif .arrivee { --photo: url("/images/maison-exterieur.webp"); }
.immersif .chiffres { --photo: url("/images/terrasse-jacuzzi.webp"); }
.immersif .residence { --photo: url("/images/villas-dans-la-foret.webp"); }
.immersif .avis { --photo: url("/images/terrasse-vue.webp"); }
.immersif .acces { --photo: url("/images/lagon-montagnes.webp"); }
.immersif .presentation, .immersif .arrivee, .immersif .chiffres,
.immersif .residence, .immersif .avis, .immersif .acces {
  background-color: #10232a;
  background-image: linear-gradient(var(--voile), var(--voile)), var(--photo);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(90px, 12vw, 150px);
  padding-bottom: clamp(90px, 12vw, 150px);
}
.immersif .presentation > .conteneur, .immersif .arrivee > .conteneur, .immersif .chiffres > .conteneur,
.immersif .residence > .conteneur, .immersif .avis > .conteneur, .immersif .acces > .conteneur { width: 100%; }
/* Sur ordinateur, la photo reste fixe pendant que le texte défile (effet de profondeur) */
@media (min-width: 1000px) and (hover: hover) {
  .immersif .presentation, .immersif .arrivee, .immersif .chiffres,
  .immersif .residence, .immersif .avis, .immersif .acces { background-attachment: scroll, fixed; }
}
/* La photo de fond remplace les images d'illustration de ces sections */
.immersif .presentation .duo, .immersif .arrivee-grande, .immersif .residence .conteneur > figure > img { display: none; }
.immersif .presentation .conteneur, .immersif .arrivee .conteneur, .immersif .residence .conteneur { grid-template-columns: minmax(0, 1fr); }
.immersif .presentation .conteneur > div:first-child, .immersif .arrivee-texte { max-width: 640px; }
.immersif .residence .conteneur > div { order: -1; max-width: 640px; }
.immersif .residence .annexe { margin-top: 0; }
.immersif .residence figcaption, .immersif .grille-photos figcaption { color: var(--bois-moyen); }
.immersif h1, .immersif h2, .immersif h3, .immersif .chiffres b, .immersif .grande-note { text-shadow: 0 1px 24px rgba(0, 0, 0, .25); }
/* La galerie reste sur fond uni sombre, pour laisser respirer ses photos */
.immersif .apercu { background: #10232a; }
.immersif .avis li { background: rgba(8, 26, 31, .35); }
.immersif .pied { background: #0b181d; }
/* Ornements tapa : plus clairs sur fond sombre ; frise des marges inutile ici */
.immersif .arrivee::before, .immersif .apercu::before, .immersif .avis::before, .immersif .acces::before { filter: brightness(1.9); }
/* Les grandes bandes photo zooment à l'intérieur de leur cadre sans déborder de la page */
.panorama, .appel { overflow: hidden; }

/* ---------- Immersif : fondu enchaîné des photos de fond ----------
   main.js crée un calque fixe .fonds (une couche par section) et ajoute .fonds-actifs :
   les sections deviennent transparentes et laissent voir le calque, dont les photos se fondent l'une dans l'autre. */
.fonds { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #10232a; }
.fonds > div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; }
.fonds::after { content: ""; position: absolute; inset: 0; background: rgba(8, 26, 31, .58); }
.immersif.fonds-actifs .presentation, .immersif.fonds-actifs .arrivee, .immersif.fonds-actifs .chiffres,
.immersif.fonds-actifs .residence, .immersif.fonds-actifs .avis, .immersif.fonds-actifs .acces {
  background: transparent;
}
.immersif.fonds-actifs { background: #10232a; }
/* La galerie se fond dans les photos au-dessus et au-dessous au lieu de les couper net */
.immersif.fonds-actifs .apercu {
  background: linear-gradient(rgba(16, 35, 42, 0), #10232a 200px, #10232a calc(100% - 200px), rgba(16, 35, 42, 0));
}

/* ---------- Immersif : frises tapa claires sur les côtés ----------
   Elles se tracent de haut en bas quand la section arrive (--v) et glissent doucement (--f), comme la vague du milieu. */
.immersif .presentation, .immersif .arrivee, .immersif .chiffres, .immersif .apercu,
.immersif .residence, .immersif .avis, .immersif .acces { position: relative; }
@media (min-width: 1360px) {
  .immersif .presentation::after, .immersif .arrivee::after, .immersif .chiffres::after, .immersif .apercu::after,
  .immersif .residence::after, .immersif .avis::after, .immersif .acces::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--frise-clair), var(--frise-clair);
    background-repeat: repeat-y, repeat-y;
    background-size: 100px var(--frise-h), 100px var(--frise-h);
    background-position:
      calc((100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px),
      calc(100vw - (100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px);
  }
  .anim .immersif .presentation::after, .anim .immersif .arrivee::after, .anim .immersif .chiffres::after,
  .anim .immersif .apercu::after, .anim .immersif .residence::after, .anim .immersif .avis::after,
  .anim .immersif .acces::after {
    clip-path: inset(0 0 calc((1 - var(--v, 0)) * 100%) 0);
  }
}

/* Immersif : la première partie est allongée pour laisser le temps de voir les deux angles du salon.
   Le texte reste posé au milieu de l'écran pendant que la photo passe de l'un à l'autre. */
.immersif.fonds-actifs .presentation { min-height: 220vh; justify-content: flex-start; }
.immersif.fonds-actifs .presentation > .conteneur { position: sticky; top: 22vh; }

/* ---------- Logo ----------
   Moderne et fin : « VILLA AREMITI » en capitales légères très espacées,
   puis « MOOREA » en petites capitales entre deux traits fins. */
.logo {
  display: inline-grid;
  justify-items: center;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}
.logo-nom {
  font-family: var(--f-titre);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .24em;
  margin-right: -.24em; /* compense l'espacement après la dernière lettre pour bien centrer */
  text-transform: uppercase;
}
.logo-villa {
  font-family: var(--f-texte);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .5em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.logo-villa::before, .logo-villa::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
/* l'espacement des lettres ajoute un blanc après le A final : on le retire pour que MOOREA et ses deux traits soient bien centrés */
.logo-villa::after { margin-left: -.5em; }
.entete .logo { text-shadow: 0 1px 18px rgba(0, 0, 0, .3); }
.pied .logo { justify-items: start; }
@media (max-width: 600px) {
  .logo-nom { font-size: 19px; letter-spacing: .22em; margin-right: -.22em; }
  .logo-villa { font-size: 9px; gap: 8px; }
  .logo-villa::before, .logo-villa::after { width: 14px; }
}

/* Calques « entiers » : la photo nette en entier au centre, sur un fond uni sombre (la frise tapa habille les côtés) */
.fonds .entier { background: #10232a; }
.fonds .net { position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat; background-position: center; }

/* Menu : jamais sur deux lignes, un peu plus serré quand l'écran est juste assez large */
.menu a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1360px) {
  .menu { gap: 22px; }
  .menu ul { gap: 20px; }
  .menu a, .langue a, .langue { font-size: 13px; letter-spacing: .1em; }
}


/* ---------- Immersif : les baleines et l'appel final rejoignent les autres sections ----------
   Même photo de fond en fondu enchaîné, même voile, même zoom doux, mêmes frises : plus de bande plus large que le reste. */
.immersif .panorama { --photo: url("/images/coursive-vue-lagon.webp"); }
.immersif .appel { --photo: url("/images/vue-jacuzzi-lagon.webp"); }
.fonds { overflow: hidden; }
.immersif.fonds-actifs .panorama, .immersif.fonds-actifs .appel {
  background: transparent;
  clip-path: none;
  overflow: visible;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(90px, 12vw, 150px);
  padding-bottom: clamp(90px, 12vw, 150px);
}
.immersif.fonds-actifs .panorama > img, .immersif.fonds-actifs .appel > img { display: none; }
.immersif.fonds-actifs .panorama .texte, .immersif.fonds-actifs .appel .texte {
  position: static;
  background: none;
  padding: 0;
  width: 100%;
}
.immersif.fonds-actifs .appel .texte { display: grid; justify-items: center; gap: 26px; padding: 0 var(--gouttiere); }
@media (min-width: 1360px) {
  .immersif .panorama::after, .immersif .appel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--frise-clair), var(--frise-clair);
    background-repeat: repeat-y, repeat-y;
    background-size: 100px var(--frise-h), 100px var(--frise-h);
    background-position:
      calc((100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px),
      calc(100vw - (100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px);
  }
  .anim .immersif .panorama::after, .anim .immersif .appel::after { clip-path: inset(0 0 calc((1 - var(--v, 0)) * 100%) 0); }
}

/* ---------- Tailles de texte un peu plus grandes (demande du 29/10/2026) ---------- */
body { font-size: 18.5px; }
.surtitre { font-size: 13.5px; }
.bouton { font-size: 13px; }
.note { font-size: 15.5px; }
.grille-photos figcaption, .residence figcaption { font-size: 15px; }
.chiffres span { font-size: 14px; }
.avis li { font-size: 16px; }
.avis .source, .avis .sous { font-size: 15.5px; }
.acces dd { font-size: 24px; }
.appel .contacts { font-size: 16.5px; }
.pied { font-size: 15.5px; }
.pied .bas { font-size: 13px; }
.apercu .tete a { font-size: 13px; }
.menu a, .langue a, .langue { font-size: 15px; }

/* Logo plus grand et plus visible, même style */
.logo-nom { font-size: 31px; letter-spacing: .24em; margin-right: -.24em; }
.logo-villa { font-size: 12px; margin-top: 10px; gap: 12px; }
.logo-villa::before, .logo-villa::after { width: 28px; }
@media (min-width: 901px) and (max-width: 1360px) {
  .menu a, .langue a, .langue { font-size: 13.5px; letter-spacing: .08em; }
}
@media (max-width: 600px) {
  body { font-size: 17.5px; }
  .logo-nom { font-size: 22px; letter-spacing: .2em; margin-right: -.2em; }
  .logo-villa { font-size: 10px; margin-top: 7px; gap: 9px; }
  .logo-villa::before, .logo-villa::after { width: 18px; }
}

/* ---------- Avis : carrousel des plus beaux extraits ----------
   Sans JavaScript : on fait défiler les avis à la main (glisser ou barre de défilement). */
.temoignages { max-width: 880px; margin: 56px auto 0; }
.temoignages-piste {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.temoignages-piste::-webkit-scrollbar { display: none; }
.temoignage {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  padding: 0 clamp(8px, 5vw, 56px);
  display: grid;
  align-content: center;
  text-align: center;
}
.temoignage blockquote { margin: 0; }
.temoignage p {
  font-family: var(--f-titre);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}
.temoignage figcaption {
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bois-moyen);
}
.temoignages-nav { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 34px; }
.temoignages-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--sable-fonce);
  background: transparent;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.temoignages-nav button:hover { border-color: currentColor; }
.temoignages-points { display: flex; gap: 10px; }
.temoignages-points button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: transparent; opacity: .55; }
.temoignages-points button[aria-current="true"] { background: currentColor; opacity: 1; }
.bouton-avis { margin-top: 40px; }

/* Liens réseaux sociaux : petite icône au trait fin devant le texte */
.reseau { display: inline-flex; align-items: center; gap: 8px; }
.reseau .icone { flex: none; }

/* ---------- Motifs : frise des côtés et intercalaire ----------
   Retenue par Jérémie le 29/10/2026 : bande tapa bordée de filets, brins de palme en losanges pleins (pochoir),
   hachures et triangles ; intercalaire assorti avec losange central. */
:root {
  --frise: url("/images/frise-tapa.svg?v=1");
  --frise-clair: url("/images/frise-tapa-clair.svg?v=1");
  --frise-h: 220px;
  --separateur: url("/images/separateur-tapa.svg?v=1");
}

/* ---------- Page Moorea : fiches « à découvrir » et photos des environs ---------- */
.fiches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.fiche { border: 1px solid var(--sable-fonce); padding: 28px 26px; }
.fiche h3 { font-size: 28px; font-weight: 300; margin-bottom: 12px; }
.fiche p { margin: 0; color: var(--bois-moyen); }
.immersif .fiche { background: rgba(8, 26, 31, .35); }
.environs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; max-width: 760px; }
.environs figure { margin: 0; }
.environs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.environs figcaption { font-size: 14px; color: var(--bois-moyen); margin-top: 8px; }
.appel .sources { font-size: 13px; opacity: .75; max-width: 52ch; margin: 0; }
@media (max-width: 600px) { .environs { grid-template-columns: 1fr; } }

/* L'arrivée : une seule grande phrase posée sur la photo, qui passe vite */
.immersif.fonds-actifs .arrivee { min-height: 70vh; }
.immersif .arrivee-texte { max-width: none; text-align: center; }
.immersif .arrivee-texte h2 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.02; max-width: none; margin: 0 auto; }
.immersif .arrivee-texte .surtitre { font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .4em; margin-bottom: 26px; color: var(--ecume); }

/* ---------- Pour qui (essai) ---------- */
.pourqui { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.pourqui h2 { margin-bottom: 44px; }

/* ---------- Que faire à Moorea ---------- */
.que-faire { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.que-faire .tete { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.que-faire .tete a { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.que-faire-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.idees { list-style: none; margin: 0; padding: 0; }
.idees li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--sable-fonce); }
.idees li:first-child { border-top: 1px solid var(--sable-fonce); }
.idees h3 { font-size: 26px; font-weight: 400; margin: 0 0 4px; }
.idees p { margin: 0; color: var(--bois-moyen); font-size: 16px; }
.idees .duree { flex: none; font-family: var(--f-titre); font-size: 22px; white-space: nowrap; }
.que-faire .bouton { margin-top: 44px; }
.carte { margin: 0; }
.carte svg { width: 100%; height: auto; display: block; }
.carte .ile { fill: rgba(251, 248, 243, .06); stroke: currentColor; stroke-width: 1; opacity: .8; }
.carte .recif { fill: none; stroke: #a9d6de; stroke-width: 1; stroke-dasharray: 3 5; opacity: .6; }
.carte .point { fill: currentColor; opacity: .7; }
.carte .point-villa { fill: #e8c99a; }
.carte .lib, .carte .lib-fort { fill: currentColor; font-family: var(--f-texte); font-size: 13px; letter-spacing: .08em; }
.carte .lib { opacity: .75; }
.carte .lib-fort { font-family: var(--f-titre); font-size: 22px; }
.carte .baie { font-style: italic; font-size: 11px; }
.carte figcaption { font-size: 13px; color: var(--bois-moyen); margin-top: 10px; }
.bouton-section { margin-top: 40px; }
.apercu .bouton-section { display: table; margin: 48px auto 0; }
@media (max-width: 900px) { .que-faire-grille { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .idees li { flex-direction: column; gap: 6px; } }

/* ---------- Galerie agrandissable ---------- */
.grille-photos img, .residence .annexe img { cursor: zoom-in; }
.visionneuse {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 18, 22, .94);
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.visionneuse[hidden] { display: none; }
.visionneuse figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.visionneuse img { max-width: min(92vw, 1600px); max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.visionneuse figcaption { color: var(--ecume); font-family: var(--f-titre); font-style: italic; font-size: 20px; text-align: center; }
.visionneuse button { position: absolute; background: none; border: 1px solid rgba(251, 248, 243, .4); color: var(--ecume); width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.visionneuse button:hover { border-color: var(--ecume); }
.v-fermer { top: max(18px, env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); }
.v-prec { left: max(18px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.v-suiv { right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }
.visionneuse-ouverte, .visionneuse-ouverte body { overflow: hidden; }

/* ---------- Page FAQ ---------- */
.faq { padding: clamp(150px, 16vw, 210px) 0 clamp(80px, 10vw, 130px); position: relative; min-height: 100vh; }
.faq h1 { font-size: clamp(40px, 5.5vw, 70px); margin-bottom: 48px; max-width: 18ch; }
.questions { max-width: 820px; border-top: 1px solid var(--sable-fonce); }
.question { border-bottom: 1px solid var(--sable-fonce); }
.question summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--f-titre); font-size: clamp(22px, 2.2vw, 28px); }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-family: var(--f-texte); font-weight: 300; font-size: 26px; }
.question[open] summary::after { content: "−"; }
.question p { margin: 0 0 24px; max-width: 64ch; color: var(--bois-moyen); }
.faq .bouton { margin-top: 48px; }
.faq-contact { margin-top: 72px; max-width: 640px; }
.faq-contact h2 { font-size: clamp(30px, 3.6vw, 44px); }
.faq-contact .contacts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 18px; }
.faq-contact .contacts span { display: none; }
.faq-contact .contacts a { text-decoration: none; border-bottom: 1px solid var(--sable-fonce); }
.immersif .question { background: transparent; }
.carte .repere { stroke: #e8c99a; stroke-width: 1; fill: none; opacity: .8; }
.page-faq .fonds::after { background: rgba(8, 26, 31, .78); }
.carte .halo { fill: #e8c99a; opacity: .22; }
.carte .fleche { stroke: currentColor; fill: none; opacity: .6; }
.carte .ile { stroke-linejoin: round; }
.carte .recif { stroke-linejoin: round; }

/* Page Moorea : une photo en tête de chaque fiche, crédit discret pour les photos libres de droits */
.fiche { display: flex; flex-direction: column; }
.fiche img { width: calc(100% + 52px); max-width: none; margin: -28px -26px 0; aspect-ratio: 3 / 2; object-fit: cover; }
.fiche .credit { display: block; font-size: 11px; letter-spacing: .04em; opacity: .55; margin: 6px 0 18px; }
.fiche img + h3 { margin-top: 22px; }

/* ---------- Page Galerie ----------
   Chapitres ; photos panoramiques en pleine largeur, les autres en colonnes (mosaïque sans recadrage). */
.galerie { padding-bottom: clamp(80px, 10vw, 130px); }
.galerie-tete { padding: clamp(150px, 16vw, 210px) 0 clamp(40px, 6vw, 70px); }
.galerie-tete h1 { font-size: clamp(44px, 6vw, 84px); }
.galerie-tete p:not(.surtitre) { color: var(--bois-moyen); margin: 18px 0 0; }
.galerie-chapitre { padding-top: clamp(50px, 7vw, 90px); }
.galerie-chapitre h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--sable-fonce); }
.galerie-pleine { display: grid; gap: 16px; margin-bottom: 16px; }
.galerie-colonnes { columns: 3 300px; column-gap: 16px; }
.galerie .photo { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; }
.galerie .photo img { width: 100%; height: auto; display: block; cursor: zoom-in; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.galerie .photo:hover img { transform: scale(1.025); }
.galerie .photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(0deg, rgba(6, 18, 22, .7), rgba(6, 18, 22, 0));
  color: var(--ecume); font-family: var(--f-titre); font-style: italic; font-size: 19px;
  opacity: 0; transition: opacity .5s ease;
}
.galerie .photo:hover figcaption, .galerie .photo:focus-within figcaption { opacity: 1; }
@media (hover: none) { .galerie .photo figcaption { opacity: 1; } }
.galerie-fin { text-align: center; margin: clamp(60px, 8vw, 100px) 0 0; }
.galerie-fondu .galerie .photo { opacity: 0; transition: opacity 1s ease; }
.galerie-fondu .galerie .photo.vue { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .galerie .photo img, .galerie .photo figcaption { transition: none; } }
/* Fiche avec deux photos côte à côte */
.fiche-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -28px -26px 0; width: calc(100% + 52px); aspect-ratio: 3 / 2; }
.fiche-photos img { width: 100%; height: 100%; max-width: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; }
.fiche-photos + h3 { margin-top: 22px; }

/* Page Moorea : photo de baleine incrustée dans la section des baleines */
.baleine-incrustee { margin: 34px 0 0; max-width: 560px; }
.baleine-incrustee img { width: 100%; height: auto; display: block; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7); }
.baleine-incrustee figcaption { font-size: 12px; letter-spacing: .04em; opacity: .65; margin-top: 8px; }
.credits-photos { grid-column: 1 / -1; font-size: 11px; line-height: 1.6; opacity: .55; margin: 0; }

/* Plan de Moorea plus grand et plus lisible (demande du 30/10/2026) */
.que-faire-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.carte { position: sticky; top: 100px; }
.carte .recif { fill: rgba(169, 214, 222, .10); stroke-width: 1.2; opacity: .9; }
.carte .ile { fill: rgba(251, 248, 243, .14); stroke-width: 1.6; opacity: 1; }
.carte .point { opacity: 1; }
.carte .lib { opacity: .95; font-size: 14px; }
.carte .lib-fort { font-size: 24px; }
.carte .baie { font-size: 12px; }
.carte figcaption { font-size: 14px; }
@media (max-width: 900px) { .carte { position: static; } }
/* Le plan passe sous la liste, en grand */
.que-faire-grille { grid-template-columns: minmax(0, 1fr); }
.carte { position: static; max-width: 980px; width: 100%; margin: 24px auto 0; }
.carte figcaption { text-align: center; }

/* ---------- Pages Contact et Disponibilités ---------- */
.simple { padding: clamp(150px, 16vw, 210px) 0 clamp(80px, 10vw, 130px); position: relative; min-height: 100vh; }
.simple h1 { font-size: clamp(40px, 5.5vw, 70px); max-width: 18ch; }
.simple .intro { color: var(--bois-moyen); max-width: 58ch; margin: 22px 0 44px; }
.page-simple .fonds::after { background: rgba(8, 26, 31, .74); }
.cartes-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; max-width: 1000px; }
.carte-contact { display: grid; gap: 6px; padding: 26px 24px; border: 1px solid var(--sable-fonce); text-decoration: none; background: rgba(8, 26, 31, .35); transition: border-color .3s, background-color .3s; }
.carte-contact:hover { border-color: var(--ecume); background: rgba(8, 26, 31, .55); }
.carte-contact .icone { margin-bottom: 8px; }
.cc-titre { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--lagon); }
.cc-valeur { font-family: var(--f-titre); font-size: 22px; overflow-wrap: anywhere; }
.lieu-contact { color: var(--bois-moyen); margin: 36px 0 40px; max-width: 60ch; }
.infos-sejour { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.infos-sejour li { border: 1px solid var(--sable-fonce); padding: 8px 16px; font-size: 15px; }
.calendrier { min-height: 200px; }
.cal-mois-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 34px 28px; }
.cal-mois h3 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-jsem { font-size: 11px; letter-spacing: .1em; opacity: .6; padding-bottom: 4px; }
.cal-jour { font-size: 14px; padding: 7px 0; }
.cal-jour.libre { background: rgba(169, 214, 222, .14); }
.cal-jour.pris { opacity: .35; text-decoration: line-through; }
.cal-jour.passe { opacity: .2; }
.cal-legende { display: flex; align-items: center; gap: 10px; margin: 30px 0 40px; font-size: 14px; color: var(--bois-moyen); }
.pastille { width: 16px; height: 16px; display: inline-block; margin-left: 12px; }
.pastille:first-child { margin-left: 0; }
.pastille.libre { background: rgba(169, 214, 222, .3); }
.pastille.pris { border: 1px solid var(--bois-moyen); opacity: .5; }
.cal-erreur, .cal-attente { color: var(--bois-moyen); }
.calendrier { background: rgba(8, 26, 31, .78); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--sable-fonce); }
.cal-jour.libre { background: rgba(169, 214, 222, .2); }

/* ---------- Calendrier, version « nuit » (retenue le 30/10/2026) ----------
   Panneau bleu-nuit opaque (plus de photo qui transparaît), chiffres crème plus grands, mois en sable doré.
   Jours libres : case bordée, lumineuse. Jours réservés : case pleine, éteinte, avec un trait fin. */
.calendrier.cal-nuit { background: #0e252c; border: 1px solid rgba(217, 204, 182, .22); padding: clamp(24px, 3.5vw, 44px); }
.cal-nuit .cal-mois-liste { gap: 40px 34px; }
.cal-nuit .cal-mois h3 { color: #d9c3a0; font-size: 24px; letter-spacing: .02em; border-bottom: 1px solid rgba(217, 204, 182, .22); padding-bottom: 10px; margin-bottom: 14px; }
.cal-nuit .cal-grille { gap: 5px; }
.cal-nuit .cal-jsem { color: #a9d6de; opacity: .8; font-size: 12px; }
.cal-nuit .cal-jour { font-size: 16px; padding: 9px 0; color: #f4ede2; }
.cal-nuit .cal-jour.libre { background: rgba(169, 214, 222, .10); box-shadow: inset 0 0 0 1px rgba(169, 214, 222, .35); }
.cal-nuit .cal-jour.pris { opacity: 1; text-decoration: none; color: rgba(244, 237, 226, .32); background: rgba(255, 255, 255, .03);
  background-image: linear-gradient(135deg, transparent 47%, rgba(244, 237, 226, .22) 48%, rgba(244, 237, 226, .22) 52%, transparent 53%); }
.cal-nuit .cal-jour.passe { opacity: 1; color: rgba(244, 237, 226, .16); }
.cal-legende.nuit .pastille.libre { background: rgba(169, 214, 222, .10); box-shadow: inset 0 0 0 1px rgba(169, 214, 222, .5); }
.cal-legende.nuit .pastille.pris { opacity: 1; border: 0; background: rgba(255, 255, 255, .05) linear-gradient(135deg, transparent 45%, rgba(244, 237, 226, .4) 47%, rgba(244, 237, 226, .4) 53%, transparent 55%); }

/* ---------- Boutons, harmonisés sur tout le site (30/10/2026) ----------
   Fin filet sable doré, texte crème, fond légèrement teinté ; au survol, le bouton se remplit de sable doré.
   Même style partout : ouverture, fin de page, avis, contact, disponibilités, FAQ, galerie, Moorea. */
.immersif .bouton, .immersif .bouton-plein, .immersif .ouverture .bouton, .immersif .appel .bouton {
  background: rgba(8, 26, 31, .35);
  border: 1px solid #d9c3a0;
  color: #f4ede2;
  backdrop-filter: blur(2px);
}
.immersif .bouton:hover, .immersif .bouton-plein:hover, .immersif .ouverture .bouton:hover, .immersif .appel .bouton:hover {
  background: #d9c3a0;
  border-color: #d9c3a0;
  color: #10232a;
}
.immersif .bouton:focus-visible { outline: 2px solid #d9c3a0; outline-offset: 3px; }

/* ---------- Page La villa ---------- */
.villa-bloc { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.villa-bloc + .villa-bloc { border-top: 1px solid var(--sable-fonce); }
.villa-plan .conteneur { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.villa-plan-texte p:not(.surtitre) { color: var(--bois-moyen); margin: 22px 0 0; max-width: 44ch; }
.plan { margin: 0; }
.plan img { width: 100%; height: auto; cursor: zoom-in; border: 1px solid var(--sable-fonce); }
.piece { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(50px, 7vw, 90px); }
.piece.inverse .piece-photo { order: 2; }
.piece-photo { margin: 0; }
.piece-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.piece-sans-photo { aspect-ratio: 4 / 3; border: 1px solid var(--sable-fonce); background: linear-gradient(135deg, rgba(217, 195, 160, .08), rgba(169, 214, 222, .05)); }
.piece-texte h3 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 300; margin-bottom: 18px; }
.piece-texte p { color: var(--bois-moyen); margin: 0; max-width: 46ch; }
.equipements { list-style: none; padding: 0; margin: 40px 0 0; columns: 3 240px; column-gap: 40px; }
.equipements li { break-inside: avoid; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--sable-fonce); position: relative; }
.equipements li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; translate: 0 -50%; rotate: 45deg; background: #d9c3a0; }
.villa-residence .conteneur { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.villa-residence p:not(.surtitre) { color: var(--bois-moyen); margin: 22px 0 26px; max-width: 46ch; }
.lien-souligne { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.pratique { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 28px; margin: 22px 0 0; }
.pratique dt { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #a9d6de; padding-top: 18px; border-top: 1px solid var(--sable-fonce); }
.pratique dd { margin: 6px 0 18px; font-family: var(--f-titre); font-size: 24px; }
.villa-fin { margin: 34px 0 40px; }
@media (max-width: 900px) {
  .villa-plan .conteneur, .piece, .villa-residence .conteneur { grid-template-columns: 1fr; }
  .piece.inverse .piece-photo { order: 0; }
}
/* Pièce sans photo (la cuisine, en attendant la bonne photo) : texte seul, centré, encadré de deux filets */
.piece-texte-seul { grid-template-columns: minmax(0, 1fr); text-align: center; padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--sable-fonce); border-bottom: 1px solid var(--sable-fonce); }
.piece-texte-seul .piece-texte p { margin: 0 auto; max-width: 56ch; }

/* ---------- Homogénéité : mêmes frises, intercalaires et fonds sur toutes les pages (30/10/2026) ---------- */
/* Frise tapa des côtés : aussi sur Pour qui, Que faire, La villa, Galerie, FAQ, Contact, Disponibilités */
.immersif .pourqui, .immersif .que-faire, .immersif .villa-bloc, .immersif .galerie, .immersif .simple, .immersif .faq { position: relative; }
@media (min-width: 1360px) {
  .immersif .pourqui::after, .immersif .que-faire::after, .immersif .villa-bloc::after,
  .immersif .galerie::after, .immersif .simple::after, .immersif .faq::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--frise-clair), var(--frise-clair);
    background-repeat: repeat-y, repeat-y;
    background-size: 100px var(--frise-h), 100px var(--frise-h);
    background-position:
      calc((100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px),
      calc(100vw - (100vw - var(--largeur)) / 4 - 50px) calc(var(--f, 0) * 1px);
  }
  .anim .immersif .pourqui::after, .anim .immersif .que-faire::after, .anim .immersif .villa-bloc::after,
  .anim .immersif .galerie::after, .anim .immersif .simple::after, .anim .immersif .faq::after {
    clip-path: inset(0 0 calc((1 - var(--v, 0)) * 100%) 0);
  }
}
/* Intercalaire tapa entre les parties : aussi entre les blocs de La villa, avant « Pour qui » et « Que faire » */
.villa-bloc + .villa-bloc { border-top: 0; }
.villa-bloc + .villa-bloc::before, .pourqui::before, .que-faire::before {
  content: "";
  display: block;
  width: min(600px, 72%);
  height: 34px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  background: var(--separateur) center / contain no-repeat;
  filter: brightness(1.9);
}
.anim .villa-bloc + .villa-bloc::before, .anim .pourqui::before, .anim .que-faire::before {
  clip-path: inset(0 calc((1 - var(--v, 0)) * 50%));
  opacity: calc(.25 + var(--v, 0) * .75);
}
.galerie-chapitre + .galerie-chapitre::before {
  content: "";
  display: block;
  width: min(420px, 60%);
  height: 30px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  background: var(--separateur) center / contain no-repeat;
  filter: brightness(1.9);
}
.anim .galerie-chapitre + .galerie-chapitre::before {
  clip-path: inset(0 calc((1 - var(--v, 0)) * 50%));
  opacity: calc(.25 + var(--v, 0) * .75);
}
/* Photos de fond en fondu enchaîné sur La villa, comme sur l'accueil */
.immersif .villa-plan { --photo: url("/images/terrasse-vue.webp"); }
.immersif .villa-equip { --photo: url("/images/terrasse-jacuzzi.webp"); }
.immersif .villa-pratique { --photo: url("/images/vue-jacuzzi-lagon.webp"); }
.immersif.fonds-actifs .villa-bloc { background: transparent; }
.immersif.fonds-actifs .villa-visite, .immersif.fonds-actifs .villa-residence { background: #10232a; }
.page-villa .fonds::after { background: rgba(8, 26, 31, .66); }

/* Page Moorea : la présentation de l'île garde une hauteur normale (pas l'effet du salon de l'accueil) */
.immersif.fonds-actifs .presentation-courte { min-height: 92vh; justify-content: center; }
.immersif.fonds-actifs .presentation-courte > .conteneur { position: static; }

/* Galerie : deux photos de même format côte à côte, en grand (salles de bain) */
.galerie-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .galerie-duo { grid-template-columns: 1fr; } }

/* Mentions légales : texte courant, titres discrets */
.mentions h1 { margin-bottom: clamp(30px, 4vw, 50px); }
.mentions h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 300; margin: 38px 0 10px; }
.mentions p:not(.surtitre) { color: var(--bois-moyen); max-width: 68ch; margin: 0; }
.mentions p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Galerie : le film, lancé seulement au clic (couverture + bouton lecture, vidéo cachée avant) */
.film { margin: 0; }
.film-cadre { position: relative; aspect-ratio: 16 / 9; background: #0b1a1f; overflow: hidden; }
.film-cadre video, .film-lecture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film video { display: none; background: #0b1a1f; }
.film.en-lecture video { display: block; object-fit: contain; }
.film.en-lecture .film-lecture { display: none; }
.film-lecture { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; color: var(--ecume); }
.film-lecture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 18, 22, .45), rgba(6, 18, 22, .05) 55%); transition: background .4s ease; }
.film-icone {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border: 1px solid #d9c3a0; border-radius: 50%; background: rgba(6, 18, 22, .35);
  transition: background .3s ease, transform .3s ease;
}
.film-icone::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -8px;
  border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fbf8f3;
}
.film-lecture:hover .film-icone, .film-lecture:focus-visible .film-icone { background: #d9c3a0; transform: scale(1.05); }
.film-duree { position: absolute; z-index: 1; left: 50%; top: calc(50% + 62px); transform: translateX(-50%); font-family: var(--f-texte, inherit); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.film-son {
  position: absolute; z-index: 2; top: 16px; right: 16px; padding: 9px 16px;
  border: 1px solid #d9c3a0; background: rgba(6, 18, 22, .55); color: #fbf8f3;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.film-son:hover { background: #d9c3a0; color: #10232a; }
.film figcaption { margin-top: 14px; font-family: var(--f-titre); font-style: italic; font-size: 19px; color: var(--bois-moyen); }
@media (max-width: 640px) {
  .film-icone { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .film-duree { top: calc(50% + 50px); }
  .film-son { top: 10px; right: 10px; padding: 7px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .film-icone { transition: none; } }

/* Fin de l'accueil : la phrase des baleines (fusionnée avec « Le lagon, depuis votre terrasse ») */
.appel .appel-baleines { max-width: 54ch; margin: -6px auto 0; font-family: var(--f-titre); font-style: italic; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: rgba(251, 248, 243, .92); }

/* Accueil : badge des avis Airbnb juste au-dessus du bouton Airbnb, en bas de l'ouverture.
   Un clic déroule trois avis vers le haut ; se referme au clic ailleurs ou avec Échap (main.js). */
.ouverture .droite { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
.badge-avis { position: relative; color: #fbf8f3; }
.badge-avis summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; width: max-content;
  padding: 10px 16px; border: 1px solid rgba(217, 195, 160, .55);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: background .3s ease;
}
.badge-avis summary::-webkit-details-marker { display: none; }
.badge-avis summary:hover, .badge-avis[open] summary { background: rgba(6, 18, 22, .6); }
.badge-avis .etoiles { color: #d9c3a0; letter-spacing: .12em; font-size: 13px; }
.badge-avis .chevron { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(2px) rotate(-135deg); transition: transform .3s ease; }
.badge-avis[open] .chevron { transform: translateY(-2px) rotate(45deg); }
.badge-panneau {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 4;
  width: min(380px, calc(100vw - 2 * var(--gouttiere))); padding: 20px 22px 18px;
  background: rgba(6, 18, 22, .97); border: 1px solid rgba(217, 195, 160, .5); text-align: left;
}
.badge-tete { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #d9c3a0; }
.badge-panneau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.badge-panneau li { padding-top: 14px; border-top: 1px solid rgba(251, 248, 243, .15); }
.badge-panneau li:first-child { padding-top: 0; border-top: 0; }
.badge-panneau li p { margin: 0 0 4px; font-family: var(--f-titre); font-style: italic; font-size: 19px; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.badge-panneau li span { font-size: 12px; letter-spacing: .06em; opacity: .7; text-transform: none; }
.badge-liens { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; letter-spacing: .08em; text-transform: none; }
.badge-liens a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(217, 195, 160, .7); }
.badge-liens a:hover { color: #d9c3a0; }
@media (max-width: 700px) {
  .ouverture .droite { align-items: stretch; }
  .badge-avis summary { width: 100%; justify-content: center; gap: 8px; font-size: 11px; letter-spacing: .05em; padding: 10px 10px; }
  .badge-avis .etoiles { font-size: 11px; letter-spacing: .04em; }
  .badge-panneau { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .badge-avis .chevron { transition: none; } }
@media (max-width: 400px) { :lang(en) .badge-avis .etoiles { display: none; } }
