:root {
  --cream: #f9efe6;      /* crème blush chaud */
  --ivory: #f4e8dc;
  --sand: #e9d7c5;
  --gold: #c0764f;       /* accent terracotta (comme le Save the Date) */
  --gold-dark: #a5573a;  /* terracotta foncé */
  --ink: #322e29;        /* charbon chaud */
  --muted: #8b7c6c;
  --shadow: rgba(58, 53, 46, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Pas de scroll-behavior:smooth global : le défilement doux est piloté en JS (voir app.js) */
html { scroll-behavior: auto; background: var(--cream); }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
  /* Arrivée en douceur : la page se révèle depuis le blanc (suite du fondu de l'enveloppe) */
  animation: reveal 0.9s ease both;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; }

section { padding: 6rem 1.5rem; }

.pre {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
/* La 1re section colle sous la bannière → on voit tout de suite qu'il y a du contenu */
.page-banner + section { padding-top: 2.6rem; }
/* Ancres (Logement, Dress code) : ne pas passer sous le menu fixe */
#programme, #logement, #dresscode { scroll-margin-top: 84px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); }
.section-head.light h2 { color: var(--ink); }
.section-head .sub { color: var(--muted); margin-top: 1rem; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 0.9rem 2.4rem;
  border: none;
  border-radius: 40px;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-family: 'Montserrat', sans-serif;
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* Nav */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
#nav.scrolled {
  background: rgba(250, 246, 240, 0.96);
  box-shadow: 0 2px 20px var(--shadow);
  padding: 0.7rem 2rem;
  backdrop-filter: blur(8px);
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: 2px;
  transition: color 0.4s;
}
.brand span { color: var(--gold); }
#nav.scrolled .brand { color: var(--ink); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 0.8rem;
  letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
#nav.scrolled .nav-links a { color: var(--ink); }
#nav.scrolled .nav-links a:hover { color: var(--gold); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s; }
#nav.scrolled .burger span { background: var(--ink); }

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #2d241c url('assets/hero-bg.jpg') center center / cover no-repeat;
  overflow: hidden; padding: 0 1.5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,0.5), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(192,118,79,0.10), transparent 50%);
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(45,36,28,0.42), rgba(45,36,28,0.55)); }
.hero-content { position: relative; z-index: 2; color: #fff; animation: rise 1.2s ease both; text-shadow: 0 2px 18px rgba(0,0,0,0.25); }
.hero-content .pre { color: #ffe3d2; }
.hero-content h1 { font-size: clamp(3.4rem, 12vw, 7rem); font-weight: 500; line-height: 1; margin: 0.4rem 0 1.2rem; }
.hero-content h1 span { color: #e2926b; font-style: italic; }
.hero-content .date { letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 1.6rem; color: rgba(255,255,255,0.85); }

/* Compte à rebours dans le hero */
.hero-count { display: flex; justify-content: center; gap: clamp(1.1rem, 5vw, 2.8rem); margin: 0 0 2rem; }
.hero-count div { display: flex; flex-direction: column; align-items: center; }
.hero-count span { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3rem); color: #fff; line-height: 1; }
.hero-count small { text-transform: uppercase; letter-spacing: 2px; font-size: 0.6rem; color: rgba(255,255,255,0.82); margin-top: 5px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 2.3rem; z-index: 3; cursor: pointer;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  animation: bounce 1.8s ease-in-out infinite;
  transition: color 0.3s ease;
}
.scroll-hint:hover { color: #ffe3d2; }

/* Sur l'accueil (hero vidéo) : menu en blanc tant qu'on n'a pas scrollé */
body:has(.hero) #nav:not(.scrolled) .brand,
body:has(.hero) #nav:not(.scrolled) .nav-links a { color: #fff; }
body:has(.hero) #nav:not(.scrolled) .brand span { color: #ffcdb0; }
body:has(.hero) #nav:not(.scrolled) .nav-links a.active { color: #ffcdb0 !important; }
body:has(.hero) #nav:not(.scrolled) .nav-links a:hover { color: #ffcdb0; }
body:has(.hero) #nav:not(.scrolled) .burger span { background: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(9px); opacity: 1; }
}

/* Countdown */
.countdown { background: var(--ink); color: #fff; text-align: center; padding: 4rem 1.5rem; }
.countdown h2 { font-size: 2rem; color: var(--sand); margin-bottom: 2rem; font-style: italic; }
.timer { display: flex; justify-content: center; gap: clamp(1rem, 5vw, 3.5rem); flex-wrap: wrap; }
.timer div { display: flex; flex-direction: column; }
.timer span { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 7vw, 3.6rem); color: var(--gold); }
.timer small { text-transform: uppercase; letter-spacing: 3px; font-size: 0.68rem; color: #cdbfad; }

/* Story */
.story { background: var(--cream); }
.story-col { max-width: 620px; margin: 0 auto; }
.story-text { margin-bottom: 3.4rem; }
.story-text p { margin-bottom: 1.2rem; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.story-text p:first-child::first-letter { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; color: var(--gold); float: left; line-height: 1; margin: 0.1rem 0.5rem 0 0; }
.story-timeline { border-left: 2px solid var(--sand); padding-left: 2.2rem; margin-left: 0.5rem; }
.story-sign { text-align: center; margin-top: 3.4rem; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.9rem; color: var(--gold-dark); }
.story-sign span { color: var(--gold); }
.tl-item { position: relative; margin-bottom: 2.3rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -2.5rem; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--cream); }
.tl-year { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold-dark); display: block; }
.tl-item p { color: var(--muted); }

/* Details */
.details { background: var(--ivory); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.card {
  background: #fff; border-radius: 14px; padding: 2.6rem 1.8rem; text-align: center;
  box-shadow: 0 12px 40px var(--shadow); transition: transform 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(58,53,46,0.18); }
.card-icon { font-size: 2.4rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.6rem; color: var(--ink); }
.card .big { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--gold); margin: 0.3rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* Programme */
.programme { background: var(--cream); }
.prog-list { max-width: 560px; margin: 0 auto; }
.prog-row { display: grid; grid-template-columns: 70px 24px 1fr; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--sand); }
.prog-row:last-child { border-bottom: none; }
.prog-row .time { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold-dark); }
.prog-row .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); justify-self: center; }
.prog-row .label { letter-spacing: 1px; }

/* ===== Programme : frise chronologique alternée ===== */
.programme { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 38%, #f2e6d6 72%, #ece0cd 100%); }
.prog-lead { text-align: center; max-width: 620px; margin: 0 auto 3rem; color: var(--muted); font-size: 1.05rem; }
.prog-lead-deco { display: block; color: var(--gold); margin: 0 auto 0.8rem; }
.prog-lead-deco svg { width: 120px; height: 40px; }
.prog-lead-script { display: block; margin-top: 0.6rem; font-family: 'Great Vibes', cursive; font-size: 2rem; color: var(--gold-dark); }

.prog-timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.prog-timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--sand) 0 8px, transparent 8px 16px);
}
/* Ligne dorée qui se remplit au fil du défilement */
.prog-fill { position: absolute; top: 6px; left: 50%; width: 3px; height: 0; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold), var(--gold-dark)); border-radius: 3px; z-index: 1;
  box-shadow: 0 0 10px rgba(192,118,79,0.4); transition: height 0.15s linear; }

/* Feuillages en filigrane dans les marges */
.deco-sprig { position: absolute; width: 70px; height: 190px; color: var(--gold); opacity: 0.13; pointer-events: none; z-index: 0; }
.deco-sprig.left { left: 6px; top: 150px; transform: scaleX(-1); }
.deco-sprig.right { right: 6px; bottom: 150px; }

/* En-têtes de moment de la journée */
.prog-part { text-align: center; margin: 1.2rem auto 2.4rem; position: relative; z-index: 2; }
.prog-part span { position: relative; display: inline-block; padding: 0 1.1rem; background: var(--cream);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.55rem; color: var(--gold-dark); letter-spacing: 1px; }
.prog-part span::before, .prog-part span::after { content: ""; position: absolute; top: 50%; width: 46px; height: 1px; background: var(--gold); opacity: 0.5; }
.prog-part span::before { right: 100%; }
.prog-part span::after { left: 100%; }

.prog-entry { position: relative; width: 50%; padding: 0 2.6rem 2.6rem; box-sizing: border-box; }
.prog-entry.left { left: 0; text-align: right; }
.prog-entry.right { left: 50%; text-align: left; }
/* Apparition : glissé depuis le côté (annulé une fois révélé) */
.prog-entry.left.reveal:not(.in) { transform: translate(-34px, 8px); }
.prog-entry.right.reveal:not(.in) { transform: translate(34px, 8px); }

