/* =========================================================================
   Site de mariage – feuille de style
   Palette et typographie inspirées d'un modèle éditorial : fond gris perle,
   serif fines, grandes photos, boutons noirs / blancs.
   ========================================================================= */

@font-face { font-family: "Cormorant"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #fff4f6;          /* rose poudré très clair */
  --paper: #fbe9ed;
  --ink: #0d0d0d;
  --ink-soft: #3c3c3a;
  --line: rgba(0, 0, 0, 0.28);
  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(17px, 1.15vw, 19.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.35em;
}
h1 { font-size: clamp(44px, 5.6vw, 82px); }
h2 { font-size: clamp(34px, 3.6vw, 52px); }
h3 { font-size: clamp(24px, 2vw, 30px); }
.eyebrow { font-size: 0.92em; letter-spacing: 0.02em; margin-bottom: 1.2em; }
.date-line { font-family: var(--text); font-weight: 500; letter-spacing: 0.18em; font-size: 0.95em; }
.caps { text-transform: uppercase; letter-spacing: 0.04em; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85em; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.on-hero { color: #fff; }
.site-header.scrolled { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav { display: flex; gap: 22px; font-size: 15.5px; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.brand { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); text-decoration: none; white-space: nowrap; letter-spacing: 0.01em; }
.header-cta { justify-self: end; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--text); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: transparent; color: #fff; }
.site-header.on-hero .header-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.site-header.on-hero .header-cta .btn:hover { background: transparent; color: #fff; }
.site-header.scrolled .header-cta .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.small-caps { text-transform: none; letter-spacing: 0.01em; font-size: 15px; padding: 12px 26px; }

.burger { display: none; background: none; border: 0; color: inherit; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.mobile-menu a { font-family: var(--display); font-size: 34px; text-decoration: none; }
.mobile-menu .btn { font-family: var(--text); font-size: 14px; margin-top: 18px; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.menu-open .site-header { color: var(--ink); background: transparent; box-shadow: none; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-header { grid-template-columns: 44px 1fr 44px; }
  .nav, .header-cta { display: none; }
  .brand { justify-self: center; }
  .burger { display: block; grid-column: 3; grid-row: 1; justify-self: end; }
  .brand { grid-column: 2; grid-row: 1; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 40px) var(--gutter) 60px;
}
.hero.short { min-height: 56vh; }
.hero > img, .hero .hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.06); animation: hero-in 2.4s cubic-bezier(.2,.6,.2,1) forwards;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.12) 40%, rgba(0,0,0,.22)); }
.hero h1 { color: #fff; margin-bottom: 0.25em; }
.hero p { font-size: 1.05em; }
.hero .inner { max-width: 820px; }
.hero.framed { min-height: 0; margin: calc(var(--header-h) + 8px) var(--gutter) 0; padding: 120px var(--gutter); }
@keyframes hero-in { to { transform: scale(1); } }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(70px, 9vw, 130px) var(--gutter); }
.section.paper { background: var(--paper); }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center;
  max-width: var(--max); margin: 0 auto;
}
.split + .split { margin-top: clamp(60px, 8vw, 110px); }
.split.reverse .media { order: 2; }
.split .media img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.split .text { text-align: center; }
.event-time { font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 0.9em; }
.address { line-height: 1.55; margin-bottom: 1em; }
.link-underline { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-underline:hover { opacity: .65; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
}

.rule-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; max-width: var(--max); margin: 0 auto; }
.rule-title::before, .rule-title::after { content: ""; height: 1px; background: var(--line); }
.rule-block { text-align: center; }
.rule-block h2 { margin-bottom: 0.4em; }

.cta-band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
  margin: 0 var(--gutter) clamp(60px, 7vw, 100px); padding: clamp(80px, 10vw, 150px) var(--gutter);
}
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); z-index: -1; }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto 0.6em; font-size: clamp(36px, 4.4vw, 62px); }

/* compte à rebours */
.countdown { display: flex; justify-content: center; gap: clamp(18px, 4vw, 54px); margin-top: 28px; }
.countdown div { text-align: center; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 58px); line-height: 1; }
.countdown span { font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; }

/* ------------------------------------------------------------ histoire */
.page-title { text-align: center; padding-top: calc(var(--header-h) + 50px); }
.wide-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.quote { font-family: var(--display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; max-width: 900px; margin: 0; }
.quote cite { display: block; font-family: var(--text); font-style: normal; font-size: 15px; margin-top: 16px; }
.quote.offset { margin-left: auto; max-width: 760px; }
.quotes { display: grid; gap: clamp(50px, 6vw, 90px); max-width: var(--max); margin: 0 auto; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait .overlay-title { position: absolute; top: 28px; left: 34px; color: #fff; margin: 0; }
.story-text { max-width: 360px; }
.story-text::before { content: ""; display: block; width: 26px; height: 1px; background: var(--ink); margin-bottom: 20px; }

.gallery { position: relative; max-width: var(--max); margin: 0 auto; }
.gallery-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { height: clamp(260px, 36vw, 520px); width: auto; flex: none; scroll-snap-align: center; object-fit: cover; }
.gallery-nav { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.gallery-nav button { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); padding: 4px 10px; }

/* --------------------------------------------------------------- voyage */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 4vw, 60px); max-width: 1100px; margin: 0 auto; text-align: center; }
.cards-3 h3 { font-size: 20px; font-family: var(--text); margin-bottom: 1em; }
.cards-3 .name { font-weight: 500; }
@media (max-width: 760px) { .cards-3 { grid-template-columns: 1fr; } }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); max-width: 1200px; margin: 0 auto; text-align: center; }
.cards-4 .name { font-family: var(--display); font-size: clamp(22px, 1.8vw, 27px); margin-bottom: 0.3em; }
.cards-4 p { margin-bottom: 0.4em; }
@media (max-width: 900px) { .cards-4 { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 480px) { .cards-4 { grid-template-columns: 1fr; } }
.villa-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-size: clamp(22px, 1.9vw, 27px); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--text); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; }

