/* ═══════════════════════════════════════════════════════════════
   À LA MAISON — Chalet en Savoie
   DA eight80bk : ivoire / chocolat, Fraunces + Inter.
   Effets : preloader, hero immersif, header transformable,
   menu overlay, split-text, montage reveal épinglé, marquees
   sensibles au scroll, scatter parallax, curseur custom,
   rideau d'images, bandeau CTA.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivoire: #FAF9F7;
  --pierre: #F0EFED;
  --greige: #D5D1C8;
  --taupe: #675845;
  --chocolat: #301911;
  --braise: #A65E2E;
  --texte: #301911;
  --texte-doux: rgba(48, 25, 17, 0.72);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--ivoire);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }
body.loupe-open { overflow: hidden; }

/* Grain cinéma, très discret */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }

::selection { background: var(--chocolat); color: var(--ivoire); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--pierre); }
::-webkit-scrollbar-thumb { background: var(--greige); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--taupe); }

:focus-visible {
  outline: 2px solid var(--braise);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--chocolat); color: var(--ivoire);
  padding: 0.6rem 1.2rem; z-index: 10001;
}
.skip-link:focus { left: 0; }

/* ─── Typo ─────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 420;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h1 em, h2 em, h3 em, .nav__logo em, .marquee em,
.preloader__logo em, .menu-overlay em {
  font-style: italic;
  font-weight: 340;
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin-bottom: clamp(1.2rem, 3vw, 2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* Dernier mot en grège (signature center-text eight80) */
.u-fade-word { color: var(--greige); }
.section--chocolat .u-fade-word { color: var(--taupe); }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--taupe);
}

/* ─── Split-text (mots masqués) ────────────────────── */

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split .wi {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.75s var(--ease-out-expo);
  transition-delay: calc(var(--wi, 0) * 0.028s);
}
.split.in-view .wi { transform: translateY(0); }

/* ─── Boutons ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.78em 1.7em;
  border-radius: 999px;
  border: 1px solid var(--chocolat);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth),
              border-color 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--chocolat); color: var(--ivoire); }
.btn--primary:hover { background: var(--taupe); border-color: var(--taupe); }

.btn--outline { background: transparent; color: var(--chocolat); }
.btn--outline:hover { background: var(--chocolat); color: var(--ivoire); }

.btn--pill-light {
  background: transparent;
  border-color: rgba(250, 249, 247, 0.6);
  color: var(--ivoire);
}
.btn--pill-light:hover { background: var(--ivoire); color: var(--chocolat); border-color: var(--ivoire); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(250, 249, 247, 0.5);
  color: var(--ivoire);
}
.btn--outline-light:hover { background: var(--ivoire); color: var(--chocolat); }

.btn--lg { padding: 0.95em 2.1em; font-size: 1rem; }

.btn--arrow svg {
  width: 1.05em; height: 1.05em;
  transition: transform 0.3s var(--ease-out-expo);
}
.btn--arrow:hover svg { transform: translateX(4px); }

/* ─── Preloader ────────────────────────────────────── */

.preloader {
  position: fixed; inset: 0;
  z-index: 10000;
  background: var(--chocolat);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.7s var(--ease-smooth), visibility 0.7s;
}
.preloader__logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--ivoire);
  opacity: 0;
  transform: translateY(20px);
  animation: cascade 0.9s var(--ease-out-expo) 0.1s forwards;
}
.preloader__line {
  width: 0;
  height: 1px;
  background: var(--greige);
  animation: growLine 0.9s var(--ease-out-expo) 0.35s forwards;
}
@keyframes growLine { to { width: clamp(80px, 12vw, 160px); } }
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── Curseur custom ───────────────────────────────── */

.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; }
  .cursor__dot, .cursor__ring {
    position: fixed; top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    translate: -50% -50%;
  }
  .cursor__dot {
    width: 6px; height: 6px;
    background: var(--braise);
  }
  .cursor__ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(166, 94, 46, 0.55);
    transition: width 0.28s var(--ease-smooth), height 0.28s var(--ease-smooth),
                border-color 0.28s, background 0.28s;
  }
  .cursor.is-hover .cursor__ring {
    width: 56px; height: 56px;
    background: rgba(166, 94, 46, 0.08);
    border-color: rgba(166, 94, 46, 0.9);
  }
}

