/* Gift of God Guest House
 *
 * Vibe: Editorial Luxury. Warm creams, high contrast, film grain.
 * Palette sampled from the property's own photographs, saffron as the single
 * accent. One radius system (soft squircle) with concentric nesting.
 */

:root {
  --paper:       #FBF9F5;
  --paper-2:     #F4F0E8;
  --surface:     #FEFDFB;
  --ink:         #16130F;
  --ink-70:      #55504A;
  --ink-45:      #8A837A;

  /* L'or et le turquoise du logo de la maison, releves sur le fichier
     d'origine. Le site parlait un or plus jaune que sa propre marque. */
  --accent:      #BB983A;
  --brand-teal:  #10A2AF;
  --accent-ink:  #7A5A08;

  --ok:          #2F6B4F;
  --ok-bg:       #EDF3EF;
  --err:         #A3302A;
  --err-bg:      #F7EDEC;

  --hair:        rgba(22, 19, 15, .07);
  --hair-2:      rgba(22, 19, 15, .12);

  /* Diffused ambient depth, never a hard drop shadow. */
  --lift:   0 30px 60px -28px rgba(22, 19, 15, .20), 0 8px 20px -14px rgba(22, 19, 15, .12);
  --lift-2: 0 50px 90px -40px rgba(22, 19, 15, .28), 0 12px 28px -18px rgba(22, 19, 15, .14);

  --r:      2rem;
  --r-in:   calc(2rem - 0.375rem);
  --r-sm:   1rem;

  --ease:   cubic-bezier(0.32, 0.72, 0, 1);
  --shell:  1360px;
  --pad:    40px;

  --font: "Geist", system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(46px, 7.4vw, 104px); letter-spacing: -0.05em; }
h2 { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.042em; }
h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.028em; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

/* Film grain. Fixed and inert so it never repaints with scroll. */
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: 128px 0; position: relative; }
.stack { display: flex; flex-direction: column; }

.eyebrow {
  align-self: flex-start;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(187, 152, 58, .16); box-shadow: inset 0 0 0 1px rgba(187, 152, 58, .34);
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-ink);
}
.head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; max-width: 62ch; }
.head p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-70); }

/* ---------- scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(48px); filter: blur(8px); }
.js .reveal.in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; filter: none; } }

/* ---------- double bezel ---------- */

.bezel { padding: 8px; border-radius: var(--r); background: rgba(22, 19, 15, .035); box-shadow: inset 0 0 0 1px var(--hair); }
.bezel__in { border-radius: var(--r-in); background: var(--surface); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), var(--lift); overflow: hidden; }

/* ---------- buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 12px 0 28px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; color: var(--ink);
  background: transparent; cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .35s var(--ease), box-shadow .5s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn__icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(22, 19, 15, .1);
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.btn:hover .btn__icon { transform: translate(3px, -1px) scale(1.06); }
.btn--primary { background: var(--accent); box-shadow: 0 14px 30px -14px rgba(187, 152, 58, .8); }
.btn--primary:hover { background: #A5842F; }
.btn--dark { background: var(--ink); color: var(--paper); box-shadow: 0 16px 34px -18px rgba(22, 19, 15, .8); }
.btn--dark .btn__icon { background: rgba(255, 255, 255, .14); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn--ghost:hover { background: rgba(22, 19, 15, .05); }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(10px); }
.btn--light .btn__icon { background: rgba(255, 255, 255, .18); }
.btn--light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--sm { height: 46px; padding: 0 10px 0 20px; font-size: 14.5px; gap: 10px; }
.btn--sm .btn__icon { width: 28px; height: 28px; }
.btn--plain { padding: 0 28px; }
.btn--full { width: 100%; justify-content: center; padding: 0 24px; }
.btn[disabled] { background: rgba(22, 19, 15, .08); color: var(--ink-45); cursor: default; box-shadow: none; }

/* ---------- floating island nav ---------- */

