@import url("https://fonts.googleapis.com/css2?family=Parisienne&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap");

/* =========================================================================
   Mariage Caroline & Geoffrey — Punta Cana, été 2027
   Thème : tropical chic — palette vert feuillage / sable / brume.
   Titres en écriture manuscrite, corps en typo moderne.
   ========================================================================= */

:root {
  --brume:        #e4e4dc;   /* ton sable/brume demandé */
  --sable:        #e4e4dc;
  --sable-clair:  #f1f2ec;
  --creme:        #fbfaf4;
  --vert:         #5f6f54;   /* feuillage profond */
  --vert-fonce:   #46553f;
  --vert-clair:   #8a9a7b;
  --vert-pale:    #e2e7da;
  --terracotta:   #c08552;
  --or:           #b3915f;
  --or-clair:     #d8bd92;
  --encre:        #34352b;   /* texte */
  --encre-doux:   #6b6457;
  --blanc:        #ffffff;
  --ombre:        0 18px 50px rgba(52, 53, 43, .14);
  --ombre-douce:  0 8px 24px rgba(52, 53, 43, .09);
  --script: "Parisienne", "Segoe Script", cursive;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --rayon: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  color: var(--encre);
  margin: 0 0 .4em;
}
/* Titres principaux : écriture manuscrite */
h1, h2 {
  font-family: var(--script); font-weight: 400; line-height: 1.18;
  padding-bottom: .06em;
}
/* Sous-titres : typo moderne */
h3 { font-family: var(--sans); font-weight: 600; letter-spacing: .005em; }

h1 { font-size: clamp(3rem, 8.5vw, 5.8rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a { color: var(--vert); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta); }

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--or);
  margin-bottom: 1.2rem;
}

.script {
  font-family: var(--serif);
  font-style: italic;
  color: var(--vert);
}

/* ------------------------------------------------------------------ Layout */
.container { width: min(1080px, 92vw); margin-inline: auto; }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--sable { background: var(--sable); }
.section--vert  { background: var(--vert); color: var(--sable-clair); }
.section--vert h1, .section--vert h2, .section--vert h3 { color: var(--creme); }
.section--vert .eyebrow { color: var(--or-clair); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--encre-doux); max-width: 60ch; }
.center .lead { margin-inline: auto; }

.divider {
  width: 70px; height: 1px; margin: 1.6rem auto;
  background: var(--or); position: relative;
}
.divider::before {
  content: "❧"; position: absolute; top: -.85em; left: 50%;
  transform: translateX(-50%); color: var(--or);
  background: inherit; font-size: 1.1rem; line-height: 1;
}
.section--sable .divider::before { background: var(--sable); }
.section--vert  .divider { background: var(--or-clair); }
.section--vert  .divider::before { color: var(--or-clair); background: var(--vert); }

/* ------------------------------------------------------------------ Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(179, 145, 95, .18);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand {
  font-family: var(--script); font-size: 1.7rem; letter-spacing: 0; line-height: 1;
  color: var(--encre); padding-top: .2rem;
}
.nav__brand span { color: var(--or); }
.nav__links { display: flex; gap: 1.6rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--encre-doux); font-weight: 500;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--vert); }
.nav__links a.btn--primary, .nav__links a.btn--primary:hover { color: var(--creme); }
.nav__links a.btn--outline:hover { color: var(--vert); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--vert); line-height: 1;
}

/* Groupes déroulants */
.nav__group { position: relative; }
.nav__group-btn {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--encre-doux); font-weight: 500;
}
.nav__group-btn:hover, .nav__group.is-open .nav__group-btn, .nav__group-btn.is-active { color: var(--vert); }
.nav__caret { font-size: .7em; color: var(--or); }
.nav__sub {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: calc(100% + .9rem); left: 50%; transform: translateX(-50%);
  min-width: 200px; background: var(--creme);
  border: 1px solid rgba(179,145,95,.25); border-radius: var(--rayon);
  box-shadow: 0 12px 30px rgba(58,53,44,.12);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease;
}
.nav__sub::before { /* pont invisible pour garder le hover entre bouton et menu */
  content: ""; position: absolute; top: -1rem; left: 0; right: 0; height: 1rem;
}
.nav__group:hover .nav__sub, .nav__group.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__sub a { display: block; padding: .55rem 1.3rem; white-space: nowrap; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--creme); border-bottom: 1px solid rgba(179,145,95,.2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.is-open { max-height: 90vh; overflow-y: auto; }
  .nav__links a { padding: 1rem 6vw; border-top: 1px solid rgba(179,145,95,.12); }
  /* En mobile : les groupes deviennent des sections toujours ouvertes */
  .nav__group-btn { display: block; width: 100%; text-align: left; padding: 1rem 6vw .3rem;
    border-top: 1px solid rgba(179,145,95,.12); color: var(--or); font-size: .7rem; cursor: default; }
  .nav__caret { display: none; }
  .nav__sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0;
  }
  .nav__sub::before { display: none; }
  .nav__sub a { padding-left: 9vw; }
  .nav__links .btn { margin: .6rem 6vw; text-align: center; }
}