/* ─── Navigation ───────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.nav__inner {
  max-width: none;
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 420;
  color: var(--ivoire);
  text-decoration: none;
  white-space: nowrap;
  justify-self: center;
  transition: color 0.4s;
}
.nav__actions { justify-self: end; display: flex; }

.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivoire);
  background: transparent;
  border: 1px solid rgba(250, 249, 247, 0.55);
  border-radius: 999px;
  padding: 0.65em 1.3em;
  cursor: pointer;
  justify-self: start;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav__menu-btn:hover { background: var(--ivoire); color: var(--chocolat); border-color: var(--ivoire); }
.nav__menu-lines { display: inline-flex; flex-direction: column; gap: 4px; }
.nav__menu-lines span {
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav__menu-btn[aria-expanded="true"] .nav__menu-lines span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] .nav__menu-lines span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }

/* Header une fois passé le hero : barre chocolat pleine */
.nav--solid {
  background: var(--chocolat);
  box-shadow: 0 1px 0 rgba(250, 249, 247, 0.08);
}

/* ─── Menu overlay plein écran ─────────────────────── */

.menu-overlay {
  position: fixed; inset: 0;
  z-index: 990;
  background: var(--chocolat);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) 3rem;
  gap: 2.5rem;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay nav {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.menu-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.15;
  color: var(--ivoire);
  text-decoration: none;
  opacity: 0;
  transform: translateY(36px);
  animation: cascade 0.8s var(--ease-out-expo) forwards;
  animation-delay: calc(0.08s + var(--i) * 0.07s);
  transition: color 0.25s;
}
.menu-overlay a:hover { color: var(--greige); }
.menu-overlay__foot {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: cascade 0.8s var(--ease-out-expo) forwards;
  animation-delay: calc(0.08s + var(--i) * 0.07s);
}
.menu-overlay__foot .label { color: var(--greige); }

/* ─── Hero immersif ────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(48,25,17,0.42) 0%, rgba(48,25,17,0.12) 40%, rgba(48,25,17,0.5) 100%);
}
.hero__wordmark {
  position: relative;
  z-index: 2;
  color: var(--ivoire);
  text-align: center;
  font-size: clamp(4.2rem, 15vw, 12.5rem);
  line-height: 0.92;
  font-weight: 420;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}
.hero__wm-line {
  display: block;
  overflow: hidden;
}
.hero__wm-line--italic { font-style: italic; font-weight: 340; }
/* révélation par masque, pilotée après preloader */
.hero__wm-line::after { content: none; }
.hero__wordmark .wm-inner {
  display: block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease-out-expo);
}
body.ready .hero__wordmark .wm-inner { transform: translateY(0); }
.hero__wordmark .wm-inner--2 { transition-delay: 0.12s; }

.hero__corner {
  position: absolute;
  bottom: 1.4rem;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.85);
  opacity: 0;
  animation: cascade 1s var(--ease-out-expo) 1.5s forwards;
}
.hero__corner--bl { left: var(--gutter); }
/* centré via left/right + text-align : l'animation cascade termine sur
   transform none, un translateX(-50%) serait donc perdu à la fin */
.hero__corner--bc { left: 0; right: 0; text-align: center; }
.hero__corner--br { right: var(--gutter); }

.hero__scroll {
  position: absolute;
  bottom: 4.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 56px;
  background: rgba(250, 249, 247, 0.28);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}
.hero__scroll span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%; height: 40%;
  background: var(--ivoire);
  animation: scrollHint 1.8s var(--ease-smooth) infinite;
}
@keyframes scrollHint {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ─── Center text ──────────────────────────────────── */

.center-text {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.center-text__title {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  margin-bottom: 1.6rem;
}
.center-text__sub {
  color: var(--texte-doux);
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.center-text__line {
  display: block;
  width: 1px;
  height: 0;
  margin-top: 2.6rem;
  background: var(--greige);
  position: relative;
  transition: height 1.1s var(--ease-out-expo);
}
.center-text__line::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--taupe);
  opacity: 0;
  transition: opacity 0.4s ease 0.8s;
}
.center-text__line.in-view { height: clamp(90px, 14vw, 150px); }
.center-text__line.in-view::after { opacity: 1; }

/* ─── Montage reveal (pièce maîtresse) ─────────────── */

.montage { height: 340vh; position: relative; }
.montage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.montage__canvas {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  padding: clamp(0.9rem, 2vw, 1.8rem);
  align-items: center;
}
.montage__side {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  will-change: transform;
  position: relative;
  z-index: 2;
}
/* le centre est hors flux (absolute) : sans placement explicite,
   la colonne droite serait auto-placée au milieu */
.montage__side--left { grid-column: 1; }
.montage__side--right { grid-column: 3; }
.montage__side figure {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.montage__side img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.montage__center {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transform: scale(0.42);
  will-change: transform;
}
.montage__center > img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.montage__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: var(--gutter);
  background: linear-gradient(180deg, rgba(48,25,17,0.25), rgba(48,25,17,0.55));
  color: var(--ivoire);
  opacity: 0;
  will-change: opacity, transform;
}
.montage__overlay .label { color: var(--greige); }
.montage__overlay h2 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  margin: 0;
}
.montage__desc {
  max-width: 34em;
  color: rgba(250, 249, 247, 0.88);
}

