/* ==========================================================================
   Chalet Les Buses — Version 4 « Refuge »
   Esprit chalet de famille, carnet de voyage montagnard.
   HTML/CSS/JS vanilla, sans build.
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  --paper: #f4ede1;          /* lin / papier */
  --paper-2: #ebe0cc;        /* kraft clair */
  --cream: #fffdf8;          /* papier photo */
  --ink: #2b211a;            /* encre brun-noir */
  --ink-soft: #5e4b3c;       /* encre adoucie (AA sur papier) */
  --sapin: #1f3b2d;          /* vert sapin profond */
  --sapin-2: #2c4f3c;
  --sapin-3: #142a20;
  --mousse: #c9d3b4;         /* vert lichen, texte sur sapin */
  --noyer: #5b3a29;          /* brun noyer */
  --braise: #b5491f;         /* orange braise (boutons, AA avec blanc) */
  --braise-d: #933915;
  --brique: #9e3b26;
  --ocre: #d99a1e;
  --focus: #d0662f;

  --f-title: "Young Serif", Georgia, "Times New Roman", serif;
  --f-text: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --f-script: "Caveat", "Segoe Print", cursive;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 18px;
  --shadow-photo: 0 1px 1px rgba(43, 33, 26, .08), 0 18px 34px -16px rgba(60, 38, 20, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Grain papier (SVG feTurbulence) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .25 0 0 0 0 .15 0 0 0 -1.2 .5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .85 0 0 0 -1.2 .48'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--grain), var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brique); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[id] { scroll-margin-top: 92px; }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--sapin); color: var(--paper); padding: .6em 1em; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.preview__grid > *, .feature__grid > *, .contact__grid > *, .reviews__grid > *, .venir__list > *, .compare > * { min-width: 0; }
@media (min-width: 700px) { :root { --gutter: 32px; } }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--f-title); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
h1 strong, h2 strong, h3 strong { font-weight: 400; }
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); color: var(--sapin); margin-bottom: .55em; text-wrap: balance; }
.h2--center { text-align: center; }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); color: var(--sapin); margin-bottom: .5em; }
.script { font-family: var(--f-script); font-weight: 600; }
.script strong { font-weight: 600; }
.kicker {
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2rem);
  line-height: 1.15;
  color: var(--braise);
  margin-bottom: .35em;
  rotate: -1.5deg;
  transform-origin: left center;
}
.lead { font-size: 1.2rem; color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.55em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--f-text); font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  letter-spacing: .02em;
  text-decoration: none; text-align: center;
  transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.9em; font-size: 1.08rem; }
.btn--braise { background: var(--braise); color: #fff; box-shadow: 0 10px 22px -12px rgba(147, 57, 21, .9); }
.btn--braise:hover { background: var(--braise-d); color: #fff; }
.btn--sapin { background: var(--sapin); color: var(--paper); }
.btn--sapin:hover { background: var(--sapin-3); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--sapin); border-color: var(--sapin); }
.btn--ghost:hover { background: var(--sapin); color: var(--paper); }

.link-arrow { font-weight: 700; color: var(--brique); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .25em; }

/* ---------- Ruban adhésif & polaroids ---------- */
.tape {
  position: absolute; z-index: 3;
  width: 112px; height: 30px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%), rgba(222, 205, 168, .82);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 97% 55%, 100% 82%, 96% 100%, 4% 96%, 0 70%, 3% 45%, 0 18%);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  pointer-events: none;
}
.tape--tl { top: -13px; left: 26px; rotate: -7deg; }
.tape--tr { top: -13px; right: 26px; rotate: 6deg; }

.polaroid {
  position: relative;
  background: var(--cream);
  padding: 12px 12px 0;
  border-radius: 3px;
  box-shadow: var(--shadow-photo);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--paper-2); }

