/* Style « Blanc iodé » — les noms de variables sont historiques,
   --terracotta = couleur d'accent (bleu), --foret = bloc sombre, etc. */
:root {
  --creme: #ffffff;
  --sable: #eef3f6;
  --lin: #ffffff;
  --encre: #0f2a3d;
  --texte: #45545f;
  --doux: #8696a2;
  --terracotta: #1f6fa3;
  --terracotta-fonce: #165882;
  --foret: #0f2a3d;
  --ligne: #dfe6eb;
  --bloque: #edf1f4;
  --inactif: #b8c4cc;
  --champ: #fff;
  --sur-accent: #fff;
  --accent-hero: #ffd59a;
  --entete-fond: rgba(255, 255, 255, .95);
  --foret-texte: #b9c9d5;
  --foret-titre: #ffffff;
  --pied-fond: #0b2131;
  --pied-texte: #8fa3b3;
  --titre-poids: 400;
  --titre-casse: none;
  --titre-espace: 0;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --rayon: 20px;
  --ombre: 0 18px 50px -20px rgba(60, 40, 20, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--encre); line-height: 1.1; }
h1, h2 { font-weight: var(--titre-poids); text-transform: var(--titre-casse); letter-spacing: var(--titre-espace); }
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.7rem; }
em { font-style: italic; color: var(--terracotta); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.surtitre {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500; margin-bottom: 1rem; display: block;
}
section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 999px;
  font: 500 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: all .35s ease;
}
.btn-plein { background: var(--terracotta); color: var(--sur-accent); }
.btn-plein:hover { background: var(--terracotta-fonce); transform: translateY(-2px); }
.btn-ligne { border-color: currentColor; color: inherit; background: transparent; }
.btn-ligne:hover { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s ease, box-shadow .4s ease, color .4s ease;
  color: #fff;
}
.entete.solide, .entete.clair { background: var(--entete-fond); color: var(--encre); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ligne); }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: .02em; }
.logo span { font-style: italic; color: var(--terracotta); }
.entete.solide .logo span, .entete.clair .logo span { color: var(--terracotta); }
.entete:not(.solide):not(.clair) .logo span { color: var(--accent-hero); }
.nav { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav a { text-decoration: none; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--terracotta); }
.burger { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; padding: 0 0 clamp(4rem, 9vw, 7rem); overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: respire 18s ease-out forwards; }
@keyframes respire { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,20,12,.35) 0%, rgba(30,20,12,.1) 40%, rgba(30,20,12,.7) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: 1.4rem; }
.hero h1 em { color: var(--accent-hero); }
.hero p { max-width: 34rem; font-size: 1.15rem; opacity: .92; margin-bottom: 2.2rem; }
.hero .surtitre { color: var(--accent-hero); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ligne { color: #fff; }
.hero .btn-ligne:hover { background: #fff; color: var(--encre); border-color: #fff; }
.hero-note {
  position: absolute; right: max(16px, calc((100% - 1180px) / 2)); bottom: clamp(4rem, 9vw, 7rem); z-index: 1;
  text-align: right; font-family: var(--serif);
}
.hero-note strong { font-size: 3rem; font-weight: 400; display: block; line-height: 1; }
.hero-note small { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.intro h2 { margin-bottom: 1.5rem; }
.intro p { margin-bottom: 1.2rem; }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--ligne); padding-top: 2rem; }
.chiffres strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; color: var(--encre); display: block; line-height: 1; }
.chiffres span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.intro-img { border-radius: 200px 200px var(--rayon) var(--rayon); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--ombre); }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cartes logements ---------- */
.fond-sable { background: var(--sable); }
.tete-section { text-align: center; max-width: 40rem; margin: 0 auto 4rem; }
.tete-section p { margin-top: 1rem; }
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.carte { background: var(--lin); border-radius: var(--rayon); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .5s ease, box-shadow .5s ease; }
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.carte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.carte:hover .carte-img img { transform: scale(1.05); }
.pastille {
  position: absolute; top: 1rem; left: 1rem; background: var(--lin); color: var(--encre);
  padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 400;
}
.carte-corps { padding: 2rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.carte-corps .meta { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.carte-pied { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--ligne); }
.prix { font-family: var(--serif); font-size: 1.7rem; color: var(--encre); }
.prix small { font-family: var(--sans); font-size: .8rem; color: var(--doux); }
.lien-fleche { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; }

/* ---------- Le parc / région ---------- */
.foret { background: var(--foret); color: var(--foret-texte); }
.foret h2, .foret h3 { color: var(--foret-titre); }
.foret em { color: var(--accent-hero); }
.foret .surtitre { color: var(--accent-hero); }
.situation { margin-top: 3.5rem; }
.situation img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--rayon); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.galerie-parc { margin-top: 2.5rem; height: min(56vh, 480px); }

