/* KechStay — feuille de style
   Palette : vert palmier + laiton. Typo : Marcellus (titres) / Jost (texte). */

:root {
  --paper: #FAFAF7;
  --stone: #EDECE6;
  --palm: #17322B;
  --palm-2: #22463C;
  --olive: #56634F;
  --brass: #A9802F;
  --brass-light: #D9B76A;
  --line: #D6D4CB;
  --err: #A3352B;
  --ok: #2F6B4F;

  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23D9B76A' stroke-opacity='.32' stroke-width='1'%3E%3Cpath d='M14 14h28v28H14z'/%3E%3Cpath d='M28 8.2 47.8 28 28 47.8 8.2 28z'/%3E%3Cpath d='M0 28h8.2M47.8 28H56M28 0v8.2M28 47.8V56'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--palm);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brass-light); color: var(--palm); }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.35rem, 4.6vw + .6rem, 4.1rem); line-height: 1.07; }
h2 { font-size: clamp(1.75rem, 2.2vw + .8rem, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 42rem; }
.lead { font-size: clamp(1.1rem, .5vw + 1rem, 1.28rem); line-height: 1.55; color: var(--olive); max-width: 38rem; }
.muted { color: var(--olive); }
.section { padding-block: clamp(var(--s7), 8vw, var(--s9)); }
.section-tight { padding-block: var(--s7); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }

.skip { position: absolute; left: var(--s4); top: -4rem; z-index: 100; background: var(--palm); color: #fff; padding: var(--s2) var(--s4); }
.skip:focus { top: var(--s4); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3rem; padding: .7rem 1.5rem;
  background: var(--palm); color: #fff; border: 1px solid var(--palm); border-radius: var(--radius);
  font: 500 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--palm-2); border-color: var(--palm-2); }
.btn-ghost { background: transparent; color: var(--palm); }
.btn-ghost:hover { background: var(--palm); color: #fff; }
.btn-small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }
.btn-light { background: var(--brass-light); border-color: var(--brass-light); color: var(--palm); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: flex-end; gap: .55rem; text-decoration: none; font: 400 1.55rem/1 var(--serif); }
.brand-arch { width: 1rem; height: 1.3rem; color: var(--brass); }
.site-nav { display: flex; align-items: center; gap: var(--s5); }
.site-nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: .98rem; padding-block: .3rem; border-bottom: 1px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--brass); }
.site-nav .lang { color: var(--olive); }
.nav-toggle { display: none; }

@media (max-width: 60rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); font: 500 .95rem var(--sans); color: var(--palm); cursor: pointer;
  }
  .site-nav {
    position: fixed; inset: 4.5rem 0 auto 0; flex-direction: column; align-items: stretch; gap: var(--s5);
    padding: var(--s5) var(--gutter) var(--s6); background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav ul a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--line); }
}