/* ---------- Séparateurs montagne ---------- */
.ridge { width: 100%; pointer-events: none; }
.ornament { width: 180px; height: auto; color: var(--sapin-2); margin: 0 auto 2.4rem; opacity: .85; }

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  color: var(--paper);
  transition: color .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 42, 32, .7), rgba(20, 42, 32, 0));
  transition: background .35s, box-shadow .35s;
}
.site-header.is-scrolled { color: var(--ink); }
.site-header.is-scrolled::before {
  background: var(--grain), rgba(244, 237, 225, .97);
  box-shadow: 0 1px 0 rgba(91, 58, 41, .14), 0 10px 30px -18px rgba(43, 33, 26, .5);
}
.site-header__inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 76px;
  transition: min-height .3s;
}
.is-scrolled .site-header__inner { min-height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logo { width: 40px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-family: var(--f-title); font-weight: 400; font-size: 1.12rem; white-space: nowrap; }
.brand__place { font-weight: 500; font-size: .9rem; letter-spacing: .04em; color: var(--mousse); white-space: nowrap; }
.is-scrolled .brand__place { color: var(--sapin-2); }

/* Navigation */
.main-nav__list { list-style: none; display: flex; gap: 6px; }
.main-nav__list a {
  position: relative; display: block;
  padding: .5em .8em;
  color: inherit; text-decoration: none; font-weight: 500; font-size: 1.02rem;
}
.main-nav__list a::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .25em; height: 2px;
  background: var(--braise); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav__list a:hover::after, .main-nav__list a.is-active::after { transform: scaleX(1); }
.main-nav__toggle { display: none; }
.main-nav__ridge { display: none; }
.only-small { display: none; }
.header-cta { padding: .7em 1.25em; font-size: .98rem; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__current {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .45em .7em; border-radius: 999px;
  background: transparent; border: 1.5px solid currentColor;
  font-size: .9rem; font-weight: 700;
}
.lang__current img { width: 16px; height: 11px; }
.lang__chev { width: 14px; height: 14px; rotate: 90deg; transition: rotate .25s; }
.lang__current[aria-expanded="true"] .lang__chev { rotate: -90deg; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none;
  background: var(--cream); color: var(--ink); border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 30px -12px rgba(43, 33, 26, .45); min-width: 140px;
}
.lang__list a {
  display: flex; align-items: center; gap: 8px; padding: .5em .75em; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.lang__list a:hover { background: var(--paper-2); }

@media (min-width: 1121px) {
  .main-nav { margin-right: 6px; }
}

/* Menu mobile */
@media (max-width: 1120px) {
  .header-cta { display: none; }
  .only-small { display: block; }
  .main-nav { order: 3; }
  .main-nav__toggle {
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: transparent; border: 1.5px solid currentColor; position: relative; z-index: 2;
  }
  .burger { position: relative; width: 20px; height: 14px; }
  .burger span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: 6px; }
  .burger span:nth-child(3) { top: 12px; }
  .main-nav__toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .main-nav__toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
  .main-nav__toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .main-nav__panel {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column;
    padding: 110px var(--gutter) 0;
    background: var(--grain-light), var(--sapin);
    color: var(--paper);
    visibility: hidden; opacity: 0;
    transform: translateY(-12px);
    transition: opacity .35s, transform .35s var(--ease), visibility 0s .35s;
    overflow-y: auto;
  }
  .main-nav.is-open .main-nav__panel { visibility: visible; opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--ease); }
  .main-nav__list { flex-direction: column; gap: 4px; }
  .main-nav__list a { font-family: var(--f-title); font-size: clamp(1.6rem, 6vw, 2.2rem); padding: .3em 0; }
  .main-nav__list a::after { left: 0; right: auto; width: 2.2em; }
  .main-nav__list .only-small a { color: #f2b089; }
  .main-nav__ridge { display: block; max-width: none; margin-top: auto; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); height: 110px; }
  .site-header.menu-open { color: var(--paper); }
  .site-header.menu-open::before { background: transparent; box-shadow: none; }
  .site-header.menu-open .brand, .site-header.menu-open .lang, .site-header.menu-open .main-nav__toggle { position: relative; z-index: 2; }
  .site-header.menu-open .brand__place { color: var(--mousse); }
}
@media (max-width: 420px) {
  .brand__logo { width: 34px; }
  .brand__name { font-size: 1rem; }
  .brand__place { font-size: .8rem; letter-spacing: .02em; }
  .lang__current { padding: .4em .55em; font-size: .82rem; gap: 4px; }
  .lang__current img { display: none; }
  .site-header__inner { gap: 8px; }
  .main-nav__toggle { width: 42px; height: 42px; }
}

/* ==========================================================================
   HÉRO
   ========================================================================== */
/* L'image d'origine (HOME-3.png) est affichée entière, à son ratio naturel :
   chalet visible en totalité, V transparent en bas et cadre translucide conservés. */
.hero { position: relative; isolation: isolate; color: var(--paper); }
.hero__media { position: relative; z-index: -1; }
.hero__media img { display: block; width: 100%; height: auto; }
/* Voile de lisibilité limité au ciel / montagnes à gauche (zone opaque de l'image). */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 42, 32, .45) 0%, rgba(20, 42, 32, 0) 18%),
    radial-gradient(48% 46% at 22% 40%, rgba(20, 42, 32, .62) 0%, rgba(20, 42, 32, .3) 55%, rgba(20, 42, 32, 0) 100%);
}
.hero__titles { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.hero h1 {
  max-width: 12ch; text-wrap: balance;
  font-size: clamp(2.2rem, .6rem + 4.6vw, 5rem);
  line-height: 1.02;
}
.hero__sub {
  margin: 0 0 .25em;
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.5rem);
  line-height: 1;
  rotate: -2deg; transform-origin: left;
}
/* Mobile / petite tablette : titre sous l'image, sur le papier */
.hero__content { padding-block: 22px 8px; }
.hero h1 { color: var(--sapin); }
.hero__sub { color: var(--braise); }
@media (min-width: 760px) {
  .hero__content {
    position: absolute; left: 0; right: 0; top: 0; margin-inline: auto;
    height: 72%;
    display: flex; align-items: center;
    padding-block: 76px 0;
  }
  .hero h1 { color: var(--paper); text-shadow: 0 2px 28px rgba(10, 22, 16, .5); }
  .hero__sub { color: #f6c9a4; text-shadow: 0 1px 14px rgba(10, 22, 16, .6); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__titles > * { animation: rise 1.1s var(--ease) both; }
  .hero__titles h1 { animation-delay: .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: clamp(64px, 8vw, 120px); }

/* ---------- Aperçu ---------- */
.preview { padding-top: clamp(40px, 5vw, 72px); }
.preview__grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: start; }
@media (min-width: 960px) {
  .preview__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .preview__gallery { position: sticky; top: 110px; }
}
.preview__gallery { padding: 18px 10px 10px; }

/* Carrousel générique */
.carousel { position: relative; isolation: isolate; }
.carousel__track {
  display: flex; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 4px; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sapin); color: var(--paper); border: 0;
  transition: background .2s, transform .2s var(--ease), opacity .2s;
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn--prev svg { rotate: 180deg; }
.carousel__btn:hover { background: var(--braise); transform: scale(1.06); }
.carousel__btn:disabled { opacity: .35; cursor: default; transform: none; background: var(--sapin); }
.carousel__dots { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.carousel__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0;
  background: rgba(91, 58, 41, .3); transition: background .2s, transform .2s;
}
.carousel__dots button[aria-current="true"] { background: var(--braise); transform: scale(1.35); }

/* Polaroid empilé (galerie Aperçu) */
.polaroid--stack { rotate: -1.6deg; }
.polaroid--stack::before, .polaroid--stack::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cream); border-radius: 3px; box-shadow: var(--shadow-photo);
}
.polaroid--stack::before { transform: rotate(4deg) translate(10px, 6px); background: #f7f0e3; }
.polaroid--stack::after { transform: rotate(-3deg) translate(-8px, 10px); background: #efe6d4; }
.polaroid__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding: 4px 4px 4px 8px; }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom__icon {
  position: absolute; right: 12px; top: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 248, .9); color: var(--sapin);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ease);
}
.zoom__icon svg { width: 20px; height: 20px; }
.zoom:hover .zoom__icon, .zoom:focus-visible .zoom__icon { opacity: 1; transform: none; }
@media (hover: none) { .zoom__icon { opacity: 1; transform: none; } }