/* Carte interactive */
.bloc-carte { margin-top: 4.5rem; text-align: center; }
.bloc-carte h3 { font-size: 2rem; margin-bottom: .5rem; }
.bloc-carte > p { max-width: 36rem; margin: 0 auto 1.8rem; }
.carte-interactive { height: min(65vh, 560px); border-radius: var(--rayon); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); z-index: 0; text-align: left; }
.carte-interactive .leaflet-tile-pane { filter: saturate(.55) brightness(1.04) contrast(.95); }
.carte-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.foret .carte-actions .btn-ligne { color: var(--foret-titre); }
.foret .carte-actions .btn-ligne:hover { background: var(--foret-titre); color: var(--encre); border-color: var(--foret-titre); }
.pin-maison span {
  display: grid; place-items: center; width: 44px; height: 44px; color: #fff;
  background: var(--terracotta); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.pin-maison svg { transform: rotate(45deg); }
.pin-point span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-hero); border: 3px solid var(--encre); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.etiquette-point { font: 500 .78rem var(--sans); color: var(--encre); border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--sans); }
.leaflet-popup-content { font-size: .92rem; line-height: 1.5; color: var(--texte); }
.leaflet-popup-content strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--encre); }
.leaflet-popup-content a { color: var(--terracotta); }
.situation figcaption { text-align: center; font-size: .85rem; margin-top: 1rem; opacity: .8; }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }
.atout { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.5rem; }
.atout strong { font-family: var(--serif); font-size: 2.6rem; color: var(--foret-titre); font-weight: 400; display: block; line-height: 1; margin-bottom: .6rem; }
.atout p { font-size: .95rem; }

/* ---------- Avis ---------- */
.avis-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.avis { background: var(--lin); padding: 2.2rem; border-radius: var(--rayon); }
.avis blockquote { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--encre); line-height: 1.4; margin-bottom: 1.2rem; }
.avis cite { font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.lien-avis { text-align: center; margin-top: 2.5rem; font-size: .95rem; }
.lien-avis a { color: var(--terracotta); }
.etoiles { color: var(--terracotta); letter-spacing: .2em; margin-bottom: 1rem; font-size: .9rem; }

/* ---------- Contact / pied ---------- */
.contact { text-align: center; }
.contact p { max-width: 36rem; margin: 1rem auto 2rem; }
.pied { background: var(--pied-fond); color: var(--pied-texte); padding: 3rem 0; font-size: .9rem; }
.pied .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.pied .logo { color: var(--foret-titre); }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; }
.pied-liens { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Page logement ---------- */
.page-logement { padding-top: 76px; }
.fil { padding: 2rem 0 1rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--terracotta); }
.titre-logement { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.titre-logement p { color: var(--doux); }
.galerie { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: min(62vh, 560px); border-radius: var(--rayon); overflow: hidden; }
.galerie button { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--sable); position: relative; }
.galerie button:first-child { grid-row: span 2; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; }
.galerie button:hover img { transform: scale(1.04); filter: brightness(.92); }
.galerie .plus { position: absolute; right: 1rem; bottom: 1rem; background: var(--lin); color: var(--encre); padding: .5rem 1rem; border-radius: 999px; font: 400 .85rem var(--sans); }

.corps-logement { display: grid; grid-template-columns: 1fr 420px; gap: clamp(2rem, 5vw, 5rem); padding: 4rem 0 6rem; align-items: start; }
.caracs { display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding: 1.5rem 0; border-block: 1px solid var(--ligne); margin-bottom: 2.5rem; font-size: .95rem; }
.caracs span::before { content: "◆"; color: var(--terracotta); font-size: .55rem; margin-right: .6rem; vertical-align: middle; }
.bloc { margin-bottom: 3.5rem; }
.bloc h3 { margin-bottom: 1.2rem; }
.bloc p { margin-bottom: 1rem; }
.equipements { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
.equipements li { padding-left: 1.6rem; position: relative; }
.equipements li::before { content: ""; position: absolute; left: 0; top: .7em; width: .9rem; height: 1px; background: var(--terracotta); }
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.infos div { padding: .9rem 0; border-bottom: 1px solid var(--ligne); }
.infos dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); }
.infos dd { color: var(--encre); }

/* ---------- Module de réservation ---------- */
.resa {
  position: sticky; top: 100px; background: var(--lin); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 1.8rem; border: 1px solid var(--ligne);
}
.resa-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.resa-tete .note { font-size: .9rem; }
.resa-tete .note b { color: var(--terracotta); font-weight: 500; }
.dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ligne); border-radius: 10px; margin-bottom: 1rem; overflow: hidden; }
.dates div { padding: .7rem 1rem; }
.dates div + div { border-left: 1px solid var(--ligne); }
.dates label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); display: block; }
.dates output { color: var(--encre); font-weight: 400; }

