/* ==========================================================================
   Gîte LOUSTALOU — feuille de style
   Bois, pierre, forêt et eau de la piscine : une identité chaleureuse,
   typographie Fraunces (titres) et Instrument Sans (texte).
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-latin-full-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin-standard-normal.woff2') format('woff2-variations');
}

:root {
  /* Couleurs : forêt, lin, chêne, eau */
  --ink: #1b241d;
  --forest: #1f3326;
  --forest-deep: #142219;
  --moss: #5f7150;
  --sage: #d9dfcb;
  --sage-soft: #ebeee3;
  --sand: #f4efe6;
  --stone: #ebe4d7;
  --paper: #fbf9f4;
  --wood: #9b6437;
  --wood-soft: #d8b48c;
  --water: #1f8a98;
  --muted: #666a5f;
  --line: #e2dacb;
  --danger: #9b3b2a;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 29, .05), 0 18px 40px -18px rgba(27, 36, 29, .22);
  --shadow-lg: 0 40px 80px -30px rgba(20, 34, 25, .45);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .7, .15, 1);
}

@view-transition { navigation: auto; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--forest); color: var(--sand); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wood); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  line-height: 1.04;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.45rem; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 320; color: var(--wood); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--moss); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: rgba(255, 255, 255, .86); }
.icon { flex-shrink: 0; }
.cover { width: 100%; height: 100%; object-fit: cover; }