/* ---------- Cartes villas ---------- */
.villa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); gap: var(--s7) var(--s6); list-style: none; padding: 0; margin: 0; }
.villa-card { position: relative; }
.villa-card a.cover-link { text-decoration: none; }
.villa-card a.cover-link::after { content: ""; position: absolute; inset: 0; }
.villa-card .frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 0 0 / 24% 24% 0 0; background: var(--palm) var(--star) center / 56px; margin-bottom: var(--s4); }
.villa-card .frame img { width: 100%; height: 100%; object-fit: cover; }
.villa-card h3 { margin-bottom: .2rem; }
.villa-card:hover h3, .villa-card:focus-within h3 { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.villa-card .area { color: var(--brass); font-size: .95rem; font-weight: 500; margin-bottom: var(--s2); }
.villa-card .specs { color: var(--olive); font-size: .97rem; margin-bottom: var(--s2); }
.villa-card .price { font-weight: 500; }
@media (max-width: 40rem) { .villa-card .frame { aspect-ratio: 1 / 1; border-radius: 50% 50% 0 0 / 30% 30% 0 0; } }
.villa-card .summary { color: var(--olive); font-size: .97rem; margin-top: var(--s2); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: var(--s2) var(--s6) 0; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before { content: counter(step); display: block; font: 400 3rem/1 var(--serif); color: var(--brass); margin-bottom: var(--s4); }
.steps h3 { font-size: 1.3rem; margin-bottom: var(--s3); }
.steps p { color: var(--olive); }
@media (max-width: 48rem) {
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
  .steps li, .steps li:first-child { border-left: 0; padding: 0 0 0 4rem; position: relative; }
  .steps li::before { position: absolute; left: 0; top: 0; font-size: 2.6rem; }
}

/* ---------- Services ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(var(--s6), 6vw, var(--s8)); }
.services { margin: 0; }
.services div { padding-block: var(--s5); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s5); }
.services div:last-child { border-bottom: 1px solid var(--line); }
.services dt { font: 400 1.3rem/1.3 var(--serif); }
.services dd { margin: 0; color: var(--olive); }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
  .services div { grid-template-columns: 1fr; gap: var(--s2); }
}

.bg-stone { background: var(--stone); }

/* ---------- Bandeau vert ---------- */
.band { background: var(--palm); color: #fff; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0 0 0 auto; width: min(34%, 26rem); background: var(--star) center / 56px; -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); mask-image: linear-gradient(to right, transparent, #000 70%); pointer-events: none; }
.band-inner { position: relative; z-index: 1; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5) var(--s7); padding-block: clamp(var(--s7), 6vw, var(--s8)); }
.band h2 { max-width: 22ch; }
.band p { color: rgba(255, 255, 255, .78); margin-top: var(--s3); max-width: 34rem; }

/* ---------- En-têtes de page ---------- */
.page-head { padding-block: clamp(var(--s6), 6vw, var(--s8)) var(--s6); }
.page-head h1 { margin-bottom: var(--s4); }
.page-head-rule { border-bottom: 1px solid var(--line); padding-bottom: var(--s6); }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s4) var(--s5); padding: var(--s5) 0; border-block: 1px solid var(--line); margin-bottom: var(--s6); }
.filters .field { margin: 0; min-width: 9rem; }
.filters .field-check { align-self: center; margin-top: 1.4rem; }
.filters .reset { margin-left: auto; align-self: center; margin-top: 1.4rem; background: none; border: 0; padding: .4rem 0; font: inherit; color: var(--olive); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; cursor: pointer; }
.filters .reset:hover { color: var(--palm); text-decoration-color: var(--brass); }
.result-count { color: var(--olive); margin-bottom: var(--s5); }
.no-result { padding: var(--s6) 0; color: var(--olive); }

/* ---------- État vide ---------- */
.empty { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: var(--s7); align-items: end; padding: var(--s7) 0; border-top: 1px solid var(--line); }
.empty h2 { margin-bottom: var(--s4); font-size: clamp(1.6rem, 1.8vw + .9rem, 2.2rem); }
.empty p { color: var(--olive); max-width: 34rem; margin-bottom: var(--s5); }
.mini-arch { aspect-ratio: 3/4; border-radius: 999px 999px 0 0; background: var(--palm) var(--star) center / 56px; }
@media (max-width: 40rem) { .empty { grid-template-columns: 1fr; } .empty .mini-arch { display: none; } }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: var(--s8); align-items: start; }
@media (max-width: 48rem) { .about-grid { grid-template-columns: 1fr; } .about-grid .mini-arch { display: none; } }
[hidden] { display: none !important; }

/* ---------- Fiche villa ---------- */
.crumb { padding-top: var(--s5); font-size: .95rem; }
.crumb a { color: var(--olive); }
.villa-head { padding-block: var(--s4) var(--s6); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s4) var(--s6); }
.villa-head .area { color: var(--brass); font-weight: 500; margin-bottom: var(--s2); }
.villa-head h1 { margin-bottom: var(--s3); }
.villa-head .specs { color: var(--olive); }
.villa-head .price { font: 400 1.4rem/1.3 var(--serif); }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .5rem; aspect-ratio: 2.1 / 1; position: relative; }
.gallery button { padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; display: block; width: 100%; height: 100%; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery button:hover img { opacity: .9; }
.gallery button:first-child { grid-row: span 2; }
.gallery.count-1, .gallery.count-2, .gallery.count-3, .gallery.count-4 { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: 2.2 / 1; }
.gallery.count-1 button:not(:first-child), .gallery.count-2 button:not(:first-child),
.gallery.count-3 button:not(:first-child), .gallery.count-4 button:not(:first-child) { display: none; }
.gallery.count-1 button:first-child, .gallery.count-2 button:first-child,
.gallery.count-3 button:first-child, .gallery.count-4 button:first-child { grid-row: auto; border-radius: 0; }
.gallery .all { position: absolute; right: var(--s4); bottom: var(--s4); width: auto; height: auto; padding: .55rem 1rem; background: var(--paper); color: var(--palm); border: 1px solid var(--palm); border-radius: var(--radius); font: 500 .95rem var(--sans); cursor: pointer; }
.gallery .all:hover { background: var(--palm); color: #fff; }
.gallery-empty { aspect-ratio: 2.4 / 1; background: var(--palm) var(--star) center / 56px; display: grid; place-items: center; color: var(--brass-light); font: 400 1.3rem var(--serif); }
@media (max-width: 48rem) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: 4 / 3; }
  .gallery button:not(:first-child) { display: none; }
  .gallery button:first-child { grid-row: auto; border-radius: 0; }
  .gallery button.all { display: block; }
}