/* ------------------------------------------------------------------ Boutons */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--sans); font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  padding: .95rem 2.2rem; border-radius: 50px; border: 1px solid transparent;
  transition: all .25s ease;
}
.btn--primary { background: var(--vert); color: var(--creme); }
.btn--primary:hover { background: var(--encre); color: var(--creme); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--creme); color: var(--creme); }
.btn--ghost:hover { background: var(--creme); color: var(--vert); }
.btn--outline { background: transparent; border-color: var(--vert); color: var(--vert); }
.btn--outline:hover { background: var(--vert); color: var(--creme); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; min-height: 100vh;
  display: grid; place-items: center; text-align: center;
  color: var(--creme); overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(38, 49, 38, .30), rgba(31, 41, 33, .62)),
    url("../img/hero-beach.jpg") center/cover no-repeat fixed;
  z-index: -2;
}
@media (max-width: 860px) {
  .hero::before { background-attachment: scroll; }
}
.hero__palms {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("../img/leaf-pattern.svg");
  background-size: 520px; opacity: .10;
}
.hero__inner { max-width: 760px; }
.hero__names {
  font-size: clamp(3rem, 11vw, 7rem); line-height: 1; margin: .2em 0;
  color: var(--creme);
}
.hero__amp { display: block; font-style: italic; color: var(--or-clair); font-size: .6em; }
.hero__meta {
  text-transform: uppercase; letter-spacing: .3em; font-size: .8rem;
  color: var(--or-clair); margin-bottom: 2rem;
}
.hero__sub { font-size: 1.1rem; color: rgba(255,250,243,.9); margin-bottom: 2.4rem; }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,250,243,.7); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ Compte à rebours */
.countdown { display: flex; gap: clamp(.8rem, 4vw, 2.6rem); justify-content: center; margin-top: 1rem; }
.countdown__item { min-width: 64px; }
.countdown__num {
  font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1; color: var(--creme);
}
.countdown__label {
  text-transform: uppercase; letter-spacing: .18em; font-size: .68rem;
  color: var(--or-clair); margin-top: .4rem;
}

/* ------------------------------------------------------------------ Cartes / grille */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--blanc); border-radius: var(--rayon);
  padding: 2rem; box-shadow: var(--ombre-douce);
  border: 1px solid rgba(179,145,95,.14);
}
.card__icon { font-size: 1.8rem; margin-bottom: .6rem; }
.card h3 { color: var(--vert); }

/* ------------------------------------------------------------------ Timeline programme */
.timeline { max-width: 720px; margin: 2.5rem auto 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 110px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--or-clair), var(--vert-pale));
}
.tl-item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.tl-time {
  text-align: right; font-family: var(--serif); font-size: 1.25rem;
  color: var(--vert); padding-top: .1rem;
}
.tl-body { position: relative; padding-left: 1.6rem; }
.tl-body::before {
  content: ""; position: absolute; left: -7px; top: .5rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--creme); border: 3px solid var(--or);
}
.tl-body h3 { margin-bottom: .2rem; font-size: 1.2rem; }
.tl-body ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--encre-doux); }
.tl-body li { margin-bottom: .2rem; }
.section--vert .tl-time { color: var(--or-clair); }
.section--vert .tl-body::before { background: var(--vert); }
.section--vert .timeline::before { background: linear-gradient(var(--or-clair), rgba(255,255,255,.2)); }
.section--vert .tl-body ul { color: rgba(255,250,243,.82); }

