/* Wax Séjour · page d'un hébergement (reprise du template Mas de Wax Studio) */
:root {
  --bg: #f6efe4; --card: #fffaf2; --ink: #2f2a24; --muted: #625a4f; --line: #e4d8c4;
  --accent: #5b4b8a; --range: #e6e0f2; --olive: #55603a; --terra: #a8482a; --terra-h: #8f3b21;
  --sky1: #e9a76b; --sky2: #f3c58f; --sky3: #f6dcb0; --hill1: #b9a3c9; --hill2: #8f7cae; --hill3: #6b5b94;
  --title: "Fraunces", Georgia, serif; --body: "Work Sans", system-ui, sans-serif;
}
body[data-theme="olivier"] { --accent: #4d5a2c; --range: #e3e8d3; --hill1: #b7c08f; --hill2: #8d9a5f; --hill3: #66733c; --olive: #3f4a22; --terra: #7a5a1e; --terra-h: #634815; }
body[data-theme="terre"] { --accent: #9a3f22; --range: #f3dccf; --hill1: #e3b08f; --hill2: #c98660; --hill3: #a85f3c; --olive: #6e4a2a; }
body[data-theme="mer"] { --accent: #1f5f7a; --range: #d7e8ef; --sky1: #9cc7dd; --sky2: #cfe3ec; --sky3: #f1ead9; --hill1: #8fb9cc; --hill2: #5f93ab; --hill3: #3d728b; --olive: #2f5a4a; --terra: #1f5f7a; --terra-h: #174a60; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.05; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
svg.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

header { position: absolute; inset: 0 0 auto; z-index: 20; }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 16px; }
.logo { font: 600 1.5rem var(--title); text-decoration: none; color: var(--ink); min-height: 44px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border-radius: 99px; border: 0; cursor: pointer; font: 600 1rem var(--body); text-decoration: none; background: var(--terra); color: #fff; transition: transform .2s, background .2s; }
.btn:hover { background: var(--terra-h); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-light { background: rgba(255,255,255,.92); color: var(--ink); flex: none; }
.btn-light:hover { background: #fff; }

.hero { position: relative; min-height: min(92vh, 780px); display: grid; align-items: end; color: #fff; overflow: hidden; background: linear-gradient(var(--sky1), var(--sky2) 45%, var(--sky3)); }
.hero.photo { background: #2f2a24 center / cover no-repeat; }
.hero.photo .land, .hero.photo .sun { display: none; }
.hero svg.land { position: absolute; inset: auto 0 0; width: 100%; height: 75%; }
.hero .sun { position: absolute; top: 16%; right: 18%; width: clamp(80px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff6d6, #ffd98a 60%, rgba(255,217,138,0)); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.06); } }
.hero .layer { transition: transform .1s linear; }
.hero-text { position: relative; z-index: 1; isolation: isolate; padding: 0 0 clamp(50px, 9vw, 100px); text-shadow: 0 1px 12px rgba(30,24,40,.45); }
.hero-text::before { content: ""; position: absolute; inset: -30% -100vw -10%; background: linear-gradient(rgba(30,24,40,0), rgba(30,24,40,.66) 45%); z-index: -1; }
.kicker { letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin: 12px 0 16px; max-width: 14ch; overflow-wrap: anywhere; }
.hero p { font-size: 1.15rem; max-width: 46ch; margin: 0 0 26px; color: #fdf6ea; }
.hero .direct { font-size: .95rem; margin: 18px 0 0; display: flex; gap: 8px; align-items: center; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: clamp(60px, 9vw, 110px) 0; }
section.alt { background: var(--card); }
.head { max-width: 640px; margin-bottom: 34px; }
.head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.head p { color: var(--muted); margin: 12px 0 0; }

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.room { background: var(--card); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.room:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(47,42,36,.5); }
.room .art { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3.4rem; color: rgba(255,255,255,.9); }
.room .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room h3 { font-size: 1.45rem; }
.room p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.room .tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.room .tags span { display: inline-flex; gap: 6px; align-items: center; background: var(--bg); padding: 4px 10px; border-radius: 99px; }
.room .price { font: 600 1.4rem var(--title); }
.room .price small { font: 400 .9rem var(--body); color: var(--muted); }
.room button { margin-top: 6px; }

.stay { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.stay > * { min-width: 0; }
.cal { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-top h3 { font-size: 1.3rem; text-transform: capitalize; }
.cal-top button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.cal-top button:disabled { opacity: .4; cursor: default; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.grid7 .dow { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 6px 0; }
.grid7 button { min-height: 44px; min-width: 0; border: 0; border-radius: 10px; background: none; font: 500 .95rem var(--body); color: var(--ink); cursor: pointer; padding: 0; }
.grid7 button:hover:not(:disabled) { background: var(--card); }
.grid7 button:disabled { color: #7d7264; text-decoration: line-through; cursor: not-allowed; background: #e9e0d2; }
.grid7 button.past:disabled { background: none; }
.grid7 button.in-range { background: var(--range); border-radius: 0; }
.grid7 button.edge { background: var(--accent); color: #fff; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k-edge { background: var(--accent); } .k-range { background: var(--range); } .k-full { background: #e9e0d2; }
.sync { font-size: .85rem; color: var(--muted); margin: 10px 0 0; display: flex; gap: 6px; align-items: center; }
.quote { background: var(--ink); color: #f6efe4; border-radius: 22px; padding: 26px; position: sticky; top: 20px; }
.quote h3 { font-size: 1.5rem; margin-bottom: 14px; }
.quote label { display: grid; gap: 6px; font-size: .9rem; margin-bottom: 12px; color: #e5dccd; }
.quote .opt { color: #bfb4a2; }
.quote select, .quote input, .quote textarea { font: inherit; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 0; background: #f6efe4; color: var(--ink); width: 100%; }
.quote textarea { resize: vertical; }
.quote .check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.quote .check input { width: 22px; min-height: 22px; height: 22px; margin: 2px 0 0; accent-color: #f6efe4; }
.quote dl { margin: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .95rem; }
.quote dd { margin: 0; text-align: right; }
.quote .total { font: 600 2rem var(--title); color: #fff; }
.quote .hint { color: #d6ccbb; font-size: .9rem; margin: 0 0 14px; }
.quote .btn { width: 100%; background: #f6efe4; color: var(--ink); }
.quote .btn:hover { background: #fff; }
.quote .err { color: #ffc9b8; font-size: .92rem; margin: 10px 0 0; min-height: 1px; }
.quote .fine { color: #c9bfae; font-size: .82rem; margin: 14px 0 0; }
.quote #done { outline: none; }
.quote #done h4 { font: 600 1.35rem var(--title); margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.quote #done p { margin: 0 0 10px; color: #e5dccd; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.around { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spot { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.spot .ic { font-size: 1.5rem; color: var(--olive); }
.spot h3 { font-size: 1.15rem; margin: 8px 0 4px; }
.spot span { color: var(--muted); font-size: .9rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font: 600 1.1rem var(--title); list-style: none; padding: 10px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem var(--body); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

footer { background: var(--ink); color: #d8cfbf; padding: 40px 0; font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
footer .made { width: 100%; font-size: .85rem; color: #b9ae9c; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 900px) { .stay { grid-template-columns: 1fr; } .around { grid-template-columns: 1fr 1fr; } .quote { position: static; } }
@media (max-width: 420px) { .around { grid-template-columns: 1fr; } .bar .btn-light { padding: 12px 16px; } .logo { font-size: 1.2rem; } }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero-text :focus-visible, .quote :focus-visible, footer :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