.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.cal-nav button { background: none; border: 1px solid var(--ligne); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--encre); font-size: 1rem; }
.cal-nav button:hover:not(:disabled) { border-color: var(--encre); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-mois { font-family: var(--serif); font-size: 1.3rem; color: var(--encre); text-transform: capitalize; }
.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grille .jsem { font-size: .7rem; letter-spacing: .1em; color: var(--doux); padding: .3rem 0; text-transform: uppercase; }
.jour {
  aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font: 400 .9rem var(--sans);
  color: var(--encre); cursor: pointer; transition: background .2s;
}
.jour:hover:not(:disabled) { background: var(--sable); }
.jour:disabled { color: var(--inactif); cursor: default; }
.jour.bloque { text-decoration: line-through; color: var(--inactif); }
.jour.dans { background: var(--sable); border-radius: 0; }
.jour.debut, .jour.fin { background: var(--terracotta); color: var(--sur-accent); border-radius: 50%; }
.cal-legende { display: flex; gap: 1.2rem; font-size: .75rem; color: var(--doux); margin: .8rem 0 1rem; flex-wrap: wrap; }
.cal-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.cal-statut { font-size: .78rem; color: var(--doux); margin-bottom: 1rem; min-height: 1.2em; }

.voyageurs { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-block: 1px solid var(--ligne); margin-bottom: 1rem; }
.compteur { display: flex; align-items: center; gap: .9rem; }
.compteur button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ligne); background: none; cursor: pointer; color: var(--encre); }
.compteur button:hover:not(:disabled) { border-color: var(--encre); }
.compteur button:disabled { opacity: .3; cursor: default; }

.recap { font-size: .95rem; margin-bottom: 1.2rem; }
.recap div { display: flex; justify-content: space-between; padding: .3rem 0; }
.recap .total { border-top: 1px solid var(--ligne); margin-top: .5rem; padding-top: .8rem; font-weight: 500; color: var(--encre); }
.resa .btn { width: 100%; justify-content: center; }
.resa-alt { text-align: center; font-size: .82rem; color: var(--doux); margin-top: 1rem; }
.resa-alt a { color: var(--terracotta); }

/* Formulaire de demande */
.formulaire { display: none; }
.formulaire.ouvert { display: block; }
.formulaire label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin: .8rem 0 .3rem; }
.formulaire input, .formulaire textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--ligne); border-radius: 8px;
  font: 300 1rem var(--sans); background: var(--champ); color: var(--encre);
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--terracotta); outline-offset: -1px; border-color: transparent; }
.formulaire .btn { margin-top: 1.2rem; }
.retour { background: none; border: 0; color: var(--doux); font: inherit; font-size: .85rem; cursor: pointer; margin-top: .8rem; width: 100%; text-decoration: underline; }
.merci { text-align: center; padding: 1.5rem 0; display: none; }
.merci.ouvert { display: block; }
.merci h3 { margin-bottom: .8rem; }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; background: rgba(20, 15, 10, .94); z-index: 100; display: none; align-items: center; justify-content: center; }
.visionneuse.ouvert { display: flex; }
.visionneuse img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.visionneuse button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: 1rem; opacity: .8; }
.visionneuse button:hover { opacity: 1; }
.v-fermer { top: .5rem; right: 1rem; }
.v-prec { left: .5rem; top: 50%; transform: translateY(-50%); }
.v-suiv { right: .5rem; top: 50%; transform: translateY(-50%); }
.v-compte { position: absolute; bottom: 1.5rem; color: #fff; font-size: .85rem; letter-spacing: .14em; opacity: .7; }

/* Apparition au défilement */
.apparait { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.apparait.vu { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .corps-logement { grid-template-columns: 1fr; }
  .resa { position: static; width: 100%; max-width: 460px; margin-inline: auto; }
  .atouts { grid-template-columns: 1fr 1fr; }
  .avis-grille { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 76px 0 auto; background: var(--creme); color: var(--encre); flex-direction: column; gap: 0; padding: 1rem 0; display: none; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
  .nav.ouvert { display: flex; }
  .nav li { width: 100%; text-align: center; }
  .nav a { display: block; padding: 1rem; }
  .burger { display: block; }
  .intro, .cartes { grid-template-columns: 1fr; }
  .intro-img { max-height: 70vh; }
  .hero-note { display: none; }
  .galerie { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 70vh; }
  .galerie button:first-child { grid-column: span 2; grid-row: auto; }
  .galerie button:nth-child(n+4) { display: none; }
  .equipements, .infos { grid-template-columns: 1fr; }
  .atouts { grid-template-columns: 1fr; gap: 1.5rem; }
}