@media (max-width: 620px) {
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 1fr; gap: .2rem; }
  .tl-time { text-align: left; padding-left: 1.6rem; }
  .tl-body::before { top: -1.8rem; }
}

/* ------------------------------------------------------------------ Infos pratiques */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--vert-pale); }
.info-list .ico { font-size: 1.4rem; flex: 0 0 auto; }
.info-list strong { display: block; color: var(--vert); }

.pill {
  display: inline-block; background: var(--vert-pale); color: var(--vert);
  border-radius: 50px; padding: .35rem 1rem; font-size: .82rem;
  margin: .2rem .3rem .2rem 0; font-weight: 500;
}

/* ------------------------------------------------------------------ Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure {
  margin: 0; aspect-ratio: 3 / 4; border-radius: var(--rayon); overflow: hidden;
  background: var(--vert-pale); position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .placeholder {
  display: grid; place-items: center; height: 100%; color: var(--vert-clair);
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; text-align: center; padding: 1rem;
}

/* ------------------------------------------------------------------ Formulaire RSVP */
.form-wrap {
  background: var(--blanc); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: clamp(1.8rem, 5vw, 3rem);
  max-width: 640px; margin: 2.5rem auto 0;
  border: 1px solid rgba(179,145,95,.16);
}
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 500; margin-bottom: .4rem; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--encre-doux); margin-top: .25rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; font-family: var(--sans); font-size: 1rem;
  border: 1px solid #d8cfbf; border-radius: 10px; background: var(--sable-clair);
  color: var(--encre); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(95, 111, 84, .15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choice label {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  border: 1px solid #d8cfbf; border-radius: 10px; padding: 1rem;
  background: var(--sable-clair); transition: all .2s; margin: 0; font-weight: 500;
}
.choice input { width: auto; accent-color: var(--vert); }
.choice label:has(input:checked) { border-color: var(--vert); background: var(--vert-pale); }

.conditional { display: none; }
.conditional.is-visible { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.form-msg { margin-top: 1rem; padding: 1rem; border-radius: 10px; font-size: .95rem; display: none; }
.form-msg.is-error   { display: block; background: #fbe7e0; color: #9a4a2c; }
.form-msg.is-success { display: block; background: var(--vert-pale); color: var(--vert); }

.rsvp-done {
  text-align: center; padding: clamp(2rem, 6vw, 3.5rem);
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  max-width: 560px; margin: 2.5rem auto 0;
}
.rsvp-done .big { font-size: 3rem; margin-bottom: .5rem; }

/* ------------------------------------------------------------------ Admin */
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 2rem 0; }
@media (max-width: 760px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--blanc); border-radius: var(--rayon); padding: 1.4rem; text-align: center; box-shadow: var(--ombre-douce); }
.stat__num { font-family: var(--serif); font-size: 2.4rem; color: var(--vert); line-height: 1; }
.stat__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--encre-doux); margin-top: .4rem; }
.table-wrap { overflow-x: auto; border-radius: var(--rayon); box-shadow: var(--ombre-douce); }
table.admin { width: 100%; border-collapse: collapse; background: var(--blanc); font-size: .9rem; }
table.admin th, table.admin td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--vert-pale); white-space: nowrap; }
table.admin th { background: var(--vert-pale); color: var(--vert); font-weight: 600; }
table.admin td.wrap { white-space: normal; min-width: 200px; }
.badge { font-size: .72rem; padding: .2rem .6rem; border-radius: 50px; font-weight: 600; }
.badge--oui { background: var(--vert-pale); color: var(--vert); }
.badge--non { background: #f4e2da; color: #a4542f; }
.gate { max-width: 420px; margin: 3rem auto; }

/* ------------------------------------------------------------------ Footer */
.footer {
  background: var(--encre); color: rgba(255,250,243,.75);
  text-align: center; padding: 3rem 1.5rem;
}
.footer__names { font-family: var(--script); font-size: 2.4rem; color: var(--creme); margin-bottom: .4rem; }
.footer a { color: var(--or-clair); }
.footer__small { font-size: .8rem; margin-top: 1rem; letter-spacing: .04em; }

/* ------------------------------------------------------------------ Utilitaires animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   COMPOSANTS PREMIUM — images, showcase, chambres, vols, mur photo, carte
   ========================================================================= */

/* -- Bandeau image plein largeur (parallax léger) -- */
.band {
  position: relative; min-height: 60vh; display: grid; place-items: center;
  text-align: center; color: var(--creme); padding: 5rem 1.5rem; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
@media (max-width: 860px) { .band::before { background-attachment: scroll; } }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(38,49,38,.34), rgba(31,41,33,.56));
}
.band--beach::before  { background-image: url("../img/beach-aerial.jpg"); }
.band--sunset::before { background-image: url("../img/wedding-1.jpg"); }
.band--pool::before   { background-image: url("../img/resort-pool.jpg"); }
.band--sea::before    { background-image: url("../img/beach-2.jpg"); }
.band--melia::before  { background-image: url("../img/melia/melia-slide-2.jpg"); }
.band--melia2::before { background-image: url("../img/melia/melia-slide-4.jpg"); }
.band h2 { color: var(--creme); }
.band .lead { color: rgba(255,250,243,.95); }
.band__inner { max-width: 720px; }

