/* Chez Ninou · gîtes 360° — feuille de style unique.
   Palette, typographie et rythme dans :root. Tablette et mobile en bas de fichier. */

:root {
  --encre: #1c1916;
  --encre-2: #27231f;
  --creme: #f5efe4;
  --creme-2: #ebe2d2;
  --blanc: #fffaf2;
  --texte: #2b2723;
  --faded: #857c6f;
  --terre: #b4603d;
  --terre-fonce: #94492b;
  --olive: #667251;
  --or: #c9a56a;
  --ligne: rgba(43, 39, 35, .12);
  --ligne-clair: rgba(245, 239, 228, .16);
  --rayon: 18px;
  --ombre: 0 24px 60px rgba(28, 25, 22, .14);
  --entete: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 2 * clamp(20px, 5vw, 72px)); margin-inline: auto; }

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: clamp(26px, 2.6vw, 38px); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--terre); }
.section-dark h2 em, .bande h2 em { color: var(--or); }
p { margin: 0 0 16px; }

.etiq {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: .24em; font-size: 11.5px; font-weight: 500; color: var(--terre);
}
.etiq::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.etiq-clair { color: var(--or); }
.center { text-align: center; }
.section-tete { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.intro { color: var(--faded); font-size: 17px; margin: 18px auto 0; }
.section-dark .intro { color: rgba(245, 239, 228, .68); }
.mini-note { color: var(--faded); font-size: .82em; font-style: italic; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--terre); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--terre); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: .02em; line-height: 1.2;
  box-shadow: 0 10px 24px rgba(180, 96, 61, .25);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--terre-fonce); transform: translateY(-2px); }
.btn-mini { padding: 10px 20px; font-size: 14px; box-shadow: none; }
.btn-clair { background: var(--creme); color: var(--encre); box-shadow: none; }
.btn-clair:hover { background: #fff; }
.btn-ico {
  display: inline-grid; place-items: center; height: 28px; padding: 0 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); font-size: 12px; letter-spacing: .06em; font-weight: 500;
}
.btn:has(.btn-ico) { padding-left: 16px; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--terre-fonce); text-decoration: none; }
.lien-fleche::after { content: '→'; transition: transform .2s ease; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--entete);
  display: flex; align-items: center; padding: 0 clamp(20px, 4vw, 48px);
  color: var(--creme);
  background: linear-gradient(180deg, rgba(28, 25, 22, .7), rgba(28, 25, 22, .3) 65%, rgba(28, 25, 22, 0));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), background .35s ease, color .35s ease, box-shadow .35s ease;
}
.entete.solide, .entete.solide .btn-mini { text-shadow: none; }
.entete .btn-mini { text-shadow: none; }
.entete-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.entete.solide { background: rgba(245, 239, 228, .92); color: var(--texte); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ligne); }
.entete.menu-ouvert { background: transparent; color: var(--creme); box-shadow: none; backdrop-filter: none; }
body.immersif .entete { transform: translateY(-110%); }

.logo { font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 600; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.logo em { font-style: italic; font-weight: 400; }

.nav-bureau { display: flex; gap: 30px; }
.nav-bureau a { position: relative; text-decoration: none; font-size: 14.5px; letter-spacing: .03em; padding: 6px 0; opacity: .92; }
.nav-bureau a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .25s ease; }
.nav-bureau a:hover::after { right: 0; }

.entete-actions { display: flex; align-items: center; gap: 18px; }
.entete-tel { text-decoration: none; font-size: 14px; letter-spacing: .04em; opacity: .9; }
.entete .btn-mini { background: var(--creme); color: var(--encre); }
.entete.solide .btn-mini { background: var(--terre); color: #fff; }
.entete.menu-ouvert .btn-mini { display: none; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px; background: none; border: 0; cursor: pointer;
}
.burger span { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* Menu mobile plein écran */
.menu-mobile {
  position: fixed; inset: 0; z-index: 45; background: var(--encre); color: var(--creme);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--entete) + 24px) clamp(24px, 6vw, 48px) 36px;
  opacity: 0; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile.ouvert { opacity: 1; transform: none; }
.menu-mobile nav { display: flex; flex-direction: column; gap: 4px; }
.menu-mobile nav a {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none; line-height: 1.25;
  font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 8.5vw, 48px); font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid var(--ligne-clair);
}
.menu-mobile nav a small { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--or); }
.menu-mobile-bas { display: grid; gap: 12px; font-size: 15px; }
.menu-mobile-bas a { text-decoration: none; }
.menu-mobile-bas .btn { justify-content: center; margin-top: 6px; }