/* Pastille avec icône, posée sur la ligne */
.prog-node { position: absolute; top: 1.4rem; width: 42px; height: 42px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--sand);
  box-shadow: 0 6px 16px var(--shadow); transition: background .3s, border-color .3s, transform .3s; }
.prog-node .ico { width: 22px; height: 22px; stroke: var(--gold-dark); color: var(--gold-dark); fill: none; stroke-width: 1.5; }
.prog-entry.left .prog-node { right: -21px; }
.prog-entry.right .prog-node { left: -21px; }
/* Une fois l'étape atteinte (révélée), la pastille s'allume */
.prog-entry.in .prog-node { background: var(--gold); border-color: var(--gold); transform: scale(1.05); }
.prog-entry.in .prog-node .ico { stroke: #fff; color: #fff; }

.prog-card {
  display: inline-block; text-align: left; width: 100%; max-width: 380px; vertical-align: top;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 44px var(--shadow); transition: transform 0.35s, box-shadow 0.35s;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(58,53,46,0.2); }

/* Vignette de tête : dégradé + numéro + feuillage */
.prog-cover { position: relative; height: 88px; display: flex; align-items: center; justify-content: flex-end; padding: 0 1.4rem; overflow: hidden; }
.prog-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: rgba(255,255,255,0.92); line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.cover-leaf { position: absolute; left: -6px; bottom: -6px; width: 120px; height: 72px; color: #fff; opacity: 0.28; }
.grad-1 { background: linear-gradient(135deg, #e8b48f, #d98c63); }
.grad-2 { background: linear-gradient(135deg, #e6c07f, #cf9a54); }
.grad-3 { background: linear-gradient(135deg, #c6c79c, #a3aa76); }
.grad-4 { background: linear-gradient(135deg, #e3a982, #c9764f); }
.grad-5 { background: linear-gradient(135deg, #d99f6d, #b9713f); }
.grad-6 { background: linear-gradient(135deg, #c6875f, #9c5f3c); }
.grad-7 { background: linear-gradient(135deg, #a86f56, #7a4838); }
.grad-8 { background: linear-gradient(135deg, #7f5344, #543532); }

.prog-body { padding: 1.3rem 1.5rem 1.5rem; }
.prog-time { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; color: var(--gold-dark); line-height: 1.1; margin-bottom: 0.15rem; }
.prog-card h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 0.4rem; }
.prog-card p { color: var(--muted); font-size: 0.92rem; }
.prog-detail { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-dark);
  background: rgba(192,118,79,0.08); border-radius: 20px; padding: 0.35rem 0.8rem; }
.prog-detail svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Récap en un coup d'œil */
.prog-recap { max-width: 600px; margin: 3rem auto 0; background: #fff; border-radius: 18px; padding: 2rem 2.2rem;
  box-shadow: 0 16px 44px var(--shadow); border-top: 3px solid var(--gold); }
.prog-recap h3 { text-align: center; font-size: 1.6rem; color: var(--ink); margin-bottom: 1.2rem; }
.prog-recap ul { list-style: none; }
.prog-recap li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px dashed var(--sand); }
.prog-recap li:last-child { border-bottom: none; }
.prog-recap li span { text-transform: uppercase; letter-spacing: 1px; font-size: 0.72rem; color: var(--muted); }
.prog-recap li b { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.15rem; color: var(--gold-dark); text-align: right; }

.prog-sign { text-align: center; margin-top: 2.6rem; font-family: 'Great Vibes', cursive; font-size: 2.2rem; color: var(--gold-dark); }
.prog-sign span { color: var(--gold); }

/* Mobile : frise verticale alignée à gauche */
@media (max-width: 720px) {
  .prog-timeline::before, .prog-fill { left: 22px; }
  .deco-sprig { display: none; }
  .prog-entry, .prog-entry.left, .prog-entry.right { width: 100%; left: 0; text-align: left; padding: 0 0 2rem 3.6rem; }
  .prog-entry.left .prog-node, .prog-entry.right .prog-node { left: 1px; right: auto; }
  .prog-entry.left.reveal:not(.in), .prog-entry.right.reveal:not(.in) { transform: translate(22px, 8px); }
  .prog-card, .prog-entry.left .prog-card { max-width: 100%; }
  .prog-part { text-align: left; margin-left: 3.6rem; }
  .prog-part span::before { display: none; }
  .prog-part span::after { width: 34px; }
}

/* ===== Logement : cartes avec visuel ===== */
.lodge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1050px; margin: 0 auto; }
.lodge { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 44px var(--shadow); display: flex; flex-direction: column; transition: transform 0.35s, box-shadow 0.35s; }
.lodge:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(58,53,46,0.2); }
.lodge-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--c1), var(--c2)); display: flex; align-items: center; justify-content: center; }
.lodge-deco { width: 46%; height: 46%; stroke: rgba(255,255,255,0.55); fill: none; stroke-width: 1; stroke-linejoin: round; }
.lodge-badge { position: absolute; top: 0.9rem; left: 0.9rem; background: rgba(255,255,255,0.92); color: var(--gold-dark); font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 20px; }
.lodge-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.lodge-body h3 { font-size: 1.55rem; color: var(--ink); }
.lodge-dist { display: flex; align-items: center; gap: 0.4rem; color: var(--gold-dark); font-size: 0.85rem; margin: 0.25rem 0 0.7rem; }
.lodge-dist .ico { width: 1rem; height: 1rem; }
.lodge-body > p { color: var(--muted); font-size: 0.92rem; }
.lodge-feat { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1.1rem; }
.lodge-feat li { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--ivory); color: var(--ink); font-size: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 20px; }
.lodge-feat .ico { width: 1.05rem; height: 1.05rem; }
.lodge-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; padding-top: 0.4rem; }
.lodge-price { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold-dark); }
.lodge-price small { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; color: var(--muted); }
.stay-note { display: flex; align-items: center; gap: 0.6rem; justify-content: center; max-width: 720px; margin: 2.6rem auto 0; color: var(--muted); font-size: 0.92rem; background: var(--ivory); padding: 1rem 1.4rem; border-radius: 14px; }
.stay-note .ico { flex: none; width: 1.4rem; height: 1.4rem; }

/* ===== Dress code ===== */
.dc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; max-width: 860px; margin: 0 auto; }
.dc-card { background: #fff; border-radius: 18px; padding: 2rem 1.8rem; box-shadow: 0 14px 44px var(--shadow); text-align: center; transition: transform 0.35s, box-shadow 0.35s; }
.dc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 52px rgba(58,53,46,0.18); }
.dc-ico { display: inline-flex; margin-bottom: 0.4rem; }
.dc-ico .ico { width: 2.6rem; height: 2.6rem; }
.dc-card h3 { font-size: 1.55rem; color: var(--ink); margin-bottom: 0.5rem; }
.dc-card > p { color: var(--muted); font-size: 0.95rem; }
.dc-card > p strong { color: var(--ink); }
.dc-no { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.9rem; color: var(--gold-dark) !important; font-size: 0.85rem !important; }
.cross { width: 1.05rem; height: 1.05rem; fill: none; stroke: #b5654a; stroke-width: 2; stroke-linecap: round; flex: none; }
.tick { width: 1.15rem; height: 1.15rem; fill: none; stroke: #6f8a56; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.dc-palette-block { text-align: center; margin: 3.2rem auto 0; }
.dc-sub { text-transform: uppercase; letter-spacing: 3px; font-size: 0.72rem; color: var(--gold-dark); margin-bottom: 1.2rem; }

.dc-do-dont { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 820px; margin: 3rem auto 0; }
.dc-col { background: #fff; border-radius: 16px; padding: 1.6rem 1.8rem; box-shadow: 0 12px 40px var(--shadow); }
.dc-col h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 0.9rem; color: var(--ink); }
.dc-yes-col { border-top: 3px solid #6f8a56; }
.dc-no-col { border-top: 3px solid var(--gold); }
.dc-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.dc-col li { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); font-size: 0.92rem; }

/* Gallery */
.gallery { background: var(--ivory); }
.grid-photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 1rem; max-width: 1000px; margin: 0 auto; }
.photo { border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; overflow: hidden; box-shadow: 0 8px 24px var(--shadow); transition: transform 0.4s; }
.photo::after { content: "&"; font-family: 'Cormorant Garamond', serif; font-style: italic; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 2.6rem; }
.photo:hover { transform: scale(1.03); }
.photo.tall { grid-row: span 2; }
.photo.wide { grid-column: span 2; }
.gallery-note { text-align: center; color: var(--muted); margin-top: 2rem; }
.gallery-note strong { color: var(--gold-dark); }

/* RSVP */
.rsvp { background: var(--cream); }
.form { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; margin-bottom: 0.5rem; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--sand); border-radius: 8px;
  background: #fff; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--ink);
  transition: border 0.3s, box-shadow 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,118,79,0.15); }
.radios { display: flex; gap: 1.5rem; }
.radio { display: flex; align-items: center; gap: 0.5rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 0.95rem; cursor: pointer; }
.form .btn { width: 100%; margin-top: 0.5rem; }
.form-msg { text-align: center; margin-top: 1.2rem; padding: 1rem; border-radius: 8px; background: #e9f3e6; color: #3f6b34; }

/* ===== Page d'accès (gate) : enveloppe plein écran ===== */
.gate-body { min-height: 100vh; }

/* Scène = enveloppe vidéo qui remplit l'écran */
.env-scene {
  position: fixed; inset: 0; z-index: 400; cursor: pointer; overflow: hidden;
  background: #efe8dc;
}
.env-scene:focus { outline: none; }

/* Vidéo plein écran (cover) : l'enveloppe remplit tout l'écran */
.env-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}

.env-hint {
  position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; z-index: 3;
  color: #7a6650; letter-spacing: 3px; text-transform: uppercase; font-size: 0.72rem;
  text-shadow: 0 1px 8px rgba(255,255,255,0.6);
  animation: hintPulse 2s ease-in-out infinite; transition: opacity 0.4s ease;
}
.env-hint.gone { opacity: 0; }
@keyframes hintPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.env.open .env-hint { opacity: 0; }

/* Fondu vers le crème du site (transition douce vers l'accueil) */
.white-flash {
  position: fixed; inset: 0; z-index: 500; background: var(--cream); opacity: 0;
  pointer-events: none; transition: opacity 1s ease;
}
.white-flash.show { opacity: 1; }

/* Écran du code (affiché EN PREMIER, au-dessus de l'enveloppe) */
.gate {
  position: fixed; inset: 0; z-index: 410;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: linear-gradient(135deg, #f8f1e7 0%, #efe3d2 55%, #e6d6bf 100%);
  transition: opacity 0.7s ease;
}
.gate.hidden { opacity: 0; pointer-events: none; }

/* Petit titre de l'écran code */
.gate-mini { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.8rem; color: var(--ink); margin: 0.1rem 0 0.9rem; }

/* Inscriptions comme écrites SUR l'enveloppe (haut = titre, bas = "open") */
.env-invite {
  position: absolute; inset: 0; z-index: 3; color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center; padding: 11vh 1.5rem 9vh;
  opacity: 0; pointer-events: none; transition: opacity 1s ease;
}
.env-invite.show { opacity: 1; pointer-events: auto; }
.env-invite.gone { opacity: 0; pointer-events: none; }
.env-text-top .pre-letter {
  font-family: 'Cormorant Garamond', serif; font-style: italic; text-transform: uppercase;
  letter-spacing: 5px; font-size: clamp(0.85rem, 1.7vw, 1.25rem); color: rgba(58,53,46,0.8);
  margin-bottom: 0.5rem; text-shadow: 0 1px 1px rgba(255,255,255,0.55);
}
.env-invite .gate-names {
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive; font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 7rem); line-height: 1; color: var(--ink);
  text-shadow: 0 1px 1px rgba(255,255,255,0.55);
}
.open-link {
  background: none; border: none; cursor: pointer; position: relative;
  font-family: 'Cormorant Garamond', serif; text-transform: uppercase; letter-spacing: 5px;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem); color: var(--ink); padding: 0.6rem 0.7rem;
  text-shadow: 0 1px 1px rgba(255,255,255,0.55); transition: color 0.3s ease, opacity 0.4s ease;
}
.open-link::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0.15rem; height: 1px; background: currentColor; opacity: 0.45; }
.open-link:hover { color: var(--gold-dark); }
.open-link.hide { opacity: 0; pointer-events: none; }

/* Le texte de l'enveloppe se dévoile de gauche à droite, comme écrit à la main */
/* Marge verticale (-0.6em haut / -0.4em bas) pour ne pas rogner les boucles de l'écriture */
@keyframes writeReveal { from { clip-path: inset(-0.6em 100% -0.4em 0); } to { clip-path: inset(-0.6em 0 -0.4em 0); } }
.env-invite.show .pre-letter { animation: writeReveal 0.9s ease 0.15s backwards; }
.env-invite.show .gate-names { animation: writeReveal 1.4s cubic-bezier(0.55, 0, 0.25, 1) 0.5s backwards; }
.env-invite.show .open-link  { animation: writeReveal 0.8s ease 1.6s backwards; }

/* Invitation : prénoms en belle police manuscrite + textes anglais */
.gate-card .gate-names {
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-weight: 400; font-size: clamp(3rem, 13vw, 4.8rem); line-height: 1.05;
  color: var(--ink); margin: 0.3rem 0 0.4rem;
}
.gate-invite {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--muted); font-size: 1.05rem; margin-bottom: 0.9rem;
}
.gate-tagline {
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-size: 1.7rem; color: var(--gold-dark); margin-top: 1.4rem; line-height: 1;
}

/* Carte de connexion admin (réutilise gate-card) */
.gate-card {
  position: relative; z-index: 2; text-align: center; max-width: 460px; width: 100%;
  background: rgba(250, 246, 240, 0.96); backdrop-filter: blur(6px);
  border-radius: 18px; padding: 3rem 2.2rem; box-shadow: 0 24px 70px rgba(40,32,24,0.45);
  animation: rise 0.9s ease both;
}
.gate-card h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1; margin: 0.3rem 0 1.2rem; color: var(--ink); }
.gate-card h1 span { color: var(--gold); font-style: italic; }
.gate-sub { color: var(--muted); margin-bottom: 1.4rem; font-size: 0.92rem; }
.gate-form { display: flex; flex-direction: column; gap: 0.7rem; }
.gate-form input {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--sand); border-radius: 40px;
  background: #fff; text-align: center; letter-spacing: 3px;
  font-family: 'Montserrat', sans-serif; font-size: 1rem; color: var(--ink); transition: border 0.3s, box-shadow 0.3s;
}
.gate-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,118,79,0.18); }
.gate-form .btn { width: 100%; }
/* Champ code avec œil pour révéler (padding symétrique → le code reste centré) */
/* On masque l'œil natif de Edge/IE pour ne garder que le nôtre */
.code-field input::-ms-reveal, .code-field input::-ms-clear { display: none; }
.code-field { position: relative; }
.code-field input { padding-left: 2.9rem; padding-right: 2.9rem; }
.pw-toggle {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; padding: 0; border: none; background: none; cursor: pointer;
  color: rgba(58,53,46,0.42); transition: color 0.25s ease;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--gold); outline: none; }