/* -- Section deux colonnes image + texte -- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
}
.split__media {
  border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.split__media:hover img { transform: scale(1.04); }

/* -- Trio d'images décoratif -- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 720px) { .photo-strip { grid-template-columns: 1fr 1fr; } }
.photo-strip figure { margin: 0; aspect-ratio: 1; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; cursor: pointer; }
.photo-strip figure:hover img { transform: scale(1.06); }

/* -- Cartes chambres / vols -- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; margin-top: 2.5rem; }
.offer {
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre-douce); border: 1px solid rgba(179,145,95,.14);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.offer__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.offer__img img { width: 100%; height: 100%; object-fit: cover; }
.offer__tag {
  position: absolute; top: .8rem; left: .8rem; background: rgba(95,111,84,.92);
  color: var(--creme); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 50px;
}
.offer__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.offer__body h3 { color: var(--vert); margin-bottom: .3rem; }
.offer__meta { font-size: .85rem; color: var(--encre-doux); margin-bottom: .6rem; }
.offer__feat { list-style: none; padding: 0; margin: .4rem 0 1rem; font-size: .9rem; }
.offer__feat li { padding: .15rem 0; padding-left: 1.3rem; position: relative; }
.offer__feat li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta); }
.offer__price { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--vert-pale); }
.offer__price .amount { font-family: var(--serif); font-size: 1.8rem; color: var(--encre); }
.offer__price .per { font-size: .8rem; color: var(--encre-doux); }
.offer__price .approx { display: block; font-size: .72rem; color: var(--or); margin-top: .15rem; }
.offer .btn { margin-top: 1rem; text-align: center; }

/* -- Bloc d'avertissement doux -- */
.notice {
  background: var(--vert-pale); border-left: 4px solid var(--vert);
  border-radius: 10px; padding: 1rem 1.3rem; font-size: .92rem; color: var(--vert);
  margin-top: 2rem;
}

/* -- Carte interactive -- */
#map { height: 460px; width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); z-index: 1; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.2rem; font-size: .88rem; color: var(--encre-doux); }
.map-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.map-legend .dot { width: 12px; height: 12px; border-radius: 50%; }