/* ---------- Hero : la photo de la maison, puis la visite 360° ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--encre); color: var(--creme); overflow: hidden; isolation: isolate; }
.hero-tour { position: absolute; inset: 0; }
.hero-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--encre); }

/* La photo recouvre la visite tant qu'on n'a pas cliqué. */
.hero-photo-cadre { position: absolute; inset: 0; z-index: 1; overflow: hidden; transition: opacity 1.6s ease; }
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; transform-origin: 52% 42%;
  filter: saturate(.9) brightness(.94);   /* arrivée plus douce, le texte prend le dessus */
  animation: respire 34s ease-in-out infinite alternate;
  transition: transform 2.8s cubic-bezier(.2, .7, .2, 1), filter 1.2s ease;
}
.hero.immersif .hero-photo { filter: none; }
@keyframes respire { from { scale: 1; } to { scale: 1.08; } }
.hero.transition .hero-photo, .hero.immersif .hero-photo { transform: scale(1.14); }
.hero.immersif .hero-photo-cadre { opacity: 0; pointer-events: none; }

.hero-voile {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  /* Voile plus profond en haut (menu) et en bas (texte), plus léger au milieu pour laisser respirer la photo. */
  background: linear-gradient(180deg, rgba(28, 25, 22, .72) 0%, rgba(28, 25, 22, .34) 22%, rgba(28, 25, 22, .24) 44%, rgba(28, 25, 22, .58) 68%, rgba(28, 25, 22, .94) 100%);
  transition: opacity .9s ease;
}
/* Halo sombre et diffus derrière le bloc de texte, pour une lecture nette sans cadre visible. */
.hero-texte::before {
  content: ''; position: absolute; inset: -14% -22% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 58%, rgba(28, 25, 22, .62) 0%, rgba(28, 25, 22, .42) 36%, rgba(28, 25, 22, 0) 68%);
}
.hero-voile::after { content: ''; position: absolute; inset: 0; background: rgba(28, 25, 22, .45); opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.hero.transition .hero-voile::after { opacity: 1; }
.hero.immersif .hero-voile { opacity: 0; pointer-events: none; }

.hero-texte { position: relative; z-index: 1; width: min(940px, 100% - 2 * clamp(20px, 5vw, 72px)); margin: 0 auto; text-align: center; }
.hero .kicker { text-transform: uppercase; letter-spacing: .26em; font-size: 13px; font-weight: 500; color: #e3c68f; margin: 0 0 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 18px rgba(0, 0, 0, .5); }
.hero h1 { font-size: clamp(42px, 7.2vw, 108px); line-height: .98; text-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 10px 44px rgba(0, 0, 0, .55); }
.hero h1 em { color: var(--creme); }
.hero-sous { font-size: clamp(17px, 1.7vw, 21px); font-weight: 400; max-width: 600px; margin: 22px auto 0; color: #f7f2e8; text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 20px rgba(0, 0, 0, .5); }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 30px; }

/* Le grand bouton de la visite */
.btn-visite {
  display: inline-flex; align-items: center; gap: 18px; padding: 12px 38px 12px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--terre); color: #fff; text-align: left;
  box-shadow: 0 20px 50px rgba(180, 96, 61, .45);
  animation: halo 2.8s ease-out infinite;
  transition: transform .25s ease, background .25s ease, opacity .3s ease;
}
.btn-visite:hover { transform: translateY(-3px) scale(1.02); background: var(--terre-fonce); }
.btn-visite-ico {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .4);
  font-weight: 500; font-size: 15px; letter-spacing: .06em;
}
.btn-visite-texte { display: flex; flex-direction: column; line-height: 1.1; }
.btn-visite-texte strong { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; letter-spacing: -.005em; }
.btn-visite-texte small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 6px; font-weight: 400; }
@keyframes halo {
  0% { box-shadow: 0 20px 50px rgba(180, 96, 61, .45), 0 0 0 0 rgba(245, 239, 228, .5); }
  100% { box-shadow: 0 20px 50px rgba(180, 96, 61, .45), 0 0 0 26px rgba(245, 239, 228, 0); }
}
.hero.transition .btn-visite { pointer-events: none; opacity: .7; animation: none; }
.hero-lien {
  color: rgba(245, 239, 228, .92); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid rgba(245, 239, 228, .45); padding-bottom: 3px; transition: color .2s ease, border-color .2s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.hero-lien:hover { color: #fff; border-color: #fff; }

.hero-bas {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(28px, 5vh, 56px); padding: 18px clamp(20px, 5vw, 72px) max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ligne-clair); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 239, 228, .7);
}
.badge-live { display: inline-flex; align-items: center; gap: 10px; }
.badge-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--or); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 165, 106, .55); } 100% { box-shadow: 0 0 0 10px rgba(201, 165, 106, 0); } }
.hero-scroll { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.hero-scroll span { display: inline-block; animation: flotte 2s ease-in-out infinite; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Indicateur de chargement de la visite */
.hero-chargement {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 999px;
  background: rgba(28, 25, 22, .82); backdrop-filter: blur(10px); border: 1px solid var(--ligne-clair);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.hero-chargement[hidden] { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(245, 239, 228, .25); border-top-color: var(--or); animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Contrôles du mode immersif */
.hero-controles {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 6px;
  background: rgba(28, 25, 22, .78); backdrop-filter: blur(12px); border: 1px solid var(--ligne-clair); border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  animation: monte .5s ease-out;
}
.hero-controles[hidden] { display: none; }
@keyframes monte { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.scenes-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.scenes-chips::-webkit-scrollbar { display: none; }
.controles-sep { width: 1px; height: 24px; background: var(--ligne-clair); margin: 0 4px; flex: none; }

.chip, .ctrl {
  flex: none; white-space: nowrap; cursor: pointer;
  font-size: 13.5px; font-weight: 500; letter-spacing: .03em; padding: 9px 16px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--creme);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover, .ctrl:hover { background: rgba(245, 239, 228, .1); }
.chip.actif { background: var(--terre); border-color: var(--terre); color: #fff; }
.ctrl { border-color: rgba(245, 239, 228, .22); }
.ctrl-fermer { background: var(--creme); color: var(--encre); border-color: var(--creme); }
.ctrl-fermer:hover { background: #fff; }

/* ---------- Chiffres clés ---------- */
.bandeau { background: var(--creme); border-bottom: 1px solid var(--ligne); }
.stats { list-style: none; margin: 0 auto; padding: 26px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border-left: 1px solid var(--ligne); }
.stats li:first-child { border-left: 0; }
.stats strong { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 500; line-height: 1; color: var(--encre); white-space: nowrap; }
.stats span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faded); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--creme-2); }
.section-dark { background: var(--encre); color: var(--creme); }
.deux-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.deux-cols-top { align-items: start; }
.deux-cols h2 { margin-bottom: 24px; }
.signature { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 26px; color: var(--terre); margin: 26px 0 0; }
.signature::before { content: '— '; }

.atouts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 15px; }
.atouts li::before { content: '✓'; color: var(--terre); font-weight: 500; margin-right: 10px; }

.collage { position: relative; padding: 0 0 64px 44px; }
.collage-grande { aspect-ratio: 4 / 5; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.collage-petite { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 6px solid var(--creme); box-shadow: var(--ombre); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-etiquette { position: absolute; top: 26px; right: -10px; background: var(--encre); color: var(--creme); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; border-radius: 8px; box-shadow: var(--ombre); }

/* ---------- Gîtes ---------- */
.gites-liste { display: flex; flex-direction: column; }
.gite { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--ligne); }
.gite:first-child { border-top: 0; padding-top: 0; }
.gite:last-child { padding-bottom: 0; }
.gite:nth-child(even) .gite-photos { order: 2; }
.gite-photos { display: grid; gap: 10px; }
.gite-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--creme); }
.gite-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gite-photo:hover img { transform: scale(1.04); }
.gite-photo-badge { position: absolute; right: 14px; bottom: 14px; font-size: 12px; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; background: rgba(245, 239, 228, .92); color: var(--encre); }
.gite-vignettes { display: flex; gap: 10px; }
.gite-vignettes a { position: relative; flex: 1; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--creme); }
.gite-vignettes img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gite-vignettes a:hover img { transform: scale(1.06); }
.gite-vignettes a.plus span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(28, 25, 22, .55); color: var(--creme); font-size: 20px; font-weight: 500; }
.num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 16px; letter-spacing: .3em; color: var(--terre); margin-bottom: 10px; }
.gite-meta { color: var(--olive); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 18px; }
.equip { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.equip li { font-size: 12.5px; letter-spacing: .03em; padding: 5px 11px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); }
.gite-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.gite-prix { margin: 16px 0 0; font-size: 14px; color: var(--faded); letter-spacing: .04em; }