.section { padding: var(--section) 0; position: relative; }
.section--tint { background: var(--stone); }
.section--flush-top { padding-top: 0; }
.heading { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.heading--center { text-align: center; margin-left: auto; margin-right: auto; }
.heading--center .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.heading--center .lead { margin: 0 auto; }
.heading--light h2 { color: var(--sand); }
.heading--light .lead { color: rgba(244, 239, 230, .75); }
.heading--light .eyebrow { color: var(--wood-soft); }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.heading-row .heading { margin-bottom: 0; }

/* Texture de grain (photo argentique) */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glass {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

/* Apparition au défilement (uniquement si les animations sont autorisées) */
.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--reveal-delay, 0ms), transform .9s var(--ease) var(--reveal-delay, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ---------- Boutons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .88rem; }
.btn--primary { background: var(--forest); color: var(--sand); }
.btn--primary:hover { background: var(--forest-deep); color: #fff; box-shadow: 0 14px 30px -12px rgba(20, 34, 25, .6); }
.btn--ghost { background: transparent; color: var(--forest); border-color: rgba(31, 51, 38, .35); }
.btn--ghost:hover { background: var(--forest); color: var(--sand); border-color: var(--forest); }
.btn--light { background: var(--sand); color: var(--forest); }
.btn--light:hover { background: #fff; color: var(--forest-deep); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .95); color: var(--forest); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd18a; box-shadow: 0 0 0 0 rgba(127, 209, 138, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 209, 138, .55); } 70% { box-shadow: 0 0 0 9px rgba(127, 209, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 138, 0); } }
.round-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: all .3s var(--ease); }
.round-btn:hover { background: var(--forest); color: var(--sand); border-color: var(--forest); }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: transform .45s var(--ease), background-color .35s;
}
/* Fond flouté porté par un calque : posé sur l'en-tête lui-même, le flou enfermerait le menu mobile (position fixed). */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: rgba(244, 239, 230, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(27, 36, 29, .08);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.page-home .site-header, .page-cover-top .site-header { position: fixed; left: 0; right: 0; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--forest); line-height: 1; }
.brand__small { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.3rem; font-variation-settings: 'SOFT' 100; }
.brand__name { font-family: var(--font-display); font-weight: 500; letter-spacing: .16em; font-size: 1.12rem; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; position: relative; padding: 6px 0; }
.site-nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* En-tête transparent au-dessus des grandes photos */
.page-home .site-header:not(.is-scrolled):not(.is-open) .brand,
.page-home .site-header:not(.is-scrolled):not(.is-open) .site-nav > ul a,
.page-cover-top .site-header:not(.is-scrolled):not(.is-open) .brand,
.page-cover-top .site-header:not(.is-scrolled):not(.is-open) .site-nav > ul a { color: #fff; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .btn--primary,
.page-cover-top .site-header:not(.is-scrolled):not(.is-open) .btn--primary { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(10px); }
.page-home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle span,
.page-cover-top .site-header:not(.is-scrolled):not(.is-open) .nav-toggle span { background: #fff; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span:not(.visually-hidden) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.is-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--sand);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px; padding: 28px var(--gutter);
    clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); visibility: hidden;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 16px 0; font-family: var(--font-display); font-size: 2rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .is-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .site-header.is-open { background: var(--sand) !important; }
  .site-header.is-open::before { opacity: 0; transition: none; }
  body.nav-open { overflow: hidden; }
}

/* Bouton flottant mobile */
.mobile-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: none; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 999px;
  background: var(--forest); color: var(--sand); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
@media (max-width: 760px) { .mobile-cta { display: flex; } }
.mobile-cta:hover { color: #fff; }

/* ---------- Emplacements photo ---------- */

.photo-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, #cfd6c1, #7e8c68); color: rgba(35, 46, 33, .75); }
.photo-placeholder span { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Hero ---------- */

.hero { position: relative; min-height: max(620px, 100svh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--forest-deep); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.motion .hero__img { animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 65% 60% at 12% 78%, rgba(14, 22, 16, .3), rgba(14, 22, 16, 0) 70%),
  linear-gradient(180deg, rgba(14, 22, 16, .3) 0%, rgba(14, 22, 16, 0) 18%, rgba(14, 22, 16, 0) 58%, rgba(14, 22, 16, .45) 100%); }
.hero .grain { display: none; }
.hero__content { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(140px, 16vw, 190px); }
.hero__place { text-shadow: 0 1px 12px rgba(0, 0, 0, .5); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; opacity: .9; }
.hero__title { text-shadow: 0 2px 30px rgba(0, 0, 0, .25); margin: 0 0 .25em; line-height: .86; display: flex; flex-direction: column; }
.hero__title-small { font-style: italic; font-weight: 300; font-size: clamp(2.2rem, 5vw, 4rem); margin-left: .08em; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.hero__title-big { font-weight: 360; font-size: clamp(3.4rem, 9.2vw, 8.6rem); letter-spacing: .02em; font-variation-settings: 'SOFT' 50, 'opsz' 144; }
.hero__tagline { text-shadow: 0 1px 18px rgba(0, 0, 0, .35); font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 1.9rem); max-width: 30ch; line-height: 1.25; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts {
  position: absolute; right: var(--gutter); bottom: clamp(140px, 16vw, 190px); list-style: none; margin: 0; padding: 22px 24px;
  display: grid; grid-template-columns: repeat(4, auto); gap: 18px 34px; border-radius: 22px; padding: 18px 28px;
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.hero__facts span { font-size: .8rem; letter-spacing: .06em; opacity: .85; }
.motion [data-hero-item] { opacity: 0; transform: translateY(30px); animation: rise 1.1s var(--ease) forwards; }
.motion [data-hero-item]:nth-child(1) { animation-delay: .15s; }
.motion .hero__title [data-hero-item]:nth-child(1) { animation-delay: .3s; }
.motion .hero__title [data-hero-item]:nth-child(2) { animation-delay: .45s; }
.motion .hero__tagline { animation-delay: .7s; }
.motion .hero__actions { animation-delay: .85s; }
.motion .hero__facts { animation-delay: 1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 1180px) {
  .hero__facts { position: static; margin: 0 var(--gutter) 130px; grid-template-columns: repeat(4, auto); justify-content: space-between; min-width: 0; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero__content { padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Recherche rapide ---------- */

.quick-search-wrap { position: relative; z-index: 6; margin-top: -76px; }
.quick-search {
  position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: stretch;
  background: var(--paper); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 10px;
}
.quick-search__field { display: flex; flex-direction: column; justify-content: center; padding: 12px 22px; cursor: pointer; border-radius: 18px; position: relative; transition: background-color .25s; }
.quick-search__field + .quick-search__field::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.quick-search__field:hover, .quick-search__field:focus-within { background: var(--sand); }
.quick-search__field span { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.quick-search__field input, .quick-search__field select { border: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 4px 0; cursor: pointer; width: 100%; }
.quick-search__field input:focus, .quick-search__field select:focus { outline: none; }
.quick-search__submit { margin-left: 8px; border-radius: 18px; min-height: 66px; }
.quick-search__popover { position: absolute; top: calc(100% + 12px); left: 0; width: min(740px, 100%); background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 22px; z-index: 20; }
@media (max-width: 860px) {
  .quick-search-wrap { margin-top: -40px; }
  .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search__field + .quick-search__field::before { display: none; }
  .quick-search__field:nth-child(3) { grid-column: 1 / -1; }
  .quick-search__submit { grid-column: 1 / -1; margin: 8px 0 0; }
}

/* ---------- Bandeau défilant ---------- */

.marquee { overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; }
.motion .marquee__track { animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__group span { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 3rem); white-space: nowrap; padding: 0 .55em; color: var(--forest); font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.marquee__group span:nth-child(4n+3) { font-style: italic; color: var(--wood); }
.marquee__group i { font-style: normal; color: var(--wood-soft); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Introduction ---------- */

.intro__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.intro__etymology { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--moss); border-left: 2px solid var(--wood-soft); padding-left: 14px; }
.intro__etymology span { color: var(--wood); }
.intro__text > p:not(.eyebrow):not(.intro__etymology) { font-size: 1.06rem; }
.stats { list-style: none; padding: 26px 0; margin: 10px 0 28px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-weight: 350; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stats span { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.intro__media { position: relative; padding: 0 0 18% 12%; }
.intro__photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro__photo--main { aspect-ratio: 4 / 3.4; }
.intro__photo--small { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 8px solid var(--sand); border-radius: 22px; }
.intro__badge { position: absolute; right: -22px; top: -30px; width: 124px; height: 124px; border-radius: 50%; background: var(--forest); color: var(--sand); display: grid; place-items: center; box-shadow: var(--shadow); }
.intro__badge svg { width: 100%; height: 100%; font-family: var(--font-text); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; fill: currentColor; }
.motion .intro__badge svg { animation: spin 26s linear infinite; }
.intro__badge::after { content: '✦'; position: absolute; font-size: 1.3rem; color: var(--wood-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__badge { right: 0; width: 100px; height: 100px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mosaïque (bento) ---------- */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 14px; }
.bento__item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--sage); }
.bento__item--1 { grid-column: span 2; grid-row: span 2; }
.bento__item--2 { grid-column: span 2; }
.bento__item--3 { grid-row: span 2; }
.bento__item--5 { grid-row: span 2; }
.bento__item--6 { grid-column: span 2; }
.bento__item img { transition: transform 1.2s var(--ease), filter .6s; }
.bento__item:hover img { transform: scale(1.06); }
.bento__caption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(251, 249, 244, .9); color: var(--forest); backdrop-filter: blur(6px);
  transform: translateY(8px); opacity: 0; transition: all .45s var(--ease);
}
.bento__item:hover .bento__caption, .bento__item:focus-visible .bento__caption { transform: none; opacity: 1; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .bento__item--1, .bento__item--2, .bento__item--6 { grid-column: span 2; }
  .bento__item--3, .bento__item--5 { grid-row: span 2; }
  .bento__caption { opacity: 1; transform: none; }
}

/* ---------- Atouts ---------- */

.assets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.asset { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.asset:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.asset__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--sage-soft); color: var(--forest); margin-bottom: 20px; transition: background-color .4s, color .4s; }
.asset:hover .asset__icon { background: var(--forest); color: var(--sand); }
.asset h3 { font-size: 1.3rem; margin-bottom: .35em; }
.asset p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 1000px) { .assets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .assets { grid-template-columns: 1fr; } }

/* ---------- Une journée au gîte ---------- */

.day { background: var(--forest); color: var(--sand); overflow: hidden; }
.day::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 0%, rgba(216, 180, 140, .16), transparent 70%); pointer-events: none; }
.day__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); counter-reset: day; }
.day__item:nth-child(2) { margin-top: clamp(0px, 6vw, 80px); }
.day__item:nth-child(3) { margin-top: clamp(0px, 12vw, 160px); }
.day__photo { display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; margin-bottom: 22px; }
.day__photo img { transition: transform 1.2s var(--ease); }
.day__photo:hover img { transform: scale(1.05); }
.day__time { display: flex; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wood-soft); font-weight: 600; margin-bottom: .6em; }
.day__time span { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0; color: var(--sand); opacity: .6; }
.day__item h3 { color: var(--sand); font-size: 1.7rem; }
.day__item p:last-child { color: rgba(244, 239, 230, .72); }
@media (max-width: 860px) {
  .day__list { grid-template-columns: 1fr; }
  .day__item:nth-child(n) { margin-top: 0; }
  .day__photo { aspect-ratio: 4 / 3; }
}

/* ---------- Section immersive ---------- */

.immersive { position: relative; min-height: min(96vh, 880px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--forest-deep); isolation: isolate; }
.immersive__media { position: absolute; inset: -12% 0; z-index: -2; }
.immersive__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 16, 0) 35%, rgba(14, 22, 16, .7) 100%); }
.immersive .grain { z-index: -1; }
.immersive__content { padding-bottom: clamp(56px, 9vw, 120px); }
.immersive__content h2 { max-width: 16ch; font-size: clamp(2.4rem, 6vw, 5rem); color: #fff; }
.immersive__content h2 em { color: var(--wood-soft); }

/* ---------- Tarn ---------- */

.tarn { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.tarn .heading { position: sticky; top: calc(var(--header-h) + 30px); }
.destinations { list-style: none; padding: 0; margin: 0; }
.destination { display: grid; grid-template-columns: 56px 1fr; gap: 4px 20px; padding: 28px 0; border-top: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.destination:last-child { border-bottom: 1px solid var(--line); }
.destination:hover { padding-left: 12px; }
.destination__num { grid-row: span 2; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--wood); padding-top: 6px; }
.destination h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; transition: color .3s; }
.destination:hover h3 { color: var(--wood); }
.destination p { color: var(--muted); margin: 6px 0 0; max-width: 56ch; }
@media (max-width: 900px) { .tarn { grid-template-columns: 1fr; } .tarn .heading { position: static; } }

/* ---------- Avis ---------- */

.reviews { list-style: none; padding: 0 0 8px; margin: 0 0 14px; display: grid; align-items: stretch; grid-auto-flow: column; grid-auto-columns: minmax(290px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review__head { display: flex; align-items: flex-start; gap: 14px; }
.review__score { flex-shrink: 0; min-width: 48px; height: 48px; padding: 0 8px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px; background: var(--forest); color: var(--sand); font-weight: 700; font-variant-numeric: tabular-nums; }
.review__title { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.review blockquote { margin: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.review__body { display: grid; gap: 10px; max-height: calc(1.6em * 8.5 + 10px); overflow: hidden; position: relative; }
.review__body.is-open { max-height: none; }
.review__body:not(.is-open):has(+ .review__more:not([hidden]))::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(rgba(251, 249, 244, 0), var(--paper)); pointer-events: none; }
.review__more { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--forest); border-bottom: 1px solid currentColor; cursor: pointer; }
.review__more:hover { color: var(--wood); }
.review__text { display: flex; gap: 10px; margin: 0; font-size: .97rem; }
.review__text .icon { color: var(--moss); margin-top: 3px; }
.review__text--minus { color: var(--muted); }
.review__text--minus .icon { color: var(--muted); }
.review__meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.review__meta strong { color: var(--ink); }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--forest); font-family: var(--font-display); font-size: 1.15rem; flex-shrink: 0; }
.carousel-nav { display: flex; gap: 10px; }
.platform-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.platform-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); transition: all .3s var(--ease); }
.platform-links a:hover { border-color: var(--forest); background: var(--forest); color: var(--sand); }