/* -- Mur photo -- */
.upload-box {
  border: 2px dashed var(--vert-clair); border-radius: var(--rayon);
  background: var(--sable-clair); padding: 2rem; text-align: center; margin-bottom: 2rem;
}
.upload-box.drag { background: var(--vert-pale); border-color: var(--vert); }
.qr-card { text-align: center; background: var(--blanc); border-radius: var(--rayon); padding: 1.6rem; box-shadow: var(--ombre-douce); }
.qr-card img { width: 180px; height: 180px; margin: .5rem auto; }
.wall { columns: 4 16px; }
@media (max-width: 960px) { .wall { columns: 3 12px; } }
@media (max-width: 640px) { .wall { columns: 2 10px; } }
.wall figure { margin: 0 0 12px; break-inside: avoid; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); position: relative; }
.wall img { width: 100%; display: block; cursor: pointer; }
.wall figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .7rem; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.wall-empty { text-align: center; color: var(--encre-doux); padding: 3rem 1rem; font-style: italic; font-family: var(--serif); font-size: 1.2rem; }

/* -- Playlist -- */
.song-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.song-list li { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--blanc); border-radius: 12px; box-shadow: var(--ombre-douce); margin-bottom: .7rem; }
.song-list .note { font-size: 1.4rem; }
.song-list .meta { flex: 1; }
.song-list .meta strong { color: var(--vert); }
.song-list .meta small { color: var(--encre-doux); }

/* -- Lightbox -- */
.lightbox { position: fixed; inset: 0; background: rgba(26,30,24,.92); display: none; place-items: center; z-index: 200; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.6rem; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; background: none; border: 0; }

/* -- Notre histoire (storytelling) -- */
.story { max-width: 760px; margin: 2.5rem auto 0; }
.story__item { display: grid; grid-template-columns: 80px 1fr; gap: 1.6rem; padding: 1.2rem 0; }
.story__year { font-family: var(--serif); font-size: 1.6rem; color: var(--or); }
.story__item h3 { margin-bottom: .2rem; color: var(--vert); }
@media (max-width: 560px) { .story__item { grid-template-columns: 1fr; gap: .2rem; } }

/* =========================================================================
   PREMIUM — préchargeur, hero cinématographique, glassmorphism, micro-interactions
   ========================================================================= */

/* -- Préchargeur -- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, #46553f 0%, #2c3528 100%);
  transition: opacity .9s ease .2s, visibility .9s ease .2s;
}
body.loaded .preloader { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; color: var(--creme); }
.preloader__names { font-family: var(--script); font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: .01em; opacity: 0; animation: plFade 1.1s ease .15s forwards; }
.preloader__amp { font-style: italic; color: var(--or-clair); }
.preloader__sub { text-transform: uppercase; letter-spacing: .35em; font-size: .72rem; color: var(--or-clair); margin-top: 1rem; opacity: 0; animation: plFade 1.1s ease .5s forwards; }
.preloader__bar { width: 0; height: 2px; background: var(--or-clair); margin: 1.4rem auto 0; animation: plBar 1.6s ease .4s forwards; }
@keyframes plFade { to { opacity: 1; transform: translateY(0); } }
@keyframes plBar { to { width: 120px; } }

/* -- Hero vidéo cinématique -- */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -3; pointer-events: none;
}
.hero__names { text-shadow: 0 4px 30px rgba(28,38,30,.45), 0 2px 8px rgba(28,38,30,.3); }
.hero__sub, .hero__meta { text-shadow: 0 2px 14px rgba(28,38,30,.5); }

