/* ========== Polices auto-hébergées ========== */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ========== Tokens ========== */
:root {
  --paper: #fbf6ee;
  --sand: #f2e9dc;
  --ink: #142321;
  --muted: #5a6764;
  --lagoon: #0d3b3a;
  --lagoon-2: #12504e;
  --sea: #1d8783;
  --coral: #d9533b;
  --coral-2: #c2432c;
  --sun: #f3c9a0;
  --line: color-mix(in oklab, var(--ink) 12%, transparent);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px -12px rgb(13 59 58 / .25);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.65 var(--sans);
  font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.center { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

/* ========== Boutons ========== */
.btn {
  --bg: var(--coral); display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: #fff; font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { --bg: var(--coral-2); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgb(217 83 59 / .6); }
.btn:active { transform: none; }
.btn-sm { padding: .65em 1.15em; font-size: .875rem; }
.btn-ghost { --bg: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .5); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: rgb(255 255 255 / .22); box-shadow: none; }
.btn-ghost-dark { --bg: transparent; color: var(--lagoon); border-color: color-mix(in oklab, var(--lagoon) 40%, transparent); }
.btn-ghost-dark:hover { --bg: var(--lagoon); color: #fff; box-shadow: none; }
.btn-full { width: 100%; padding-block: 1.1em; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ========== Navigation ========== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter);
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.nav[data-scrolled] {
  background: color-mix(in oklab, var(--paper) 86%, transparent); color: var(--ink);
  backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 400 1.35rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; }
.brand em { color: var(--sun); transition: color .3s; }
.nav[data-scrolled] .brand em { color: var(--coral); }
.brand-mark svg { width: 28px; height: 28px; }
.menu { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.75rem); list-style: none; margin: 0; padding: 0; font-size: .92rem; font-weight: 500; }
.menu a:not(.btn) { text-decoration: none; opacity: .88; position: relative; }
.menu a:not(.btn):hover { opacity: 1; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s var(--ease); }
.menu a:not(.btn):hover::after, .menu a[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer;
  }
  .nav-toggle span[aria-hidden]::before, .nav-toggle span[aria-hidden]::after, .nav-toggle span[aria-hidden] {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-toggle span[aria-hidden] { position: relative; }
  .nav-toggle span[aria-hidden]::before, .nav-toggle span[aria-hidden]::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span[aria-hidden]::before { top: -7px; }
  .nav-toggle span[aria-hidden]::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] span[aria-hidden] { background: transparent; }
  .nav-toggle[aria-expanded="true"] span[aria-hidden]::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span[aria-hidden]::after { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem; background: var(--paper); color: var(--ink); font-size: 1.1rem;
    box-shadow: 0 20px 30px -20px rgb(0 0 0 / .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .menu li { border-bottom: 1px solid var(--line); }
  .menu li:last-child { border: 0; padding-top: 1rem; }
  .menu a:not(.btn) { display: block; padding: .9rem 0; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { width: 100%; padding-block: 1em; font-size: 1rem; }
  .nav[data-open] { background: var(--paper); color: var(--ink); }
  .nav[data-open] .brand em { color: var(--coral); }
  .nav[data-open] .menu { opacity: 1; visibility: visible; transform: none; }
}

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: #fff; isolation: isolate; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; animation: kenburns 24s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(8 30 29 / .55) 0%, rgb(8 30 29 / .1) 30%, rgb(8 30 29 / .25) 55%, rgb(8 30 29 / .85) 100%);
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { align-self: end; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding-top: 120px; padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .9; margin-bottom: 1rem; animation: rise .9s .1s var(--ease) both; }
.hero h1 {
  font-size: clamp(3.6rem, 1.5rem + 11vw, 10.5rem); line-height: .9; letter-spacing: -.035em; margin-bottom: .25em;
  font-variation-settings: "opsz" 144; animation: rise 1s .2s var(--ease) both;
}
.hero h1 em { color: var(--sun); }
.lead { max-width: 34ch; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); line-height: 1.45; opacity: .95; animation: rise 1s .35s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; animation: rise 1s .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.facts {
  list-style: none; margin: 0; padding: 1rem var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.25rem;
  border-top: 1px solid rgb(255 255 255 / .2); background: rgb(8 30 29 / .35); backdrop-filter: blur(10px);
  font-size: .9rem; animation: rise 1s .7s var(--ease) both;
}
.facts strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-right: .3em; color: var(--sun); }

/* ========== Sections ========== */
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); }
.section-tint { background: var(--sand); }
.section-sea { background: linear-gradient(180deg, var(--paper), #e3f0ec 60%, var(--paper)); }
.section-dark { background: var(--lagoon); color: #eef3f1; }
.section-dark .eyebrow { color: var(--sun); }
.section-dark .muted { color: #a9bdb9; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p:last-child { color: #c4d4d0; }
.prose p { max-width: 60ch; }

.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.1fr; }
  .split-rev { grid-template-columns: 1.15fr 1fr; }
  .split-rev > :first-child { order: 2; }
}

.ticks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.75rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: color-mix(in oklab, var(--sea) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d8783' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.section-dark .ticks li::before { background-color: rgb(243 201 160 / .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23f3c9a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Images : base commune */
[data-gallery] img { cursor: zoom-in; }
.mosaic figure, .card, .trio figure, .rail figure, .spot, .video-btn { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.mosaic img, .card img, .trio img, .rail img, .spot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img, .card:hover img, .trio figure:hover img, .spot:hover img { transform: scale(1.04); }

/* Vidéo */
.video-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; cursor: pointer; box-shadow: var(--shadow); }
.video-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: brightness(.82); }
.video-btn:hover img { transform: scale(1.03); filter: brightness(.7); }
.play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(255 255 255 / .92); color: var(--coral); box-shadow: 0 10px 40px rgb(0 0 0 / .35); transition: transform .3s var(--ease);
}
.play svg { width: 34px; margin-left: 4px; }
.video-btn:hover .play { transform: scale(1.08); }
.video iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.video figcaption { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

/* Mosaïque 1 grande + 2 */
.mosaic { display: grid; gap: clamp(.5rem, 1.2vw, 1rem); grid-template-columns: 1fr 1fr; }
.mosaic .m-big { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.mosaic figure:not(.m-big) { aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: min(72vh, 640px); }
  .mosaic .m-big { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .mosaic figure:not(.m-big) { aspect-ratio: auto; }
  .mosaic-rev { grid-template-columns: 1fr 2fr; }
  .mosaic-rev .m-big { grid-column: 2; }
}

.cols3 { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 760px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.note { padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.section-tint .note { background: color-mix(in oklab, var(--paper) 70%, transparent); }
.note p { margin: 0; color: var(--muted); }

/* Cartes chambres / terrasse */
.cards { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: none; overflow: visible; }
.card img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.cards-3 .card img { aspect-ratio: 4 / 3; }
.card { position: relative; }
.card > img { overflow: hidden; }
.card figcaption { padding: 1rem .25rem 0; color: var(--muted); font-size: .95rem; }
.card figcaption strong { display: block; font: 500 1.2rem/1.2 var(--serif); color: var(--ink); margin-bottom: .3rem; }
.card:hover img { transform: none; filter: saturate(1.1); }

/* Rail horizontal (intérieur) */
.rail-wrap { position: relative; min-width: 0; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: .25rem; border-radius: var(--radius);
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { scroll-snap-align: start; position: relative; aspect-ratio: 4 / 5; background: var(--lagoon-2); }
.rail figcaption {
  position: absolute; left: .75rem; bottom: .75rem; padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgb(13 59 58 / .7); backdrop-filter: blur(8px); color: #fff;
}
.rail-ctrl { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.rail-ctrl button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: none; color: inherit; font-size: 1.15rem; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.rail-ctrl button:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .6); }
@media (min-width: 600px) { .rail { grid-auto-columns: 62%; } }

.chips { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .05); }

/* Citation terrasse */
.quote { margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; max-width: 46ch; }
.quote p { font: italic 300 clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem)/1.3 var(--serif); color: var(--lagoon); }

/* Bandeau jardin */
.band { position: relative; min-height: clamp(420px, 80vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; }
.band-img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(8 30 29 / .8)); }
.band-text { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.band-text .eyebrow { color: var(--sun); }
.band-text h2 { max-width: 16ch; font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); }
@supports (animation-timeline: view()) {
  .band-img { animation: parallax linear both; animation-timeline: view(); }
  @keyframes parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
}

.trio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.5rem, 1.2vw, 1rem); }
.trio figure { aspect-ratio: 3 / 4; }
.trio figure:first-child { grid-row: span 2; aspect-ratio: auto; }

/* Guadeloupe */
.stats { list-style: none; padding: 0; margin: 0 0 clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stats li { background: var(--paper); padding: 1.4rem 1.5rem; }
.stats strong { display: block; font: 400 clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem)/1.1 var(--serif); color: var(--lagoon); }
.stats span { font-size: .88rem; color: var(--muted); }

.explore { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.spot { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.spot img { aspect-ratio: 3 / 2; height: auto; }
.spot > div { padding: 1.25rem 1.4rem 1.5rem; }
.spot h3 { margin-bottom: .4rem; }
.spot p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Tarifs */
.prices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; }
.price h3 { margin-bottom: .25rem; }
.price .when { color: var(--muted); font-size: .92rem; min-height: 2.6em; }
.price .amount { margin: 1rem 0 .25rem; font-size: 1rem; color: var(--muted); }
.price .amount strong { font: 400 clamp(2.6rem, 2rem + 2vw, 3.4rem)/1 var(--serif); color: var(--ink); letter-spacing: -.03em; }
.price .week { margin: 0; font-weight: 600; }
.price-hl { background: var(--lagoon); color: #fff; border-color: var(--lagoon); box-shadow: var(--shadow); }
.price-hl .when, .price-hl .amount { color: #b9cdc9; }
.price-hl .amount strong { color: var(--sun); }
.conditions { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in oklab, var(--paper) 70%, transparent); }
.conditions summary { padding: 1.1rem 1.5rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.conditions summary::-webkit-details-marker { display: none; }
.conditions summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; transition: transform .25s var(--ease); }
.conditions[open] summary::after { transform: rotate(45deg); }
.conditions ul { margin: 0; padding: 0 1.5rem 1.4rem 2.75rem; color: var(--muted); display: grid; gap: .5rem; }

/* Formulaire */
.contact { align-items: start; }
.form { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); display: grid; gap: 1rem; }
.row2, .row3 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr .8fr; } }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); border-radius: var(--radius-sm); padding: .8rem .9rem;
  transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 140px; field-sizing: content; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sea) 18%, transparent); }