/* ---------- Bandeau de réservation ---------- */

.cta-banner { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; color: #fff; background: var(--forest-deep); isolation: isolate; }
.cta-banner__media { position: absolute; inset: -15% 0; z-index: -2; }
.cta-banner__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 22, 16, .7), rgba(14, 22, 16, .15)); }
.cta-banner__card { max-width: 540px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; }
.cta-banner__card h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.cta-banner__card p { color: rgba(255, 255, 255, .88); }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--forest-deep); color: rgba(244, 239, 230, .76); padding: clamp(64px, 8vw, 110px) 0 28px; font-size: .95rem; overflow: hidden; }
.site-footer a { color: rgba(244, 239, 230, .9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(40px, 6vw, 90px); padding-bottom: 56px; }
.site-footer__headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; color: var(--sand); margin-bottom: 1.2em; max-width: 18ch; }
.site-footer__cta .btn { color: var(--forest); }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-title { font-family: var(--font-text); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wood-soft); margin-bottom: 18px; font-weight: 600; }
.site-footer__wordmark {
  margin: 0; padding: 0 var(--gutter); text-align: center; white-space: nowrap; line-height: .8;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 12.6vw, 13rem); letter-spacing: .01em; color: rgba(244, 239, 230, .08);
  font-variation-settings: 'SOFT' 100, 'opsz' 144; user-select: none;
}
.site-footer__wordmark span { font-style: italic; font-size: .42em; margin-right: .15em; vertical-align: .9em; }
.site-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(244, 239, 230, .12); font-size: .82rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 22px; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer { padding-bottom: 96px; } }