/* -- Hero cinématographique (slides Ken Burns + fondus, fallback) -- */
.hero__slides { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: heroCycle 32s infinite; will-change: transform, opacity;
}
.hero__slide:nth-child(1) { background-image: url("../img/hero-beach.jpg"); animation-delay: 0s; }
.hero__slide:nth-child(2) { background-image: url("../img/beach-aerial.jpg"); animation-delay: 8s; }
.hero__slide:nth-child(3) { background-image: url("../img/beach-4.jpg"); animation-delay: 16s; }
.hero__slide:nth-child(4) { background-image: url("../img/wedding-1.jpg"); animation-delay: 24s; }
@keyframes heroCycle {
  0%   { opacity: 0; transform: scale(1.04); }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  28%  { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; transform: scale(1.16); }
}
.hero::before {  /* voile dégradé au-dessus des slides */
  background: linear-gradient(rgba(38,49,38,.28), rgba(28,38,30,.66)) !important;
  z-index: -2 !important;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 1; }
  .hero__slide:nth-child(n+2) { opacity: 0; }
}
/* Entrée du contenu hero */
.hero__inner > * { opacity: 0; transform: translateY(22px); }
body.loaded .hero__inner > * { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
body.loaded .hero__meta  { animation-delay: .25s; }
body.loaded .hero__names { animation-delay: .4s; }
body.loaded .hero__sub   { animation-delay: .6s; }
body.loaded #countdown   { animation-delay: .8s; }
body.loaded .hero__inner > p:last-child { animation-delay: 1s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* -- Nav glassmorphism + état au scroll -- */
.nav { transition: background .3s, box-shadow .3s, height .3s; }
.nav.scrolled { background: rgba(255,250,243,.97); box-shadow: 0 6px 24px rgba(58,53,44,.08); }
.nav.scrolled .nav__inner { height: 56px; }

/* -- Boutons : reflet au survol -- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn:hover::after { left: 140%; }

/* -- Apparition en cascade (stagger) -- */
.reveal { transition-property: opacity, transform; }

/* -- Titres de section : trait animé -- */
.fancy-h { position: relative; display: inline-block; }

/* -- Effet de profondeur sur les médias -- */
.split__media, .offer__img, .photo-strip figure { position: relative; }
.split__media::after {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(44,53,40,.12);
  pointer-events: none; border-radius: inherit;
}

/* -- Bandeau : léger zoom permanent (Ken Burns via background-size) -- */
.band--kb::before { animation: kbZoom 22s ease-in-out infinite alternate; }
@keyframes kbZoom { from { background-size: 100% auto; } to { background-size: 116% auto; } }

/* -- Section sombre luxe -- */
.section--dark { background: linear-gradient(160deg, #2f3a2c, #20281f); color: var(--sable-clair); }
.section--dark h2, .section--dark h3 { color: var(--creme); }
.section--dark .eyebrow { color: var(--or-clair); }

/* -- Carte chambre : prix mis en avant -- */
.offer__price .from { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--encre-doux); display: block; }

/* =========================================================================
   FIESTA — clin d'oeil Bad Bunny / Caraïbes
   ========================================================================= */
.fiesta {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(130% 120% at 80% 10%, #3c4d31 0%, #283021 55%, #1d241b 100%);
  color: var(--sable-clair);
}
.fiesta h2 { color: var(--creme); }
.fiesta .eyebrow { color: var(--or-clair); }
.fiesta .container { position: relative; z-index: 2; }
.fiesta__ojitos { width: 116px; margin: 0 auto 1.2rem; display: block; }
.fiesta__chair {
  width: clamp(120px, 22vw, 190px); margin: 1.6rem auto .6rem; display: block;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.45));
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.fiesta__tags { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0 1.8rem; }
.sticker {
  display: inline-block; background: var(--or-clair); color: var(--encre);
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; font-size: .78rem; padding: .5rem 1.1rem; border-radius: 50px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.sticker:nth-child(odd) { transform: rotate(-4deg); }
.sticker:nth-child(even) { transform: rotate(3deg); background: var(--terracotta); color: var(--creme); }

/* Décorations flottantes */
.deco { position: absolute; pointer-events: none; opacity: .55; z-index: 1; }
.deco--flor1 { width: 90px; top: 9%; left: 5%; animation: spin 30s linear infinite; }
.deco--flor2 { width: 130px; bottom: 8%; right: 6%; animation: spin 38s linear infinite reverse; }
.deco--flor3 { width: 70px; top: 14%; right: 12%; opacity: .4; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .deco--flor1, .deco--flor3 { display: none; } }

/* Mode capture (?cap) : réduit les hero plein écran et fige les animations */
html.cap .hero, html.cap .band { min-height: 460px !important; }
html.cap .hero__video, html.cap .hero__slides { display: none !important; }
html.cap *, html.cap *::before, html.cap *::after { animation: none !important; transition: none !important; }
html.cap .reveal { opacity: 1 !important; transform: none !important; }