.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 22px var(--pad) 0; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  height: 66px; padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(251, 249, 245, .72); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), var(--lift);
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.brand__mark { width: 38px; height: auto; display: block; }
.brand__sub { font-size: 8.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-teal); }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; font-size: 14px; font-weight: 500; color: var(--ink-70); transition: color .4s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(22, 19, 15, .05); }
.langs button { padding: 6px 10px; border: 0; border-radius: 999px; background: none; font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink-45); cursor: pointer; transition: background-color .45s var(--ease), color .45s var(--ease); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(22, 19, 15, .05); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .55s var(--ease), opacity .3s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--pad); background: rgba(251, 249, 245, .86); backdrop-filter: blur(28px); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet a { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; padding: 10px 0; opacity: 0; transform: translateY(40px); }
.sheet.open a { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.sheet.open a:nth-child(1) { transition-delay: .08s; }
.sheet.open a:nth-child(2) { transition-delay: .13s; }
.sheet.open a:nth-child(3) { transition-delay: .18s; }
.sheet.open a:nth-child(4) { transition-delay: .23s; }
.sheet.open a:nth-child(5) { transition-delay: .28s; }
.sheet.open a:nth-child(6) { transition-delay: .33s; }

/* ---------- hero slider ---------- */

.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__slide.on img { transform: scale(1.14); transition: transform 9s linear; }
@media (prefers-reduced-motion: reduce) { .hero__slide img, .hero__slide.on img { transform: none; transition: none; } }

/* The scrim is what makes the photographs recede behind the type. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12, 10, 8, .94) 0%, rgba(12, 10, 8, .62) 34%, rgba(12, 10, 8, .34) 64%, rgba(12, 10, 8, .55) 100%),
    linear-gradient(to right, rgba(12, 10, 8, .74) 0%, rgba(12, 10, 8, .34) 46%, rgba(12, 10, 8, .10) 78%);
}
.hero__in { position: relative; z-index: 2; width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad) 64px; display: flex; flex-direction: column; gap: 30px; }
.hero .eyebrow { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #F5E7BE; backdrop-filter: blur(10px); }
.hero h1 { color: #fff; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; max-width: 44ch; color: rgba(255, 255, 255, .82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

.hero__foot { position: relative; z-index: 2; width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad) 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 44px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.dots i { display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.dots i::after { content: ""; display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.dots button[aria-current="true"] i::after { transform: scaleX(1); transition: transform 6.4s linear; }
.hero__cap { font-size: 12.5px; letter-spacing: 0.03em; color: rgba(255, 255, 255, .62); text-align: right; }

/* ---------- marquee band ---------- */

.band { background: var(--ink); color: var(--paper); padding: 30px 0; }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; font-size: 14.5px; }
.band__wa { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.band span { color: rgba(251, 249, 245, .66); }

/* ---------- included ---------- */

.inclus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.inclus li { list-style: none; }
.inclus .bezel__in { padding: 30px 28px; display: flex; align-items: center; gap: 16px; min-height: 108px; }
.inclus b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.inclus .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 5px rgba(187, 152, 58, .2); }

/* ---------- apartments ---------- */

.feat .bezel__in { display: grid; grid-template-columns: 1.15fr 1fr; }
/* Fixed height so a portrait photograph cannot stretch the row. */
.feat figure { margin: 0; position: relative; overflow: hidden; height: 470px; }
.feat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat:hover img { transform: scale(1.04); }
.feat__body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.feat__body p { font-size: 16.5px; line-height: 1.6; color: var(--ink-70); }

.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 52px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price span { font-size: 15px; color: var(--ink-45); }

.rest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.unit .bezel__in { display: flex; flex-direction: column; }
.unit figure { margin: 0; overflow: hidden; }
.unit img { width: 100%; height: 260px; object-fit: cover; transition: transform 1.2s var(--ease); }
.unit:hover img { transform: scale(1.04); }
.unit__body { padding: 32px 34px 34px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; flex-grow: 1; }
.unit__body p { font-size: 15px; line-height: 1.55; color: var(--ink-70); }
.unit .price b { font-size: 36px; }
.unit .price span { font-size: 14px; }
.unit__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; margin-top: auto; }

/* ---------- rates ---------- */

.rates-wrap .bezel__in { padding: 12px 20px; }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 22px 20px; text-align: left; font-size: 16px; }
.rates thead th { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45); }
.rates tbody tr + tr td { border-top: 1px solid var(--hair); }
.rates td:first-child { font-weight: 600; letter-spacing: -0.015em; }
.rates td:not(:first-child) { font-variant-numeric: tabular-nums; color: var(--ink-70); }
.rates td:nth-child(2) { color: var(--ink); font-weight: 600; }

/* ---------- gallery ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips button { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: rgba(22, 19, 15, .04); box-shadow: inset 0 0 0 1px var(--hair); font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-70); cursor: pointer; transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.chips button:hover { background: rgba(22, 19, 15, .08); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

/* Asymmetrical bento: the first tile spans wide and tall. */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 20px; }
.gal figure { margin: 0; position: relative; }
/* The lead tile takes 2x2 (four cells) and the rest one each, so the current
   five photographs fill two rows exactly with no hole. Worth rebalancing when
   the count changes. */