/* Équipements */
.equip { margin-top: 2rem; }
.equip__main { list-style: none; display: grid; gap: 12px 22px; }
@media (min-width: 520px) { .equip__main { grid-template-columns: 1fr 1fr; } }
.equip__main li { display: flex; align-items: center; gap: 12px; font-weight: 500; line-height: 1.3; }
.pastille {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #e2e5d3;
  box-shadow: inset 0 0 0 1.5px rgba(31, 59, 45, .18), 0 2px 0 rgba(31, 59, 45, .12);
  transition: rotate .3s var(--ease), scale .3s var(--ease), background .3s;
}
.pastille i {
  width: 22px; height: 22px; background: var(--sapin);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.pastille__img { width: 22px; filter: brightness(.38) saturate(.55); }
.equip__main li:hover .pastille { rotate: -8deg; scale: 1.06; background: #f2d9c6; }
.equip__main li:hover .pastille i { background: var(--braise-d); }

.equip__more {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .55s var(--ease), visibility 0s 0s;
}
.equip__more-inner { min-height: 0; overflow: hidden; }
.equip__more.is-collapsed { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
.equip__list {
  list-style: none; display: grid; gap: 6px 22px;
  margin-top: 1.4rem; padding: 1.3rem 1.4rem;
  background: var(--grain), var(--paper-2);
  border-radius: 14px;
  border: 1.5px dashed rgba(91, 58, 41, .3);
  font-size: 1.04rem;
}
@media (min-width: 520px) { .equip__list { grid-template-columns: 1fr 1fr; } }
.equip__list li { display: flex; gap: 10px; align-items: baseline; line-height: 1.35; }
.equip__list li::before {
  content: ""; flex: none; width: 11px; height: 11px; transform: translateY(1px);
  background: var(--braise);
  -webkit-mask: url(../assets/uploads/2024/03/ICONPLUS-6.svg) center / contain no-repeat;
  mask: url(../assets/uploads/2024/03/ICONPLUS-6.svg) center / contain no-repeat;
}
.equip__option {
  margin: 1rem 0 .2rem; padding: .8rem 1rem .8rem 3rem; position: relative;
  border-radius: 12px; background: #f6e0d2; color: var(--ink);
  font-weight: 500; font-size: 1rem; line-height: 1.4;
}
.equip__option::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--braise-d);
  -webkit-mask: url(../assets/uploads/2024/03/ICONPLUS-6.svg) center / contain no-repeat;
  mask: url(../assets/uploads/2024/03/ICONPLUS-6.svg) center / contain no-repeat;
}
.equip__toggle { margin-top: 1.4rem; }
.equip__toggle-less { display: none; }
.equip__toggle[aria-expanded="true"] .equip__toggle-less { display: inline; }
.equip__toggle[aria-expanded="true"] .equip__toggle-more { display: none; }

/* ---------- Caractéristiques ---------- */
.feature {
  background: var(--grain), var(--paper-2);
  padding-bottom: clamp(120px, 14vw, 190px);
}
.feature__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .feature__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }

.surfaces { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 0 0 2.2rem; }
.surfaces__item {
  position: relative;
  display: flex; flex-direction: column;
  padding: .7rem 1.3rem .75rem 2.3rem;
  background: var(--cream);
  border-radius: 8px 14px 14px 8px;
  box-shadow: 0 8px 18px -12px rgba(43, 33, 26, .5);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}
.surfaces__item::before { /* œillet d'étiquette */
  content: ""; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 1px 1px rgba(0,0,0,.25);
}
.surfaces__item:nth-child(1) { rotate: -2deg; }
.surfaces__item:nth-child(2) { rotate: 1.5deg; }
.surfaces dt { font-size: .92rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.surfaces dd { margin: 0; font-family: var(--f-title); font-size: 1.9rem; line-height: 1.1; color: var(--braise-d); }

.plan-card {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(31, 59, 45, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 59, 45, .09) 1px, transparent 1px),
    linear-gradient(rgba(31, 59, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 59, 45, .045) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-photo);
  rotate: .8deg;
}
.plan-card img { width: 100%; mix-blend-mode: multiply; }

.polaroid--room { margin: 18px 14px 28px; }
.polaroid--room figcaption {
  padding: 14px 8px 16px; text-align: center;
  font-family: var(--f-title); font-size: 1.2rem; color: var(--sapin);
}
.polaroid--room figcaption strong { font-weight: 400; }
.carousel--rooms .carousel__slide:nth-child(odd) .polaroid { rotate: -1.2deg; }
.carousel--rooms .carousel__slide:nth-child(even) .polaroid { rotate: 1deg; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px; }