/* ─── Marquee ──────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--greige);
  border-bottom: 1px solid var(--greige);
  padding: clamp(0.9rem, 2vw, 1.4rem) 0;
  margin: clamp(3.5rem, 8vw, 6.5rem) 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(2rem, 5vw, 4rem);
  padding-right: clamp(2rem, 5vw, 4rem);
  will-change: transform;
}
.marquee span, .marquee em {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  color: var(--chocolat);
}
.marquee em { color: var(--taupe); }

.marquee--dark {
  background: var(--chocolat);
  border-color: var(--chocolat);
  margin-bottom: 0;
}
.marquee--dark span { color: var(--ivoire); }
.marquee--dark em { color: var(--greige); }

/* Fallback CSS si JS coupé */
.no-js .marquee__track { animation: marqueeCss 36s linear infinite; }
@keyframes marqueeCss { to { transform: translateX(-50%); } }

/* ─── Sections ─────────────────────────────────────── */

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section--pierre { background: var(--pierre); }
.section--chocolat {
  background: var(--chocolat);
  color: var(--ivoire);
}
.section--chocolat .label { color: var(--greige); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

/* ─── Le chalet ────────────────────────────────────── */

.chalet__text > p:not(.label) {
  color: var(--texte-doux);
  max-width: 32em;
}
.chalet__features {
  list-style: none;
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
}
.chalet__features li {
  display: flex; gap: 0.9rem; align-items: flex-start;
}
.chalet__features svg {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--braise);
  margin-top: 2px;
}
.chalet__features strong { display: block; font-weight: 600; font-size: 0.98rem; }
.chalet__features span { font-size: 0.88rem; color: var(--texte-doux); }

.chalet__visual { position: relative; }
.chalet__figure { aspect-ratio: 4 / 5; }
.chalet__figure img { width: 100%; height: 100%; object-fit: cover; }

/* Vignette d'archive : la photo de la construction, posée comme un tirage */
.chalet__archive {
  position: absolute;
  bottom: clamp(-1.5rem, -2vw, -1rem);
  left: clamp(-2.5rem, -4vw, -1.5rem);
  width: clamp(150px, 22vw, 230px);
  background: var(--ivoire);
  padding: 0.5rem 0.5rem 0.7rem;
  box-shadow: 0 14px 40px rgba(48, 25, 17, 0.28);
  transform: rotate(-3deg);
}
.chalet__archive.reveal { transform: rotate(-3deg) translateY(32px); }
.chalet__archive.reveal.in-view { transform: rotate(-3deg); }
.chalet__archive img { width: 100%; }
.chalet__archive figcaption {
  padding-top: 0.5rem;
  font-size: 0.6rem;
  text-align: center;
}
@media (max-width: 900px) {
  .chalet__archive { left: auto; right: 0.5rem; }
}

/* ─── Les espaces (scatter parallax) ───────────────── */

.espaces__intro {
  color: var(--texte-doux);
  max-width: 30em;
}
.espaces__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.espace { margin: 0; will-change: transform; }
.espace img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.espace:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.espace figcaption {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
}
.espace__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--taupe);
  font-size: 1.1rem;
  grid-row: span 2;
}
.espace figcaption strong { font-weight: 600; }
.espace figcaption > span:not(.espace__num) {
  font-size: 0.9rem;
  color: var(--texte-doux);
}

/* ─── Les petits plus ──────────────────────────────── */

.moments__list {
  list-style: none;
  margin-top: 2.2rem;
  max-width: 860px;
}
.moments__list li {
  display: flex; gap: 1.6rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--greige);
}
.moments__list li:first-child { border-top: 1px solid var(--greige); }
.moments__list li > span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--braise);
  font-size: 1.15rem;
}
.moments__list strong { font-weight: 600; }
.moments__list p { font-size: 0.92rem; color: var(--texte-doux); }

/* ─── Le vallon ────────────────────────────────────── */

.vallon__intro {
  max-width: 36em;
  color: var(--greige);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.vallon__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  margin-top: clamp(2.2rem, 5vw, 3.8rem);
}
.vallon__grid figure { margin: 0; }
.vallon__grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.vallon__fig--tall { grid-row: span 2; }
.vallon__fig--tall img { aspect-ratio: auto; height: 100%; }
.vallon__grid figcaption {
  padding-top: 0.7rem;
  color: var(--greige);
}
.vallon__saisons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(250, 249, 247, 0.18);
}
.vallon__saisons h3 { margin-bottom: 0.7rem; }
.vallon__saisons p { color: var(--greige); font-size: 0.97rem; }