.pw-toggle svg { width: 20px; height: 20px; display: block; }
.gate-error { color: #b04a3c; font-size: 0.82rem; margin-top: 0.2rem; }
.gate-hint { margin-top: 1.6rem; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.gate-card.unlocked { opacity: 0; transform: scale(0.96); transition: opacity 0.4s, transform 0.4s; }
.shake { animation: shake 0.4s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-8px); }
  40%,80% { transform: translateX(8px); }
}

/* ===== Le lieu / Carte ===== */
.venue { background: var(--cream); }
.venue-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; max-width: 1050px; margin: 0 auto; align-items: stretch; }
.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 44px var(--shadow); min-height: 420px; border: 6px solid #fff; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.venue-info { display: flex; flex-direction: column; gap: 1.4rem; justify-content: center; }
.vi-item { display: flex; gap: 1rem; align-items: flex-start; }
.vi-ic { font-size: 1.5rem; line-height: 1.4; }
.vi-item h3 { font-size: 1.4rem; color: var(--ink); }
.vi-item p { color: var(--muted); font-size: 0.92rem; }
.venue-info .btn { align-self: flex-start; margin-top: 0.4rem; }
.logout { color: #9a8d7b; text-decoration: underline; }
.logout:hover { color: var(--sand); }

/* Footer */
.footer { background: linear-gradient(160deg, #b5654a, #a5573a); color: #fff; text-align: center; padding: 3.5rem 1.5rem; }
.footer h2 { font-size: 2.4rem; }
.footer h2 span { color: #ffe6d6; font-style: italic; }
.footer p { color: rgba(255,255,255,0.85); margin-top: 0.4rem; }
.footer .small { font-size: 0.8rem; margin-top: 1rem; color: rgba(255,255,255,0.7); }
.footer-links a { color: rgba(255,255,255,0.88); }
.footer-links a:hover { color: #fff; }

/* ===== Apparition au scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
/* Décalage progressif dans les grilles */
.cards .reveal:nth-child(2), .quick-grid .reveal:nth-child(2), .pay-grid .reveal:nth-child(2),
.registry-grid .reveal:nth-child(2), .facts-grid .reveal:nth-child(2), .stay-grid .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .quick-grid .reveal:nth-child(3), .pay-grid .reveal:nth-child(3),
.registry-grid .reveal:nth-child(3), .facts-grid .reveal:nth-child(3), .stay-grid .reveal:nth-child(3) { transition-delay: .16s; }
.quick-grid .reveal:nth-child(4), .registry-grid .reveal:nth-child(4), .facts-grid .reveal:nth-child(4) { transition-delay: .24s; }
.quick-grid .reveal:nth-child(5), .registry-grid .reveal:nth-child(5) { transition-delay: .32s; }
.quick-grid .reveal:nth-child(6), .registry-grid .reveal:nth-child(6) { transition-delay: .40s; }
.prog-row.reveal:nth-child(odd) { transition-delay: .05s; }

/* ===== Icônes fines (remplacent les emojis) ===== */
.ico { width: 1.7rem; height: 1.7rem; display: inline-block; vertical-align: middle;
  stroke: var(--gold); color: var(--gold); fill: none; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s ease, stroke 0.3s ease; }
.card-icon .ico { width: 2.5rem; height: 2.5rem; }
.q-ic .ico { width: 2rem; height: 2rem; }
.pay-ic .ico, .reg-ic .ico { width: 2rem; height: 2rem; }
.vi-ic .ico { width: 1.6rem; height: 1.6rem; }
.card:hover .card-icon .ico, .quick-card:hover .q-ic .ico, .reg-card:hover .reg-ic .ico { transform: translateY(-4px) scale(1.08); }
.pay-card.twint .pay-ic .ico { stroke: #111; color: #111; }

/* ===== Animations supplémentaires ===== */
/* Titres de section : trait doré qui se dessine */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: -0.55rem; width: 62px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform 0.9s ease 0.15s;
}
.section-head.in h2::after, .section-head:not(.reveal) h2::after { transform: translateX(-50%) scaleX(1); }

/* Hero : dégradé qui respire + entrée du titre */
.hero-content .pre { animation: fadeUp 1s ease .1s both; }
.hero-content h1 { animation: fadeUp 1.1s ease .25s both; }
.hero-content .date { animation: fadeUp 1.1s ease .45s both; }
.hero-content .hero-count { animation: fadeUp 1.1s ease .6s both; }
.hero-content .btn { animation: fadeUp 1.1s ease .75s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Nav : soulignement animé au survol */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active:not(.nav-cta)::after { transform: scaleX(1); }

/* Boutons : léger reflet au survol */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn:hover::after { left: 130%; }

/* Compte à rebours : petit pouls sur les chiffres */
.timer span { display: inline-block; animation: tick 1s ease; }
@keyframes tick { 0% { transform: translateY(-3px); opacity: .6; } 100% { transform: none; opacity: 1; } }

/* Barre de progression : reflet qui passe */
.progress-bar span { position: relative; overflow: hidden; }
.progress-bar span::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-100%); animation: shimmer 2.6s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(200%); } }

/* Variantes d'apparition au scroll (latérales / zoom) */
.reveal-left  { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-scale { transform: scale(0.9); }
.reveal-up    { transform: translateY(48px); }
.reveal.in { transform: none; }

/* Bannière de page : entrée en douceur */
.page-banner .pre { animation: fadeUp 0.9s ease .05s both; }
.page-banner h1 { animation: fadeUp 1s ease .2s both; }

/* Heure du mariage + compte à rebours sur la page d'entrée */
.gate-date {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--gold-dark); font-size: 1.15rem; margin: 0.2rem 0 0.9rem;
  animation: fadeUp 0.9s ease .3s both;
}
.gate-count { display: flex; justify-content: center; gap: 1rem; margin: 1.6rem 0 0; padding-top: 1.3rem;
  border-top: 1px solid var(--sand); animation: fadeUp 0.9s ease .8s both; }
.gate-count > span { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.gate-count b { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--ink); line-height: 1;
  animation: tick 1s ease; }
.gate-count small { text-transform: uppercase; letter-spacing: 2px; font-size: 0.56rem; color: var(--muted); margin-top: 3px; }
.gate-card .pre { animation: fadeUp 0.9s ease 0s both; }
.gate-card h1 { animation: fadeUp 0.9s ease .15s both; }
.gate-card .gate-sub { animation: fadeUp 0.9s ease .55s both; }
.gate-card .gate-form { animation: fadeUp 0.9s ease .65s both; }

/* Barre de progression de lecture */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 0.12s linear;
}
/* Bouton retour en haut */
#to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: #fff; font-size: 1.2rem; line-height: 1;
  box-shadow: 0 10px 26px rgba(80,55,35,0.35);
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
}
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#to-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* Transitions de page */
body.page-exit { animation: pageOut 0.24s ease both; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }

/* Bouton centré (ex : ajouter à l'agenda) */
.cta-center { text-align: center; margin-top: 2.6rem; }

/* Focus accessible homogène */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
/* Sélection de texte aux couleurs du thème */
::selection { background: rgba(192,118,79,0.25); color: var(--ink); }

/* Cartes : ombre plus douce animée déjà gérée par :hover */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { transition: opacity 0.4s ease; transform: none; }
  #to-top, body.page-exit { animation: none; }
  /* Exception : la page se révèle quand même en douceur depuis le blanc (pas de « cut » brutal) */
  body:not(.page-exit) { animation: reveal 0.9s ease both !important; }
  /* Exception : entrée en cascade du hero (le titre, la date… arrivent un par un) */
  .hero-content .pre { animation: fadeUp 1s ease .1s both !important; }
  .hero-content h1 { animation: fadeUp 1.1s ease .25s both !important; }
  .hero-content .date { animation: fadeUp 1.1s ease .45s both !important; }
  .hero-content .hero-count { animation: fadeUp 1.1s ease .6s both !important; }
  .hero-content .btn { animation: fadeUp 1.1s ease .75s both !important; }
  /* Exception : les titres des autres pages arrivent aussi en douceur */
  .page-banner .pre { animation: fadeUp 0.9s ease .05s both !important; }
  .page-banner h1 { animation: fadeUp 1s ease .2s both !important; }
  /* Exception : le texte de l'enveloppe se dévoile quand même de gauche à droite */
  .env-invite.show .pre-letter { animation: writeReveal 0.9s ease 0.15s backwards !important; }
  .env-invite.show .gate-names { animation: writeReveal 1.4s cubic-bezier(0.55, 0, 0.25, 1) 0.5s backwards !important; }
  .env-invite.show .open-link  { animation: writeReveal 0.8s ease 1.6s backwards !important; }
  /* Exception : apparition des champs invités + tracé de la coche de confirmation */
  .guest-field { animation: fieldIn 0.45s ease both !important; }
  .rsvp-already.drawn .check-mark circle { animation: drawCircle 0.6s ease both !important; }
  .rsvp-already.drawn .check-mark path { animation: drawCheck 0.45s ease 0.5s both !important; }
  /* Exception : la flèche continue de rebondir même en mode "réduire les animations" */
  .scroll-hint { animation: bounce 1.8s ease-in-out infinite !important; }
}