/* ---------- Pages intérieures ---------- */

.page-hero { padding: calc(clamp(56px, 8vw, 110px)) 0 clamp(36px, 5vw, 56px); }
.page-hero--compact { padding-bottom: 32px; }
.prose h2 { font-size: 1.9rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.page-cover { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--forest-deep); isolation: isolate; }
.page-cover__media { position: absolute; inset: -10% 0; z-index: -2; }
.page-cover__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 16, .5), rgba(14, 22, 16, 0) 35%, rgba(14, 22, 16, .7)); }
.page-cover .grain { z-index: -1; }
.page-cover__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vw, 90px); }
.page-cover h1 { color: #fff; font-size: clamp(3rem, 8vw, 6.5rem); }
.page-cover h1 em { color: #fff; font-weight: 300; }
.page-cover__lead { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.6rem); max-width: 34ch; line-height: 1.3; }

/* Mosaïque du haut (page Le gîte) */
.gite-top { margin-top: clamp(-70px, -5vw, -40px); position: relative; z-index: 2; }
.gallery-top { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 12px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.gallery-top__item { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--sage); }
.gallery-top__item--1 { grid-row: span 2; }
.gallery-top__item img { transition: transform 1.2s var(--ease); }
.gallery-top__item:hover img { transform: scale(1.05); }
.gallery-top__all { position: absolute; right: 18px; bottom: 18px; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .gallery-top { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px 140px; }
  .gallery-top__item--1 { grid-column: span 2; grid-row: auto; }
}

.gite-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.fact-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact-cards li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.fact-cards .icon { color: var(--wood); margin-bottom: 10px; }
.fact-cards strong { font-family: var(--font-display); font-weight: 350; font-size: 2.4rem; line-height: 1; color: var(--forest); }
.fact-cards span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .gite-intro { grid-template-columns: 1fr; } }