.gal figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal .bezel, .gal .bezel__in { height: 100%; }
.gal button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--r-in); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.gal button:hover img { transform: scale(1.05); }
.gal figcaption { position: absolute; left: 22px; bottom: 20px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(12, 10, 8, .55); backdrop-filter: blur(10px); color: #fff; font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.gal figure:hover figcaption { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(12, 10, 8, .94); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; padding: 5vw; opacity: 1; }
.lightbox img { max-width: min(1200px, 90vw); max-height: 84vh; width: auto; border-radius: var(--r-sm); box-shadow: var(--lift-2); }
.lightbox__close { position: absolute; top: 26px; right: 26px; width: 52px; height: 52px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; cursor: pointer; }
.lightbox__cap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .72); font-size: 14px; }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
.about__text p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--ink-70); }
.about__text p + p { margin-top: 24px; }
.about__text p:last-child { color: var(--ink); font-weight: 500; }
.values { display: grid; gap: 0; margin: 0; padding: 0; }
.values li { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.values li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.disclaimer { margin-top: 32px; font-size: 14.5px; line-height: 1.6; color: var(--ink-45); }

/* ---------- booking ---------- */

.book { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.book__fields { padding: 44px; display: flex; flex-direction: column; gap: 26px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 16px; }

.fld { display: flex; flex-direction: column; gap: 9px; }
.fld > label, .fld > span.lbl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45); }
.fld .opt { letter-spacing: 0.06em; text-transform: none; }
.fld input, .fld textarea {
  height: 56px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  background: rgba(22, 19, 15, .035); box-shadow: inset 0 0 0 1px var(--hair);
  font-family: inherit; font-size: 16px; color: var(--ink);
  transition: box-shadow .45s var(--ease), background-color .45s var(--ease);
}
.fld textarea { height: 104px; padding: 18px; resize: vertical; line-height: 1.55; }
.fld input:focus, .fld textarea:focus { outline: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(187, 152, 58, .26); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-45); }
.fld[data-invalid="true"] > label { color: var(--err); }
.fld[data-invalid="true"] input, .fld[data-invalid="true"] textarea { box-shadow: inset 0 0 0 1.5px var(--err); }
.err { font-size: 13px; color: var(--err); }
.err:empty { display: none; }