/* ---------- Atouts (fond sapin) ---------- */
.atouts {
  position: relative;
  background: var(--grain-light), var(--sapin);
  color: var(--paper);
  padding-block: clamp(30px, 4vw, 60px) clamp(110px, 12vw, 170px);
}
.ridge--top { position: absolute; left: 0; bottom: calc(100% - 1px); height: clamp(60px, 8.5vw, 120px); }
.ridge--bottom { position: absolute; left: 0; bottom: -1px; height: clamp(40px, 6vw, 90px); }
.atouts__list { list-style: none; display: grid; gap: 28px; }
.atout { text-align: center; }
.atout .polaroid { padding: 10px 10px 34px; margin-bottom: 1.2rem; transition: rotate .45s var(--ease), translate .45s var(--ease); }
.atout .polaroid img { aspect-ratio: 3 / 4; }
.atout:nth-child(odd) .polaroid { rotate: -2deg; }
.atout:nth-child(even) .polaroid { rotate: 1.8deg; }
.atout:hover .polaroid { rotate: 0deg; translate: 0 -6px; }
.atout__title { font-size: 1.35rem; color: var(--paper); margin-bottom: .35em; }
.atout p { color: #dfe3d2; font-size: 1.04rem; line-height: 1.5; margin: 0; }
@media (min-width: 1000px) {
  .atouts__list { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 30px; }
  .atout:nth-child(even) { margin-top: 70px; }
}
@media (max-width: 999px) {
  .atouts__list {
    width: 100%;
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 30px var(--gutter) 16px; gap: 22px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--sapin-2) transparent;
  }
  .atout { flex: 0 0 min(68vw, 300px); scroll-snap-align: start; }
}
.atouts__cta { text-align: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Label Famille Plus ---------- */
.label-section { padding-block: clamp(56px, 7vw, 96px) 0; }
.label-patch {
  position: relative;
  display: grid; gap: 22px 36px; align-items: center; justify-items: center; text-align: center;
  max-width: 980px; margin-inline: auto;
  padding: clamp(26px, 4vw, 44px);
  background: var(--grain), var(--cream);
  border-radius: 26px;
  box-shadow: 0 16px 34px -22px rgba(43, 33, 26, .55);
}
.label-patch::before { /* couture */
  content: ""; position: absolute; inset: 10px; border-radius: 18px;
  border: 2px dashed rgba(181, 73, 31, .45);
  pointer-events: none;
}
.label-patch__logo { width: 120px; }
.label-patch__text p { margin: 0; color: var(--ink-soft); }
@media (min-width: 760px) {
  .label-patch { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
  .label-patch__logo { width: 136px; }
}

/* ---------- Activités ---------- */
.activity { text-align: center; }
.activity__title {
  font-family: var(--f-script);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem);
  color: var(--braise);
  line-height: 1;
  margin-bottom: .1em;
}
.ornament { display: block; }
.compare { --p: 50; display: grid; gap: 24px; text-align: left; }
.compare__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 10px solid var(--cream);
  border-radius: 22px;
  box-shadow: var(--shadow-photo);
  touch-action: pan-y;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__img--hiver { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: var(--cream);
  box-shadow: 0 0 12px rgba(0,0,0,.25);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--braise); color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 4px var(--cream);
}
.compare__knob svg { width: 16px; height: 16px; }
.compare__knob svg:first-child { rotate: 180deg; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare__media:has(.compare__range:focus-visible) .compare__knob { outline: 3px solid var(--focus); outline-offset: 5px; }

.compare__cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .compare__cards { grid-template-columns: 1fr 1fr; } }
.activity-card {
  position: relative;
  padding: 1.5rem 1.6rem 1.3rem;
  background: var(--grain), var(--cream);
  border-radius: 16px;
  box-shadow: 0 14px 30px -18px rgba(43, 33, 26, .55);
  transition: opacity .3s, transform .3s var(--ease);
}
.activity-card::before {
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 5px; border-radius: 0 0 6px 6px;
}
.activity-card--hiver::before { background: var(--sapin); }
.activity-card--ete::before { background: var(--ocre); }
.activity-card__title { font-family: var(--f-title); font-size: 1.3rem; line-height: 1.2; color: var(--sapin); margin-bottom: .8rem; }
.activity-card__title strong { font-weight: 400; }
.activity-card ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-bottom: 1rem; }
.activity-card li { display: flex; align-items: baseline; gap: 8px; line-height: 1.35; }
.activity-card li::before {
  content: ""; flex: none; width: 9px; height: 12px; transform: translateY(1px);
  background: var(--sapin-2);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.activity-card--ete li::before { background: var(--ocre); }
.activity-card p:last-child { margin: 0; }

@media (min-width: 960px) {
  .compare { grid-template-areas: "stack"; gap: 0; }
  .compare__media, .compare__cards { grid-area: stack; }
  .compare__media { aspect-ratio: 1194 / 760; }
  .compare__cards {
    position: relative; z-index: 2; pointer-events: none;
    grid-template-columns: minmax(0, 360px) minmax(0, 360px);
    justify-content: space-between; align-content: center;
    padding: 48px;
  }
  .activity-card { pointer-events: auto; }
  .activity-card--hiver { rotate: -1.5deg; opacity: clamp(.35, calc(var(--p) / 38), 1); }
  .activity-card--ete { rotate: 1.5deg; opacity: clamp(.35, calc((100 - var(--p)) / 38), 1); }
  .activity-card:hover, .activity-card:focus-within { opacity: 1; }
}

/* ---------- Avis (cartes postales) ---------- */
.reviews {
  padding-block: clamp(70px, 8vw, 120px);
  background:
    radial-gradient(rgba(91, 58, 41, .13) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--grain), var(--paper-2);
}
.reviews__grid { display: grid; gap: 34px; }
@media (min-width: 1000px) { .reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 640px) and (max-width: 999px) { .reviews__grid { max-width: 640px; } }
.postcard {
  position: relative;
  padding: 26px 26px 22px;
  background: var(--grain), var(--cream);
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 22px 40px -24px rgba(43, 33, 26, .6);
  transition: rotate .45s var(--ease), translate .45s var(--ease);
}
.postcard:nth-child(1) { rotate: -1.3deg; }
.postcard:nth-child(2) { rotate: .9deg; }
.postcard:nth-child(3) { rotate: -.6deg; }
@media (min-width: 1000px) { .postcard:nth-child(2) { margin-top: 40px; } }
.postcard:hover { rotate: 0deg; translate: 0 -4px; }
.postcard__head { position: relative; display: flex; justify-content: space-between; gap: 16px; min-height: 92px; }
.postcard__who p { margin: 0; }
.stars {
  display: block; width: 104px; height: 17px; margin-bottom: 10px;
  background: var(--ocre);
  -webkit-mask: url(../assets/uploads/2024/04/Groupe-271.svg) left center / contain no-repeat;
  mask: url(../assets/uploads/2024/04/Groupe-271.svg) left center / contain no-repeat;
}
.postcard__name { font-family: var(--f-title); font-size: 1.25rem; color: var(--sapin); }
.postcard__name strong { font-weight: 400; }
.postcard__date {
  position: absolute; right: 50px; top: 46px; z-index: 2;
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid rgba(91, 58, 41, .75);
  box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5.5px rgba(91, 58, 41, .55);
  font-weight: 700; font-size: .84rem; letter-spacing: .06em;
  color: var(--noyer);
  background: rgba(255, 253, 248, .5);
  rotate: -14deg;
}
.postmark {
  position: absolute; right: -6px; top: 70px; width: 90px; height: 26px; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 26'%3E%3Cg fill='none' stroke='%235b3a29' stroke-opacity='.45' stroke-width='1.6'%3E%3Cpath d='M0 4q7.5-4 15 0t15 0 15 0 15 0 15 0 15 0'/%3E%3Cpath d='M0 13q7.5-4 15 0t15 0 15 0 15 0 15 0 15 0'/%3E%3Cpath d='M0 22q7.5-4 15 0t15 0 15 0 15 0 15 0 15 0'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  rotate: -14deg;
}
.stamp {
  flex: none; width: 62px; padding: 5px;
  background: radial-gradient(circle, transparent 2.2px, #fffdf8 2.7px) -4px -4px / 8px 8px;
  filter: drop-shadow(0 2px 2px rgba(43, 33, 26, .25));
  rotate: 3deg;
}
.stamp svg { width: 100%; height: auto; }
.quote-mark {
  display: block; width: 26px; height: 26px; margin: 16px 0 4px;
  background: var(--braise);
  -webkit-mask: url(../assets/uploads/2024/03/guillement-1.svg) left top / contain no-repeat;
  mask: url(../assets/uploads/2024/03/guillement-1.svg) left top / contain no-repeat;
}
.postcard__text { margin: 0; }
.postcard__text p {
  margin: 0;
  font-style: italic; font-size: 1.08rem; line-height: 1.75rem;
  background: repeating-linear-gradient(180deg, transparent 0 calc(1.75rem - 1px), rgba(91, 58, 41, .2) calc(1.75rem - 1px) 1.75rem);
  padding-bottom: 2px;
}

/* ---------- Paradiski ---------- */
.paradiski { position: relative; display: grid; padding-bottom: clamp(30px, 5vw, 60px); }
.paradiski__map { position: relative; height: clamp(240px, 52vw, 420px); overflow: hidden; }
.paradiski__map img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 40%; }
.paradiski__map::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--paper-2) 0%, rgba(235, 224, 204, 0) 22%, rgba(244, 237, 225, 0) 70%, var(--paper) 100%);
}
.paradiski__wrap { position: relative; margin-top: -70px; }
.carnet {
  position: relative;
  max-width: 560px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--grain), var(--cream);
  border-radius: 10px;
  box-shadow: 0 30px 50px -30px rgba(43, 33, 26, .6);
}
.carnet::before {
  content: ""; position: absolute; inset: 12px; border-radius: 6px;
  border: 1.5px solid rgba(31, 59, 45, .14);
  pointer-events: none;
}
.carnet__logos { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.carnet__logos img { height: 48px; width: auto; }
.carnet__logos img:first-child { height: 46px; }
@media (max-width: 420px) { .carnet__logos { gap: 10px; } .carnet__logos img { height: 40px; } .carnet__logos img:first-child { height: 38px; } }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: .6rem 0 1.4rem;
  border-block: 1.5px dashed rgba(91, 58, 41, .3);
  padding-block: 1rem;
}
.stat { text-align: center; padding-inline: 6px; }
.stat + .stat { border-left: 1.5px dashed rgba(91, 58, 41, .3); }
.stat__num { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); color: var(--braise-d); line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { margin: .35rem 0 0; font-size: .95rem; font-weight: 500; line-height: 1.25; color: var(--ink-soft); }
.address { display: flex; gap: 14px; margin: 1.4rem 0 1.6rem; padding: 1rem 1.1rem; background: #efe7d7; border-radius: 12px; }
.address__pin {
  flex: none; width: 22px; height: 34px; margin-top: 4px; background: var(--braise);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain;
}
.address address { font-style: normal; }
.address p { margin: 0; line-height: 1.45; }
.address p:first-child { font-family: var(--f-title); color: var(--sapin); font-size: 1.15rem; }
.address p:last-child { font-size: .95rem; color: var(--ink-soft); margin-top: .3rem; }
@media (min-width: 960px) {
  .paradiski { grid-template-areas: "stack"; padding-block: 40px 70px; }
  .paradiski__map, .paradiski__wrap { grid-area: stack; }
  .paradiski__map { height: 100%; }
  .paradiski__map img { object-position: 70% 30%; }
  .paradiski__map::after {
    background:
      linear-gradient(90deg, rgba(244, 237, 225, .55) 0%, rgba(244, 237, 225, 0) 45%),
      linear-gradient(180deg, var(--paper-2) 0%, rgba(235, 224, 204, 0) 14%, rgba(244, 237, 225, 0) 82%, var(--paper) 100%);
  }
  .paradiski__wrap { margin-top: 0; padding-block: 60px; }
  .carnet { rotate: -.8deg; }
}

/* ---------- Comment venir ---------- */
.venir { padding-top: clamp(50px, 6vw, 80px); padding-bottom: clamp(140px, 15vw, 200px); }
.venir__list { list-style: none; display: grid; gap: 48px; position: relative; }
@media (min-width: 960px) {
  .venir__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .venir__list::before { /* sentier pointillé reliant les étapes */
    content: ""; position: absolute; left: 16%; right: 16%; top: 96px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--braise) 0 10px, transparent 10px 20px);
    opacity: .55;
  }
}
.trip { position: relative; }
.trip__img { width: 190px; margin: 0 auto 1.2rem; position: relative; z-index: 1; }
.trip__img img { display: block; } /* WebP détourés (canal alpha) : pas de mix-blend-mode, inopérant dans un contexte d’empilement */
.trip__title { font-size: 1.5rem; color: var(--sapin); text-align: center; margin-bottom: .8rem; }
.trip p, .trip li { font-size: 1.05rem; }
.trip a { overflow-wrap: anywhere; word-break: break-word; }
.trip__airports { list-style: none; display: grid; gap: .6rem; }
.trip__airports li { padding-left: 18px; position: relative; }
.trip__airports li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--braise); }
.road {
  display: inline-block; padding: 0 .42em; border-radius: 5px;
  font-weight: 700; font-size: .9em; line-height: 1.45; letter-spacing: .03em;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.2);
}
.road--a, .road--n { background: #b02a1f; color: #fff; }
.road--d { background: #f1c232; color: #1d1a12; }

/* ---------- Réservation ---------- */
.contact {
  position: relative;
  background: var(--grain-light), var(--sapin);
  color: #efe9dc;
}
.contact__inner { padding-block: clamp(30px, 4vw, 50px) clamp(110px, 12vw, 160px); }
.contact__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.contact .h2 { color: var(--paper); }
.contact__intro p { color: #e3dfd2; }
.contact__pdf { margin: 1.6rem 0 2.4rem; }
.contact__map { position: relative; max-width: 460px; padding: 10px; background: var(--cream); border-radius: 4px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); rotate: -1.5deg; }
.contact__map a { display: block; border-radius: 2px; overflow: hidden; }
.contact__map img { width: 100%; transition: transform .6s var(--ease); }
.contact__map a:hover img { transform: scale(1.04); }

.booking {
  position: relative;
  padding: clamp(22px, 4vw, 40px);
  background: var(--grain), var(--paper);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
}
.booking::before { /* reliure de carnet */
  content: ""; position: absolute; left: 50%; top: -11px; width: 120px; height: 22px; margin-left: -60px;
  background: radial-gradient(circle at 10px 11px, var(--sapin-3) 4px, transparent 4.5px) 0 0 / 24px 22px;
  opacity: .9;
}
.booking__row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px) { .booking__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 700; font-size: .98rem; color: var(--ink); }
.field__label em, .field__opt { font-weight: 400; font-style: italic; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: .7em .9em;
  background: var(--cream);
  border: 1.5px solid #8a7560;
  border-radius: 12px;
  font-size: 1.02rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #7d6a58; opacity: 1; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6em;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235b3a29' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8em center / 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--noyer); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--noyer);
}
.booking__submit { margin-top: 8px; }
.booking__submit .btn { min-width: 200px; }
.booking.is-sent .booking__submit .btn::after { content: "✓"; }
.booking.is-sending .booking__submit .btn { opacity: .7; cursor: progress; }
.booking__status:empty { display: none; }
.booking__status {
  margin: 16px 0 0; padding: .8em 1em;
  border-left: 4px solid var(--sapin-2); border-radius: 8px;
  background: var(--cream); color: var(--ink); font-weight: 700;
}
.booking.is-sending .booking__status { border-color: var(--ink-soft); font-weight: 400; }
.booking.is-error .booking__status { border-color: var(--brique); color: var(--brique); } /* AA sur crème */
/* Pot de miel anti-spam : hors écran, ignoré par les lecteurs d'écran */
.booking__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative;
  background: var(--grain-light), var(--sapin-3);
  color: #e8e3d6;
  padding-block: 40px;
}
.site-footer__forest { position: absolute; left: 0; bottom: calc(100% - 1px); height: clamp(36px, 4vw, 60px); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img { width: 46px; }
.site-footer__brand p { margin: 0; line-height: 1.2; }
.site-footer__brand strong { font-family: var(--f-title); font-weight: 400; font-size: 1.2rem; color: var(--paper); }
.site-footer__brand span { color: var(--mousse); }
.site-footer__legal p { margin: 0; font-size: .98rem; }
.site-footer__legal a { color: #f2b089; }
@media (min-width: 700px) { .site-footer__legal { text-align: right; } }

/* ---------- Popin & visionneuse ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(14, 28, 21, .78); backdrop-filter: blur(3px); }
.popin {
  width: min(1080px, 100% - 2 * var(--gutter));
  max-height: calc(100svh - 32px);
  background: var(--grain), var(--paper);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.popin__inner { padding: clamp(20px, 3.5vw, 40px); }
.popin__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--sapin); color: var(--paper);
  transition: background .2s, rotate .2s;
}
.popin__close:hover { background: var(--braise); rotate: 90deg; }
.popin__close svg { width: 20px; height: 20px; }
.carousel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-right: 56px; }
.carousel__top .h2 { margin: 0; }
.carousel--popin .carousel__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.carousel--popin .carousel__track { gap: 0; }
.carousel--popin .carousel__dots { justify-content: center; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: pop .4s var(--ease); }
  dialog[open]::backdrop { animation: fade .4s; }
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.lightbox {
  background: transparent; max-width: 94vw; max-height: 92svh; overflow: visible;
}
.lightbox__img {
  max-width: 94vw; max-height: 88svh; width: auto; height: auto;
  border: 10px solid var(--cream); border-radius: 4px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8);
}
.lightbox .popin__close { top: -18px; right: -12px; }

/* ---------- Révélations au défilement ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