/* ===== Nav : bouton CTA + lien actif ===== */
.nav-cta {
  background: var(--gold); color: #fff !important; padding: 0.4rem 1rem; border-radius: 30px;
}
.nav-cta:hover { background: var(--gold-dark); }
#nav.scrolled .nav-cta { color: #fff !important; }
.nav-links a.active { color: var(--gold) !important; }
.nav-links a.nav-cta.active { color: #fff !important; background: var(--gold-dark); }

/* ===== Bannière de page (sous-pages) : photo + voile ===== */
.page-banner {
  position: relative; overflow: hidden;
  min-height: 42vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 7rem 1.5rem 3rem; text-align: center;
  background: #3a2f26 url('assets/hero-bg.jpg') center 30% / cover no-repeat;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(45,36,28,0.5) 0%, rgba(45,36,28,0.62) 100%);
}
.page-banner .pre { position: relative; z-index: 1; margin-bottom: 0.5rem; color: #ffe3d2; }
.page-banner h1 {
  position: relative; z-index: 1; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.32);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}
/* fin trait doré sous le titre */
.page-banner h1::after {
  content: ""; display: block; width: 72px; height: 2px; margin: 0.9rem auto 0;
  background: var(--gold); border-radius: 2px;
}

/* Nav en blanc en haut des pages à bannière photo (lisible sur la photo) */
body:has(.page-banner) #nav:not(.scrolled) .brand,
body:has(.page-banner) #nav:not(.scrolled) .nav-links a { color: #fff; }
body:has(.page-banner) #nav:not(.scrolled) .brand span { color: #ffcdb0; }
body:has(.page-banner) #nav:not(.scrolled) .nav-links a.active { color: #ffcdb0 !important; }
body:has(.page-banner) #nav:not(.scrolled) .nav-links a:hover { color: #ffcdb0; }
body:has(.page-banner) #nav:not(.scrolled) .burger span { background: #fff; }

/* Bannière dédiée du dress code (image claire → voile chaud un peu plus marqué) */
.dc-banner { background: #c9beb0 url('assets/dresscode-bg.jpg') center / cover no-repeat; }
.dc-banner::after { background: linear-gradient(180deg, rgba(58,44,33,0.30) 0%, rgba(58,44,33,0.52) 100%); }

/* Bannière table dressée toscane (RSVP + cagnotte, logement, programme, infos) */
.rsvp-banner, .toscane-banner { background: #9c7a52 url('assets/rsvp-bg.jpg') center 42% / cover no-repeat; }
.rsvp-banner::after, .toscane-banner::after { background: linear-gradient(180deg, rgba(45,32,22,0.28) 0%, rgba(45,32,22,0.5) 100%); }

/* ===== Accueil : bienvenue + accès rapides ===== */
.welcome { background: var(--cream); text-align: center; }
.welcome-text { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.quick { background: var(--ivory); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1050px; margin: 0 auto; }
.quick-card {
  background: #fff; border-radius: 14px; padding: 2rem 1.4rem; text-align: center; text-decoration: none;
  color: var(--ink); box-shadow: 0 12px 40px var(--shadow); transition: transform 0.35s, box-shadow 0.35s;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.quick-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(58,53,46,0.18); }
.quick-card .q-ic { font-size: 2rem; }
.quick-card h3 { font-size: 1.5rem; color: var(--ink); }
.quick-card p { color: var(--muted); font-size: 0.9rem; }
.quick-card .q-go { color: var(--gold-dark); font-size: 0.82rem; letter-spacing: 1px; margin-top: 0.4rem; }

/* ===== Histoire : chapitres + fun facts ===== */
.chapters { background: var(--ivory); }
.chapter-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.chapter { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px var(--shadow); }
.chapter.reverse { grid-template-columns: 1.2fr 1fr; }
.chapter.reverse .chapter-img { order: 2; }
.chapter-img { min-height: 220px; height: 100%; background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; }
.chapter-img::after { content: "&"; font-family: 'Cormorant Garamond', serif; font-style: italic; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 3rem; }
.chapter-body { padding: 2rem; }
.chapter-body h3 { font-size: 1.8rem; color: var(--ink); }
.chapter-body p { color: var(--muted); margin-top: 0.5rem; }
.funfacts { background: var(--cream); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; text-align: center; }
.fact-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; color: var(--gold); display: block; }
.fact p { color: var(--muted); font-size: 0.9rem; }

/* ===== Infos : dress code + FAQ ===== */
.dresscode { background: var(--cream); text-align: center; }
.palette { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; max-width: 700px; margin: 0 auto; }
.swatch { width: 110px; height: 110px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; box-shadow: 0 8px 24px var(--shadow); }
.swatch span { background: rgba(255,255,255,0.85); color: var(--ink); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 20px; margin-bottom: 0.6rem; }
.dress-note { color: var(--muted); margin-top: 2rem; font-style: italic; }
.faq { background: var(--ivory); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details { background: #fff; border-radius: 12px; padding: 1rem 1.4rem; margin-bottom: 0.9rem; box-shadow: 0 6px 20px var(--shadow); cursor: pointer; }
.faq-list summary { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--ink); list-style: none; position: relative; padding-right: 1.5rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--gold); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; }
.faq-list a { color: var(--gold-dark); }

/* ===== Lieu : hébergements ===== */
.stay { background: var(--cream); }
.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.stay-card { background: #fff; border-radius: 14px; padding: 1.8rem; box-shadow: 0 12px 40px var(--shadow); }
.stay-card h3 { font-size: 1.4rem; color: var(--ink); }
.stay-card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.stay-meta { color: var(--gold-dark) !important; font-weight: 400; }

/* ===== RSVP ===== */
.rsvp-lead { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; color: var(--muted); }
.rsvp-already { max-width: 560px; margin: 0 auto; text-align: center; background: #fff; border-radius: 16px; padding: 2.6rem 2rem; box-shadow: 0 14px 44px var(--shadow); }
.rsvp-already h2 { font-size: 2.2rem; color: var(--ink); }
.rsvp-already .sub { color: var(--muted); margin: 0.6rem 0 1.6rem; }
/* ===== RSVP redessiné ===== */
/* Bannière : signature manuscrite */
.banner-script { position: relative; z-index: 1; font-family: 'Great Vibes', cursive;
  font-size: clamp(1.7rem, 4vw, 2.5rem); color: #ffcdb0; margin-top: 0.8rem; text-shadow: 0 2px 12px rgba(0,0,0,0.32); }

/* Intro + pastille de date */
.rsvp-intro { text-align: center; max-width: 600px; margin: 0 auto 2.6rem; color: var(--muted); }
.date-chip { display: inline-block; margin-top: 0.8rem; padding: 0.4rem 1.3rem; border: 1px solid var(--gold);
  border-radius: 30px; color: var(--gold-dark); font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  letter-spacing: 0.5px; background: rgba(192,118,79,0.06); }
.date-chip sup { font-size: 0.6em; }

/* La carte qui contient le formulaire */
.rsvp-card { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 22px;
  padding: 2.8rem 2.4rem; box-shadow: 0 22px 60px var(--shadow); border: 1px solid rgba(233,215,197,0.6); }
.rsvp-card .btn { width: 100%; margin-top: 1.7rem; }

/* Étapes numérotées */
.form-step { margin-bottom: 0.3rem; }
.step-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.2rem; }
.step-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.step-head h3 { font-size: 1.5rem; color: var(--ink); font-weight: 500; }

/* Séparateur ornemental (ligne + losange doré) */
.form-divider { position: relative; height: 1px; width: 62%; margin: 2rem auto;
  background: linear-gradient(90deg, transparent, var(--sand) 18%, var(--sand) 82%, transparent); }
.form-divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); }

/* Choix présence : deux grandes tuiles */
.presence-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rsvp-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.5rem; padding: 1.7rem 1rem 1.4rem; background: #fff; border: 1.5px solid var(--sand); border-radius: 16px;
  cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s; }
.rsvp-tile input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--shadow); }
.tile-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--gold); transition: background .25s, color .25s; }
.tile-ic svg { width: 24px; height: 24px; }
.tile-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--ink); }
.tile-sub { font-size: 0.76rem; color: var(--muted); }
.rsvp-tile:has(input:checked) { border-color: var(--gold); box-shadow: 0 12px 34px rgba(192,118,79,0.18); }
.rsvp-tile:has(input:checked) .tile-ic { background: var(--gold); color: #fff; }
.rsvp-tile:has(input:checked)::after { content: ""; position: absolute; top: 0.7rem; right: 0.7rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Stepper +/- pour le nombre d'invités */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--sand); border-radius: 40px; background: #fff; overflow: hidden; }
.step-btn { width: 46px; height: 46px; border: none; background: none; font-size: 1.4rem; color: var(--gold-dark);
  cursor: pointer; transition: background .2s, color .2s; line-height: 1; }
.step-btn:hover { background: var(--cream); color: var(--gold); }
.step-btn:disabled { color: var(--sand); cursor: default; background: none; }
.stepper-val { min-width: 48px; text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--ink); }

/* Icônes devant les labels */
.lb-ic { display: inline-flex; vertical-align: -3px; margin-right: 0.35rem; color: var(--gold); }
.lb-ic svg { width: 15px; height: 15px; }

/* Champ "petit mot" mis en valeur */
.field-note textarea { background: var(--cream); font-family: 'Cormorant Garamond', serif; font-size: 1.08rem; line-height: 1.6; }
.field-note textarea::placeholder { font-style: italic; color: var(--muted); }

/* Mot tendre si absent */
.rsvp-absent-note { text-align: center; color: var(--gold-dark); font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.15rem; margin: 0.2rem 0 0; }

/* Apparition des champs invités */
.guest-field { animation: fieldIn 0.45s ease both; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Micro-transition au focus : le champ se soulève, le label passe en doré */
.rsvp-card .field input:focus, .rsvp-card .field select:focus, .rsvp-card .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,118,79,0.15), 0 8px 20px rgba(192,118,79,0.12); transform: translateY(-1px); }
.rsvp-card .field:focus-within > label { color: var(--gold-dark); }