/* ─── Activités : carrousel de cartes ──────────────── */

.activites__intro {
  max-width: 52ch;
  color: var(--texte-doux);
  margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
}

.carrousel { position: relative; }

.carrousel__piste {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* les ombres des cartes ne doivent pas être rognées */
  padding: 0.5rem 0 1.6rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carrousel__piste::-webkit-scrollbar { display: none; }
.carrousel__piste:focus-visible { outline-offset: 6px; }

.carte {
  flex: 0 0 clamp(258px, 80vw, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--ivoire);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(48, 25, 17, 0.09);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.carte:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(48, 25, 17, 0.16);
}

.carte__visuel {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.carte__visuel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}
.carte:hover .carte__visuel img { transform: scale(1.05); }

.carte__corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
}
.carte__sur { color: var(--braise); margin-bottom: 0.7rem; }
.carte__corps h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}
.carte__corps p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--texte-doux);
}
.carte__meta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.76rem !important;
  letter-spacing: 0.05em;
  color: var(--taupe) !important;
  border-top: 1px solid var(--greige);
}

/* Barre de navigation du carrousel */
.carrousel__barre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}
.carrousel__nav {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--greige);
  border-radius: 50%;
  background: transparent;
  color: var(--chocolat);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.carrousel__nav:hover:not(:disabled) {
  background: var(--chocolat);
  color: var(--ivoire);
  border-color: var(--chocolat);
}
.carrousel__nav:disabled { opacity: 0.28; cursor: default; }
.carrousel__nav svg { width: 19px; height: 19px; }

.carrousel__points { display: flex; align-items: center; gap: 8px; }
.carrousel__point {
  width: 7px; height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--greige);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo);
}
.carrousel__point.is-active { background: var(--chocolat); transform: scale(1.45); }

@media (max-width: 560px) {
  .carrousel__points { display: none; }
  .carrousel__barre { justify-content: flex-start; }
}

/* ─── Livre d'or : le vrai livre ───────────────────── */

.livredor__intro {
  max-width: 44ch;
  color: var(--texte-doux);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.livre {
  --papier: #FBF7EE;
  --papier-ombre: #EDE5D6;
  --encre: #2C3E63;
  /* interligne du papier réglé : le texte manuscrit s'y cale */
  --ligne: 2.05rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Scène : c'est elle qui porte la perspective */
.livre__stage {
  perspective: 2400px;
  perspective-origin: 50% 42%;
}

.livre__book {
  position: relative;
  width: 100%;
  aspect-ratio: 1.46 / 1;
  transform-style: preserve-3d;
  /* la reliure : ombre portée du volume posé sur la table */
  filter: drop-shadow(0 26px 44px rgba(48, 25, 17, 0.24));
}
/* tranche du volume : un liseré sombre sous la pile de pages */
.livre__book::after {
  content: '';
  position: absolute;
  left: 1.5%; right: 1.5%;
  bottom: -0.9%;
  height: 2.4%;
  background: linear-gradient(180deg, var(--papier-ombre), #B9AE99);
  border-radius: 0 0 5px 5px;
  z-index: 0;
}

/* ── Une page ─────────────────────────────────────── */
.livre__page,
.livre__face {
  background: var(--papier);
  background-image:
    linear-gradient(180deg, rgba(48, 25, 17, 0.05), rgba(48, 25, 17, 0) 12%),
    repeating-linear-gradient(180deg, rgba(48, 25, 17, 0.055) 0 1px, transparent 1px var(--ligne));
  background-position: 0 0, 0 calc(var(--ligne) * 1.66);
}

.livre__page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
}
.livre__page--gauche { left: 0; border-radius: 4px 0 0 4px; }
.livre__page--droite { right: 0; border-radius: 0 4px 4px 0; }

/* ombre de la pliure, côté reliure */
.livre__page--gauche::after,
.livre__page--droite::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 13%;
  pointer-events: none;
}
.livre__page--gauche::after {
  right: 0;
  background: linear-gradient(90deg, rgba(48, 25, 17, 0) 0%, rgba(48, 25, 17, 0.17) 100%);
}
.livre__page--droite::after {
  left: 0;
  background: linear-gradient(270deg, rgba(48, 25, 17, 0) 0%, rgba(48, 25, 17, 0.17) 100%);
}

/* ── Les feuillets qui tournent ───────────────────── */
.livre__feuillet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.32, 0.06, 0.2, 1);
  cursor: pointer;
}
.livre__feuillet.is-turned { transform: rotateY(-180deg); }