.form [aria-invalid="true"] { border-color: var(--coral); }
.form small { color: var(--coral-2); font-weight: 500; min-height: 0; }
.form small:empty { display: none; }
.form .small { margin: 0; text-align: center; }
.nights { margin: -.25rem 0 0; font-size: .88rem; color: var(--sea); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; }
.status[data-kind="ok"] { background: #e2f3ee; color: #0c5a50; }
.status[data-kind="err"] { background: #fbe7e3; color: #8f2c1b; }

/* Pied de page */
.footer { background: #0a2a29; color: #b9cdc9; padding: 3rem 0 3.5rem; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; justify-content: space-between; }
.footer p { margin: 0; }
.brand-foot { color: #fff; font-size: 1.6rem; }
.brand-foot em { color: var(--sun); }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 20 19 / .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease both; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(94vw, 1600px); max-height: 82dvh; width: auto; height: auto; border-radius: 8px; object-fit: contain; cursor: default; }
.lb-cap { position: absolute; bottom: max(1.25rem, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: .95rem; opacity: .85; margin: 0; padding: 0 4rem; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .1); color: #fff; font-size: 1.6rem; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgb(255 255 255 / .22); }
.lb-close { top: 1rem; right: 1rem; font-size: 1.1rem !important; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
@keyframes fade { from { opacity: 0; } }

/* Apparition au défilement (CSS pur si supporté, sinon IntersectionObserver dans app.js) */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
}
@supports not (animation-timeline: view()) {
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Ajustements de cadrage */
#piscine .m-big img { object-position: 50% 85%; }

/* reCAPTCHA v3 : badge masqué, la mention légale est affichée sous le formulaire */
.grecaptcha-badge { visibility: hidden; }