/* ---------- Scènes 360° ---------- */
.scenes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.scene {
  position: relative; padding: 0; border: 0; overflow: hidden; cursor: pointer; text-align: left;
  aspect-ratio: 4 / 3; border-radius: 14px; background: var(--encre-2); color: var(--creme);
  transition: transform .3s ease, box-shadow .3s ease;
}
.scene img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 25, 22, 0) 45%, rgba(28, 25, 22, .85)); }
.scene:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(0, 0, 0, .45); }
.scene:hover img { transform: scale(1.07); }
.scene-nom { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; line-height: 1.1; }
.scene-360 { position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 11px; letter-spacing: .08em; font-weight: 500; padding: 4px 9px; border-radius: 999px; background: rgba(245, 239, 228, .92); color: var(--encre); }
.visite-note { margin: 28px 0 0; font-size: 14px; color: rgba(245, 239, 228, .6); }
.visite-note a { color: var(--creme); }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 250px); gap: 14px; }
.galerie .g-item:first-child { grid-column: span 2; grid-row: span 2; }
.galerie .g-item:nth-child(6), .galerie .g-item:nth-child(7) { grid-column: span 2; }
.g-item { display: block; border-radius: 14px; overflow: hidden; background: var(--creme-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.05); }

/* ---------- Alentours ---------- */
.bande { position: relative; min-height: 52vh; display: grid; place-items: center; text-align: center; color: var(--creme); background: url('images/visite-poster.jpg') center 35% / cover no-repeat; }
.bande::before { content: ''; position: absolute; inset: 0; background: rgba(28, 25, 22, .6); }
.bande .wrap { position: relative; padding: 80px 0; }
.bande .etiq { justify-content: center; }
.bande .etiq::before { display: none; }
.bande h2 { font-size: clamp(34px, 5vw, 66px); font-style: italic; font-weight: 400; }
.cartes-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.carte-info { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 32px 30px; }
.carte-ico { width: 42px; height: 42px; color: var(--terre); margin-bottom: 18px; }
.carte-info h3 { font-size: 28px; margin-bottom: 10px; }
.carte-info p { color: var(--faded); font-size: 15px; }
.distances { list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; }
.distances li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--ligne); }
.distances li span:last-child { color: var(--terre-fonce); font-weight: 500; letter-spacing: .04em; }