.livre__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3.4vw, 3.2rem);
  padding-bottom: clamp(2.4rem, 4vw, 3.6rem);
}
.livre__face--recto {
  border-radius: 0 4px 4px 0;
  box-shadow: inset 14px 0 22px -16px rgba(48, 25, 17, 0.45);
}
.livre__face--verso {
  transform: rotateY(180deg);
  border-radius: 4px 0 0 4px;
  box-shadow: inset -14px 0 22px -16px rgba(48, 25, 17, 0.45);
}

/* ── Le texte manuscrit ───────────────────────────── */
.livre__mot { max-width: 34ch; }
.livre__mot--centre { text-align: center; margin: 0 auto; }

.livre__date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 1.1rem;
}
.livre__texte {
  font-family: "Caveat", var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: var(--ligne);
  color: var(--encre);
}
.livre__texte--grand { font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
.livre__texte--petit { font-size: clamp(1rem, 1.75vw, 1.35rem); }
.livre__signature {
  font-family: "Caveat", var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  color: var(--encre);
  opacity: 0.82;
  margin-top: 1.6rem;
  text-align: right;
}
.livre__mot--centre .livre__signature { text-align: center; }

.livre__folio {
  position: absolute;
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(48, 25, 17, 0.38);
}

/* ── Pages de garde ───────────────────────────────── */
.livre__garde {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: clamp(1.4rem, 3.4vw, 3.2rem);
}
.livre__garde-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.livre__garde-titre {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  color: var(--texte);
}
.livre__garde-titre em { font-style: italic; font-weight: 340; }
.livre__garde-trait { width: 46px; height: 1px; background: var(--taupe); opacity: 0.5; }
.livre__garde-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--texte-doux);
}
.livre__garde-fin {
  font-family: "Caveat", var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.35;
  color: var(--encre);
}
.livre__garde-fin em { font-style: normal; color: var(--braise); }

/* ── Barre de navigation ──────────────────────────── */
.livre__barre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}
.livre__nav {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--greige);
  border-radius: 50%;
  background: transparent;
  color: var(--chocolat);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.livre__nav:hover:not(:disabled) { background: var(--chocolat); color: var(--ivoire); border-color: var(--chocolat); }
.livre__nav:disabled { opacity: 0.28; cursor: default; }
.livre__nav svg { width: 19px; height: 19px; }
.livre__compteur {
  min-width: 13ch;
  text-align: center;
  color: var(--texte-doux);
}
.livre__aide {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--texte-doux);
}

/* ── Mobile : la même double page, en plus haut ─────
   Le livre garde ses deux pages et sa reliure centrale. Il prend
   toute la largeur de l'écran et s'allonge en hauteur : les
   colonnes sont étroites, donc l'écriture est plus fine et
   l'interligne plus serré pour que chaque mot tienne. */
@media (max-width: 760px) {
  .livre { --ligne: 1.8rem; }

  /* le livre sort des marges de la section pour gagner en largeur */
  .livre__stage {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    perspective: 1400px;
  }
  .livre__book {
    /* colonnes étroites : la hauteur est pilotée directement,
       un ratio fixe donnerait un livre démesuré vers 700 px */
    aspect-ratio: auto;
    height: clamp(470px, 150vw, 600px);
    border-radius: 0;
  }
  .livre__page--gauche,
  .livre__page--droite,
  .livre__face--recto,
  .livre__face--verso { border-radius: 0; }

  .livre__face {
    padding: 1.1rem 0.85rem 2.2rem;
    justify-content: flex-start;
    padding-top: 1.6rem;
  }
  .livre__face--recto { box-shadow: inset 10px 0 16px -12px rgba(48, 25, 17, 0.45); }
  .livre__face--verso { box-shadow: inset -10px 0 16px -12px rgba(48, 25, 17, 0.45); }

  .livre__mot { max-width: none; }
  .livre__date { font-size: 0.6rem; letter-spacing: 0.1em; margin-bottom: 0.7rem; }
  .livre__texte { font-size: 1.18rem; }
  .livre__texte--grand { font-size: 1.32rem; }
  .livre__texte--petit { font-size: 1.12rem; }
  .livre__signature { font-size: 1.05rem; margin-top: 1rem; }
  .livre__folio { bottom: 0.7rem; font-size: 0.6rem; }

  .livre__garde { padding: 1.2rem 0.9rem; gap: 0.7rem; }
  .livre__garde-label { font-size: 0.58rem; letter-spacing: 0.16em; }
  .livre__garde-titre { font-size: 1.4rem; }
  .livre__garde-sub { font-size: 0.7rem; }
  .livre__garde-fin { font-size: 1.15rem; }

  .livre__aide { font-size: 0.75rem; }
}