/* ----------------------------------------------------------------- RSVP */
.form { max-width: 560px; margin: 0 auto; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 26px; }
.field > label, .field > .label { display: block; font-size: 15.5px; margin-bottom: 6px; }
.field .req { color: var(--ink-soft); font-size: 0.85em; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field textarea, .field select {
  width: 100%; font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 2px; border-radius: 0;
}
.field textarea { min-height: 90px; resize: vertical; border: 1px solid var(--line); padding: 10px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; border: 1px solid var(--ink); padding: 6px 18px; font-size: 15px; transition: background .2s, color .2s; }
.choices input:checked + span { background: var(--ink); color: #fff; }
.choices input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-status { text-align: center; min-height: 1.6em; margin-top: 16px; }
.form-status.ok { font-family: var(--display); font-size: 28px; }
.form-status.err { color: #8b1d1d; }
.hp { position: absolute; left: -9999px; }
.conditional[hidden] { display: none; }

/* --------------------------------------------------------------- footer */
.site-footer { padding: 70px var(--gutter) 40px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; max-width: var(--max); margin: 0 auto; align-items: start; }
.footer-grid > :last-child { text-align: right; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.footer-links a { text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; max-width: var(--max); margin: 46px auto 0; }
.footer-bottom > :last-child { text-align: right; }
.footer-bottom a { text-decoration: none; border-bottom: 1px solid currentColor; }
.share-btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; border-bottom: 1px solid transparent; }
.share-btn:hover { border-bottom-color: currentColor; }
@media (max-width: 760px) {
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > :last-child, .footer-bottom > :last-child { text-align: center; }
}

/* ---------------------------------------------------------------- mobile */
.hero { min-height: 88svh; }
.hero.short { min-height: 56svh; }
.field .req { font-size: 0.9em; }
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; gap: 22px; }
  .hero.framed { margin-inline: 12px; padding: 90px 20px; }
  .cta-band { margin-inline: 12px; }
  .footer-links a, .footer-bottom a, .share-btn { display: inline-block; padding: 6px 0; }
  .footer-links { gap: 2px; }
  .choices span { padding: 10px 26px; }
  .quote.offset { margin-left: 0; }
}

/* ------------------------------------------------------------ animations */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.6,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero > img { animation: none; transform: none; }
}

/* ---------------------------------------------------------- bons plans */
.region-head { text-align: center; margin-bottom: clamp(40px, 5vw, 70px); }
.region-head .eyebrow { margin-bottom: 0.4em; }
.spots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 64px) clamp(32px, 5vw, 80px); max-width: 1100px; margin: 0 auto; }
.spot { border-top: 1px solid var(--line); padding-top: 22px; }
.spot h3 { margin-bottom: 0.5em; }
.spot-tag { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6em; }
.spot-tip { font-style: italic; color: var(--ink-soft); }
.spot-list, .tips { padding-left: 1.1em; margin: 0 0 1em; }
.spot-list li, .tips li { margin-bottom: 0.5em; }
@media (max-width: 760px) { .spots { grid-template-columns: 1fr; } }
.spot-note { font-size: 0.8em; color: var(--ink-soft); margin-top: 1.2em; }
.hero.dark-text, .hero.dark-text h1 { color: var(--ink); text-shadow: 0 0 22px rgba(255,255,255,.7), 0 0 4px rgba(255,255,255,.5); }
.hero.dark-text::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(255,255,255,.08) 40%, rgba(0,0,0,.05)); }
.cards-4.three { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.cards-4 .name a { white-space: nowrap; }
@media (max-width: 600px) { .cards-4.three { grid-template-columns: 1fr; } }

/* En-tête en deux colonnes sur ordinateur (photo verticale) */
@media (min-width: 901px) {
  .hero.split-desk {
    min-height: 0; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 6vw, 100px);
    align-items: center; text-align: left; color: var(--ink);
    max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  }
  .hero.split-desk::after { display: none; }
  .hero.split-desk > img { position: static; order: 2; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transform: none; animation: none; object-position: center 60% !important; }
  .hero.split-desk h1 { color: var(--ink); }
  .hero.split-desk .inner { max-width: none; }
  body:has(.hero.split-desk) .site-header.on-hero { color: var(--ink); }
  body:has(.hero.split-desk) .site-header.on-hero .header-cta .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* ------------------------------------------------- intégration des photos
   Photos en arche, avec un fin cadre décalé, à une taille mesurée. */
.split .media, .hero.split-desk > .arch { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.split .media img { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.split .media::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  border: 1px solid var(--line); border-radius: 999px 999px 0 0; z-index: -1; pointer-events: none;
}
.split { isolation: isolate; }
.split .text { max-width: 420px; justify-self: center; }
@media (min-width: 901px) {
  .hero.split-desk > img { border-radius: 999px 999px 0 0; max-width: 440px; justify-self: center; box-shadow: 16px 16px 0 -15px var(--line), 16px 16px 0 -14px transparent; }
}
.cta-band { border-radius: 4px; max-width: var(--max); margin-inline: auto; }
@media (max-width: 1400px) { .cta-band { margin-inline: var(--gutter); } }
@media (max-width: 760px) { .split .media { max-width: calc(100% - 16px); justify-self: start; } }