/* ---------- Bon à savoir ---------- */
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 0; }
.infos > div { padding: 24px 0; border-top: 1px solid var(--ligne); }
.infos dt { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; color: var(--encre); }
.infos dd { margin: 6px 0 0; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-liste { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.contact-liste li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ligne); }
.contact-cle { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faded); }
.contact-liste a { font-size: 17px; color: var(--terre-fonce); text-decoration: none; }
.contact-liste a:hover { text-decoration: underline; }

.carte-resa { background: var(--olive); color: #fff; border-radius: var(--rayon); padding: 36px; box-shadow: var(--ombre); }
.carte-resa h3 { margin-bottom: 20px; font-size: 30px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champs label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.champs .pleine { grid-column: 1 / -1; }
.champs input, .champs select, .champs textarea {
  font: inherit; font-size: 15px; font-weight: 300; text-transform: none; letter-spacing: 0;
  color: var(--texte); background: rgba(255, 255, 255, .94); border: 1px solid transparent; border-radius: 10px;
  padding: 11px 13px; width: 100%;
}
.champs textarea { resize: vertical; min-height: 84px; }
.champs input:focus, .champs select:focus, .champs textarea:focus { outline: none; border-color: var(--terre); box-shadow: 0 0 0 3px rgba(180, 96, 61, .25); }
.form-erreur { background: rgba(255, 255, 255, .16); border-radius: 8px; padding: 8px 12px; font-size: 14px; margin: 14px 0 0; }
.carte-resa .btn { margin-top: 20px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: var(--creme); padding: 72px 0 32px; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--ligne-clair); }
.pied-texte { margin-top: 14px; max-width: 360px; color: rgba(245, 239, 228, .7); font-size: 15px; }
.pied h4 { font-family: 'Jost', sans-serif; text-transform: uppercase; letter-spacing: .2em; font-size: 11.5px; color: var(--or); margin: 6px 0 16px; font-weight: 500; }
.pied-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.pied-liens a { text-decoration: none; color: rgba(245, 239, 228, .85); }
.pied-liens a:hover { color: #fff; text-decoration: underline; }
.pied-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(245, 239, 228, .5); }
.pied-bas a { color: rgba(245, 239, 228, .75); }

/* ---------- Visite 360° plein écran ---------- */
.modal-visite { position: fixed; inset: 0; z-index: 90; background: var(--encre); color: var(--creme); display: flex; flex-direction: column; }
.modal-visite[hidden] { display: none; }
.modal-barre { display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 clamp(12px, 2vw, 24px); border-bottom: 1px solid var(--ligne-clair); }
.modal-titre { font-family: 'Cormorant Garamond', serif; font-size: 22px; white-space: nowrap; }
.modal-titre em { font-style: italic; color: var(--or); }
.modal-scenes { flex: 1; }
.modal-actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
.modal-visite iframe { flex: 1; width: 100%; border: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 95; background: rgba(20, 18, 15, .94);
  display: flex; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { display: flex; justify-content: center; gap: 18px; color: rgba(245, 239, 228, .85); margin-top: 14px; font-size: 15px; letter-spacing: .03em; }
.lb-compteur { color: rgba(245, 239, 228, .5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 44px; line-height: 1; width: 56px; height: 56px; border-radius: 50%; opacity: .75;
  transition: opacity .15s ease, background .15s ease;
}
.lightbox button:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.lb-fermer { top: 14px; right: 14px; font-size: 36px; }
.lb-prec { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-suiv { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo, .hero-scroll span, .badge-live i, .btn-visite { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
  .nav-bureau { display: none; }
  .burger { display: flex; }
  .entete-tel { display: none; }
  .scenes { grid-template-columns: repeat(3, 1fr); }
  .scenes .scene:first-child { grid-column: span 3; aspect-ratio: 21 / 9; }
  .cartes-3 { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .infos { grid-template-columns: 1fr 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
  .hero { min-height: 600px; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .hero-sous { font-size: 16px; margin-top: 16px; }
  .hero-actions { margin-top: 24px; gap: 16px; }
  .btn-visite { width: 100%; padding: 10px 20px 10px 10px; gap: 14px; }
  .btn-visite-ico { width: 54px; height: 54px; font-size: 13px; }
  .btn-visite-texte strong { font-size: 24px; }
  .btn-visite-texte small { font-size: 11px; }
  .hero-bas { font-size: 11px; }
  .hero-chargement { bottom: 84px; font-size: 12px; }
  .hero-controles { flex-wrap: wrap; justify-content: center; border-radius: 22px; max-width: calc(100% - 16px); }
  .hero-controles .scenes-chips { width: 100%; justify-content: flex-start; }
  .controles-sep { display: none; }

  .stats { grid-template-columns: repeat(3, 1fr); padding: 20px 0; }
  .stats li { border-left: 0; }
  .stats strong { font-size: 28px; }
  .stats span { font-size: 11px; }

  .deux-cols { grid-template-columns: 1fr; gap: 40px; }
  .collage { padding: 0 0 48px 0; }
  .collage-petite { width: 52%; }
  .collage-etiquette { right: 8px; }
  .atouts { grid-template-columns: 1fr; }

  .gite { grid-template-columns: 1fr; gap: 24px; }
  .gite:nth-child(even) .gite-photos { order: 0; }
  .gite-vignettes { gap: 8px; }
  .gite-actions { gap: 16px; }
  .gite-actions .btn { width: 100%; justify-content: center; }

  .scenes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scenes .scene:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .scene-nom { font-size: 19px; }

  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 10px; }
  .galerie .g-item:first-child { grid-column: span 2; grid-row: span 1; }
  .galerie .g-item:nth-child(6), .galerie .g-item:nth-child(7) { grid-column: span 1; }

  .bande { min-height: 40vh; }
  .infos { grid-template-columns: 1fr; }
  .contact-liste li { grid-template-columns: 1fr; gap: 2px; }
  .champs { grid-template-columns: 1fr; }
  .carte-resa { padding: 28px 20px; }
  .carte-resa .btn { width: 100%; justify-content: center; }

  .pied-grille { grid-template-columns: 1fr; gap: 28px; }
  .pied-bas { flex-direction: column; }

  .modal-barre { height: 56px; gap: 10px; }
  .modal-titre { display: none; }
  .ctrl-texte { display: none; }
  .ctrl { padding: 9px 13px; }

  .lightbox { padding: 70px 8px 60px; }
  .lightbox button { width: 48px; height: 48px; font-size: 36px; }
  .lb-prec { left: 2px; } .lb-suiv { right: 2px; }
}