/* Très petits écrans : on allonge encore la page */
@media (max-width: 380px) {
  .livre { --ligne: 1.66rem; }
  .livre__book { aspect-ratio: auto; height: clamp(668px, 196vw, 680px); }
  .livre__texte { font-size: 1.1rem; }
  .livre__texte--grand { font-size: 1.22rem; }
  .livre__texte--petit { font-size: 1.05rem; }
}

/* ─── Bandeau CTA ──────────────────────────────────── */

.cta-banner {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.cta-banner__bg {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.cta-banner__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-banner__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(48, 25, 17, 0.5);
}
.cta-banner__content {
  position: relative;
  z-index: 2;
  color: var(--ivoire);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
}
.cta-banner__content .label { color: var(--greige); }
.cta-banner__content h2 {
  max-width: 15em;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  margin: 0;
}

/* ─── Infos pratiques ──────────────────────────────── */

.infos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.infos__grid h3 { margin-bottom: 1rem; }
.infos__grid ul { list-style: none; }
.infos__grid li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--greige);
  font-size: 0.95rem;
}
.infos__resa {
  font-size: 0.95rem;
  color: var(--texte-doux);
  margin-bottom: 1.3rem;
}
.infos__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ─── Sur la carte ─────────────────────────────────── */

.situation__intro {
  max-width: 46ch;
  color: var(--texte-doux);
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.situation__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
.situation__plan { margin: 0; }
.situation__cadre {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--greige);
  box-shadow: 0 18px 44px rgba(48, 25, 17, 0.12);
}
.situation__cadre iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  /* le plan est ramené dans la palette ivoire / chocolat du site */
  filter: saturate(0.5) sepia(0.16) contrast(1.03) brightness(1.02);
}
.situation__plan figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-top: 0.9rem;
}
.situation__plan figcaption a {
  color: var(--braise);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.25s var(--ease-smooth);
}
.situation__plan figcaption a:hover { opacity: 0.65; }

.situation__reperes ul { list-style: none; }
.situation__reperes li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--greige);
  font-size: 0.95rem;
}
.situation__reperes li em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--taupe);
  white-space: nowrap;
}
.situation__note {
  font-size: 0.85rem;
  color: var(--texte-doux);
  margin: 1.1rem 0 1.4rem;
}

@media (max-width: 900px) {
  .situation__grid { grid-template-columns: 1fr; }
  .situation__cadre { aspect-ratio: 4 / 3; }
}

/* ─── Effet loupe : survol des images ──────────────── */

.zoomable {
  position: relative;
  cursor: zoom-in;
}
/* pastille loupe, révélée au survol — c'est un vrai bouton */
.zoomable__loupe {
  position: absolute;
  right: 0.9rem; bottom: 0.9rem;
  z-index: 2;
  width: 42px; height: 42px;
  padding: 0;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 249, 247, 0.92);
  color: var(--chocolat);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(48, 25, 17, 0.18);
  cursor: zoom-in;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.3s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.zoomable__loupe svg { width: 19px; height: 19px; }
.zoomable:hover .zoomable__loupe,
.zoomable__loupe:focus-visible {
  opacity: 1;
  transform: none;
}
/* la légende reste du texte, pas une zone à grossir */
.zoomable figcaption { cursor: default; }
/* Léger appel d'air sur l'image. Le second sélecteur passe devant
   `.img-reveal.in-view img`, qui remet sinon l'échelle à 1. */
.zoomable:hover img,
.img-reveal.in-view.zoomable:hover img {
  transform: scale(1.045);
  transition-duration: 0.7s;
}

/* ─── Visionneuse ──────────────────────────────────── */

.loupe {
  position: fixed; inset: 0;
  z-index: 2500;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(3.2rem, 7vw, 4.5rem) clamp(0.8rem, 3vw, 2.5rem) clamp(2.6rem, 5vw, 3.4rem);
}
.loupe[hidden] { display: none; }
.loupe__fond {
  position: absolute; inset: 0;
  background: rgba(30, 15, 10, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.35s var(--ease-smooth);
}

.loupe__fermer {
  position: absolute; top: 1rem; right: 1rem;
  z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(250, 249, 247, 0.35);
  border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
  color: var(--ivoire);
  cursor: pointer;
  transition: background 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth),
              border-color 0.25s var(--ease-smooth);
}
.loupe__fermer:hover { background: var(--ivoire); color: var(--chocolat); border-color: var(--ivoire); }

