/* Casa Cinarca - feuille de style unique. Monde « Golfe de Sagone » :
   la page suit la journée, du jour clair (accueil, matin, midi) à la nuit (soir, contact).
   Couleurs en tokens, mode sombre automatique (prefers-color-scheme). */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --bg: #f7f5f0;
  --surface: #ece8df;
  --text: #0f2233;
  --muted: #455668;
  --line: #d8d2c4;
  --sea: #2c6a8f;
  --gold: #e1a35c;
  --gold-text: #0f2233;
  --night: #0f2233;
  --night-deep: #0a1825;
  --on-night: #f4efe6;
  --on-night-muted: #b4c2cf;
  --line-night: #27405a;
  --shadow: 0 24px 60px -24px rgb(15 34 51 / 0.35);

  --radius: 10px;
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 50;
  --z-lightbox: 100;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a27;
    --surface: #12283a;
    --text: #f1ede4;
    --muted: #aebccb;
    --line: #223a4e;
    --sea: #86b9d8;
    --night: #08131d;
    --night-deep: #050d14;
    --line-night: #1f3548;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.6);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: var(--sea) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #0f2233; }
input, textarea, select { caret-color: var(--sea); accent-color: var(--sea); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.1; }
em { font-style: italic; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.prose { max-width: 62ch; color: var(--muted); text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 600; }

/* Mode « nuit » : sections du soir */
.night { background: var(--night); color: var(--on-night); }
.night .prose, .night .lead, .night .muted { color: var(--on-night-muted); }
.night .prose strong { color: var(--on-night); }
.night :focus-visible { outline-color: var(--gold); }
.night ::selection { background: var(--gold); color: #0f2233; }
.night--deep { background: var(--night-deep); }
.dusk { height: clamp(7rem, 18vw, 14rem); background: linear-gradient(180deg, var(--bg), var(--night)); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--gold); color: var(--gold-text);
  padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
a, button, input, textarea, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold); color: var(--gold-text);
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover { background: #ecb674; border-color: #ecb674; box-shadow: 0 10px 24px -12px rgb(225 163 92 / 0.8); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); border-color: currentColor; box-shadow: none; }
.night .btn--ghost { color: var(--on-night); }
.night .btn--ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--sea); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.night .link-arrow { color: var(--gold); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { white-space: nowrap; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.header-end { display: flex; align-items: center; gap: 1.25rem; }
.header-cta { padding: 0.65rem 1.1rem; font-size: 0.92rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; position: relative; padding-block: 0.3rem; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.lang-switch { display: flex; list-style: none; margin: 0; padding: 0; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; }
.lang-switch a, .lang-switch span { display: block; padding: 0.38rem 0.7rem; text-decoration: none; line-height: 1.2; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.lang-switch a:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.lang-switch .is-current { background: var(--text); color: var(--bg); }
.lang-switch a:focus-visible { outline-offset: -3px; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 0.5rem; cursor: pointer; }
.nav-toggle .icon { width: 1.6rem; height: 1.6rem; }

.has-hero .site-header { position: fixed; inset: 0 0 auto 0; }
.has-hero .site-header.is-over-hero { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-over-hero .lang-switch .is-current { background: #fff; color: #0f2233; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--bg); color: var(--text);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav ul { flex-direction: column; gap: 1rem; }
  .nav a { font-size: 1.3rem; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header.is-over-hero { background: var(--bg); color: var(--text); }
}

/* ---------- Hero d'accueil ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(8 19 29 / 0.45) 0%, rgb(8 19 29 / 0) 26%, rgb(8 19 29 / 0.12) 48%, rgb(8 19 29 / 0.82) 100%);
}
.hero .wrap { padding-bottom: clamp(1.5rem, 5vh, 3rem); padding-top: 7rem; }
.hero h1 { max-width: 13ch; margin-bottom: 0.3em; text-shadow: 0 2px 30px rgb(8 19 29 / 0.35); }
.hero h1 em { color: #f4cf9f; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; color: rgb(255 255 255 / 0.94); margin-bottom: 2.25rem; }

.booking {
  display: grid; grid-template-columns: 1fr 1fr 0.62fr auto; align-items: end; gap: 0.5rem;
  max-width: 54rem; padding: 0.6rem;
  background: var(--bg); color: var(--text);
  border-radius: 16px; box-shadow: var(--shadow);
}
.booking label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); padding: 0.45rem 0.9rem 0; }
.booking input, .booking select {
  width: 100%; min-width: 0; font: 500 1rem/1.3 var(--font-body); color: var(--text);
  background: transparent; border: 0; padding: 0.15rem 0.9rem 0.6rem; border-radius: 10px;
}
.booking input:focus, .booking select:focus { outline: none; }
.booking__field { border-radius: 10px; transition: background-color 0.25s var(--ease); }
.booking__field:focus-within { background: var(--surface); box-shadow: inset 0 0 0 2px var(--sea); }
.booking__field + .booking__field { border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.booking .btn { align-self: stretch; padding-inline: 1.5rem; }
.booking__hint { grid-column: 1 / -1; margin: 0; padding: 0 0.9rem 0.3rem; font-size: 0.85rem; color: var(--muted); min-height: 1.4em; }
.booking__hint.is-error { color: #a33a22; }
@media (prefers-color-scheme: dark) { .booking__hint.is-error { color: #f3a48f; } }
@media (max-width: 860px) {
  .booking { grid-template-columns: 1fr 1fr; }
  .booking__field:nth-child(3) { grid-column: 1 / -1; }
  .booking__field + .booking__field { border-left: 0; border-radius: 10px; }
  .booking__field:nth-child(2) { border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; }
  .booking .btn { grid-column: 1 / -1; padding-block: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-in 2.6s var(--ease) both; }
  .hero h1, .hero__sub, .booking { animation: rise 1.1s var(--ease) both; }
  .hero__sub { animation-delay: 0.12s; }
  .booking { animation-delay: 0.26s; }
}
@keyframes hero-in { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- En-tête de page intérieure ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.9rem, 6.5vw, 5.25rem); max-width: 14ch; }

/* ---------- Accueil : déclaration, matin, midi ---------- */
.statement { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 24ch; margin: 0; text-wrap: balance; }
.statement em { color: var(--sea); }
.statement-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.statement-row .prose { padding-bottom: 0.6rem; }
@media (max-width: 860px) { .statement-row { grid-template-columns: 1fr; } }

.moment { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.moment--flip { grid-template-columns: 7fr 5fr; }
.moment--flip .moment__text { order: 2; }
.moment__text h2 { max-width: 12ch; }
.moment__media { position: relative; }
.moment__media img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.moment__media .tall { aspect-ratio: 4 / 5; }
.moment__media img + img { position: absolute; width: 46%; aspect-ratio: 4 / 3; right: -5%; bottom: -10%; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.moment__media.has-inset { margin-bottom: 8%; }
@media (max-width: 860px) {
  .moment, .moment--flip { grid-template-columns: 1fr; }
  .moment--flip .moment__text { order: 0; }
  .moment__media img + img { right: 0; }
}

.noon { position: relative; min-height: min(86vh, 54rem); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.noon__media { position: absolute; inset: 0; z-index: -2; }
.noon__media img { width: 100%; height: 100%; object-fit: cover; }
.noon::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 19 29 / 0) 30%, rgb(8 19 29 / 0.78) 100%); }
.noon .wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.noon h2 { max-width: 13ch; }
.noon p { max-width: 48ch; color: rgb(255 255 255 / 0.94); font-size: 1.1rem; }

/* ---------- Photos ---------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.gallery-head h2 { margin: 0; }
.gallery { columns: 3 280px; column-gap: 0.9rem; }
.gallery figure { margin: 0 0 0.9rem; break-inside: avoid; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform 0.9s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .gallery button:hover img { transform: scale(1.04); } }
.more { margin-top: 1.25rem; }
.more summary {
  display: inline-flex; align-items: center; gap: 0.6rem; list-style: none; cursor: pointer;
  font-weight: 600; color: var(--sea); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary .icon { transition: transform 0.35s var(--ease); }
.more[open] summary .icon { transform: rotate(90deg); }
.more .gallery { margin-top: 2rem; }
.more[open] summary .more__open { display: none; }
.more:not([open]) summary .more__close { display: none; }

/* ---------- Visionneuse ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(5 13 20 / 0.95); color: #fff;
  overscroll-behavior: contain;
}
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgb(5 13 20 / 0.95); }
.lightbox__stage { display: grid; place-items: center; padding: 4.5rem 4.5rem 1rem; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__bar { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 0.75rem 1rem 1.5rem; font-size: 0.95rem; color: rgb(255 255 255 / 0.8); }
.lightbox button {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.06); color: #fff; cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.lightbox button:hover { background: rgb(255 255 255 / 0.18); }
.lightbox button:focus-visible { outline-color: var(--gold); }
.lightbox .icon { width: 1.35rem; height: 1.35rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 4rem 0.5rem 0.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- Soir : repas et avis ---------- */
.evening { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.evening__text h2 { max-width: 12ch; }
.evening__media img { border-radius: var(--radius); width: 100%; }
.evening__media img + img { margin-top: 0.9rem; }
@media (max-width: 860px) { .evening { grid-template-columns: 1fr; } }

.reviews { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(4rem, 9vw, 7rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-night); }
.review { margin: 0; }
.review blockquote { margin: 0 0 1.1rem; font-family: var(--font-display); font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.22; letter-spacing: -0.01em; }
.review--main blockquote { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.review figcaption { color: var(--on-night-muted); font-size: 0.95rem; }
.review figcaption strong { color: var(--on-night); font-weight: 600; }
.reviews__side { display: grid; gap: 2.5rem; align-content: start; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Alentours ---------- */
.around { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.distances { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; }
.distances li { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-night); }
.distances li span { flex: 1; color: var(--on-night-muted); }
.distances li b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--on-night); white-space: nowrap; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--night-deep); aspect-ratio: 4 / 3.4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { font-size: 0.85rem; color: var(--on-night-muted); margin-top: 0.6rem; }
@media (max-width: 860px) { .around { grid-template-columns: 1fr; } }

/* ---------- Résumé des tarifs ---------- */
.price-line { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-night); border-bottom: 1px solid var(--line-night); }
.price-line p { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; max-width: 26ch; text-wrap: balance; }
.price-line small { display: block; margin-top: 0.8rem; font: 400 0.95rem/1.5 var(--font-body); letter-spacing: 0; color: var(--on-night-muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact h2 { max-width: 12ch; }
.contact__direct { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__direct a { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; font-size: 1.1rem; }
.contact__direct a:hover { color: var(--gold); }
.contact__direct .icon { color: var(--gold); width: 1.5rem; height: 1.5rem; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1.25rem; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.night .field label small { color: var(--on-night-muted); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 35%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.87rem; }
.night .field input[aria-invalid="true"], .night .field textarea[aria-invalid="true"] { border-color: #f3a48f; }
.night .field__error { color: #f3a48f; }
@media (prefers-color-scheme: dark) {
  .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f3a48f; }
  .field__error { color: #f3a48f; }
}
.night .field input, .night .field textarea, .night .field select { background: var(--night-deep); color: var(--on-night); border-color: var(--line-night); }
.night .field input::placeholder, .night .field textarea::placeholder { color: var(--on-night-muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__legal { font-size: 0.85rem; color: var(--muted); margin: 0; flex: 1 1 18rem; }
.night .form__legal { color: var(--on-night-muted); }
.form__status { grid-column: 1 / -1; margin: 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: color-mix(in srgb, var(--sea) 22%, transparent); }
.form__status[hidden] { display: none; }
.form__status.is-error { background: rgb(179 38 30 / 0.2); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Page villa ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split .tall { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
.figure-wide { margin: 0; }
.figure-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.photo-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.9rem; margin-top: 3rem; }
.photo-row button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.photo-row img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.photo-row button:first-child img { aspect-ratio: auto; }
@media (max-width: 700px) {
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row button:first-child { grid-column: 1 / -1; }
  .photo-row button:first-child img { aspect-ratio: 4 / 3; }
}
.narrow { max-width: 62ch; }
.mt-gallery { margin-top: 3rem; }
.mt-section { margin-top: 2.5rem; }

.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.25rem 2.5rem; margin-top: 3rem; }
.amenity { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; }
.amenity .icon { grid-row: span 2; width: 2rem; height: 2rem; color: var(--sea); }
.amenity h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin: 0.2rem 0 0; line-height: 1.3; }
.amenity p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; margin: 0; }

.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(2rem, 4vw, 3.25rem); border-radius: var(--radius); background: var(--night); color: var(--on-night);
}
.band h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 22ch; }

/* ---------- Tarifs et conditions ---------- */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.steps h2 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.rates-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .rates-layout { grid-template-columns: 1fr; } }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates caption { text-align: left; color: var(--muted); font-size: 0.95rem; padding-bottom: 1rem; }
.rates th, .rates td { padding: 0.95rem 0.25rem; text-align: left; }
.rates thead th { font-weight: 600; font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.rates tbody tr + tr td, .rates tbody tr + tr th { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.rates tbody th { font-weight: 400; }
.rates td:last-child, .rates th:last-child { text-align: right; }
.rates td:last-child { font-family: var(--font-display); font-size: 1.55rem; }
.rates .is-peak td:last-child { color: var(--sea); }
.rates .peak-tag { display: inline-block; margin-left: 0.6rem; font-size: 0.78rem; font-weight: 600; color: var(--sea); }
.aside-card { background: var(--bg); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; box-shadow: var(--shadow); }
.aside-card h3 { margin: 0; }
.aside-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; }
.aside-card li { display: flex; gap: 0.75rem; color: var(--muted); line-height: 1.5; }
.aside-card li .icon { color: var(--sea); margin-top: 0.15rem; }
.aside-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.conditions h2 { max-width: 14ch; }
.conditions dl { margin: 3rem 0 0; display: grid; gap: 0; }
.conditions .row { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem clamp(2rem, 6vw, 6rem); padding-block: 1.75rem; border-top: 1px solid var(--line); }
.conditions .row:last-child { border-bottom: 1px solid var(--line); }
.conditions dt { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.015em; }
.conditions dd { margin: 0; color: var(--muted); max-width: 62ch; }
.conditions dd p { margin: 0 0 0.8em; }
.conditions dd strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .conditions .row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night-deep); color: var(--on-night); padding-block: 4rem 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { display: inline-block; margin-bottom: 0.6rem; font-size: 2rem; }
.site-footer p { color: var(--on-night-muted); max-width: 32ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer li { color: var(--on-night-muted); }
.site-footer a { text-decoration: none; color: var(--on-night-muted); }
.site-footer a:hover { color: var(--on-night); }
.site-footer :focus-visible { outline-color: var(--gold); }
.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-night); border-radius: 999px; color: var(--on-night); }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials .icon { width: 1.3rem; height: 1.3rem; }
.footer-title { font: 600 0.95rem/1.4 var(--font-body); letter-spacing: 0; margin: 0 0 0.9rem; }
.site-footer__links { display: inline-flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 1rem; border-top: 1px solid var(--line-night); color: var(--on-night-muted); font-size: 0.88rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Pages simples (mentions légales, 404) ---------- */
.legal { max-width: 70ch; }
.legal h2 { font-size: 1.9rem; margin-top: 2.5rem; }
.legal p, .legal li { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Apparition au défilement (pages intérieures) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .header-cta { padding: 0.6rem 0.95rem; font-size: 0.88rem; }
  .header-end { gap: 0.5rem; }
}
@media (max-width: 440px) {
  .site-header .wrap { gap: 0.4rem; padding-inline: 0.9rem; }
  .brand { font-size: 1.3rem; white-space: nowrap; }
  .header-end { gap: 0.3rem; }
  .header-cta { padding: 0.5rem 0.65rem; font-size: 0.78rem; }
  .lang-switch { font-size: 0.74rem; }
  .lang-switch a, .lang-switch span { padding: 0.32rem 0.48rem; }
  .nav-toggle { padding: 0.3rem; }
  .nav-toggle .icon { width: 1.45rem; height: 1.45rem; }
}
@media (max-width: 360px) {
  .header-cta { display: none; }
}
