/* MARIE — site vitrine. Palette et typographies reprises à l'identique de la vidéo (lib/marie.css). */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #f6f1ea;
  --ink: #1f2a44;
  --ink-2: #4a5269;
  --terra: #e2725b;
  --terra-text: #c65a43;
  --green: #2fa37a;
  --green-deep: #1f7a5a;
  --stone: #c9c2b8;
  --sand: #eae0d2;
  --paper: #fffcf6;
  --hdr: 68px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Grain papier commun à toute la page (remplace celui de chaque scène, pour un raccord sans couture) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background-image: radial-gradient(rgba(31, 42, 68, 0.06) 1px, transparent 1.2px);
  background-size: 6px 6px;
  opacity: 0.55;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }

/* ---------- En-tête ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: clamp(16px, 4vw, 48px);
  background: rgba(246, 241, 234, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: flex-end;
}
.brand .dot {
  width: 0.27em; height: 0.27em;
  margin-left: 0.06em; margin-bottom: 0.02em;
  border-radius: 0.06em;
  background: var(--terra);
  box-shadow: inset -0.05em -0.05em 0 rgba(180, 82, 63, 0.55);
}
.tagline { font-size: 14px; color: var(--ink-2); letter-spacing: 0.01em; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .linkish:focus-visible, .brand:focus-visible, input[type="range"]:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px rgba(31, 42, 68, 0.18); }
.btn-ink:hover { box-shadow: 0 14px 30px rgba(31, 42, 68, 0.24); }
.btn-paper {
  background: rgba(255, 252, 246, 0.94);
  color: var(--ink);
  border: 2px solid rgba(31, 42, 68, 0.12);
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.08);
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn-ic svg, .play svg { width: 18px; height: 18px; display: block; }
.play {
  width: 30px; height: 30px; margin-left: -10px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.play svg { width: 15px; height: 15px; margin-left: 2px; }
.muted { color: var(--ink-2); font-weight: 500; }
.muted-ink { color: rgba(255, 252, 246, 0.72); font-weight: 500; margin-left: 4px; }
.show-sm { display: none; }

/* ---------- Scènes ---------- */
.scene {
  position: relative;
  min-height: 100svh;
  padding-top: var(--hdr);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stagewrap { position: relative; width: 100%; overflow: hidden; }
.stagebox {
  position: absolute;
  left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  contain: layout paint;
}
.stagebox.is-off { visibility: hidden; }
.stagebox .grain { display: none; }
/* bords du cadre fondus dans la crème : la scène se pose sur la page au lieu d'y être découpée */
.stagebox .mstage {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4.5%, #000 95.5%, transparent 100%), linear-gradient(180deg, transparent 0, #000 3%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 4.5%, #000 95.5%, transparent 100%), linear-gradient(180deg, transparent 0, #000 3%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.band {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 6px 0 28px;
  text-align: center;
}
.band p { margin: 0 auto; max-width: 60ch; color: var(--ink-2); font-size: 17px; }
.hero .band { padding-bottom: 32px; }
.hero .band .lead { color: var(--ink); font-size: 19px; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- Tarifs ---------- */
.pricing {
  width: min(1040px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas: "h h" "sim facts" "contact contact";
  gap: 40px 56px;
  align-items: start;
}
.pricing .h2 { grid-area: h; }
.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.h2 em, .h3 em { font-style: normal; color: var(--terra-text); }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 14px; }

.sim {
  grid-area: sim;
  background: var(--paper);
  border: 2px solid rgba(31, 42, 68, 0.08);
  border-radius: 28px;
  padding: 28px 30px 26px;
  box-shadow: 0 18px 40px rgba(31, 42, 68, 0.08);
}
.sim-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sim label { font-size: 16px; color: var(--ink-2); }
.sim output {
  font-weight: 700;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 2.2ch;
  text-align: right;
}
.sim input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  margin: 10px 0 8px;
  background: transparent;
  cursor: pointer;
  --p: 25%;
}
.sim input[type="range"]::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--terra) var(--p), var(--sand) var(--p));
}
.sim input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--sand); }
.sim input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--terra); }
/* le curseur est le cube lead */
.sim input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px; margin-top: -10px;
  border: 0; border-radius: 8px;
  background: linear-gradient(135deg, #ec9a87 0 50%, var(--terra) 50% 100%);
  box-shadow: 0 6px 14px rgba(226, 114, 91, 0.45), inset -3px -3px 0 rgba(180, 82, 63, 0.5);
}
.sim input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: linear-gradient(135deg, #ec9a87 0 50%, var(--terra) 50% 100%);
  box-shadow: 0 6px 14px rgba(226, 114, 91, 0.45), inset -3px -3px 0 rgba(180, 82, 63, 0.5);
}
.sim-total { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.sim-total .amount {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--terra-text);
  font-variant-numeric: tabular-nums;
}
.sim-total .per { font-size: 20px; color: var(--ink-2); }
.calc { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }

.facts { grid-area: facts; list-style: none; margin: 0; padding: 8px 0 0; display: grid; gap: 20px; }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; font-size: 17px; }
.ck {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-deep);
  box-shadow: 0 6px 14px rgba(31, 122, 90, 0.25);
  position: relative;
}
.ck::after {
  content: "";
  position: absolute;
  left: 11px; top: 8px;
  width: 9px; height: 15px;
  border: solid #fff;
  border-width: 0 3.2px 3.2px 0;
  border-radius: 1px;
  transform: rotate(42deg);
}
.contact { grid-area: contact; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding-top: 8px; }

/* ---------- Contact : formulaire + réservation ---------- */
.contact-sec {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 10vw, 120px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px 64px;
  align-items: start;
  scroll-margin-top: calc(var(--hdr) + 16px);
}
.contact-intro { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.contact-intro .h2 { max-width: 12ch; }
.intro-p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 38ch; }
.direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.direct li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; }
.d-lab { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; }
.direct a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(226, 114, 91, 0.45); }
.direct a:hover { border-bottom-color: var(--terra); }
.cal {
  width: 22px; height: 22px; border-radius: 6px; margin-left: -6px;
  background: linear-gradient(var(--terra) 0 6px, var(--paper) 6px);
  border: 2px solid var(--ink);
  position: relative;
}
.cal::after { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 5px; border-radius: 1.5px; background: var(--green); }
.booking-note { margin: -10px 0 0; font-size: 13px; color: var(--terra-text); }

.form-card {
  background: var(--paper);
  border: 2px solid rgba(31, 42, 68, 0.08);
  border-radius: 28px;
  padding: clamp(22px, 3.2vw, 36px);
  box-shadow: 0 18px 40px rgba(31, 42, 68, 0.08);
  min-width: 0;
}
.cform { display: grid; gap: 22px; }
.hp { position: absolute; left: -9999px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f label, .chips legend { font-size: 14px; color: var(--ink-2); }
.opt { color: var(--stone); font-size: 13px; }
.f input, .f select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid var(--sand);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1.2 var(--sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.f select {
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 36px;
}
.f input:focus, .f select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(226, 114, 91, 0.16); }
.f input[aria-invalid="true"] { border-color: var(--terra-text); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(31, 42, 68, 0.12);
  font-weight: 700; font-size: 15px; color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip input:checked + span { background: var(--green-deep); border-color: var(--green-deep); color: #fff; box-shadow: 0 8px 18px rgba(31, 122, 90, 0.22); }
.chip input:checked + span::before {
  content: ""; width: 10px; height: 6px; margin-left: -2px;
  border: solid #fff; border-width: 0 0 2.6px 2.6px; transform: rotate(-45deg) translateY(-2px);
}
.chip input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.f-err { margin: 0; color: var(--terra-text); font-weight: 700; font-size: 15px; }
.f-submit { justify-self: start; }
.f-submit[disabled] { opacity: 0.6; cursor: progress; }
.f-legal { margin: -6px 0 0; font-size: 13px; color: var(--ink-2); }
.f-done { display: grid; justify-items: start; gap: 10px; padding: 12px 0; }
.f-done p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.f-done:focus { outline: none; }
.ck.big { width: 52px; height: 52px; }
.ck.big::after { left: 18px; top: 12px; width: 12px; height: 22px; border-width: 0 4px 4px 0; }

@media (max-width: 860px) {
  .contact-sec { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; }
  .f-submit, .booking { width: 100%; }
  .direct li { grid-template-columns: 80px 1fr; }
}

/* ---------- Pied de page ---------- */
.foot {
  border-top: 1px solid rgba(31, 42, 68, 0.1);
  padding: 28px clamp(16px, 4vw, 48px) 36px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}
.foot p { margin: 4px 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Fenêtres ---------- */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgba(31, 42, 68, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.film { width: min(92vw, calc(84vh * 16 / 9)); }
.film video { display: block; width: 100%; border-radius: 18px; background: var(--ink); aspect-ratio: 16 / 9; }
.fmt-v-page .film { width: min(92vw, calc(84vh * 9 / 16)); }
.fmt-v-page .film video { aspect-ratio: 9 / 16; }
.legal { width: min(560px, 92vw); background: var(--paper); border-radius: 24px; padding: 32px 30px 24px; font-size: 15px; }
.legal p { margin: 0 0 12px; }
.close {
  position: absolute;
  top: -50px; right: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 26px; line-height: 1;
  cursor: pointer;
}
.legal .close { top: 12px; right: 12px; background: var(--sand); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --hdr: 58px; }
  body { font-size: 16px; }
  .brand { font-size: 26px; }
  .tagline { display: none; }
  .top { justify-content: space-between; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .band p { font-size: 15.5px; }
  .hero .band .lead { font-size: 16.5px; }
  .actions { margin-top: 14px; }
  .actions .btn { flex: 1 1 100%; }
  .pricing { grid-template-columns: 1fr; grid-template-areas: "h" "sim" "facts" "contact"; gap: 28px; }
  .sim { padding: 22px 20px; border-radius: 22px; }
  .contact .btn { flex: 1 1 100%; }
  .btn-lg { font-size: 17px; }
}