.loupe__nav {
  position: relative;
  z-index: 3;
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(250, 249, 247, 0.32);
  border-radius: 50%;
  color: var(--ivoire);
  cursor: pointer;
  transition: background 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth),
              border-color 0.25s var(--ease-smooth), opacity 0.25s;
}
.loupe__nav:hover:not(:disabled) { background: var(--ivoire); color: var(--chocolat); border-color: var(--ivoire); }
.loupe__nav:disabled { opacity: 0.22; cursor: default; }
.loupe__nav svg { width: 20px; height: 20px; }

.loupe__scene {
  position: relative;
  z-index: 2;
  margin: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}
.loupe__cadre {
  position: relative;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.loupe__cadre img {
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  max-height: calc(100dvh - 12rem);
  transform-origin: center;
  transition: transform 0.45s var(--ease-out-expo);
}
/* la loupe proprement dite : l'image grossit sous le pointeur */
.loupe__cadre.is-loupe { cursor: zoom-out; }
.loupe__cadre.is-loupe img { transform: scale(var(--loupe-zoom, 2.1)); }

/* Entrée à l'ouverture et à chaque changement d'image.
   Portée par le cadre, pour ne pas entrer en conflit avec le
   grossissement, qui vit sur la transformation de l'image. */
.loupe__cadre.is-entrant {
  animation: loupeIn 0.6s var(--ease-out-expo);
}
@keyframes loupeIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

.loupe__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 1.2rem;
  max-width: 62ch;
  text-align: center;
  color: var(--greige);
  font-size: 0.92rem;
}
.loupe__compteur { color: rgba(213, 209, 200, 0.7); }

.loupe__aide {
  position: absolute;
  left: 0; right: 0; bottom: 0.9rem;
  z-index: 2;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(213, 209, 200, 0.5);
}

@media (max-width: 760px) {
  .loupe {
    grid-template-columns: 1fr;
    padding: 3.6rem 0.8rem 4.4rem;
  }
  .loupe__nav {
    position: absolute;
    bottom: 1.9rem;
    width: 42px; height: 42px;
  }
  .loupe__nav--prev { left: calc(50% - 3.4rem); }
  .loupe__nav--next { right: calc(50% - 3.4rem); }
  .loupe__aide { display: none; }
  .zoomable__loupe { width: 36px; height: 36px; right: 0.6rem; bottom: 0.6rem; }
}

/* ─── Footer ───────────────────────────────────────── */

.footer {
  background: var(--chocolat);
  color: var(--greige);
  font-size: 0.85rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.footer a {
  color: var(--greige);
  text-decoration: none;
  margin-left: 1.4rem;
}
.footer a:hover { color: var(--ivoire); }
.footer nav a:first-child { margin-left: 0; }

/* ─── Overlay téléphone ────────────────────────────── */

.phone-overlay {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.phone-overlay[hidden] { display: none; }
.phone-overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(48, 25, 17, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease-smooth);
}
.phone-overlay__card {
  position: relative;
  background: var(--ivoire);
  max-width: 880px; width: 100%;
  max-height: calc(100vh - 3rem);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  animation: springIn 0.55s var(--ease-out-expo);
}
.phone-overlay__close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  z-index: 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--ivoire);
  border: 1px solid var(--greige);
  border-radius: 50%;
  font-size: 1.45rem; line-height: 1;
  color: var(--taupe);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.phone-overlay__close:hover { background: var(--chocolat); color: var(--ivoire); }
.phone-overlay__media {
  position: relative;
  margin: 0;
  min-height: 100%;
}
.phone-overlay__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone-overlay__media figcaption {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  color: var(--ivoire);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.phone-overlay__body {
  padding: clamp(1.8rem, 4.5vw, 3rem);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  overflow-y: auto;
}
/* entrées en cascade des éléments du panneau */
.phone-overlay__body > * {
  opacity: 0;
  transform: translateY(16px);
  animation: cascade 0.6s var(--ease-out-expo) forwards;
  animation-delay: calc(0.18s + var(--i, 0) * 0.06s);
}
.phone-overlay__title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.12;
}
.phone-overlay__hint {
  font-size: 0.92rem;
  color: var(--texte-doux);
}
.phone-overlay__number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0.4rem 0 0.5rem;
  display: flex; gap: 0.12em;
  /* les chiffres portent leur propre cascade */
  opacity: 1; transform: none; animation: none;
}
.phone-overlay__number span {
  opacity: 0;
  transform: translateY(14px);
  animation: cascade 0.5s var(--ease-out-expo) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.05s);
}
.phone-overlay__number span:nth-child(even) { margin-right: 0.28em; }
.phone-overlay__actions {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
}
.phone-overlay__meta {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
  border-top: 1px solid var(--greige);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
  width: 100%;
}
.phone-overlay__toast {
  font-size: 0.85rem;
  color: var(--braise);
  transition: opacity 0.3s;
  /* piloté uniquement par .visible, pas par la cascade */
  animation: none;
  transform: none;
  opacity: 0;
}
.phone-overlay__toast.visible { opacity: 1; }

