/* Marelles · lin, châtaigne, schiste et ciel d'Ardèche */
:root {
  --paper: #f3ede3;
  --paper-2: #ebe3d5;
  --card: #f8f4ec;
  --ink: #231a14;
  --ink-2: #5a4c40;
  --muted: #8a7b6c;
  --line: rgba(35, 26, 20, 0.14);
  --chestnut: #6e3f22;
  --ocre: #c08a46;
  --forest: #2e3a2b;
  --night: #121826;
  --accent: #a4532b;
  /* les six palets du logo de Marelles */
  --p0: #bea038; --p1: #558945; --p2: #5bbc6a; --p3: #f4603e; --p4: #f65a63; --p5: #61bef2;
  /* leurs versions foncées, lisibles sur le lin */
  --p0d: #8a7116; --p1d: #3f6b33; --p2d: #2f7f3e; --p3d: #c2401f; --p4d: #c53a45; --p5d: #1f7fb5;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: min(1240px, calc(100vw - 2 * var(--gut)));
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ciel par défaut (jour) */
  --sky-top: #c9d9e3; --sky-bot: #f4ede0;
  --r0: #b9c6cc; --r1: #9cad9f; --r2: #73866f; --r3: #4f6249; --r4: #33402f;
  --win: #3a4535; --sun: #fff6dc; --sun-glow: rgba(255, 240, 200, 0.6);
  --stars: 0; --hero-ink: #1f1a15; --mist: rgba(255, 252, 245, 0.55);
}
body[data-heure="aube"] {
  --sky-top: #b9c3d9; --sky-bot: #f6d2b8;
  --r0: #c9b3bd; --r1: #a993a6; --r2: #7c6f84; --r3: #564d60; --r4: #383243;
  --win: #4b4152; --sun: #ffe0b8; --sun-glow: rgba(255, 196, 150, 0.6); --stars: 0.25;
  --hero-ink: #261d22; --mist: rgba(255, 230, 215, 0.5);
}
body[data-heure="soir"] {
  --sky-top: #7f6a92; --sky-bot: #f3b07e;
  --r0: #b98a8e; --r1: #946b7a; --r2: #6c4f63; --r3: #4a3747; --r4: #2c2130;
  --win: #ffcf7a; --sun: #ffd39a; --sun-glow: rgba(255, 170, 110, 0.65); --stars: 0.15;
  --hero-ink: #fff5ea; --mist: rgba(255, 200, 170, 0.35);
}
body[data-heure="nuit"] {
  --sky-top: #0b1020; --sky-bot: #26304a;
  --r0: #2a3350; --r1: #222a43; --r2: #1a2136; --r3: #141a2b; --r4: #0d1120;
  --win: #ffc867; --sun: #f4f1e6; --sun-glow: rgba(220, 225, 255, 0.25); --stars: 1;
  --hero-ink: #f3efe6; --mist: rgba(120, 140, 190, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ocre); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.num { display: inline-grid; place-items: center; width: 38px; height: 34px; font: italic 500 17px/1 var(--serif); letter-spacing: 0; text-transform: none; color: #fff; background: url(palets/p0.png) center / contain no-repeat; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
[data-p="1"] .num { background-image: url(palets/p1.png); } [data-p="2"] .num { background-image: url(palets/p2.png); }
[data-p="3"] .num { background-image: url(palets/p3.png); } [data-p="4"] .num { background-image: url(palets/p4.png); }
[data-p="5"] .num { background-image: url(palets/p5.png); }
.num-ciel { width: auto; padding: 0 14px; background-size: 100% 100%; }
/* chaque section prend la couleur de son palet */
[data-p] { --tone: var(--p0d); --tone-l: var(--p0); }
[data-p="1"] { --tone: var(--p1d); --tone-l: var(--p1); } [data-p="2"] { --tone: var(--p2d); --tone-l: var(--p2); }
[data-p="3"] { --tone: var(--p3d); --tone-l: var(--p3); } [data-p="4"] { --tone: var(--p4d); --tone-l: var(--p4); }
[data-p="5"] { --tone: var(--p5d); --tone-l: var(--p5); }
[data-p] .display em { color: var(--tone); }
/* une tache d'aquarelle en fond, comme sur la plaquette */
.section[data-p]::before { content: ''; position: absolute; width: clamp(260px, 34vw, 520px); aspect-ratio: 1; right: -6vw; top: 60px; background: url(palets/p0.png) center / contain no-repeat; opacity: 0.09; filter: blur(2px) saturate(1.2); transform: rotate(-18deg); pointer-events: none; }
.section[data-p="1"]::before { background-image: url(palets/p1.png); left: -8vw; right: auto; }
.section[data-p="2"]::before { background-image: url(palets/p2.png); }
.section[data-p="3"]::before { background-image: url(palets/p3.png); left: -8vw; right: auto; }
.section[data-p="4"]::before { background-image: url(palets/p4.png); }
.section[data-p="5"]::before { background-image: url(palets/p5.png); left: -8vw; right: auto; }
/* pas de tache de palet derrière la réservation : elle faisait l'effet d'une image retirée */
.sejour::before, .cta-reserver::before, .histoire::before { display: none; }
.section > * { position: relative; }
.display {
  font: 300 clamp(2.4rem, 5.6vw, 5.2rem)/1.02 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.025em; margin: 0 0 26px; text-wrap: balance;
}
.display em { font-style: italic; font-weight: 300; color: var(--chestnut); }
.prose { color: var(--ink-2); max-width: 36em; }
.prose p { margin: 0 0 1em; }
.lede { font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.5 var(--serif); color: var(--ink); }
.muted { color: var(--muted); }

/* apparitions */
.reveal, .display { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in, .display.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .display { opacity: 1; transform: none; }

/* boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 99px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 500 15px/1 var(--sans); letter-spacing: 0.01em;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); background: var(--chestnut); border-color: var(--chestnut); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-small { padding: 11px 18px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--ocre); border-color: var(--ocre); color: #fff; }
.btn[disabled], .btn[disabled]:hover { opacity: 0.4; pointer-events: none; }

/* ============ En-tête ============ */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gut); color: var(--hero-ink);
  transition: background 0.5s, color 0.5s, padding 0.4s var(--ease), box-shadow 0.5s;
}
.topbar.scrolled { background: rgba(243, 237, 227, 0.86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: var(--ink); padding-block: 12px; box-shadow: 0 1px 0 var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 26px/1 var(--serif); letter-spacing: -0.01em; margin-right: auto; }
.wordmark img { width: 34px; height: auto; transition: width 0.4s var(--ease); }
.wordmark { transition: font-size 0.4s var(--ease); }
/* à l'arrivée, le logo en plus grand ; il reprend sa taille en défilant */
.topbar:not(.scrolled) .wordmark { font-size: clamp(30px, 2.7vw, 38px); }
.topbar:not(.scrolled) .wordmark img { width: clamp(40px, 3.5vw, 50px); }
.topnav { display: flex; gap: 28px; }
.topnav a { text-decoration: none; font-size: 14px; letter-spacing: 0.02em; position: relative; padding: 4px 0; }
.topnav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right 0.4s var(--ease); }
.topnav a:hover::after { right: 0; }
.topbar .btn { background: transparent; color: inherit; border-color: currentColor; }
.topbar .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:nth-of-type(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }
/* sur ordinateur aussi, la marelle ouvre le plan du site : une petite marelle dessinée à la place des deux traits */
.menu-ico { display: none; width: 21px; height: 34px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.1; transition: transform 0.4s var(--ease); }
@media (min-width: 901px) {
  .menu-btn { display: block; margin-left: 6px; color: inherit; cursor: pointer; }
  .menu-btn span { display: none; }
  .menu-btn .menu-ico { display: block; }
  .menu-btn:hover .menu-ico { transform: translateY(-2px) rotate(-4deg); }
  .menu-btn[aria-expanded="true"] span { display: block; }
  .menu-btn[aria-expanded="true"] .menu-ico { display: none; }
}
body.menu-open .topbar { color: var(--ink); background: var(--paper); box-shadow: none; backdrop-filter: none; }