.villa-body { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(var(--s6), 6vw, var(--s8)); padding-block: var(--s7) var(--s8); }
.villa-body h2 { font-size: 1.6rem; margin-bottom: var(--s4); }
.villa-body section + section { margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.villa-desc { max-width: 40rem; font-size: 1.08rem; line-height: 1.7; }
.amenities { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--s6); }
.amenities li { padding: .45rem 0 .45rem 1.4rem; position: relative; break-inside: avoid; }
.amenities li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .55rem; height: .55rem; border: 1px solid var(--brass); transform: rotate(45deg); }
@media (max-width: 30rem) { .amenities { columns: 1; } }

.book-box { position: sticky; top: 6rem; align-self: start; border: 1px solid var(--line); border-top: 2px solid var(--brass); background: #fff; padding: var(--s6) var(--s5); border-radius: var(--radius); text-align: center; }
.book-box .price { font: 400 1.45rem/1.3 var(--serif); margin: var(--s5) 0 var(--s2); }
.book-box .min { color: var(--olive); font-size: .95rem; margin-bottom: var(--s5); }
.book-box .btn { width: 100%; }
.book-box .btn + .btn { margin-top: var(--s3); }
.book-box .note { color: var(--olive); font-size: .9rem; margin-top: var(--s4); }
@media (max-width: 56rem) {
  .villa-body { grid-template-columns: 1fr; }
  .book-box { position: static; order: -1; border-radius: var(--radius); text-align: left; }
  .book-box .price { margin-top: 0; }
}

/* ---------- Galerie plein écran ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 26, 22, .96); color: #fff; }
.lightbox::backdrop { background: rgba(13, 26, 22, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--gutter); }
.lb-count { font-size: .95rem; color: rgba(255, 255, 255, .7); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); position: relative; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { display: flex; justify-content: center; gap: var(--s4); padding: var(--s4); }
.lb-btn { min-width: 2.9rem; min-height: 2.9rem; padding: .4rem 1rem; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--radius); font: 500 1rem var(--sans); cursor: pointer; }
.lb-btn:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* ---------- Formulaire ---------- */
.form-section { background: var(--stone); }
.form-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(var(--s6), 6vw, var(--s8)); align-items: start; }
.form-grid > div:first-child h2 { margin-bottom: var(--s4); }
@media (max-width: 52rem) { .form-grid { grid-template-columns: 1fr; } }
.request-form { display: grid; gap: var(--s4); }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--s4); }
.field-row-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
label { font-size: .95rem; font-weight: 500; }
.opt { font-weight: 400; color: var(--olive); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 3rem; padding: .65rem .85rem;
  font: 400 1rem/1.4 var(--sans); color: var(--palm);
  background: #fff; border: 1px solid #B9B7AD; border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 7rem; }
select { appearance: none; padding-right: 2.4rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317322B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .9rem center; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
[aria-invalid="true"] { border-color: var(--err); }
.field-err { color: var(--err); font-size: .92rem; margin: 0; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--palm); }
.field-check label { font-weight: 400; font-size: .93rem; color: var(--olive); }
.field-check .field-err { grid-column: 2; }
.request-form .btn { justify-self: start; min-width: 14rem; }

.notice { padding: var(--s5); border-left: 3px solid; background: #fff; }
.notice:focus { outline: none; }
.notice-ok { border-color: var(--ok); }
.notice-err { border-color: var(--err); margin-bottom: var(--s5); }
.notice-t { font: 400 1.4rem/1.3 var(--serif); margin-bottom: var(--s2); }

.contact-direct { list-style: none; padding: 0; margin: var(--s6) 0 0; }
.contact-direct li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.contact-direct li:last-child { border-bottom: 1px solid var(--line); }
.contact-direct span { display: block; font-size: .9rem; color: var(--olive); }

/* ---------- Partenaires ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(var(--s6), 6vw, var(--s8)); }
.two-col h2 { font-size: 1.75rem; margin-bottom: var(--s4); }
.two-col p { color: var(--olive); }
.checklist { list-style: none; padding: 0; margin: var(--s5) 0 0; }
.checklist li { padding: .6rem 0 .6rem 1.5rem; border-top: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .55rem; height: .55rem; border: 1px solid var(--brass); transform: rotate(45deg); }
@media (max-width: 48rem) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Texte long (légal, à propos) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s3); }
.prose p, .prose li { color: #2A4139; }
.prose ul { padding-left: 1.2rem; margin: 0 0 var(--s4); }
.prose li { margin-bottom: .35rem; }
.prose .lead { color: var(--olive); }
.prose dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: .5rem var(--s4); margin: 0 0 var(--s4); }
.prose dt { color: var(--olive); }
.prose dd { margin: 0; }
@media (max-width: 36rem) { .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: var(--s3); } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--palm); color: rgba(255, 255, 255, .82); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); padding-block: var(--s8) var(--s6); }
.footer-logo { font: 400 1.9rem/1 var(--serif); color: #fff; margin-bottom: var(--s3); }
.footer-h { font: 500 .95rem var(--sans); color: var(--brass-light); margin-bottom: var(--s3); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .25rem 0; }
.footer-list a { text-decoration-color: rgba(217, 183, 106, .5); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: var(--s5); font-size: .88rem; color: rgba(255, 255, 255, .62); }
@media (max-width: 44rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flottant ---------- */
.wa-float { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 40; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: #1F7A4D; color: #fff; box-shadow: 0 6px 18px rgba(23, 50, 43, .28); }
.wa-float svg { width: 1.7rem; height: 1.7rem; }
.wa-float:hover { background: #17633E; }

/* ---------- 404 ---------- */
.notfound { padding-block: var(--s9); text-align: center; }
.notfound h1 { margin-bottom: var(--s4); }
.notfound p { color: var(--olive); margin-bottom: var(--s6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* =====================================================================
   Accueil « séjours » (v2)
   ===================================================================== */
:root { --ivory: #F6F1E6; --culture: #A9802F; --romance: #8E4B5A; --energie: #2F6B70; --wa: #1F7A4D; }

.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(246, 241, 230, .55); }
.btn-outline-light:hover { background: var(--ivory); color: var(--palm); border-color: var(--ivory); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #17633E; border-color: #17633E; }

/* ---------- En-tête posé sur le hero ---------- */
.site-header.is-overlay { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; color: var(--ivory); transition: background-color .3s, color .3s, border-color .3s; }
.is-overlay .brand-arch { color: var(--brass-light); }
.is-overlay .site-nav ul a, .is-overlay .site-nav .lang { color: inherit; }
.is-overlay .btn-header { background: var(--brass-light); border-color: var(--brass-light); color: var(--palm); }
.is-overlay .btn-header:hover { background: var(--ivory); border-color: var(--ivory); }
.is-overlay .nav-toggle { color: inherit; border-color: rgba(246, 241, 230, .45); }
.site-header.is-overlay.is-solid { background: rgba(250, 250, 247, .95); backdrop-filter: blur(8px); border-bottom-color: var(--line); color: var(--palm); }
.is-overlay.is-solid .brand-arch { color: var(--brass); }
.is-overlay.is-solid .btn-header { background: var(--palm); border-color: var(--palm); color: #fff; }
.is-overlay.is-solid .nav-toggle { border-color: var(--line); }
@media (max-width: 60rem) {
  .is-overlay .site-nav { color: var(--palm); }
  .is-overlay .site-nav.is-open ~ *, .is-overlay:has(.site-nav.is-open) { background: var(--paper); color: var(--palm); }
  .is-overlay .site-nav .btn-header { background: var(--palm); border-color: var(--palm); color: #fff; }
}

/* ---------- Hero : l'arche qui s'ouvre ---------- */
.hero-stage {
  --p: 0; --a: calc(1 - var(--p));
  --side: 31%; --top: 15%; --r: 19vw;
  position: relative; height: 210vh; background: var(--palm) var(--star) center / 56px; color: var(--ivory);
}
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  clip-path: inset(calc(var(--a) * var(--top)) calc(var(--a) * var(--side)) 0 calc(var(--a) * var(--side)) round calc(var(--a) * var(--r)) calc(var(--a) * var(--r)) 0 0);
  will-change: clip-path;
}
.hero-media-inner { position: absolute; inset: 0; transform: scale(calc(1.12 - var(--p) * .12)); transform-origin: 50% 80%; }
.hero-media-inner img, .hero-scene { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 30, 26, .82) 0%, rgba(13, 30, 26, .35) 45%, rgba(13, 30, 26, .1) 70%), linear-gradient(to right, rgba(13, 30, 26, .55), transparent 60%); opacity: calc(.35 + var(--p) * .4); }
.hero-frame {
  position: absolute; top: calc(var(--top) - 16px); left: calc(var(--side) - 16px); right: calc(var(--side) - 16px); bottom: 0;
  border: 1px solid var(--brass-light); border-bottom: 0; border-radius: calc(var(--r) + 16px) calc(var(--r) + 16px) 0 0;
  opacity: calc(var(--a) * 1.4 - .4); pointer-events: none;
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 8vh, 5rem); z-index: 2; }
.hero-copy h1 { font-size: clamp(2.6rem, 5.2vw + .5rem, 5.6rem); line-height: 1.02; max-width: 14ch; margin: var(--s4) 0 var(--s5); text-shadow: 0 2px 30px rgba(10, 24, 20, .45); }
.hero-lead { max-width: 34rem; font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); line-height: 1.55; color: rgba(246, 241, 230, .88); margin-bottom: var(--s6); text-shadow: 0 1px 16px rgba(10, 24, 20, .5); }
.hero-price { display: inline-block; margin: 0; padding: .4rem .9rem; border: 1px solid var(--brass-light); border-radius: 999px; color: var(--brass-light); font-weight: 500; font-size: .98rem; background: rgba(23, 50, 43, .55); backdrop-filter: blur(4px); }
.hero-scroll { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 8vh, 5rem); margin: 0; font-size: .85rem; color: rgba(246, 241, 230, .7); writing-mode: vertical-rl; letter-spacing: .08em; opacity: var(--a); }
.hero-scroll::after { content: ""; display: inline-block; width: 1px; height: 3.5rem; margin-top: .8rem; background: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media-inner > * { animation: hero-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-frame { animation: fade 1.2s .8s both; }
  .hero-copy > * { animation: fade-up .9s both; }
  .hero-copy > :nth-child(1) { animation-delay: .5s; }
  .hero-copy > :nth-child(2) { animation-delay: .65s; }
  .hero-copy > :nth-child(3) { animation-delay: .8s; }
  .hero-copy > :nth-child(4) { animation-delay: .95s; }
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 52rem) {
  .hero-stage { --side: 9%; --top: 13%; --r: 41vw; }
  .hero-copy h1 { max-width: 12ch; }
  .hero-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-stage { height: 100vh; height: 100svh; } }

/* ---------- Les trois séjours ---------- */
.stays-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); align-items: end; margin-bottom: var(--s7); }
.stays-head .lead { margin: 0; }
@media (max-width: 52rem) { .stays-head { grid-template-columns: 1fr; gap: var(--s4); } }
.theme-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 60rem) { .theme-grid { grid-template-columns: 1fr; max-width: 34rem; } }
.theme-card { --th: var(--culture); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.theme-romance { --th: var(--romance); }
.theme-energie { --th: var(--energie); }
.theme-top { position: relative; background: var(--th); color: var(--ivory); padding: var(--s7) var(--s5) var(--s5); border-radius: 999px 999px 0 0; margin: var(--s4) var(--s4) 0; overflow: hidden; aspect-ratio: 5 / 4; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; }
.theme-top::before { content: ""; position: absolute; inset: 0; background: var(--star) center / 56px; opacity: .55; mix-blend-mode: screen; }
.theme-top > * { position: relative; }
.theme-icon { width: 3.6rem; height: 3.2rem; margin-bottom: var(--s3); color: var(--brass-light); }
.theme-romance .theme-icon { color: #F2C9C4; }
.theme-energie .theme-icon { color: #BFE0D9; }
.theme-top h3 { font-size: 2.1rem; }
.theme-body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.theme-desc { color: var(--olive); }
.theme-ideas { font-weight: 500; font-size: .95rem; margin: var(--s2) 0 var(--s2); }
.theme-acts { list-style: none; padding: 0; margin: 0 0 var(--s5); }
.theme-acts li { padding: .45rem 0 .45rem 1.3rem; border-top: 1px solid var(--line); position: relative; font-size: .98rem; }
.theme-acts li::before { content: ""; position: absolute; left: 0; top: 1rem; width: .5rem; height: .5rem; border: 1px solid var(--th); transform: rotate(45deg); }
.theme-price { margin-top: auto; font: 400 1.35rem/1.3 var(--serif); color: var(--th); margin-bottom: var(--s4); }
.theme-card .btn { background: var(--th); border-color: var(--th); }
.theme-card .btn:hover { background: var(--palm); border-color: var(--palm); }
.stays-mix { margin-top: var(--s6); color: var(--olive); }

/* ---------- Le déroulé ---------- */
.journey { background: var(--palm); color: var(--ivory); padding-block: clamp(var(--s8), 10vw, 9rem); position: relative; }
.journey::before { content: ""; position: absolute; inset: 0; background: var(--star) center / 56px; opacity: .35; pointer-events: none; }
.journey-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--s6), 7vw, var(--s9)); }
.journey-intro { position: sticky; top: 7rem; align-self: start; }
.journey-intro h2 { font-size: clamp(2.2rem, 3vw + .8rem, 3.6rem); margin-bottom: var(--s5); }
.journey-intro p { color: rgba(246, 241, 230, .8); max-width: 26rem; margin-bottom: var(--s6); font-size: 1.1rem; }
.journey-steps { list-style: none; margin: 0; padding: 0 0 0 4.2rem; position: relative; counter-reset: js; }
.journey-steps::before, .journey-fill { content: ""; position: absolute; left: 1.15rem; top: .4rem; width: 1px; background: rgba(246, 241, 230, .22); bottom: 2rem; }
.journey-fill { background: var(--brass-light); bottom: auto; height: calc(var(--jp) * (100% - 2.4rem)); width: 2px; left: calc(1.15rem - .5px); }
.jstep { counter-increment: js; position: relative; padding-bottom: clamp(var(--s7), 9vh, 6rem); opacity: .45; transition: opacity .5s; }
.jstep:last-child { padding-bottom: 0; }
.jstep.is-on { opacity: 1; }
.jstep::before { content: counter(js); position: absolute; left: -4.2rem; top: -.1rem; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(246, 241, 230, .4); background: var(--palm); font: 400 1.1rem/1 var(--serif); z-index: 1; transition: background-color .4s, color .4s, border-color .4s; }
.jstep.is-on::before { background: var(--brass-light); border-color: var(--brass-light); color: var(--palm); }
.jphase { color: var(--brass-light); font-size: .95rem; font-weight: 500; margin-bottom: var(--s2); }
.jstep h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin-bottom: var(--s3); }
.jstep > p:last-child { color: rgba(246, 241, 230, .8); max-width: 30rem; }
@media (max-width: 52rem) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-intro { position: static; }
  .journey-steps { padding-left: 3.6rem; }
  .jstep::before { left: -3.6rem; }
}
@media (prefers-reduced-motion: reduce) { .jstep { opacity: 1; } }