/* Confirmation dans la palette (plus de vert) */
.form-msg { background: rgba(192,118,79,0.08); color: var(--gold-dark); border: 1px solid rgba(192,118,79,0.22); }
.form-msg.ok { background: rgba(192,118,79,0.08); color: var(--gold-dark); }
.form-msg.no { background: var(--cream); color: var(--gold-dark); }

/* Coche qui se trace dans le panneau "déjà répondu" */
.check-mark { display: block; width: 66px; height: 66px; margin: 0 auto 1.1rem; }
.check-mark svg { width: 66px; height: 66px; }
.check-mark circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 0; }
.check-mark path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 0; }
.rsvp-already.drawn .check-mark circle { animation: drawCircle 0.6s ease both; }
.rsvp-already.drawn .check-mark path { animation: drawCheck 0.45s ease 0.5s both; }
@keyframes drawCircle { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes drawCheck { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }

@media (max-width: 560px) {
  .rsvp-card { padding: 2rem 1.3rem; }
  .presence-tiles { grid-template-columns: 1fr; }
}

/* ===== Footer liens ===== */
.footer-links a { color: #cdbfad; text-decoration: none; margin: 0 0.2rem; }
.footer-links a:hover { color: var(--gold); }

/* ===== ADMIN ===== */
.admin-body { background: var(--ivory); min-height: 100vh; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: linear-gradient(120deg, #cbb9a8, #8e7a63 55%, #6f5c48); }
.admin-panel { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.admin-top h1 { font-size: 2.6rem; color: var(--ink); }
.admin-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #fff; }
.btn-danger-ghost { background: transparent; color: #b04a3c; border: 1px solid #d99; }
.btn-danger-ghost:hover { background: #b04a3c; color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.stat { background: #fff; border-radius: 14px; padding: 1.6rem; text-align: center; box-shadow: 0 12px 40px var(--shadow); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; color: var(--gold); display: block; line-height: 1; }
.stat small { text-transform: uppercase; letter-spacing: 2px; font-size: 0.68rem; color: var(--muted); }

.table-tools { display: flex; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.table-tools input[type="search"] { flex: 1; min-width: 200px; padding: 0.7rem 1rem; border: 1px solid var(--sand); border-radius: 8px; background: #fff; }
.table-tools select { padding: 0.7rem 1rem; border: 1px solid var(--sand); border-radius: 8px; background: #fff; }
.table-tools input:focus, .table-tools select:focus { outline: none; border-color: var(--gold); }

.table-wrap { background: #fff; border-radius: 14px; box-shadow: 0 12px 40px var(--shadow); overflow-x: auto; }
#rsvp-table { width: 100%; border-collapse: collapse; min-width: 820px; }
#rsvp-table th, #rsvp-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--ivory); font-size: 0.88rem; }
#rsvp-table th { background: var(--cream); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.7rem; font-weight: 500; }
#rsvp-table tr:last-child td { border-bottom: none; }
#rsvp-table .msg-cell { max-width: 220px; color: var(--muted); font-style: italic; }
.badge { padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.72rem; letter-spacing: 0.5px; }
.badge.yes { background: #e3f0dd; color: #3f6b34; }
.badge.no { background: #f6e3dc; color: #8a5a3c; }
.row-actions { white-space: nowrap; }
.row-del, .row-edit { background: none; border: none; font-size: 1rem; cursor: pointer; padding: 0.2rem 0.45rem; border-radius: 6px; }
.row-del { color: #b8776a; }
.row-del:hover { background: #f6e3dc; }
.row-edit { color: var(--gold-dark); }
.row-edit:hover { background: rgba(192,118,79,0.16); }
.sub-names { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* Ligne RSVP dépliable */
.rsvp-row { cursor: pointer; transition: background 0.2s ease; }
.rsvp-row:hover { background: var(--cream); }
.row-caret { display: inline-block; margin-right: 0.5rem; color: var(--gold); transition: transform 0.25s ease; }
.rsvp-row.open .row-caret { transform: rotate(90deg); }
.rsvp-detail > td { background: var(--cream); padding: 0 1rem; }
.detail-box { padding: 1.1rem 0.6rem 1.3rem; animation: detailIn 0.3s ease both; }
@keyframes detailIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.detail-box span { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: 0.66rem; color: var(--muted); margin-bottom: 0.2rem; }
.detail-invites-wrap { margin-bottom: 1rem; }
.detail-invites { margin: 0.2rem 0 0 1.1rem; padding: 0; }
.detail-invites li { font-size: 0.9rem; color: var(--ink); margin-bottom: 0.15rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem 1.4rem; margin-bottom: 1rem; }
.detail-grid > div { font-size: 0.9rem; color: var(--ink); }
.detail-msg { font-size: 0.9rem; color: var(--ink); font-style: italic; }

/* Fenêtre modale (édition RSVP) */
.modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(40,32,24,0.5); padding: 1.5rem; animation: pageIn 0.25s ease both;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 16px; padding: 2rem; width: 100%; max-width: 460px;
  box-shadow: 0 24px 70px rgba(40,32,24,0.4); max-height: 90vh; overflow-y: auto;
}
.modal-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--ink); margin-bottom: 1.2rem; }
.e-label { display: block; margin-bottom: 0.9rem; font-size: 0.8rem; letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase; }
.e-label input, .e-label select, .e-label textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.9rem; border: 1px solid var(--sand);
  border-radius: 8px; background: #fff; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--ink);
  text-transform: none; letter-spacing: 0;
}
.e-label input:focus, .e-label select:focus, .e-label textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,118,79,0.15); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 0.5rem; }
.modal-actions .btn { width: auto; }
.empty-msg { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }

/* ===== Cagnotte : objectif / progression ===== */
.fund { background: var(--cream); }
.fund-card { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 2.6rem; text-align: center; box-shadow: 0 16px 50px var(--shadow); }
.fund-card h2 { font-size: 2.4rem; color: var(--ink); }
.fund-desc { color: var(--muted); max-width: 520px; margin: 0.6rem auto 1.8rem; }
.progress-bar { height: 16px; background: var(--ivory); border-radius: 20px; overflow: hidden; border: 1px solid var(--sand); }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #d38a63, #c0764f); border-radius: 20px; transition: width 1s ease; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.9rem; flex-wrap: wrap; gap: 0.4rem; }
.progress-meta strong { font-family: 'Cormorant Garamond', serif; }
.progress-meta > strong { font-size: 2rem; color: var(--gold-dark); }
.progress-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ===== Moyens de paiement ===== */
.pay { background: var(--ivory); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 760px; margin: 0 auto; }
.pay-card { background: #fff; border-radius: 16px; padding: 1.8rem; box-shadow: 0 12px 40px var(--shadow); text-align: center; display: flex; flex-direction: column; }
.pay-card.twint { border-top: 4px solid #000; }
.pay-head { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1rem; }
.pay-ic { font-size: 1.6rem; }
.pay-head h3 { font-size: 1.5rem; color: var(--ink); letter-spacing: 1px; }
.qr { width: 160px; height: 160px; margin: 0 auto 1rem; background: #fff; border: 6px solid #f0e9dd; border-radius: 12px; padding: 8px; box-shadow: 0 6px 18px var(--shadow); }
.qr svg { width: 100%; height: 100%; display: block; }
.pay-info { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.5rem; }
.pay-info strong { color: var(--ink); }
.pay-hint { margin-top: auto; font-size: 0.72rem; color: #b3a68f; font-style: italic; padding-top: 0.8rem; }
.pay-hint code { background: var(--ivory); padding: 0.1rem 0.35rem; border-radius: 4px; }
.bank { list-style: none; text-align: left; margin: 0 auto; max-width: 260px; }
.bank li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--sand); font-size: 0.85rem; }
.bank li span { color: var(--muted); }
.bank li strong { color: var(--ink); text-align: right; }

/* ===== Cagnotte à thèmes ===== */
.registry { background: var(--cream); }
.registry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1050px; margin: 0 auto; }
.reg-card { background: #fff; border-radius: 14px; padding: 1.8rem; text-align: center; box-shadow: 0 12px 40px var(--shadow); display: flex; flex-direction: column; gap: 0.4rem; transition: transform 0.3s; }
.reg-card:hover { transform: translateY(-6px); }
.reg-card.taken { opacity: 0.72; }
.reg-ic { font-size: 2.2rem; }
.reg-card h3 { font-size: 1.4rem; color: var(--ink); }
.reg-card p { color: var(--muted); font-size: 0.9rem; }
.reg-price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--gold-dark) !important; }
.reg-btn { margin-top: 0.5rem; align-self: center; }
.reg-status { color: #3f6b34 !important; font-weight: 400; background: #e9f3e6; border-radius: 20px; padding: 0.4rem 0.8rem; }

/* ===== Contribution : formulaire ===== */
.contribute { background: var(--ivory); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; cursor: pointer; }

/* ===== Mur des contributions ===== */
.wall { background: var(--cream); }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; max-width: 1050px; margin: 0 auto; }
.wall-card { background: #fff; border-radius: 12px; padding: 1.2rem 1.4rem; box-shadow: 0 8px 26px var(--shadow); }
.wall-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.wall-amount { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--gold-dark); }
.wall-card p { color: var(--muted); font-style: italic; margin-top: 0.4rem; font-size: 0.9rem; }

/* ===== Cagnotte : refonte participation + paiement ===== */
/* Carte objectif */
.fund-card { padding: 0; overflow: hidden; text-align: left; }
.fund-cover { position: relative; padding: 2.4rem 2.4rem 2rem; color: #fff;
  background: linear-gradient(135deg, #b9713f 0%, #9c5f3c 55%, #7a4838 100%); }
.fund-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 18%, rgba(255,220,180,0.28), transparent 60%); }
.fund-cover-label { position: relative; z-index: 1; text-transform: uppercase; letter-spacing: 3px; font-size: 0.72rem; color: #ffe3d2; }
.fund-cover h2 { position: relative; z-index: 1; color: #fff; font-size: 2.4rem; margin-top: 0.3rem; }
.fund-body { padding: 1.8rem 2.4rem 2.4rem; }
.fund-body .fund-desc { text-align: center; }
.fund-body .btn { display: block; width: 100%; margin-top: 1.4rem; }

/* Paliers de l'objectif */
.paliers { list-style: none; margin: 1.6rem 0 0; }
.paliers li { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--sand); color: var(--muted); }
.paliers li:last-child { border-bottom: none; }
.pal-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--sand); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.paliers li.done .pal-check { background: var(--gold); border-color: var(--gold); }
.pal-check svg { width: 13px; height: 13px; }
.pal-label { flex: 1; }
.paliers li.done .pal-label { color: var(--ink); }
.pal-amt { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--gold-dark); }

/* Lignes de paiement + bouton copier */
.pay-line { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--sand); text-align: left; font-size: 0.85rem; }
.pay-line:last-child { border-bottom: none; }
.pay-line > span { color: var(--muted); min-width: 84px; }
.pay-line > b { color: var(--ink); font-weight: 500; word-break: break-word; flex: 1; }
.copy-btn { flex-shrink: 0; background: var(--ivory); border: 1px solid var(--sand); color: var(--gold-dark); font-size: 0.7rem; letter-spacing: 0.5px; text-transform: uppercase; padding: 0.32rem 0.7rem; border-radius: 20px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.copy-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.copy-btn.copied { background: var(--gold-dark); color: #fff; border-color: var(--gold-dark); }

/* QR agrandissable */
.qr-btn { border: 6px solid #f0e9dd; background: #fff; padding: 8px; cursor: zoom-in; display: block; }
.qr-btn:hover { border-color: var(--sand); }

/* Cartes envies : vignette + jauge + statut */
.reg-card { padding: 0; overflow: hidden; text-align: left; gap: 0; }
.reg-cover { position: relative; height: 92px; display: flex; align-items: center; justify-content: center; }
.reg-cover .reg-ic .ico { width: 2.4rem; height: 2.4rem; stroke: #fff; color: #fff; }
.reg-status { position: absolute; top: 0.7rem; right: 0.7rem; font-size: 0.64rem; letter-spacing: 1px; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 20px; background: rgba(255,255,255,0.94); }
.reg-status.is-open { color: var(--gold-dark) !important; }
.reg-status.is-live { color: #a5573a !important; }
.reg-status.is-near { color: #9c5f2c !important; }
.reg-status.is-done { color: #3f6b34 !important; background: #e9f3e6; }
.reg-body { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.reg-body h3 { font-size: 1.35rem; color: var(--ink); }
.reg-desc { color: var(--muted); font-size: 0.9rem; }
.reg-progress { margin: 0.5rem 0 0.2rem; }
.progress-bar.sm { height: 8px; }
.reg-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.reg-meta b { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--gold-dark); }
.reg-contribs { font-size: 0.78rem; color: var(--muted); font-style: italic; }
.reg-btn { margin-top: auto; width: 100%; align-self: stretch; }
.reg-card.complete .reg-cover { filter: saturate(0.85); }

/* Modale de participation */
.gm-card { max-width: 480px; text-align: left; position: relative; }
.gm-close { position: absolute; top: 0.7rem; right: 1rem; background: none; border: none; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.gm-card .pre { color: var(--gold); }
.gm-card h3 { margin-bottom: 0.2rem; }
.gm-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.gm-progress { margin-bottom: 1.2rem; }
.gm-remaining { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.gm-amt-label { display: block; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.gm-stepper { margin-top: 0.5rem; }
.gm-stepper input { width: 90px; text-align: center; border: none; background: none; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--ink); -moz-appearance: textfield; }
.gm-stepper input::-webkit-outer-spin-button, .gm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gm-tabs { display: flex; gap: 0.4rem; background: var(--ivory); border-radius: 30px; padding: 0.3rem; margin-bottom: 1rem; }
.gm-tab { flex: 1; border: none; background: none; padding: 0.55rem 0.4rem; border-radius: 20px; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.gm-tab.active { background: #fff; color: var(--gold-dark); box-shadow: 0 4px 12px var(--shadow); }
.gm-pane { background: var(--ivory); border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.gm-pay-row { display: flex; gap: 1rem; align-items: flex-start; }
.gm-qr { flex-shrink: 0; width: 110px; height: 110px; border: 5px solid #fff; border-radius: 10px; padding: 5px; background: #fff; box-shadow: 0 6px 18px var(--shadow); cursor: zoom-in; }
.gm-qr svg { width: 100%; height: 100%; display: block; }
.gm-pay-info { flex: 1; min-width: 0; }
.gm-card .btn { width: 100%; }

/* Lightbox QR */
.qr-box { position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; background: rgba(40,32,24,0.72); padding: 2rem; cursor: zoom-out; }
.qr-box[hidden] { display: none; }
.qr-box-inner { width: min(80vw, 340px); height: min(80vw, 340px); background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 24px 70px rgba(0,0,0,0.4); }
.qr-box-inner svg { width: 100%; height: 100%; display: block; }

/* Mur enrichi */
.wall-gift { color: var(--gold-dark) !important; font-style: normal !important; font-size: 0.82rem !important; margin-top: 0.5rem !important; }
.wall-mot { color: var(--muted); font-style: italic; margin-top: 0.35rem; font-size: 0.9rem; }

@media (max-width: 560px) {
  .gm-pay-row { flex-direction: column; align-items: center; text-align: center; }
  .gm-qr { width: 140px; height: 140px; }
  .gm-pay-info { width: 100%; }
}

/* ===== Livre d'or ===== */
.guestbook { background: var(--cream); }
.gb-wall { columns: 3 260px; column-gap: 1.2rem; max-width: 1050px; margin: 2.5rem auto 0; }
.gb-card { break-inside: avoid; background: #fff; border-radius: 12px; padding: 1.4rem; margin-bottom: 1.2rem; box-shadow: 0 8px 26px var(--shadow); border-left: 4px solid var(--gold); }
.gb-text { color: var(--ink); font-style: italic; }
.gb-sign { color: var(--gold-dark); margin-top: 0.6rem; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; }

/* ===== Admin : onglets + livre d'or ===== */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--sand); }
.tab { background: none; border: none; padding: 0.8rem 1.3rem; font-family: 'Montserrat', sans-serif; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--gold-dark); border-bottom-color: var(--gold); }
.gb-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gb-admin-card { background: #fff; border-radius: 12px; padding: 1.2rem; box-shadow: 0 8px 26px var(--shadow); }
.gb-admin-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.gb-admin-head strong { color: var(--ink); }
.gb-admin-head span { color: var(--muted); font-size: 0.75rem; margin-left: auto; }
.gb-admin-card p { color: var(--muted); font-style: italic; }
#s-raised { font-size: 2rem; }

/* ===== Admin : options ajoutées ===== */
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.table-tools { align-items: center; }
.table-tools select { max-width: 100%; }
#rsvp-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
#rsvp-table th.sortable:hover { color: var(--gold-dark); }
#rsvp-table th.sorted::after { content: attr(data-dir); margin-left: 4px; color: var(--gold-dark); }
.col-check { width: 34px; text-align: center; }
.row-check, #check-all { width: 16px; height: 16px; cursor: pointer; accent-color: var(--gold); }

.bulk-bar { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--sand); border-radius: 10px; padding: 0.6rem 1rem; margin-bottom: 1rem; }
.bulk-bar span { color: var(--ink); font-size: 0.9rem; }

.admin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.sum-block { background: #fff; border-radius: 12px; padding: 1.1rem 1.3rem; box-shadow: 0 8px 26px var(--shadow); }
.sum-block h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--ink); margin-bottom: 0.7rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { background: var(--ivory); color: var(--ink); font-size: 0.82rem; padding: 0.35rem 0.75rem; border-radius: 20px; }
.chip b { color: var(--gold-dark); }
.sum-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.sum-list li { color: var(--muted); font-size: 0.9rem; }
.sum-list li b { color: var(--ink); }

.settings-card { background: #fff; border-radius: 16px; padding: 1.8rem; box-shadow: 0 12px 40px var(--shadow); max-width: 620px; margin: 0 auto 1.5rem; }
.settings-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--ink); margin-bottom: 0.4rem; }
.hint-txt { color: var(--muted); font-size: 0.85rem; }
.settings-card textarea, .settings-card .e-label input { width: 100%; }
.settings-card textarea { padding: 0.8rem 1rem; border: 1px solid var(--sand); border-radius: 10px; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; margin-top: 0.6rem; }
.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }

#admin-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 0.8rem 1.4rem; border-radius: 30px; font-size: 0.9rem; box-shadow: 0 12px 34px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 600; }
#admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media print {
  #admin-login, .admin-top .admin-actions, .tabs, .table-tools, .bulk-bar, .row-actions, .col-check, .admin-summary { display: none !important; }
  .admin-body { background: #fff; }
  .table-wrap { box-shadow: none; }
  #tab-gifts, #tab-guests, #tab-settings { display: none !important; }
}

/* Responsive */
@media (max-width: 860px) {
  .pay-grid, .registry-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gb-wall { columns: 1; }
  .quick-grid, .facts-grid, .stay-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .chapter, .chapter.reverse { grid-template-columns: 1fr; }
  .chapter.reverse .chapter-img { order: 0; }
  .admin-top { align-items: flex-start; }
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-photos { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 72%;
    background: linear-gradient(160deg, #f7ece2, #efdfcf);
    box-shadow: -10px 0 34px rgba(58,53,46,0.18);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; transition: right 0.4s; padding: 2rem;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; }
  .nav-links a.active { color: var(--gold-dark) !important; }
  .nav-links a.nav-cta { color: #fff !important; }
  .burger { display: flex; z-index: 101; }
  /* Sélecteur de langue dans le menu mobile : foncé et bien lisible sur le fond clair */
  .lang-li { margin-top: 0.4rem; }
  .lang-switch { border: 1px solid var(--sand); border-radius: 24px; padding: 0.15rem; background: rgba(255,255,255,0.5); }
  .nav-links .lang-btn { color: var(--ink) !important; opacity: 0.55; font-size: 0.9rem; letter-spacing: 2px; padding: 0.45rem 0.85rem; }
  .nav-links .lang-btn.active { color: #fff !important; opacity: 1; background: var(--gold); border-radius: 20px; }
  .nav-links .lang-btn + .lang-btn::before { display: none; }
}

/* ===== Admin : responsive (petit écran) ===== */
@media (max-width: 640px) {
  .admin-panel { padding: 1.5rem 0.9rem 3rem; }
  .admin-top { margin-bottom: 1.4rem; }
  .admin-top h1 { font-size: 1.9rem; }
  .admin-actions { width: 100%; }
  .admin-actions .btn { flex: 1 1 auto; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin-bottom: 1.4rem; }
  .stat { padding: 1.05rem 0.7rem; }
  .stat-num { font-size: 2rem; }
  #s-raised { font-size: 1.45rem; }
  .stat small { font-size: 0.6rem; letter-spacing: 1px; }

  /* Onglets : défilables horizontalement au lieu de casser la ligne */
  .tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 0.7rem 1rem; margin-bottom: 0; }

  /* Outils : recherche pleine largeur, filtres et boutons sur deux colonnes */
  .table-tools { gap: 0.6rem; }
  .table-tools input[type="search"] { flex: 1 1 100%; min-width: 0; }
  .table-tools select { flex: 1 1 46%; min-width: 0; }
  .table-tools .btn { flex: 1 1 46%; text-align: center; padding-left: 0.6rem; padding-right: 0.6rem; }

  /* Tableau : défilement horizontal fluide */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  #rsvp-table { min-width: 720px; }

  .bulk-bar { flex-wrap: wrap; }
  .settings-card { padding: 1.3rem 1.1rem; }
  .settings-foot .btn { flex: 1 1 auto; }

  /* Notification centrée en pleine largeur */
  #admin-toast { left: 1rem; right: 1rem; width: auto; transform: translateY(20px); text-align: center; }
  #admin-toast.show { transform: translateY(0); }
}

/* ===== Sélecteur de langue (FR / EN / IT) ===== */
.lang-li { display: flex; align-items: center; margin-left: 0.3rem; }
.lang-switch { display: inline-flex; align-items: center; }
.lang-btn {
  -webkit-appearance: none; appearance: none; background: none; border: 0; margin: 0; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 0.68rem; letter-spacing: 1.5px; line-height: 1;
  padding: 0.3rem 0.5rem; color: var(--muted); opacity: 0.7; position: relative;
  transition: opacity .2s ease, color .2s ease;
}
/* fin séparateur entre les langues */
.lang-btn + .lang-btn::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 11px; width: 1px; background: currentColor; opacity: 0.3;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; color: var(--gold-dark); font-weight: 600; }
/* Nav blanche (accueil + pages à bannière photo) → sélecteur en blanc */
body:has(.hero) #nav:not(.scrolled) .lang-btn,
body:has(.page-banner) #nav:not(.scrolled) .lang-btn { color: #fff; opacity: 0.65; }
body:has(.hero) #nav:not(.scrolled) .lang-btn.active,
body:has(.page-banner) #nav:not(.scrolled) .lang-btn.active { color: #fff; opacity: 1; }
/* Version flottante (écran du code, pas de nav) */
.lang-switch.floating { position: fixed; top: 1.1rem; right: 1.2rem; z-index: 9999;
  background: rgba(255,255,255,0.86); border: 1px solid var(--sand); border-radius: 22px;
  padding: 0.15rem 0.25rem; box-shadow: 0 6px 18px var(--shadow); backdrop-filter: blur(4px); }

/* ===== RSVP : adultes + enfants par tranche d'âge ===== */
#ad-field { margin-bottom: 1.1rem; }
.kids { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.3rem; }
.kid-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.kid-lbl { color: var(--ink); font-size: 0.92rem; }
.stepper-sm .step-btn { width: 38px; height: 38px; font-size: 1.2rem; }
.stepper-sm .stepper-val { min-width: 40px; font-size: 1.25rem; }
.kids-total { margin-top: 0.8rem; color: var(--gold-dark); font-style: italic; }

/* ===== Infos : section « Le domaine » (galerie du château) ===== */
.domaine { background: var(--cream); }
.dom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 1050px; margin: 0 auto; }
.dom-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px var(--shadow);
  background-size: cover; background-position: center; display: flex; align-items: flex-end; transition: transform .35s, box-shadow .35s; }
.dom-tile:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(58,53,46,0.2); }
.dom-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(45,36,28,0.55)); }
.dom-tile span { position: relative; z-index: 1; color: #fff; padding: 1rem 1.1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.dom-tile.g1 { background-image: linear-gradient(135deg, #b98a5e, #7a4f34); }
.dom-tile.g2 { background-image: linear-gradient(135deg, #a7ad7c, #6f7a4a); }
.dom-tile.g3 { background-image: linear-gradient(135deg, #c98a63, #8a4f34); }
.dom-tile.g4 { background-image: linear-gradient(135deg, #d9a06f, #a56a3c); }
.dom-note { text-align: center; color: var(--muted); margin-top: 1.8rem; font-style: italic; }
.dom-note a { color: var(--gold-dark); }
@media (max-width: 860px) { .dom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .dom-grid { grid-template-columns: 1fr; } .dom-tile { aspect-ratio: 16 / 10; } }

/* ===== RSVP : nuit au château ===== */
.nuit-price { display: inline-block; margin-left: 0.4rem; background: rgba(192,118,79,0.1); color: var(--gold-dark);
  font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 20px; letter-spacing: 0.5px; }
.nuit-choice { margin-top: 0.4rem; }
.nuit-choice .radio { align-items: center; line-height: 1; }
.nuit-choice input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; flex-shrink: 0; vertical-align: middle; }
.nuit-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.85rem; font-style: italic;
  background: var(--ivory); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 0.7rem 1rem; }

/* Accueil : dates sous le compte à rebours */
.hero-content .hero-dates { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem;
  color: #ffe3d2; margin-top: 1.1rem; letter-spacing: 1px; animation: fadeUp 1.1s ease .68s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-content .hero-dates { animation: fadeUp 1.1s ease .68s both !important; }
}