/* menu plein écran */
/* le panneau défile s'il est plus haut que l'écran (marge auto : centré quand il tient, sans rogner le haut sinon) */
.menu { position: fixed; inset: 0; z-index: 35; background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 90px 24px 32px; animation: menuIn 0.5s var(--ease); }
@keyframes menuIn { from { opacity: 0; clip-path: circle(0 at calc(100% - 40px) 40px); } to { opacity: 1; clip-path: circle(150% at calc(100% - 40px) 40px); } }
.menu[hidden], .draft[hidden] { display: none; }
.menu-inner { width: min(360px, 100%); margin: auto; text-align: center; }
.menu-logo { width: 64px; height: auto; margin: 0 auto 14px; }
.menu-marelle { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 6px; width: 230px; }
.menu-marelle li { display: flex; gap: 6px; }
.menu-marelle a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); padding: 10px 8px; text-decoration: none; font-size: 13px; color: var(--ink-2); background: var(--card); }
.menu-marelle b { font: italic 400 22px/1 var(--serif); color: var(--ink); }
.m-ciel a { border-radius: 110px 110px 6px 6px; padding-top: 22px; }
.menu-foot { margin-top: 28px; color: var(--muted); font-size: 14px; }
@media (max-height: 860px) {
  .menu { padding-top: 76px; }
  .menu-logo { width: 48px; margin-bottom: 8px; }
  .menu-marelle { gap: 5px; }
  .menu-marelle li { gap: 5px; }
  .menu-marelle a { padding: 6px 8px; }
  .menu-marelle b { font-size: 19px; }
  .m-ciel a { padding-top: 16px; }
  .menu-foot { margin-top: 18px; }
}

/* ============ La marelle de côté ============ */
.hop { position: fixed; left: 22px; top: 50%; z-index: 30; transform: translate(-16px, -50%); opacity: 0; pointer-events: none; transition: opacity 0.6s, transform 0.6s var(--ease); }
.hop.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.hop-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; width: 62px; }
.hop-grid li { display: flex; justify-content: center; gap: 4px; }
.hop-grid a { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; font: italic 400 13px/1 var(--serif); color: var(--muted); background: rgba(248, 244, 236, 0.7); backdrop-filter: blur(6px); transition: background 0.4s, color 0.4s, border-color 0.4s; }
.hop-grid a:hover { border-color: var(--ink); color: var(--ink); }
.hop-grid a.done { background: var(--paper-2); color: var(--ink-2); }
.hop-grid a.on { border-color: var(--ink); color: var(--ink); background: var(--card); }
.hop-ciel a { width: 62px; border-radius: 31px 31px 2px 2px; height: 34px; font-size: 12px; }
.hop-stone { position: absolute; left: 0; top: 0; width: 20px; height: auto; margin: -9px 0 0 -10px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); transition: transform 0.55s var(--ease); pointer-events: none; }
.hop-stone.hop-anim { animation: hopup 0.55s var(--ease); }
@keyframes hopup { 40% { margin-top: -22px; rotate: 25deg; } 100% { margin-top: -9px; rotate: 0deg; } }
.hop-label { position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); margin: 0; font: italic 400 13px/1.2 var(--serif); color: var(--ink-2); text-align: center; width: 90px; }
/* L'étiquette de la marelle : une petite étiquette à bagage, avec son œillet et sa ficelle */
.etiquette { position: fixed; z-index: 60; width: max-content; max-width: 230px; padding: 10px 14px 11px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 4px 12px 12px 4px; box-shadow: 0 14px 28px -16px rgba(20, 14, 10, 0.5); color: var(--ink-2); text-align: left; pointer-events: none; opacity: 0; transform: translateX(-6px) rotate(-2deg) scale(0.96); transform-origin: left center; transition: opacity 0.25s, transform 0.35s var(--ease); }
.etiquette.on { opacity: 1; transform: rotate(-2deg); }
.etiquette::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; border: 1px solid rgba(35, 26, 20, 0.3); background: var(--paper); }
.etiquette::after { content: ''; position: absolute; right: 100%; top: 50%; width: 18px; height: 1px; background: rgba(35, 26, 20, 0.35); transform: rotate(-14deg); transform-origin: right center; }
.etiquette.gauche { padding: 10px 24px 11px 14px; border-radius: 12px 4px 4px 12px; transform-origin: right center; transform: translateX(6px) rotate(2deg) scale(0.96); }
.etiquette.gauche.on { transform: rotate(2deg); }
.etiquette.gauche::before { left: auto; right: 9px; }
.etiquette.gauche::after { right: auto; left: 100%; transform: rotate(14deg); transform-origin: left center; }
.etiquette b { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; font: italic 400 16px/1.2 var(--serif); color: var(--ink); }
.etiquette b span { flex: none; display: inline-grid; place-items: center; width: 26px; height: 24px; background: url(palets/p0.png) center / contain no-repeat; color: #fff; font-size: 12px; font-style: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.etiquette[data-p="1"] b span { background-image: url(palets/p1.png); } .etiquette[data-p="2"] b span { background-image: url(palets/p2.png); }
.etiquette[data-p="3"] b span { background-image: url(palets/p3.png); } .etiquette[data-p="4"] b span { background-image: url(palets/p4.png); }
.etiquette[data-p="5"] b span { background-image: url(palets/p5.png); }
.etiquette small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.etiquette[hidden] { display: none; }

/* ============ Héros ============ */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--hero-ink); background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 78%); transition: color 1.2s; }
.sky { position: absolute; inset: 0; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars); transition: opacity 2s; }
.sun { position: absolute; width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); box-shadow: 0 0 80px 30px var(--sun-glow), 0 0 200px 80px var(--sun-glow); left: 72%; top: 18%; transition: left 2s var(--ease), top 2s var(--ease), background 2s, box-shadow 2s; }
body[data-heure="aube"] .sun { left: 16%; top: 40%; }
body[data-heure="soir"] .sun { left: 78%; top: 46%; }
body[data-heure="nuit"] .sun { left: 76%; top: 16%; width: clamp(44px, 5vw, 70px); box-shadow: 0 0 60px 10px var(--sun-glow), inset -14px -6px 0 0 rgba(180, 190, 220, 0.35); }
/* Le soleil ne passe jamais derrière les photos : au-dessus d'elles sur grand écran, à côté du titre ailleurs */
@media (min-width: 1101px) {
  .sun, body[data-heure] .sun { top: max(96px, 11%); width: clamp(70px, 8vw, 120px); }
  body[data-heure="aube"] .sun { left: 57%; }
  body[data-heure="jour"] .sun { left: 71%; top: max(96px, 10%); }
  body[data-heure="soir"] .sun { left: 85%; top: max(104px, 13%); }
  body[data-heure="nuit"] .sun { left: 66%; width: clamp(44px, 5vw, 70px); }
}
@media (max-width: 1100px) {
  .sun, body[data-heure] .sun { left: 78%; top: clamp(110px, 14svh, 150px); }
}
.ridges { position: absolute; inset: auto 0 0; width: 100%; height: 100%; }
.ridges .layer { will-change: transform; }
.ridges .layer path, .ridges .layer circle, .ridges .layer rect { transition: fill 1.6s; }
.ridges .l0 > * { fill: var(--r0); } .ridges .l1 > * { fill: var(--r1); } .ridges .l2 > *, .ridges .l2 g > * { fill: var(--r2); }
.ridges .l3 > *, .ridges .l3 g > * { fill: var(--r3); } .ridges .l4 > *, .ridges .l4 g > * { fill: var(--r4); }
.ridges .l4 .house .win { fill: var(--win); }
body[data-heure="nuit"] .ridges .house .win, body[data-heure="soir"] .ridges .house .win { filter: drop-shadow(0 0 4px #ffb84d); }
.mist { position: absolute; left: -10%; right: -10%; bottom: 18%; height: 30%; background: radial-gradient(ellipse at 30% 60%, var(--mist), transparent 60%), radial-gradient(ellipse at 75% 50%, var(--mist), transparent 55%); filter: blur(10px); animation: drift 38s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translateX(6%); } }
.hero-copy { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; padding-top: clamp(104px, 15vh, 150px); }
.hero .eyebrow { color: inherit; opacity: 0.75; }
.hero-title { font: 300 clamp(2.4rem, 6.4vw, 6.4rem)/0.98 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 100; letter-spacing: -0.035em; margin: 0 0 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > * { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease); }
.hero-title .line:nth-child(2) > * { transition-delay: 0.14s; }
.hero-title .line:nth-child(3) > * { transition-delay: 0.28s; }
.hero-title em { font-style: italic; }
body.ready .hero-title .line > * { transform: none; }
.hero-sub { max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.15rem); opacity: 0.88; margin: 0 0 34px; }
.hero .reveal { transition-delay: 0.5s; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { background: var(--hero-ink); color: var(--sky-top); border-color: var(--hero-ink); }
.hero .btn:hover { background: transparent; color: var(--hero-ink); }
.hero .btn-ghost { background: transparent; color: var(--hero-ink); }
.hero .btn-ghost:hover { background: var(--hero-ink); color: var(--sky-top); }
.clock { position: absolute; z-index: 3; right: var(--gut); bottom: 28px; display: flex; align-items: center; gap: 14px; color: #f6f1e7; font-size: 13px; }
.clock p { margin: 0; opacity: 0.9; white-space: nowrap; }
.clock b { font-weight: 600; font-variant-numeric: tabular-nums; }
.clock-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9fd18b; margin-right: 8px; box-shadow: 0 0 0 0 rgba(159, 209, 139, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(159, 209, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(159, 209, 139, 0); } }
.clock-chips { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); }
.clock-chips button { border: 0; background: none; color: inherit; padding: 7px 13px; border-radius: 99px; font-size: 12px; letter-spacing: 0.04em; }
.clock-chips button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.9); color: #231a14; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 1px; height: 56px; overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: #f6f1e7; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ============ Sections ============ */
.section { position: relative; padding: clamp(48px, 6vw, 80px) 0; overflow-x: clip; }
/* entre deux sections au même fond lin : une seule marge, pas deux (le fond qui change garde la marge complète) */
/* la table finit sur son étagère : la planche fait la frontière avec la section suivante */
.table { padding-bottom: 0; }
.etagere { margin-bottom: 0; }
.hameau, .instants, .dormir, .venir { padding-bottom: clamp(12px, 2vw, 24px); }
.lieu { padding-top: 8px; } /* juste après les poules du hameau */
.instants { padding-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }

/* 1 · le lieu */
.lieu .prose { padding-top: 8px; }
.figures { display: grid; grid-template-columns: repeat(6, 1fr); margin: clamp(44px, 6vw, 80px) 0 0; border-top: 1px solid var(--line); }
.figures { list-style: none; padding: 0; }
.figures > li { padding: 26px 18px 0 0; border-right: 1px solid var(--line); }
.figures a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.figures a span::after { content: ' →'; opacity: 0; transition: opacity 0.3s; }
.figures a:hover span::after { opacity: 1; }
.figures a:hover b { color: var(--tone); }
.figures > li:last-child { border-right: 0; }
.figures > li + li { padding-left: 22px; }
.figures > li:nth-child(6) { transition-delay: 0.4s; }
.figures > li:nth-child(2) { transition-delay: 0.08s; } .figures > li:nth-child(3) { transition-delay: 0.16s; } .figures > li:nth-child(4) { transition-delay: 0.24s; } .figures > li:nth-child(5) { transition-delay: 0.32s; }
.figures b { font-weight: inherit; transition: color 0.3s; font: 300 clamp(2.8rem, 5.5vw, 5rem)/1 var(--serif); font-variation-settings: 'opsz' 144; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.figures span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* 2 · histoire */
/* fond clair et chaud (il était brun foncé, peu lisible) */
.histoire { background: #efe3cc; color: var(--ink); overflow: hidden; padding-bottom: 0; }
.histoire .eyebrow { color: var(--muted); }
.histoire .display em { color: var(--chestnut); }
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); margin-top: 40px; }
.story-year { position: sticky; top: 22vh; height: max-content; }
.story-year span { display: block; font: 300 clamp(5rem, 15vw, 14rem)/0.9 var(--serif); font-variation-settings: 'opsz' 144, 'SOFT' 100; font-style: italic; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.2px rgba(110, 64, 33, 0.55); }
.story-year span.flip { animation: flip 0.8s var(--ease); }
@keyframes flip { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 6vh 0; border-top: 1px solid rgba(35, 26, 20, 0.14); opacity: 0.5; transition: opacity 0.8s; }
.step.active { opacity: 1; }
.step h3 { font: 400 clamp(1.6rem, 2.6vw, 2.3rem)/1.15 var(--serif); margin: 0 0 16px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); max-width: 32em; font-size: 1.05rem; }
.marquee { margin-top: clamp(40px, 6vw, 80px); border-block: 1px solid rgba(35, 26, 20, 0.14); padding: 26px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: italic 300 clamp(2rem, 4vw, 3.6rem)/1 var(--serif); padding: 0 0.6em; color: rgba(110, 64, 33, 0.7); white-space: nowrap; }
.marquee span::after { content: '·'; margin-left: 1.2em; color: var(--ocre); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3 · le hameau */
.hameau-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 9px 16px; font-size: 14px; color: var(--ink-2); transition: all 0.3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.map { position: relative; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(60, 40, 20, 0.35), 0 0 0 1px var(--line); background: #f6f1e4; }
.map-inner { position: relative; transform: scale(1.045); transform-origin: 35% 100%; }
.map img { width: 100%; height: auto; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0; background: none; display: grid; place-items: center; }
.pin span { display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font: italic 500 15px/1 var(--serif); box-shadow: 0 4px 14px rgba(40, 25, 10, 0.3), 0 0 0 1.5px var(--ink); transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.pin.big span { width: 32px; height: 32px; }
.pin.small span { width: 14px; height: 14px; background: var(--ink); box-shadow: 0 0 0 3px rgba(248, 244, 236, 0.9), 0 3px 10px rgba(40, 25, 10, 0.3); }
.pin.t-prive span { background: var(--muted); }
.pin::before { content: ''; position: absolute; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--paper); opacity: 0; }
.pin.big::before { animation: ring 3s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }
.pin em { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); white-space: nowrap; font: 500 12px/1 var(--sans); font-style: normal; background: var(--ink); color: var(--paper); padding: 7px 10px; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
.pin:hover em, .pin:focus-visible em { opacity: 1; transform: translate(-50%, 0); }
.pin:hover span, .pin.sel span { transform: scale(1.18); }
.pin.sel span { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(120, 50, 20, 0.45), 0 0 0 1.5px #fff; }
.pin.dim { opacity: 0.18; pointer-events: none; }
.pin { transition: opacity 0.4s; }
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px; display: flex; flex-direction: column; }
.mc-photo { margin: -30px -28px 22px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px 6px 0 0; }
.mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-card h3 { font: 400 2rem/1.1 var(--serif); margin: 0 0 14px; letter-spacing: -0.01em; }
.map-card p:not(.eyebrow) { color: var(--ink-2); margin: 0; }
.map-card.swap > * { animation: swap 0.6s var(--ease) both; }
.map-card.swap > :nth-child(2) { animation-delay: 0.04s; } .map-card.swap > :nth-child(3) { animation-delay: 0.08s; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.mc-nav { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.mc-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; transition: all 0.3s; }
.mc-nav button:hover { background: var(--ink); color: var(--paper); }
.mc-nav span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 34px; color: var(--ink-2); font-size: 15px; }
.facts b { font: 400 1.4rem/1 var(--serif); color: var(--ink); margin-right: 6px; }

/* photos */
.instants { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 8.5vw, 124px); gap: 14px; }
.ph { margin: 0; display: flex; flex-direction: column; }
.ph-large { grid-column: span 4; grid-row: span 3; }
.ph-haut { grid-column: span 2; grid-row: span 3; }
.ph-carre { grid-column: span 3; grid-row: span 3; }
.ph-frame { flex: 1; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ph:hover .ph-frame img { transform: scale(1.04); }
.ph figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
/* mosaïque compacte : 2 rangées, légendes posées sur la photo */
.gallery { grid-template-columns: repeat(5, 1fr); grid-auto-rows: clamp(150px, 17vw, 270px); grid-auto-flow: dense; gap: 12px; }
.gallery .ph { grid-column: span 1; grid-row: span 1; position: relative; }
.gallery .ph-large:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .ph-large:not(:first-child) { grid-column: span 2; }
.gallery .ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 11px; color: #fff; font-size: 13px; line-height: 1.3; background: linear-gradient(transparent, rgba(30, 22, 14, 0.62)); border-radius: 0 0 4px 4px; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.gallery .ph:hover figcaption, .gallery .ph:first-child figcaption { opacity: 1; transform: none; }
.ph-fallback { position: relative; width: 100%; height: 100%; }
.ph-fallback svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-fallback span { position: absolute; left: 16px; top: 14px; font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(35, 26, 20, 0.45); }
.ph-fallback.v0 { background: linear-gradient(180deg, #d9c9b0, #efe3cf); } .ph-fallback.v0 path:first-child { fill: #b3a184; } .ph-fallback.v0 path:nth-child(2) { fill: #8a7a5c; } .ph-fallback.v0 circle { fill: #f6e7c4; }
.ph-fallback.v1 { background: linear-gradient(180deg, #c8d3cf, #e9e6da); } .ph-fallback.v1 path:first-child { fill: #93a597; } .ph-fallback.v1 path:nth-child(2) { fill: #5f7362; } .ph-fallback.v1 circle { fill: #f4efe0; }
.ph-fallback.v2 { background: linear-gradient(180deg, #e8c3a4, #f1dcc6); } .ph-fallback.v2 path:first-child { fill: #b98c78; } .ph-fallback.v2 path:nth-child(2) { fill: #7d5a4f; } .ph-fallback.v2 circle { fill: #ffe2bd; }
.ph-fallback.v3 { background: linear-gradient(180deg, #2d3550, #4b4e64); } .ph-fallback.v3 path:first-child { fill: #262b40; } .ph-fallback.v3 path:nth-child(2) { fill: #181c2c; } .ph-fallback.v3 circle { fill: #eae6da; } .ph-fallback.v3 span { color: rgba(255, 255, 255, 0.5); }

/* 4 · séjours */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 30px 26px 26px; display: flex; flex-direction: column; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 1.1s var(--ease); }
.card:nth-child(2) { transition-delay: 0.08s; } .card:nth-child(3) { transition-delay: 0.16s; } .card:nth-child(4) { transition-delay: 0.24s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(60, 40, 20, 0.35); }
.card h3 { font: 400 1.55rem/1.15 var(--serif); margin: 0 0 12px; }
.card p { color: var(--ink-2); margin: 0 0 18px; font-size: 15.5px; }
.card .card-meta { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* 5 · la table */
.table { background: var(--paper-2); }
.table-grid { align-items: start; }

/* 6 · alentours */
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.places li:hover { padding-left: 12px; }
.pl-time { font: italic 400 1.15rem/1.4 var(--serif); color: var(--accent); }
.places h3 { font: 400 1.35rem/1.2 var(--serif); margin: 0 0 4px; }
.places p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* 7 · séjour */
.sejour { background: var(--paper); }
.planner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.planner { grid-template-rows: auto 1fr; }
.planner > .quote { grid-column: 2; grid-row: 1 / span 2; }
.planner > .we { align-self: start; }
/* Les week-ends encore libres */
.we { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px 28px; }
.we-deco { position: absolute; top: 14px; right: 22px; width: clamp(96px, 12vw, 140px); }
.we-titre { margin: 0 0 18px; padding-right: 150px; font: italic 400 1.2rem/1.2 var(--serif); color: var(--ink); }
.we-titre span { display: block; margin-top: 4px; font: 13px/1.3 var(--sans); color: var(--muted); }
/* les mois côte à côte : la liste reste courte même quand il reste beaucoup de week-ends */
.we-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.we-mois { display: grid; gap: 7px; align-content: start; }
.we-mois b { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.we-mois div { display: flex; flex-wrap: wrap; gap: 6px; }
.we-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.we-btn:hover { border-color: var(--ink); background: var(--paper-2); }
.we-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.we-vide { margin: 0; font-size: 14px; color: var(--muted); }
.cal-box, .quote { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head p { margin: 0; font: 400 1.25rem/1 var(--serif); }
.cal-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; transition: all 0.3s; }
.cal-arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.cal-arrow:disabled { opacity: 0.3; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.cal-mname { display: none; margin: 0 0 10px; font: italic 400 1.05rem/1 var(--serif); color: var(--ink-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 8px; letter-spacing: 0.08em; }
.day { aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; font-size: 14px; font-variant-numeric: tabular-nums; position: relative; transition: background 0.2s, color 0.2s; }
.day:hover:not(:disabled) { background: var(--paper-2); }
.day.past { color: rgba(35, 26, 20, 0.22); }
.day.closed { color: rgba(35, 26, 20, 0.3); background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(35, 26, 20, 0.06) 4px 5px); border-radius: 4px; }
.day.taken { color: #3a2c22; font-weight: 500; isolation: isolate; }
.day.taken::before { content: ''; position: absolute; inset: 9%; z-index: -1; background: url(palets/p0.png) center / contain no-repeat; opacity: 0.45; transform: rotate(-8deg); }
.day.taken.pal1::before { background-image: url(palets/p1.png); transform: rotate(6deg); } .day.taken.pal2::before { background-image: url(palets/p2.png); }
.day.taken.pal3::before { background-image: url(palets/p3.png); transform: rotate(10deg); } .day.taken.pal4::before { background-image: url(palets/p4.png); }
.day.taken.pal5::before { background-image: url(palets/p5.png); transform: rotate(-4deg); }
.day.today::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.day.in { background: rgba(192, 138, 70, 0.18); border-radius: 0; }
.day.start, .day.end { background: var(--ink); color: var(--paper); border-radius: 50%; }
.day:disabled { cursor: default; }
.cal-legend { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--line); }
.cal-legend .lg-taken { width: 16px; height: 16px; border: 0; border-radius: 0; background: url(palets/p2.png) center / contain no-repeat; opacity: 0.75; vertical-align: -3px; }
.lg-closed { background: repeating-linear-gradient(135deg, transparent 0 2px, rgba(35, 26, 20, 0.25) 2px 3px); border-radius: 2px !important; }
.lg-sel { background: var(--ink); }
.cal-sync { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.cal-sync::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--p2); margin-right: 8px; }
.quote { position: sticky; top: 90px; }
.q-dates { font: 400 1.2rem/1.45 var(--serif); margin: 0 0 22px; min-height: 3em; }
.q-dates .muted { font: 400 14px/1.5 var(--sans); }
.q-field { display: block; margin-bottom: 18px; }
.q-field > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.q-field output { font: italic 400 1.05rem/1 var(--serif); color: var(--ink); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); cursor: grab; }
select, .form input, .form textarea, .tool-form input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
.q-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.q-duo .q-field { margin-bottom: 6px; }
.q-duo select, .q-duo input { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.q-mini { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.q-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; cursor: pointer; }
.q-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.q-lines { border-top: 1px solid var(--line); padding-top: 14px; }
.q-line { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 8px; }
.q-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; margin: 14px 0 10px; }
.q-total span { font-size: 14px; color: var(--ink-2); }
.q-total b { font: 400 2.2rem/1 var(--serif); letter-spacing: -0.02em; }
.q-note { font-size: 12.5px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; transition: color 0.3s; }
.q-note.warn { color: var(--accent); }
.quote .btn + .btn { margin-top: 8px; }

/* Ciel · contact */
.ciel { background: radial-gradient(ellipse at 50% 0%, #26304a 0%, #121826 60%); color: #ede6d9; overflow: hidden; padding-bottom: 40px; }
.ciel-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ciel > :not(canvas) { position: relative; }
.ciel .eyebrow { color: #9ea6bd; }
.ciel .display em { color: #e8c48c; }
.ciel .prose { color: #bfc0c8; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-list span { font-size: 13px; color: #8f97ad; }
.contact-list a { text-decoration: none; font: 400 1.2rem/1.3 var(--serif); }
.contact-list a:hover { color: #e8c48c; }
.form { display: grid; gap: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; padding: clamp(22px, 3vw, 36px); backdrop-filter: blur(4px); }
.form label span { display: block; font-size: 13px; color: #9ea6bd; margin-bottom: 7px; }
.form input, .form textarea { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #f3eee5; }
.form input::placeholder, .form textarea::placeholder { color: #6f778c; }
.form input:focus, .form textarea:focus { outline: none; border-color: #e8c48c; }
.form textarea { resize: vertical; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: 14px; min-height: 1.4em; color: #bfc0c8; }
.form-status.ok { color: #a8d79a; } .form-status.err { color: #f1b49a; }
.footer { margin-top: clamp(56px, 7vw, 96px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: 13px; color: #8f97ad; }
.footer p { margin: 0; }
.footer a { color: inherit; }
.footer-mark { display: flex; align-items: center; gap: 10px; }
.footer-mark svg { width: 12px; height: 18px; }

/* bandeau de version de travail */
.draft { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; background: #fff3c4; color: #5b4300; font-size: 12.5px; padding: 8px 14px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); white-space: nowrap; }

/* ============ Le devis (fenêtre du site et outil des hôtes) ============ */
.devis-dialog { border: 0; padding: 0; border-radius: 8px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: #fff; color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); }
.devis-dialog::backdrop { background: rgba(20, 14, 10, 0.55); backdrop-filter: blur(3px); }
.dd-bar { position: sticky; top: 0; display: flex; gap: 8px; align-items: center; padding: 14px 18px; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line); z-index: 1; }
.dd-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 22px; line-height: 1; }
.devis-doc { padding: clamp(24px, 5vw, 56px); font-size: 14.5px; background: #fff; }
.dv-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.dv-brand { display: flex; gap: 14px; align-items: flex-start; }
.dv-brand svg { width: 20px; height: 30px; margin-top: 2px; }
.dv-brand div, .dv-meta { display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); font-size: 13px; }
.dv-brand b { font: 400 1.6rem/1.1 var(--serif); color: var(--ink); }
.dv-meta { text-align: right; }
.dv-meta b { font: 500 1rem/1.3 var(--sans); color: var(--ink); }
.dv-client { margin: 24px 0 0; } .dv-client span { color: var(--muted); margin-right: 6px; }
.dv-stay { font: 400 1.15rem/1.5 var(--serif); margin: 18px 0 22px; }
.dv-warn { background: #fbe9df; color: #8a3410; padding: 10px 14px; border-radius: 4px; }
.dv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dv-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.dv-table td:last-child { text-align: right; white-space: nowrap; padding-left: 20px; }
.dv-table small { display: block; color: var(--muted); font-size: 12px; }
.dv-total td { font: 400 1.35rem/1.2 var(--serif); border-bottom: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.dv-small { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.dv-infos { margin-top: 26px; background: var(--card); border-radius: 4px; padding: 18px 22px; }
.dv-infos h4 { margin: 0 0 8px; font: 400 1.1rem/1.2 var(--serif); }
.dv-infos ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.dv-infos li { margin-bottom: 4px; }

/* outil des hôtes */
.tool { background: var(--paper-2); }
.tool-head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gut); border-bottom: 1px solid var(--line); background: var(--paper); }
.tool-head p { margin: 0; font: italic 400 1.1rem/1 var(--serif); color: var(--ink-2); }
.tool-head .wordmark { margin: 0; }
.tool-main { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; padding: 24px var(--gut) 60px; max-width: 1280px; margin: 0 auto; align-items: start; }
.tool-form { grid-template-columns: minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: grid; gap: 14px; position: sticky; top: 16px; }
.tool-form .eyebrow { margin: 0; }
.tool-form label span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.tool-form .q-check { margin: 0; } .tool-form .q-check span { margin: 0; }
.tool-form .f-row { gap: 12px; }
.tool-hint { font-size: 13px; color: var(--muted); margin: 0; }
.tool-status { padding: 14px 18px; border-radius: 6px; margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.tool-status.good { background: #e6f0de; border-color: #b9d3a6; color: #2e4a20; }
.tool-status.bad { background: #fbe9df; border-color: #eec2ab; color: #8a3410; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tool-actions [disabled] { opacity: 0.4; pointer-events: none; }
#doc .devis-doc { border-radius: 6px; box-shadow: 0 20px 40px -24px rgba(60, 40, 20, 0.35); }
.tool-text, .tool-book { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; }
.tool-text summary { cursor: pointer; font-weight: 500; }
.tool pre { white-space: pre-wrap; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 12px 0 0; }
.tool-book p { margin: 0; font-size: 14px; }

/* pages légales */
.legal { background: var(--paper); }
.legal-main { width: min(760px, calc(100vw - 2 * var(--gut))); margin: 0 auto; padding: 60px 0 100px; }
.legal-main h2 { font: 400 1.5rem/1.2 var(--serif); margin: 40px 0 10px; }
.legal-main p { color: var(--ink-2); }
.legal-main mark { background: #fff3c4; padding: 0 4px; }

/* merci */
.merci { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 0%, #26304a, #121826 65%); color: #ede6d9; padding: 24px; }
.merci main { max-width: 640px; }
.merci .display em { color: #e8c48c; }
.merci .prose { color: #bfc0c8; }

/* ============ Impression : uniquement le devis ============ */
@media print {
  body.printing-devis > *:not(.devis-dialog):not(.tool-main) { display: none !important; }
  body.printing-devis .tool-main { display: block; padding: 0; }
  body.printing-devis .tool-form, body.printing-devis .tool-status, body.printing-devis .tool-actions, body.printing-devis .tool-text, body.printing-devis .tool-book, body.printing-devis .dd-bar { display: none !important; }
  body.printing-devis .devis-dialog { position: static; display: block; box-shadow: none; width: auto; max-height: none; }
  body.printing-devis #doc .devis-doc { box-shadow: none; }
  body.printing-devis .devis-doc { padding: 0; }
  @page { margin: 16mm; }
}


/* ============ La DA de Marelles : photos, palets, aquarelle ============ */

.quote-hosts { margin-top: clamp(40px, 5vw, 72px); border-left: 3px solid var(--p3); padding-left: clamp(20px, 3vw, 40px); max-width: 980px; }
.quote-hosts p { margin: 0 0 18px; font: italic 300 clamp(1.5rem, 2.8vw, 2.4rem)/1.35 var(--serif); color: var(--ink); }
.quote-hosts footer { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p3); }
.histoire .num { color: #fff; }

.linge { margin-top: 30px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--p5); border-radius: 4px; padding: 20px 22px; }
.linge .eyebrow { margin-bottom: 8px; }
.linge p:last-child { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.rooms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rooms li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rooms b { font: 300 2.6rem/1 var(--serif); color: var(--tone); font-variant-numeric: lining-nums; }
.rooms h3 { margin: 0 0 2px; font: 400 1.25rem/1.25 var(--serif); }
.rooms p { margin: 0; color: var(--muted); font-size: 14.5px; }
.trio { display: grid; grid-template-columns: 1.1fr 0.9fr 1fr; gap: 14px; margin-top: clamp(36px, 5vw, 64px); }
.trio figure, .salle, .table-photos { margin: 0; }
.trio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.trio figure:nth-child(2) { margin-top: 48px; }
.trio figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

.salles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.salle { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 1.1s var(--ease); }
.salle:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(60, 40, 20, 0.35); }
.salle img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 70%; }
.salle > div { padding: 26px 28px 30px; }
.salle .eyebrow { margin-bottom: 10px; color: var(--tone); }
.salle h3 { font: 400 2rem/1.1 var(--serif); margin: 0 0 10px; }
.salle p:last-child { margin: 0; color: var(--ink-2); }
.salles-note { margin-top: 30px; margin-bottom: 40px; max-width: 46em; }
.card-pal { width: 48px; height: auto; margin-bottom: 30px; transition: transform 0.6s var(--ease); }
.card:hover .card-pal { transform: rotate(-14deg) scale(1.08); }

.table-photos { position: relative; padding-bottom: 14%; }
.table-photos img { border-radius: 4px; object-fit: cover; }
.tp-main { width: 88%; aspect-ratio: 4 / 3; }
.tp-side { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--paper-2); }
.kit { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kit li, .around li { border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 13.5px; color: var(--ink-2); background: var(--card); }

.venir .places { margin-top: 30px; }
.access-map { margin: 0 0 16px; background: #fff; border-radius: 6px; padding: 14px; box-shadow: 0 20px 40px -26px rgba(60, 40, 20, 0.35); }
.access-map img { width: 100%; height: auto; }
.access-map figcaption { font: italic 400 14px/1.3 var(--serif); color: var(--muted); padding-top: 8px; text-align: center; }
.route { border-top: 1px solid var(--line); padding: 14px 0; }
.route summary { cursor: pointer; font: 400 1.2rem/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; }
.route summary::after { content: '+'; color: var(--tone); }
.route[open] summary::after { content: '−'; }
.route p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.access .btn { margin-top: 10px; }
.around-title { margin-top: clamp(36px, 5vw, 64px); }
.around { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.rules { list-style: none; padding: 0; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 14.5px; color: var(--ink-2); }
.rules b { font: 400 1.15rem/1 var(--serif); color: var(--ink); margin-right: 4px; }
.contact-list li > div { display: flex; flex-wrap: wrap; gap: 4px 22px; }


/* ============ Les aquarelles de Marelles (dessins/) ============ */
.deco { display: block; height: auto; pointer-events: none; user-select: none; }
/* la frise orne la ligne « numéro + titre » de la section, sans ligne à elle */
.eyebrow .frise { display: inline-block; width: auto; height: clamp(26px, 3vw, 38px); margin: 0 0 0 6px; vertical-align: middle; }
.deco-chataigne { width: min(300px, 70%); margin: -40px 0 18px auto; }
.deco-step { width: min(320px, 90%); margin-top: 22px; filter: brightness(1.18) saturate(1.05); }
.deco-poussins { width: min(520px, 80%); margin: 34px auto 0; }
.linge { position: relative; padding-right: 128px !important; }
.deco-bouquet { position: absolute; width: 92px; right: 18px; top: 50%; transform: translateY(-50%) rotate(6deg); }
.salles-note-row { display: flex; align-items: center; gap: clamp(20px, 4vw, 60px); margin: 30px auto 40px; }
.salles-note-row .salles-note { margin: 0; flex: 1; }
.deco-tambour { flex: none; width: clamp(110px, 14vw, 170px); transform: rotate(-6deg); }
.etagere { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 40px); margin-top: clamp(36px, 5vw, 64px); padding-bottom: 10px; border-bottom: 2px solid rgba(110, 63, 34, 0.35); }
.etagere .deco { height: clamp(56px, 9vw, 120px); width: auto; transition: transform 0.6s var(--ease); }
.etagere .deco:nth-child(2) { height: clamp(20px, 2.6vw, 34px); }
.etagere .deco:nth-child(odd) { transform: rotate(-3deg); }
.deco-velo { width: 150px; margin: 6px 0 -10px auto; }
.deco-reveil { position: absolute; width: 64px; right: 18px; top: -30px; transform: rotate(10deg); }
.deco-vitrail { position: relative; width: min(180px, 44%); margin: -20px auto 24px; opacity: 0.9; }
@media (max-width: 900px) {
  .linge { padding-right: 96px !important; }
  .deco-bouquet { width: 68px; right: 12px; }
  .etagere .deco:nth-child(n+5) { display: none; }
}


/* Le fil du défilement : barre de progression et section en cours */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--tone, var(--p0)); transition: width 0.15s linear, background 0.6s; pointer-events: none; }
.topbar:not(.scrolled) .progress { opacity: 0; }
.topbar-sec { display: none; align-items: center; gap: 8px; font: italic 400 15px/1 var(--serif); text-decoration: none; color: var(--ink-2); opacity: 0; transition: opacity 0.4s; }
.topbar-sec b { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; font: italic 500 14px/1 var(--serif); color: #fff; background: var(--tone, var(--p0)); border-radius: 46% 54% 50% 44% / 52% 44% 56% 48%; }
@media (max-width: 1400px) { .topbar.scrolled .topbar-sec { display: inline-flex; opacity: 1; } }
@media (max-width: 1100px) and (min-width: 901px) { .topnav { gap: 18px; } }


/* ============ La structure en pages ============ */
.topnav a[aria-current="page"]::after { right: 0; }

/* la barre « Vos dates » du haut de page */
.quick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 14px; padding: 10px; width: fit-content; max-width: 100%; border-radius: 14px; background: rgba(255, 252, 245, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -24px rgba(20, 14, 10, 0.5); color: var(--ink); }
.quick label { display: flex; flex-direction: column; gap: 4px; }
.quick label span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.quick input { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.quick input[type="date"] { width: 158px; }
.quick-n input { width: 92px; }
.quick .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); padding: 13px 22px; }
.quick .btn:hover { background: var(--chestnut); border-color: var(--chestnut); color: #fff; }
.quick-facts { flex: 1 1 100%; contain: inline-size; margin: 2px 4px 2px; font-size: 13px; color: var(--ink-2); }

/* les portes vers les pages */
.portes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.porte { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), opacity 0.8s var(--ease); }
.porte:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(60, 40, 20, 0.4); }
.porte-img { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.porte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.porte:hover .porte-img img { transform: scale(1.05); }
.porte-plan img { object-fit: contain; padding: 10px; }
.porte-cases { display: flex; gap: 4px; margin: 18px 24px 0; }
.porte-cases span { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); font: italic 400 14px/1 var(--serif); color: var(--ink-2); }
.porte h3 { font: 400 1.7rem/1.1 var(--serif); margin: 12px 24px 8px; }
.porte p:not(.porte-cases) { margin: 0 24px; color: var(--ink-2); font-size: 15px; }
.porte-lien { margin: auto 24px 22px; padding-top: 16px; font-weight: 500; color: var(--tone); }

/* les hôtes et les avis */
.avis-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.avis-hotes { margin: 0; }
.avis-hotes img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.avis-quote { margin: 0 0 26px; }
.avis-quote p { font: italic 300 clamp(1.4rem, 2.4vw, 2.1rem)/1.38 var(--serif); margin: 0 0 14px; }
.avis-quote footer { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tone); }
.avis-liste { display: grid; gap: 12px; margin-bottom: 20px; }
.avis-carte { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.avis-carte blockquote { margin: 0 0 8px; color: var(--ink-2); }
.avis-carte figcaption { font-size: 13px; color: var(--muted); }
.avis-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.avis-liens a { font-weight: 500; color: var(--ink); }

/* le haut des pages secondaires */
.page-hero { position: relative; min-height: clamp(380px, 62vh, 620px); display: flex; align-items: flex-end; color: #fff8ec; overflow: hidden; background: #2b211a; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, 0.5), rgba(20, 14, 10, 0) 65%), linear-gradient(180deg, rgba(20, 14, 10, 0.3), rgba(20, 14, 10, 0.05) 35%, rgba(20, 14, 10, 0.7)); }
.page-hero-copy .display, .page-hero-sub { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.page-hero-copy { position: relative; z-index: 1; padding: 120px 0 clamp(32px, 5vw, 56px); }
.page-hero .eyebrow { color: rgba(255, 248, 236, 0.85); }
.page-hero .eyebrow a { color: inherit; }
.page-hero .display { color: #fff8ec; margin-bottom: 14px; }
.page-hero .display em { color: #ffd9a3; }
.page-hero-sub { margin: 0; max-width: 38em; font-size: 1.08rem; opacity: 0.92; }
.page .topbar:not(.scrolled) { color: #fff8ec; }
.page .topbar:not(.scrolled) .btn { border-color: rgba(255, 248, 236, 0.7); }

/* l'appel à réserver en bas des pages secondaires */
.cta-reserver { background: var(--paper-2); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .prose { margin: 0 auto 26px; }
.cta-inner .hero-cta { justify-content: center; }
.cta-deco { width: min(240px, 60%); margin: 0 auto 18px; }
.next-page { margin-top: 36px; display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; font: 400 1.35rem/1.2 var(--serif); color: var(--ink); }
.next-page span { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.next-page:hover { color: var(--chestnut); }

/* la FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font: 400 1.2rem/1.3 var(--serif); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--tone); font-family: var(--sans); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: -4px 0 18px; color: var(--ink-2); max-width: 40em; }
.faq-deco { width: 150px; margin-top: 24px; }

/* le pied des pages secondaires */
.site-foot { background: #121826; color: #bfc0c8; font-size: 13.5px; padding: 30px 0; }
.site-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.site-foot p { margin: 0; }
.site-foot a { color: #ede6d9; }

/* sur téléphone : « Voir les disponibilités » toujours à portée de pouce */
.cta-bar { display: none; }
@media (max-width: 900px) {
  .cta-bar { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; padding: 8px; border-radius: 16px; background: rgba(243, 237, 227, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 34px -14px rgba(20, 14, 10, 0.5); transform: translateY(140%); transition: transform 0.45s var(--ease); }
  .cta-bar.show { transform: none; }
  .cta-bar .btn { flex: 1; padding: 13px 16px; }
  .cta-tel { display: grid; place-items: center; padding: 0 16px; border-radius: 99px; border: 1px solid var(--ink); text-decoration: none; font-weight: 500; }
  .draft { bottom: 84px; }
  .portes-grid, .avis-grid { grid-template-columns: 1fr; }
  .avis-hotes img { aspect-ratio: 16 / 10; }
  .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  .portes-grid { gap: 12px; }
  .porte { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 12px; }
  .porte-img { grid-row: 1 / 4; aspect-ratio: auto; height: 100%; min-height: 128px; border-radius: 5px; }
  .porte-cases { display: none; }
  .porte h3 { font-size: 1.35rem; margin: 2px 0 4px; }
  .porte p:not(.porte-cases) { margin: 0; font-size: 14px; }
  .porte-lien { margin: 0; padding-top: 6px; font-size: 14px; }
}
@media (max-width: 640px) {
  /* grille stricte : sur iPhone, les champs date ont une largeur propre qui débordait à droite */
  .quick { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .quick label { min-width: 0; }
  .quick-n, .quick .btn, .quick-facts { grid-column: 1 / -1; }
  .quick input, .quick input[type="date"], .quick-n input { display: block; width: 100%; min-width: 0; max-width: 100%; font-size: 16px; min-height: 46px; -webkit-appearance: none; appearance: none; }
  .quick input::-webkit-date-and-time-value { text-align: left; }
  .page-hero-copy { padding-top: 100px; }
}

/* ============ Responsive ============ */
@media (max-width: 1400px) { .hop { display: none; } }
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { grid-template-columns: 1fr; }
  .planner { grid-template-columns: 1fr; grid-template-rows: none; }
  .planner > .quote { grid-column: auto; grid-row: auto; }
  .we-deco { width: 84px; top: 12px; right: 12px; }
  .we-titre { padding-right: 92px; }
  .quote { position: static; }
  .hop { display: none; }
}
@media (max-width: 900px) {
  .topnav, .topbar > .btn { display: none; }
  .menu-btn { display: block; }
  .grid-2, .hameau-head, .story { grid-template-columns: 1fr; }
  .lieu .prose { padding-top: 0; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .salles { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr 1fr; } .trio figure:nth-child(3) { display: none; }
  .figures > li { padding: 22px 0 22px !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .figures > div:nth-child(odd) { padding-right: 16px !important; border-right: 1px solid var(--line); }
  .figures > div:nth-child(even) { padding-left: 18px !important; }
  .story-year { position: sticky; top: 64px; z-index: 1; background: linear-gradient(#efe3cc 70%, transparent); padding: 10px 0 20px; }
  .story-year span { font-size: clamp(4rem, 22vw, 7rem); }
  .step { padding: 7vh 0; }
  .cal-months { grid-template-columns: 1fr; }
  .tool-main { grid-template-columns: 1fr; }
  .tool-form { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-copy { padding-top: 96px; }
  .hameau-head { gap: 0; }
  .hero-sub { font-size: 1rem; }
  .clock { left: var(--gut); right: var(--gut); bottom: 22px; flex-direction: column; align-items: stretch; gap: 10px; }
  .clock-chips { width: 100%; justify-content: space-between; }
  .clock-chips button { flex: 1; padding-inline: 6px; }
  .scroll-cue { display: none; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 8px; }
  .gallery .ph-large:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery .ph:last-child { grid-column: span 2; }
  .gallery .ph figcaption { opacity: 1; transform: none; font-size: 12px; padding: 22px 10px 8px; }
  .ph-large { grid-column: span 2; grid-row: span 2; }
  .ph-haut { grid-column: span 1; grid-row: span 3; }
  .ph-carre { grid-column: span 1; grid-row: span 2; }
  .pin.big span { width: 24px; height: 24px; font-size: 12px; }
  .pin.small span { width: 10px; height: 10px; }
  .pin::before { width: 24px; height: 24px; }
  .pin em { display: none; }
  .places li { grid-template-columns: 1fr; gap: 4px; }
  .trio { grid-template-columns: 1fr 1fr; gap: 10px; } .trio figure:nth-child(2) { margin-top: 24px; }
  .rooms li { grid-template-columns: 48px 1fr; }
  .rooms b { font-size: 2rem; }
  .section[data-p]::before { width: 220px; opacity: 0.07; }
  .f-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .cal-box, .quote, .we { padding: 20px 16px; }
  .draft { white-space: normal; text-align: center; width: calc(100vw - 32px); }
  .dd-bar { flex-wrap: wrap; }
  .dv-meta { text-align: left; }
}
.portes { padding-bottom: clamp(12px, 2vw, 24px); }

/* bandeau de consentement (mesure.js) */
.consent { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 420px; padding: 16px 18px; border-radius: 14px; background: #fffaf2; color: #2a211a; box-shadow: 0 18px 44px -18px rgba(20, 14, 10, 0.55); border: 1px solid rgba(60, 40, 20, 0.12); font: 400 14px/1.5 'Instrument Sans', system-ui, sans-serif; }
.consent p { margin: 0 0 12px; }
.consent a { color: inherit; }
.consent div { display: flex; gap: 8px; justify-content: flex-end; }
.consent button { font: inherit; font-weight: 500; padding: 9px 18px; border-radius: 99px; border: 1px solid #2a211a; background: none; color: #2a211a; cursor: pointer; }
.consent button[data-v="oui"] { background: #2a211a; color: #fffaf2; }
@media (max-width: 900px) { .consent { left: 12px; right: 12px; max-width: none; bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* l'arrivée : de vraies photos posées sur les collines */
.hero-photos { position: absolute; z-index: 2; right: calc((100vw - var(--wrap)) / 2 + 2vw); top: 30%; width: min(25vw, 360px, calc((70svh - 90px) * 0.8)); display: block; color: #fff8ec; text-decoration: none; }
.hph { position: relative; margin: 0; padding: 3px; background: #fffaf2; border-radius: 3px; box-shadow: 0 22px 40px -18px rgba(20, 14, 10, 0.55); opacity: 0; transform: translateY(24px) rotate(-2.5deg); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: 0.7s; }
.hph video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: 1px; background: #c9d2c4; }
body.ready .hph { opacity: 1; transform: rotate(-2.5deg); }
.hero-photos:hover .hph { transform: translateY(-4px) rotate(-1.5deg); transition-delay: 0s; }
.hph-lien { display: block; margin-top: 12px; text-align: right; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: inherit; text-decoration: none; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }
.hero-film-m { display: none; }
@media (max-width: 1100px) { .hero-photos { display: none; } }
@media (max-width: 1100px) {
  .hero-film-m { display: block; margin: -14px 0 18px; max-width: 520px; border-radius: 10px; overflow: hidden; border: 1.5px solid rgba(255, 250, 242, 0.9); box-shadow: 0 12px 26px -14px rgba(20, 14, 10, 0.55); }
  .hero-film-m video { display: block; width: 100%; height: clamp(150px, 44vw, 240px); object-fit: cover; object-position: 50% 62%; background: #c9d2c4; }
  .hero { height: auto; min-height: 100svh; }
  .hero-copy { padding-bottom: 120px; }
}

/* les logements ouverts selon le groupe, dans l'estimation */
.q-logis { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; margin: -4px 0 18px; }
.ql-plan { position: relative; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ql-plan img { display: block; width: 100%; height: auto; filter: saturate(0.75) brightness(1.04); }
.ql-pin { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%) scale(0.8); background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1.5px rgba(35, 26, 20, 0.4); transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s; }
.ql-pin.on { transform: translate(-50%, -50%) scale(1.15); background: var(--p1); box-shadow: 0 0 0 2px #fff, 0 0 12px 3px rgba(85, 137, 69, 0.75); }
.ql-texte { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ql-texte b { color: var(--ink); font-weight: 500; }
/* sur téléphone : 16 px dans les champs, sinon iOS zoome au toucher */
@media (max-width: 640px) {
  .quote :is(select, input:not([type="range"]):not([type="checkbox"])), #form :is(input, select, textarea) { font-size: 16px; }
}
@media (max-width: 900px) { .deco-reveil { display: none; } }

/* les cases de date se cliquent partout */
input[type="date"] { cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }

/* la barre de dates : notre petit calendrier, qui montre les jours réservés */
.quick-dates { position: relative; display: flex; gap: 10px; }
.qf { display: flex; flex-direction: column; gap: 4px; }
.qf > span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.qd { width: 158px; min-height: 44px; text-align: left; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.qd[aria-expanded="true"] { border-color: var(--ink); }
.qp { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 18px); width: 320px; padding: 14px 14px 10px; background: #fffaf2; color: var(--ink); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(20, 14, 10, 0.55); border: 1px solid var(--line); }
.qp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.qp-titre { margin: 0; font: 400 1.05rem/1 var(--serif); }
.qp-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; }
.qp-nav:disabled { opacity: 0.3; cursor: default; }
.qp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.qp-grid .dow { font-size: 11px; text-align: center; color: var(--muted); padding: 4px 0; }
.qp-grid .day { font-size: 13px; }
.qp-note { margin: 8px 2px 0; font-size: 12px; color: var(--muted); }
.qp-note.warn { color: #9a3a12; }
@media (max-width: 640px) {
  .quick-dates { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .qd { width: 100%; font-size: 16px; min-height: 46px; }
  .qp { width: auto; right: 0; }
}

.q-check small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.q-check input:disabled + span { opacity: 0.55; }
.q-ouvrir { margin-top: 10px; }
.q-ouvrir[hidden] { display: none; }
.q-options { display: grid; gap: 10px; margin: 0 0 18px; }
.q-options .q-check { margin: 0; }
.q-draps { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.q-draps input { width: 76px; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.q-check em, .q-field em { font-style: normal; color: var(--muted); font-size: 12px; }

.venir-liens { display: flex; flex-wrap: wrap; gap: 8px; }

/* 1 · le lieu : quelques moments du hameau, qui défilent */
.lieu-grid { align-items: center; }
.vues { position: relative; }
.vues-cadre { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 60px -34px rgba(60, 40, 20, 0.45); touch-action: pan-y; }
.vue { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s var(--ease); }
.vue.on { opacity: 1; }
.vue img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.vue.on img { transform: scale(1); }
.vues-legende { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px 14px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(30, 22, 14, 0.6)); }
.vues-nav { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 250, 242, 0.85); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity 0.3s; }
.vues-nav[data-dir="-1"] { left: 12px; } .vues-nav[data-dir="1"] { right: 12px; }
.vues-cadre:hover .vues-nav, .vues-nav:focus-visible { opacity: 1; }
.vues-pouces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.vues-pouces button { position: relative; padding: 0; border: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; opacity: 0.55; transition: opacity 0.3s; background: none; }
.vues-pouces button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vues-pouces button[aria-selected="true"] { opacity: 1; }
.vues-pouces button::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--tone, var(--ink)); }
.vues-pouces button[aria-selected="true"]::after { animation: vue-temps var(--duree, 5s) linear forwards; }
.vues.pause .vues-pouces button::after { animation-play-state: paused; }
@keyframes vue-temps { to { width: 100%; } }
@media (hover: none) { .vues-nav { display: none; } }
@media (max-width: 900px) { .vues { margin-top: 28px; } }

/* les photos en grand */
.gallery .ph-frame img, .vue img, .trio img, .salles img, .table-photos img, .access-map img { cursor: zoom-in; }
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 14, 10, 0.92); color: #fff8ec; }
.lb::backdrop { background: rgba(20, 14, 10, 0.6); }
.lb figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 24px; }
.lb img, .lb video { max-width: min(1400px, 100%); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); }
.lb video { background: #000; }
.lb [hidden] { display: none; }
video[data-video] { cursor: zoom-in; }
.lb-legende { font-size: 14px; opacity: 0.85; text-align: center; }
.lb-ferme, .lb-nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 248, 236, 0.35); background: rgba(20, 14, 10, 0.4); color: #fff8ec; font-size: 20px; cursor: pointer; }
.lb-ferme { top: 14px; right: 14px; font-size: 26px; line-height: 1; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-nav[data-dir="-1"] { left: 14px; } .lb-nav[data-dir="1"] { right: 14px; }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 18px; translate: none; } }
.vue { pointer-events: none; }
.vue.on { pointer-events: auto; z-index: 1; }
.vues-legende, .vues-nav { z-index: 2; }

/* « Disponibilités » mène droit au calendrier, entier à l'écran, sous la barre du haut */
#calendrier { scroll-margin-top: 76px; }