/* ---------- Villas ---------- */
.villas-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); padding: var(--s6) 0; border-block: 1px solid var(--line); }
.villas-empty p { max-width: 38rem; color: var(--olive); margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--stone); }
.faq-list details { border-top: 1px solid #CFCCC1; }
.faq-list details:last-child { border-bottom: 1px solid #CFCCC1; }
.faq-list summary { list-style: none; cursor: pointer; padding: var(--s5) 2.5rem var(--s5) 0; position: relative; font: 400 1.3rem/1.35 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--olive); max-width: 40rem; padding-bottom: var(--s5); margin: 0; }

/* ---------- Composer mon séjour ---------- */
.composer-section { background: var(--paper); }
.composer-intro h2 { font-size: clamp(2rem, 2.4vw + .9rem, 3rem); margin-bottom: var(--s4); }
.composer-intro .lead { margin-bottom: var(--s6); }
.composer-or { font-weight: 500; margin-bottom: var(--s3); }
.composer { display: grid; gap: var(--s5); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brass); padding: clamp(var(--s5), 3vw, var(--s6)); }
.composer-progress { display: none; }
.composer.is-stepped .composer-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.composer-progress li { padding-top: .6rem; border-top: 3px solid var(--line); font-size: .92rem; color: var(--olive); }
.composer-progress li.is-done, .composer-progress li.is-current { border-top-color: var(--brass); color: var(--palm); }
.composer-progress li.is-current { font-weight: 500; }
.composer-count { margin: 0; font-size: .9rem; color: var(--olive); }
.composer:not(.is-stepped) .composer-count { display: none; }
.composer-step { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s4); min-width: 0; }
.composer-step legend { font: 400 1.6rem/1.2 var(--serif); padding: 0; margin-bottom: var(--s4); }
.composer-q { font-weight: 500; margin: var(--s2) 0 0; }
.theme-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--s3); }
.theme-opt { --th: var(--palm); position: relative; display: flex; align-items: center; justify-content: center; min-height: 3.6rem; padding: .6rem; border: 1px solid #B9B7AD; border-radius: var(--radius); cursor: pointer; text-align: center; font: 400 1.15rem var(--serif); background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.theme-opt.theme-culture { --th: var(--culture); } .theme-opt.theme-romance { --th: var(--romance); } .theme-opt.theme-energie { --th: var(--energie); }
.theme-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.theme-opt:has(input:checked) { background: var(--th); border-color: var(--th); color: #fff; }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.acts { display: grid; gap: var(--s4); }
.acts-h { font-size: .9rem; color: var(--olive); margin: 0 0 var(--s2); }
.acts-group { display: flex; flex-wrap: wrap; gap: var(--s2); }
.acts-group .acts-h { flex-basis: 100%; }
.act { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border: 1px solid #CFCCC1; border-radius: 999px; font-weight: 400; font-size: .95rem; cursor: pointer; background: #fff; }
.act input { width: 1rem; height: 1rem; accent-color: var(--palm); margin: 0; }
.act:has(input:checked) { border-color: var(--palm); background: var(--stone); }
.acts-group.is-match .act { border-color: var(--brass); }
.composer-nav { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; }
.composer-nav [data-go="next"], .composer-nav .btn-submit { margin-left: auto; }
.composer.is-stepped .composer-step[hidden] { display: none; }
.composer-done .btn { margin-top: var(--s2); }

/* ---------- WhatsApp partout ---------- */
.wa-float { width: auto; height: auto; min-height: 3.5rem; padding: .55rem 1.15rem .55rem .75rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; background: var(--wa); font-weight: 500; font-size: .98rem; right: var(--s4); bottom: var(--s4); }
.wa-float svg { width: 1.8rem; height: 1.8rem; flex: none; }
.wa-q { font-weight: 400; opacity: .85; }
@media (max-width: 40rem) {
  .wa-float { padding: 0; width: 3.5rem; justify-content: center; }
  .wa-float-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
section[id] { scroll-margin-top: 4.5rem; }
@media (max-width: 52rem) { .hero-shade { opacity: calc(.7 + var(--p) * .2); } }
.hero-media-inner img { object-position: 62% 60%; }
.hero-shade { background: linear-gradient(to bottom, rgba(13, 30, 26, .55), transparent 22%), linear-gradient(to top, rgba(13, 30, 26, .85) 0%, rgba(13, 30, 26, .4) 45%, rgba(13, 30, 26, .1) 70%), linear-gradient(to right, rgba(13, 30, 26, .65), transparent 62%); }

/* ===== Header v3 : la villa au centre, les moments du séjour autour ===== */
.hero-stage { --u: min(1vw, 1.6vh); --side: calc(50% - var(--u) * 17); --top: calc(72px + var(--u) * 2); --r: calc(var(--u) * 17); height: 230vh; }
.hero-media-inner img { object-position: 58% 62%; }
.hero-copy { text-align: center; bottom: clamp(1.5rem, 5vh, 3.5rem); }
.hero-copy h1 { margin-inline: auto; max-width: 19ch; font-size: clamp(2.2rem, calc(var(--u) * 4.6), 4.6rem); margin-block: var(--s3) var(--s4); }
.hero-lead { margin-inline: auto; max-width: 40rem; margin-bottom: var(--s5); }
.hero-copy .actions { justify-content: center; }
.hero-scroll { display: none; }

.hero-tiles { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.tile { position: absolute; top: calc(72px + var(--u) * var(--y)); left: calc(50% + var(--u) * var(--x)); width: calc(var(--u) * var(--w));
  --dir: -1; transform: translate(calc(var(--p) * 34vw * var(--dir)), calc(var(--p) * -10vh)) rotate(calc(var(--rot, 0deg) * (1 - var(--p))));
  opacity: calc(1 - var(--p) * 2.2); pointer-events: auto; will-change: transform, opacity; }
.hero-stage.is-open .tile { pointer-events: none; }
.tile a { display: block; position: relative; overflow: hidden; border: 2px solid rgba(246, 241, 230, .9); border-radius: 6px; box-shadow: 0 14px 34px rgba(5, 15, 12, .45); color: var(--ivory); text-decoration: none; }
.tile img { width: 100%; height: auto; display: block; transition: transform .6s; }
.tile a:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .6rem .5rem; font-size: .8rem; line-height: 1.25; font-weight: 500; background: linear-gradient(to top, rgba(10, 24, 20, .85), transparent); }
.tile a:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }
.tile-rando     { --x: -47; --y: 5;  --w: 12;   --rot: -2deg; }
.tile-hammam    { --x: -32; --y: 13; --w: 11;   --rot: 1.5deg; }
.tile-souk      { --x: -44; --y: 23; --w: 10.5; --rot: 1deg; }
.tile-parapente { --x: 27;  --y: 4;  --w: 17;   --rot: 1.5deg; --dir: 1; }
.tile-golf      { --x: 21;  --y: 17; --w: 11;   --rot: -1.5deg; --dir: 1; }
.tile-demande   { --x: 34;  --y: 21; --w: 15;   --rot: 2deg; --dir: 1; }
.tile-rando a, .tile-souk a, .tile-golf a { border-radius: 999px 999px 6px 6px; }

@media (prefers-reduced-motion: no-preference) {
  .tile { animation: tile-in .9s cubic-bezier(.2, .7, .2, 1) backwards; }
  .tile-rando { animation-delay: .55s; } .tile-parapente { animation-delay: .65s; } .tile-hammam { animation-delay: .75s; }
  .tile-golf { animation-delay: .85s; } .tile-souk { animation-delay: .95s; } .tile-demande { animation-delay: 1.05s; }
}
@keyframes tile-in { from { opacity: 0; scale: .88; } }

@media (max-width: 52rem) {
  .hero-stage { --side: 15%; --top: 13%; --r: 35vw; height: 210vh; }
  .hero-tiles .tile span { display: none; }
  .tile { top: calc(var(--y) * 1%); left: auto; width: calc(var(--w) * 1vw); }
  .tile-rando     { --y: 12; --w: 21; left: 2vw; }
  .tile-hammam    { --y: 26; --w: 19; left: 4vw; }
  .tile-souk      { --y: 40; --w: 18; left: 2vw; }
  .tile-parapente { --y: 12; --w: 27; right: 2vw; }
  .tile-golf      { --y: 23; --w: 19; right: 4vw; }
  .tile-demande   { --y: 37; --w: 26; right: 2vw; }
  .hero-copy h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero-lead { display: none; }
}
@media (max-width: 52rem) and (min-height: 760px) { .hero-lead { display: block; font-size: .98rem; } }

/* Cartes séjours en photo */
.theme-top { aspect-ratio: 4 / 3.4; }
.theme-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.theme-demande .theme-photo, .theme-romance .theme-photo { object-position: 62% 50%; }
.theme-top::before { background: linear-gradient(to top, var(--th) 6%, color-mix(in srgb, var(--th) 55%, transparent) 38%, transparent 72%); opacity: 1; mix-blend-mode: normal; z-index: 1; }
.theme-top > :not(.theme-photo) { z-index: 2; }
.theme-icon { width: 2.8rem; height: 2.5rem; margin-bottom: var(--s2); }
.theme-top .theme-icon { display: none; }