/* Galerie filtrable */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 500; font-size: .92rem; transition: all .3s var(--ease); }
.chip span { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--forest); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--sand); }
.chip.is-active span { color: var(--wood-soft); }
.masonry { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 14px; }
.masonry__item { break-inside: avoid; margin-bottom: 14px; }
.masonry__item button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--sage); }
.masonry__item img { width: 100%; transition: transform 1.1s var(--ease); }
.masonry__item button:hover img { transform: scale(1.04); }
.masonry__caption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(251, 249, 244, .9); color: var(--forest); font-size: .75rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.masonry__item button:hover .masonry__caption, .masonry__item button:focus-visible .masonry__caption { opacity: 1; transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* Visionneuse */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 17, 13, .97); color: #fff; }
.lightbox::backdrop { background: rgba(12, 17, 13, .97); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; }
.lightbox__caption { margin: 0; display: flex; flex-direction: column; font-size: .9rem; min-width: 0; }
.lightbox__caption span:first-child { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wood-soft); font-weight: 600; }
.lightbox__caption span:last-child { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__count { margin: 0 0 0 auto; font-variant-numeric: tabular-nums; opacity: .7; font-size: .9rem; }
.lightbox__close, .lightbox__nav { border: 0; background: rgba(255, 255, 255, .08); color: #fff; border-radius: 50%; width: 50px; height: 50px; display: grid; place-items: center; cursor: pointer; transition: background-color .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__stage { margin: 0; display: grid; place-items: center; padding: 0 84px; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 200px); object-fit: contain; border-radius: 6px; opacity: 0; transform: scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.lightbox__stage img.is-loaded { opacity: 1; transform: none; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 18px; scrollbar-width: none; justify-content: safe center; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .45; background: #222; transition: opacity .3s, border-color .3s; }
.lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs button:hover { opacity: .8; }
.lightbox__thumbs button.is-current { opacity: 1; border-color: var(--wood-soft); }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px; } .lightbox__nav { top: auto; bottom: 90px; transform: none; } .lightbox__stage img { max-height: calc(100vh - 240px); } }
body.lightbox-open { overflow: hidden; }