.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.types label { padding: 18px; border-radius: var(--r-sm); background: rgba(22, 19, 15, .035); box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; display: flex; flex-direction: column; gap: 5px; transition: box-shadow .45s var(--ease), background-color .45s var(--ease); }
.types label:hover { background: rgba(22, 19, 15, .06); }
.types input { position: absolute; opacity: 0; pointer-events: none; }
.types label:has(input:checked) { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(187, 152, 58, .26); }
.types b { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.types span { font-size: 14px; color: var(--ink-45); }
.types label:has(input:checked) span { font-weight: 600; color: var(--accent-ink); }

.summary { position: sticky; top: 108px; }
.summary .bezel__in { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.summary__top { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.summary__top b { font-size: 22px; font-weight: 600; letter-spacing: -0.028em; }
.summary__top span { font-size: 14.5px; color: var(--ink-45); }
.lines { display: flex; flex-direction: column; gap: 13px; }
.line { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.line span { color: var(--ink-70); }
.line b { font-weight: 600; }
.line--off b, .line--off span { color: var(--accent-ink); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; border-top: 1px solid var(--hair); }
.total > span { font-size: 15px; font-weight: 600; }
.total > b { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.summary__note { font-size: 12.5px; line-height: 1.55; color: var(--ink-45); }

/* ---------- spinner and alerts ---------- */

.spin { width: 19px; height: 19px; flex-shrink: 0; border: 2px solid rgba(251, 249, 245, .26); border-top-color: var(--paper); border-radius: 50%; animation: gg-spin .72s linear infinite; }
@keyframes gg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.6s; } }

/* The loader is the house mark held inside a turning arc, so the wait is
   branded rather than a stock spinner. */
.ring { position: relative; width: 92px; height: 92px; display: grid; place-items: center; color: currentColor; }
.ring--lg { width: 120px; height: 120px; }
.ring__spin { position: absolute; inset: 0; width: 100%; height: 100%; animation: gg-spin 1.15s cubic-bezier(0.62, 0.06, 0.35, 0.96) infinite; }
.ring__track { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .17; }
.ring__arc { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 68 221; }
.ring__mark { width: 22px; height: 30px; }
.ring--lg .ring__mark { width: 28px; height: 39px; }
@media (prefers-reduced-motion: reduce) { .ring__spin { animation-duration: 3.4s; animation-timing-function: linear; } }

.boot {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  animation: boot-failsafe 0s 4s forwards;
}
html:not(.js) .boot { display: none; }
.boot__name { margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; }
.boot__sub { font-size: 9px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-45); }
.boot.gone { opacity: 0; visibility: hidden; transition: opacity .65s var(--ease), visibility 0s .65s; }
@keyframes boot-failsafe { to { opacity: 0; visibility: hidden; } }

.veil {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(12, 10, 8, .74); backdrop-filter: blur(12px);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  /* Deliberately not animated. This overlay is what stops a second submit, so
     its visibility must never hang on an animation reaching its last frame. */
  opacity: 1;
}
.veil[hidden] { display: none; }
.veil__txt { font-size: 15px; font-weight: 500; letter-spacing: 0.03em; }

/* Not animated: this is the only confirmation the guest gets. */
.alert { padding: 20px 22px; border-radius: var(--r-sm); display: flex; gap: 14px; align-items: flex-start; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert strong { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
.alert p { font-size: 14px; line-height: 1.55; color: var(--ink-70); }
.alert__body { display: flex; flex-direction: column; gap: 6px; }
.alert--ok { background: var(--ok-bg); box-shadow: inset 0 0 0 1px rgba(47, 107, 79, .22); }
.alert--err { background: var(--err-bg); box-shadow: inset 0 0 0 1px rgba(163, 48, 42, .22); }

/* ---------- contact and footer ---------- */

.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact__card .bezel__in { padding: 34px; display: flex; flex-direction: column; gap: 12px; min-height: 168px; }
.contact__card b { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45); }
.contact__card a, .contact__card p { font-size: 22px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.3; }
.contact__card a { transition: color .4s var(--ease); }
.contact__card a:hover { color: var(--accent-ink); }

.footer { background: var(--ink); color: var(--paper); padding: 72px 0 60px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
.footer span { color: rgba(251, 249, 245, .55); }
.footer a { transition: color .4s var(--ease); }
.footer a:hover { color: var(--accent); }

/* ---------- admin ---------- */

.admin { background: var(--paper-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat .bezel__in { padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.stat span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45); }
.stat b { font-size: 34px; font-weight: 600; letter-spacing: -0.045em; }
.admin__bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: center; }
.admin__bar input { flex-grow: 1; min-width: 220px; height: 50px; padding: 0 18px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-family: inherit; font-size: 15px; }
.admin__wrap { overflow-x: auto; border-radius: var(--r-in); }
.admin table { width: 100%; border-collapse: collapse; min-width: 940px; background: var(--surface); }
.admin th, .admin td { padding: 16px 18px; text-align: left; font-size: 14px; white-space: nowrap; }
.admin thead th { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); border-bottom: 1px solid var(--hair); }
.admin tbody tr + tr td { border-top: 1px solid var(--hair); }
.admin__empty { padding: 28px 0; font-size: 15px; color: var(--ink-45); }
.linkbtn { border: 0; background: none; padding: 0 10px 0 0; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); cursor: pointer; transition: opacity .3s var(--ease); }
.linkbtn:hover { opacity: .65; }
.linkbtn--danger { color: var(--err); }

.hidden { display: none !important; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  :root { --pad: 28px; }
  .section { padding: 96px 0; }
  .feat .bezel__in { grid-template-columns: 1fr; }
  .feat figure { height: 320px; }
  .feat__body { padding: 38px 34px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .book { grid-template-columns: 1fr; }
  .summary { position: static; }
  .inclus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .gal figure:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  .section { padding: 76px 0; }
  .nav { display: none; }
  .nav-right .btn { display: none; }
  .burger { display: block; }
  .nav-pill { height: 62px; width: 100%; justify-content: space-between; }
  .hero__in { padding-bottom: 40px; gap: 22px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__cap { text-align: left; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex-grow: 1; justify-content: center; }
  .rest { grid-template-columns: 1fr; }
  .inclus { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gal figure:nth-child(1), .gal figure:nth-child(4) { grid-column: span 1; }
  .gal figure:nth-child(1) { grid-row: span 1; }
  .gal figcaption { opacity: 1; transform: none; }
  .row2, .row3, .types { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .book__fields { padding: 28px 24px; }
  .summary .bezel__in { padding: 26px 24px; }
  .rates th, .rates td { padding: 16px 12px; font-size: 14px; }
  .rates-wrap { overflow-x: auto; }
  .rates { min-width: 560px; }
  .sheet a { font-size: 28px; }
}

/* ---------- consentement à la mesure d'audience ----------
   Un bandeau, pas un mur : il se pose en bas, laisse lire la page derrière lui,
   et donne les deux réponses au même rang. Un « Refuser » relégué en petit gris
   n'est pas un choix, c'est une formalité. */
.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(680px, calc(100vw - 32px));
  padding: 16px 20px;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--lift);
}

.consent__txt { font-size: 13px; line-height: 1.45; color: var(--ink-70); }

.consent__act { display: flex; gap: 8px; flex-shrink: 0; }

.consent__btn {
  padding: 9px 16px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-70);
  cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

.consent__btn:hover { color: var(--ink); background: rgba(22, 19, 15, .04); }

.consent__btn--oui {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.consent__btn--oui:hover { background: var(--ink); color: var(--paper); opacity: .88; }

/* Revenir sur son choix : sans cela, le consentement n'en est pas un. */
.consent__lien {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink-45);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent__lien:hover { color: var(--ink-70); }

@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; }
  .consent__act { justify-content: flex-end; }
}