@media (max-width: 720px) {
  .phone-overlay { padding: 1rem; }
  .phone-overlay__card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 2rem);
  }
  .phone-overlay__media { min-height: 0; height: 160px; }
  .phone-overlay__media figcaption { display: none; }
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes springIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes cascade {
  to { opacity: 1; transform: none; }
}

/* ─── Easter egg : neige ───────────────────────────── */

.snow-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 1s;
}
.snow-canvas.active { opacity: 1; }

/* ─── Reveals au scroll ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  transition-delay: calc(var(--d, 0) * 0.07s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Rideau d'images : clip porté par l'img (pas la figure),
   sinon l'IntersectionObserver voit une zone visible nulle. */
.img-reveal { overflow: hidden; }
.img-reveal img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.12);
  transition: clip-path 1.15s var(--ease-out-expo), transform 1.5s var(--ease-out-expo);
  transition-delay: calc(var(--d, 0) * 0.09s);
}
.img-reveal.in-view img {
  clip-path: inset(0 0 0% 0);
  transform: scale(1);
}

/* ─── Responsive ───────────────────────────────────── */

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .espaces__grid { grid-template-columns: 1fr; }
  .espace:nth-child(even) { margin-top: 0; }
  .vallon__grid { grid-template-columns: 1fr 1fr; }
  .vallon__fig--tall { grid-row: auto; }
  .vallon__fig--tall img { aspect-ratio: 4 / 3; }
  .vallon__saisons { grid-template-columns: 1fr; }
  .infos__grid { grid-template-columns: 1fr; }

  /* Montage simplifié : collage vertical, centre en pleine largeur */
  .montage { height: 260vh; }
  .montage__canvas {
    grid-template-columns: 1fr 1fr;
  }
  .montage__side { flex-direction: row; }
  .montage__side figure { flex: 1; aspect-ratio: 3 / 4; }
  .montage__side--left { grid-column: 1; align-self: start; margin-top: 12vh; }
  .montage__side--right { grid-column: 2; align-self: end; margin-bottom: 12vh; }
}

@media (max-width: 760px) {
  .nav__actions { display: none; }
  /* pages légales : pas de menu, le bouton retour doit rester */
  .nav--simple .nav__actions { display: flex; }
  .nav__menu-btn { font-size: 0.78rem; }
  .hero__corner--bc { display: none; }
}

/* ─── Accessibilité : reduced motion ───────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .preloader { display: none; }
  body.is-loading { overflow: auto; }

  .cursor { display: none !important; }

  .hero__wordmark .wm-inner { transform: none; transition: none; }
  .hero__corner, .hero__scroll { animation: none; opacity: 1; }
  .hero__scroll span { animation: none; }
  .hero__bg, .cta-banner__bg { inset: 0; }

  .reveal,
  .img-reveal img,
  .split .wi {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .center-text__line { height: clamp(90px, 14vw, 150px); transition: none; }
  .center-text__line::after { opacity: 1; transition: none; }

  .menu-overlay a, .menu-overlay__foot { animation: none; opacity: 1; transform: none; }
  .phone-overlay__number span { animation: none; opacity: 1; transform: none; }
  .phone-overlay__body > * { animation: none; opacity: 1; transform: none; }
  .phone-overlay__toast { opacity: 0; }
  .phone-overlay__card, .phone-overlay__backdrop { animation: none; }
  .livre__feuillet { transition: none; }

  /* Loupe : la fonction reste, les mouvements disparaissent */
  .zoomable:hover img { transform: none !important; }
  .zoomable__loupe { transition: none; }
  .loupe__fond { animation: none; }
  .loupe__cadre img { transition: none; }
  .loupe__cadre.is-entrant { animation: none; }

  /* Montage : statique, tout visible */
  .montage { height: auto; }
  .montage__sticky { position: static; height: auto; }
  .montage__canvas { align-items: stretch; }
  .montage__center {
    position: relative;
    inset: auto;
    transform: none;
    grid-column: 2;
    aspect-ratio: 4 / 5;
  }
  .montage__overlay { opacity: 1; }

  .no-js .marquee__track, .marquee__track { animation: none; transform: none !important; }
}