/* ---------- Disponibilités ---------- */

.availability-card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); margin-bottom: 16px; }
.availability-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
[data-home-continue]:not(.is-ready) { background: transparent; color: var(--forest); border-color: var(--forest); }
[data-home-continue]:not(.is-ready):hover { background: var(--forest); color: #fff; }

/* ---------- Calendrier ---------- */

.cal { position: relative; --cal-cell: 44px; user-select: none; }
.cal--compact { --cal-cell: 40px; }
.cal__nav { position: absolute; top: -2px; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.cal__arrow { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.cal__arrow:hover:not(:disabled) { background: var(--sand); border-color: var(--moss); }
.cal__arrow:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; gap: 40px; }
.cal__months--2 { grid-template-columns: 1fr 1fr; }
.cal__month-title { text-align: center; font-size: 1.35rem; text-transform: capitalize; margin: 6px 0 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 40px; }
.cal__season { font-family: var(--font-text); text-transform: none; font-size: .7rem; font-weight: 600; letter-spacing: .1em; color: var(--wood); }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__weekdays span { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); padding-bottom: 8px; }
.cal__grid { row-gap: 4px; }
.cal__day {
  position: relative; height: var(--cal-cell); border: 0; background: transparent; padding: 0; cursor: default;
  font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--ink);
}
.cal__day span { position: relative; z-index: 1; display: grid; place-items: center; width: var(--cal-cell); max-width: 100%; height: 100%; margin: 0 auto; border-radius: 50%; transition: background-color .15s, color .15s; }
.cal__day.is-available { cursor: pointer; font-weight: 600; }
.cal__day.is-available:hover span { background: var(--sage); }
.cal__day.is-disabled, .cal__day.is-past { color: #b9b4a6; }
.cal__day.is-unavailable { color: #a39e90; }
.cal__day.is-unavailable span { text-decoration: line-through; text-decoration-color: rgba(108, 106, 95, .6); background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(108, 106, 95, .09) 5px 7px); border-radius: 8px; width: calc(100% - 4px); }
.cal__day.is-changeover:not(.is-unavailable):not(.is-past)::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--wood-soft); z-index: 2; }
.cal__day.is-departure-option span { box-shadow: inset 0 0 0 1px var(--moss); }
.cal__day.is-in-range, .cal__day.is-preview { background: var(--sage-soft); }
.cal__day.is-in-range span, .cal__day.is-preview span { color: var(--forest); }
.cal__day.is-start { background: linear-gradient(90deg, transparent 50%, var(--sage-soft) 50%); }
.cal__day.is-end, .cal__day.is-preview-end { background: linear-gradient(90deg, var(--sage-soft) 50%, transparent 50%); }
.cal__day.is-start.is-end { background: transparent; }
.cal__day.is-selected span, .cal__day.is-selected:hover span, .cal__day.is-preview-end span, .cal__day.is-preview-end:hover span { background: var(--forest); color: #fff; box-shadow: none; }
.cal__day.is-selected::after { display: none; }
.cal__day.is-today span { outline: 1px dashed var(--wood-soft); outline-offset: -4px; }
.cal__day:focus-visible { outline: none; }
.cal__day:focus-visible span { outline: 2px solid var(--wood); outline-offset: 1px; }
.cal__blank { height: var(--cal-cell); }
.cal__status { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 20px; padding: 16px 18px; background: var(--sand); border-radius: 12px; }
.cal__main { margin: 0; font-weight: 600; }
.cal__rule { margin: 4px 0 0; font-size: .9rem; color: var(--wood); }
.cal__clear { flex-shrink: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .875rem; padding: 2px 0; }
.cal__clear:hover { color: var(--ink); }
@media (max-width: 420px) { .cal { --cal-cell: 40px; } .cal__status { flex-direction: column; } }

.cal-legend { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--muted); }
.availability-card__footer .cal-legend { margin: 0; }
.cal-legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.swatch--available { background: var(--paper); box-shadow: inset 0 0 0 1px var(--moss); }
.swatch--unavailable { border-radius: 5px; background: repeating-linear-gradient(135deg, var(--stone) 0 4px, #cfc8b8 4px 6px); }
.swatch--selected { background: var(--forest); }

/* ---------- Formulaire de réservation ---------- */

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.booking-form { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 16px); }
.booking-aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1000px) { .booking-layout { grid-template-columns: 1fr; } .booking-aside { position: static; order: -1; } .aside-card__media { display: none; } }

.progress { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: step; }
.progress li { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 2px solid var(--line); color: var(--muted); font-size: .875rem; font-weight: 600; }
.progress li.is-current { border-color: var(--forest); color: var(--ink); }
.progress li.is-done { border-color: var(--moss); color: var(--moss); cursor: pointer; }
.progress__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); font-size: .8rem; flex-shrink: 0; }
.is-current .progress__num { background: var(--forest); color: #fff; }
.is-done .progress__num { background: var(--sage); color: var(--forest); }
@media (max-width: 600px) { .progress__label { display: none; } .progress li.is-current .progress__label { display: inline; } }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step__title { font-family: var(--font-display); font-size: 2rem; padding: 0; margin-bottom: 24px; }
.step__title:focus { outline: none; }
.field { margin-bottom: 22px; }
.field label, .field__label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.req { color: var(--wood); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--sand); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--moss); background: #fff; box-shadow: 0 0 0 3px rgba(95, 111, 76, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 110px; }
.field__hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field__error { color: var(--danger); font-size: .875rem; font-weight: 600; margin: 6px 0 0; }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.date-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.date-summary div { padding: 12px 16px; border-right: 1px solid var(--line); }
.date-summary div:last-child { border-right: 0; }
.date-summary span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); font-weight: 700; }
.date-summary strong { font-weight: 600; font-size: .98rem; }
.booking-calendar { padding: 4px 0; }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.stepper__label { font-weight: 600; }
.stepper__controls { display: flex; align-items: center; gap: 6px; }
.stepper__controls input { width: 48px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; appearance: textfield; }
.stepper__controls input::-webkit-inner-spin-button, .stepper__controls input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--forest); }
.stepper__btn:hover { border-color: var(--moss); background: var(--sand); }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; font-size: .92rem; background: var(--sand); transition: all .15s; }
.choice input:hover + span { border-color: var(--moss); }
.choice input:checked + span { border-color: var(--forest); background: var(--forest); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }

.notice { display: flex; gap: 10px; align-items: flex-start; background: #f5ecdf; border-left: 3px solid var(--wood); padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: .92rem; margin: 14px 0; }
.notice .icon { color: var(--wood); margin-top: 2px; }
.notice--soft { background: var(--sand); border-left-color: var(--moss); }
.form-alert { background: #f7e3de; color: var(--danger); padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 24px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.form-nav [data-next], .form-nav [data-submit] { margin-left: auto; }

.recap__list, .recap__price dl { margin: 0; }
.recap__list > div, .recap__price dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recap__list dt, .recap__price dt { color: var(--muted); }
.recap__list dd, .recap__price dd { margin: 0; font-weight: 500; }
.recap__price { margin-top: 28px; background: var(--sand); border-radius: 14px; padding: 20px 22px; }
.recap__price h3 { font-size: 1.4rem; }
.recap__price dl > div { grid-template-columns: 1fr auto; }
.recap__price dd { text-align: right; }
.recap__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 700; }
.recap__total strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; }
@media (max-width: 600px) { .recap__list > div { grid-template-columns: 1fr; gap: 2px; } }
.policy { margin: 28px 0 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; font-size: .95rem; }
.policy h3 { font-size: 1.35rem; }
.policy p:last-child { margin-bottom: 0; }
.house-rules { margin: 20px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.house-rules summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.house-rules summary::-webkit-details-marker { display: none; }
.house-rules summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--moss); }
.house-rules[open] summary::after { content: '−'; }
.house-rules__body { padding: 0 18px 16px; max-height: 340px; overflow-y: auto; font-size: .95rem; }
.house-rules__body h3 { font-size: 1.05rem; margin: 1.1em 0 .4em; }
.consents { display: grid; gap: 6px; }
.checkbox a { font-weight: 400; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); flex-shrink: 0; }

.aside-card { background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.aside-card__media { margin: 0; aspect-ratio: 16 / 10; }
.aside-card__body { padding: 24px; }
.aside-card__title { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 4px; }
.aside-estimate { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 16px 0; }
.aside-estimate p { margin: 0; }
.aside-estimate__label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); font-weight: 700; }
.aside-estimate__total { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.2; }
.aside-estimate__total--ask { font-size: 1.6rem; }
.aside-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .875rem; color: var(--muted); }
.aside-rules li { display: flex; gap: 10px; align-items: flex-start; }
.aside-rules .icon { margin-top: 3px; color: var(--moss); }

/* Confirmation */
.confirmation__card { background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(32px, 6vw, 64px); text-align: center; }
.confirmation__card h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.confirmation__card .lead { margin: 0 auto 1.2em; }
.confirmation__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sage); color: var(--forest); margin-bottom: 24px; }
.confirmation__warning { display: inline-block; font-weight: 700; background: #f5ecdf; padding: 10px 18px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.feature-list--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Paiement */
.pay-card { margin-top: 0; }
.pay-card__title { font-size: 1.6rem; }
.pay-card__late { color: var(--danger); font-weight: 600; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.pay-option { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pay-option h3 { margin: 0; }
.pay-option .btn { align-self: flex-start; }
.pay-bank { margin: 0; display: grid; gap: 6px; }
.pay-bank div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.pay-bank dt { color: var(--muted); }
.pay-bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-word; }

/* Prix en direct (section Disponibilités) */
.live-quote { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; min-height: 64px; }
.live-quote__hint { margin: 0; color: var(--muted); }
.live-quote__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.live-quote__label { font-weight: 600; }
.live-quote__total { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; line-height: 1.1; color: var(--forest); }
.live-quote__note { color: var(--muted); font-size: .9rem; }
.live-quote__details { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Équipements détaillés (page Le gîte) ---------- */

.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.amenity { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.amenity h3 { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.amenity .asset__icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; flex-shrink: 0; }
.amenity ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.amenity li { position: relative; padding-left: 18px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.amenity li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--wood-soft); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.tarn:has(.tarn__extra) { row-gap: 0; }
.tarn__extra { grid-column: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding-top: 32px; }
.tarn__extra-title { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); margin: 0 0 14px; }
@media (max-width: 1000px) { .amenities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .tarn__extra { grid-column: auto; } }
@media (max-width: 640px) {
  .amenities, .tarn__extra { grid-template-columns: 1fr; }
}

/* ---------- Bandeau cookies ---------- */

.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-left: auto; padding: 20px 22px; border-radius: var(--radius);
  background: var(--sand); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 16px; font-size: .9rem; line-height: 1.55; }
.consent a { color: var(--forest); }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent__actions .btn { flex: 1 1 0; max-width: 180px; }
.consent-open .mobile-cta { visibility: hidden; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: rgba(244, 239, 230, .9); cursor: pointer; }
.link-button:hover { color: #fff; text-decoration: underline; }
@media (max-width: 520px) { .consent__actions .btn { max-width: none; } }
