/* =====================================================================
   LAURÈNE — 30 ANS · Thème "Gatsby, Or & Noir"
   ===================================================================== */

:root {
  --gold: #d4af37;
  --gold-light: #f5e6b8;
  --gold-deep: #8a6d1f;
  --black: #0d0d0d;
  --black-soft: #161616;
  --black-card: #1c1c1c;
  --cream: #fdf8ec;
  --font-title: 'Cinzel', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fond général : texture art déco subtile */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,175,55,0.10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(212,175,55,0.025) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(-45deg, rgba(212,175,55,0.025) 0 2px, transparent 2px 24px),
    var(--black);
}

::selection { background: var(--gold); color: var(--black); }

/* ============ CANVAS EFFETS ============ */
#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* ============ BOUTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.9em 2.2em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  color: var(--black);
  background: linear-gradient(110deg, #b8902a 0%, #f3d878 25%, #d4af37 50%, #f9ecc0 75%, #b8902a 100%);
  background-size: 250% 100%;
  box-shadow: 0 6px 24px rgba(212,175,55,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: gold-sheen 4s linear infinite;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(212,175,55,0.55), inset 0 1px 0 rgba(255,255,255,0.5); }

@keyframes gold-sheen {
  0% { background-position: 0% 0; }
  100% { background-position: 250% 0; }
}

.btn-big { font-size: 1.3rem; padding: 1em 2.6em; }

.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: rgba(212,175,55,0.12); transform: translateY(-2px); }

/* ============ CADRE ART DÉCO ============ */
.deco-frame {
  position: relative;
  background: linear-gradient(160deg, var(--black-card), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 4px;
  padding: 2.2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.deco-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 2px;
  pointer-events: none;
}
.deco-frame::after {
  content: "◆";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  background: var(--black);
  padding: 0 10px;
  font-size: 0.9rem;
}

/* =====================================================================
   INTRO PLEIN ÉCRAN
   ===================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, #1d1a10 0%, var(--black) 70%);
  transition: opacity 0.9s ease, visibility 0.9s;
}
.intro.gone { opacity: 0; visibility: hidden; }

.intro-rays {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 14deg, rgba(212,175,55,0.05) 14deg 18deg,
    transparent 18deg 32deg, rgba(212,175,55,0.05) 32deg 36deg,
    transparent 36deg 50deg, rgba(212,175,55,0.05) 50deg 54deg,
    transparent 54deg 68deg, rgba(212,175,55,0.05) 68deg 72deg,
    transparent 72deg 86deg, rgba(212,175,55,0.05) 86deg 90deg
  );
  animation: rays-spin 60s linear infinite;
}
@keyframes rays-spin { to { transform: rotate(360deg); } }

.intro-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 90vw;
}

.intro-kicker {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold-light);
}

.intro-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(3.5rem, 14vw, 9rem);
  letter-spacing: 0.08em;
  line-height: 1.05;
  background: linear-gradient(110deg, #8a6d1f 0%, #f3d878 25%, #fffbe6 50%, #f3d878 75%, #8a6d1f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-sheen 5s linear infinite;
  filter: drop-shadow(0 4px 30px rgba(212,175,55,0.35));
}

.intro-thirty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.2rem 0;
}
.thirty-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  color: var(--gold);
}
.thirty-line {
  height: 1px;
  width: clamp(40px, 12vw, 130px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.thirty-line:last-child { transform: scaleX(-1); }

.intro-date {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
}

.intro-btn { margin-top: 2.2rem; }

/* Apparitions en cascade */
.reveal-1, .reveal-2, .reveal-3, .reveal-4, .reveal-5 {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 1s ease forwards;
}
.reveal-1 { animation-delay: 0.3s; }
.reveal-2 { animation-delay: 0.8s; }
.reveal-3 { animation-delay: 1.5s; }
.reveal-4 { animation-delay: 2.0s; }
.reveal-5 { animation-delay: 2.5s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   OVERLAYS (questionnaire, fiche invité, déverrouillage, admin)
   ===================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8,8,8,0.78);
  backdrop-filter: blur(10px);
  transition: opacity 0.4s ease, visibility 0.4s;
}
.overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Le site derrière se floute et recule légèrement */
body.modal-open #site-main,
body.modal-open .nav,
body.modal-open .footer {
  filter: blur(7px) brightness(0.55) saturate(0.8);
  transform: scale(0.985);
  transition: filter 0.45s ease, transform 0.45s ease;
}
#site-main, .nav, .footer { transition: filter 0.45s ease, transform 0.45s ease; }

/* Croix de fermeture, bien visible */
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,0.1);
  border: 2px solid rgba(212,175,55,0.55);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-x:hover { background: var(--gold); color: var(--black); transform: rotate(90deg); }

.wizard-card {
  width: min(620px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  padding: 3rem 2rem 2.4rem;
}

.mini-card {
  width: min(440px, 96vw);
  text-align: center;
  padding: 3rem 2rem 2.4rem;
  animation: sheet-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.mini-card .btn { margin-top: 1.4rem; width: 100%; }
.mini-card .form-error { margin-top: 1rem; text-align: left; }

.wizard-progress { display: flex; justify-content: center; gap: 10px; margin-bottom: 1.6rem; }
.wizard-progress .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(212,175,55,0.25);
  transform: rotate(45deg);
  border-radius: 2px;
  transition: background 0.3s;
}
.wizard-progress .dot.active { background: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,0.8); }

.wizard-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.wizard-sub { opacity: 0.8; margin-bottom: 1.8rem; }

.wstep { animation: rise 0.45s ease; }
.wstep.hidden { display: none; }

.choice-grid { display: grid; gap: 14px; }
.choice-grid-nums { grid-template-columns: repeat(3, 1fr); }

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  text-align: left;
  background: rgba(212,175,55,0.07);
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 14px;
  padding: 1.05em 1.3em;
  cursor: pointer;
  transition: all 0.18s ease;
}
.choice:hover, .choice:focus-visible {
  background: rgba(212,175,55,0.18);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.2);
}
.choice.selected {
  background: rgba(212,175,55,0.25);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold), 0 8px 24px rgba(212,175,55,0.2);
}
.choice.selected::after { content: "✓"; margin-left: auto; color: var(--gold); font-size: 1.3rem; }
.choice-emoji { font-size: 1.7rem; }
.choice-num { justify-content: center; font-size: 1.6rem; font-family: var(--font-title); }

/* Formulaire final */
#rsvp-form { display: grid; gap: 16px; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.field > span, .field-label { display: block; font-weight: 600; margin-bottom: 6px; letter-spacing: 0.03em; }
.field em { color: var(--gold); font-style: normal; }
.field small { font-weight: 400; opacity: 0.7; }
.field input, .field select, .field textarea, .birth-row input, .birth-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--cream);
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 12px;
  padding: 0.85em 1em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .birth-row input:focus, .birth-row select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}
.field input::placeholder, .field textarea::placeholder, .birth-row input::placeholder { color: rgba(253,248,236,0.35); }
.field textarea { resize: vertical; min-height: 80px; }
.birth-row select option { background: var(--black-card); color: var(--cream); }

/* Date de naissance : Jour / Mois / Année */
.birth-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }

/* Sélecteur de photo */
.photo-picker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-file { font-size: 1rem; padding: 0.7em 1.4em; cursor: pointer; }
.photo-preview {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}
.photo-preview.hidden { display: none; }
.photo-remove {
  background: none; border: none;
  color: rgba(253,248,236,0.6);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}
.photo-remove:hover { color: #ffb3b3; }
.photo-remove.hidden { display: none; }

.form-error {
  background: rgba(190,40,40,0.18);
  border: 1px solid rgba(220,80,80,0.6);
  color: #ffb3b3;
  border-radius: 10px;
  padding: 0.8em 1em;
  font-size: 1rem;
}
.form-error.hidden { display: none; }

#rsvp-submit { width: 100%; margin-top: 4px; }

.wizard-back {
  margin-top: 1.4rem;
  background: none;
  border: none;
  color: rgba(253,248,236,0.6);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
}
.wizard-back:hover { color: var(--gold); }
.wizard-back.hidden { display: none; }

.wizard-done .done-emoji { font-size: 4rem; animation: pop 0.6s cubic-bezier(0.2, 2, 0.4, 1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.4rem;
  background: rgba(13,13,13,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,55,0.25);
}

.nav-brand {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.nav-amp { color: var(--gold-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-color: var(--gold); }

.btn-nav { font-size: 0.95rem; padding: 0.55em 1.4em; }

.nav-burger {
  display: none;
  background: none;
  border: 2px solid rgba(212,175,55,0.5);
  border-radius: 8px;
  color: var(--gold);
  font-size: 1.4rem;
  padding: 2px 12px;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13,13,13,0.97);
    border-bottom: 1px solid rgba(212,175,55,0.3);
    padding: 0.5rem 0 1.2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem; padding: 0.8rem 0; width: 100%; text-align: center; border-bottom: none; }
  .btn-nav { margin-top: 0.6rem; font-size: 1.1rem; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.5rem 4rem;
  position: relative;
}

.hero-kicker {
  font-size: 1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 1.1;
  background: linear-gradient(110deg, #8a6d1f, #f3d878 30%, #fffbe6 50%, #f3d878 70%, #8a6d1f);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-sheen 5s linear infinite;
}
.hero-script {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  -webkit-text-fill-color: var(--cream);
  margin: 0.1em 0;
}
.hero-30 { display: block; }

.hero-date {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

.countdown {
  display: flex;
  gap: clamp(10px, 2.5vw, 22px);
  margin: 2.2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.cd-box {
  min-width: clamp(72px, 16vw, 110px);
  padding: 1rem 0.6rem;
  background: linear-gradient(160deg, rgba(212,175,55,0.12), rgba(212,175,55,0.03));
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.cd-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.cd-label { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }

.hero-deadline { margin-top: 1.1rem; font-style: italic; opacity: 0.7; }

.hero-scroll {
  position: absolute;
  bottom: 22px;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3rem;
}

.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-kicker {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--gold);
}
.section-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  color: var(--cream);
}
.section-title::after {
  content: "";
  display: block;
  width: 110px;
  height: 2px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ---- Thème ---- */
.theme-card { max-width: 760px; margin: 0 auto; }
.theme-desc { font-size: 1.15rem; }

.dress-code {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(212,175,55,0.3);
  text-align: center;
}
.dress-code-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.theme-dress { color: var(--gold-light); font-size: 1.2rem; }

.theme-visual { position: relative; text-align: center; min-height: 220px; }
.gatsby-fan {
  position: absolute;
  left: 50%; bottom: 40px;
  transform: translateX(-50%);
}
.gatsby-fan span {
  position: absolute;
  bottom: 0; left: -7px;
  width: 14px; height: 150px;
  background: linear-gradient(to top, var(--gold-deep), var(--gold), var(--gold-light));
  border-radius: 999px 999px 4px 4px;
  transform-origin: bottom center;
  opacity: 0.9;
  animation: fan-sway 5s ease-in-out infinite;
}
.gatsby-fan span:nth-child(1) { transform: rotate(-54deg); }
.gatsby-fan span:nth-child(2) { transform: rotate(-36deg); height: 170px; }
.gatsby-fan span:nth-child(3) { transform: rotate(-18deg); height: 185px; }
.gatsby-fan span:nth-child(4) { height: 192px; }
.gatsby-fan span:nth-child(5) { transform: rotate(18deg); height: 185px; }
.gatsby-fan span:nth-child(6) { transform: rotate(36deg); height: 170px; }
.gatsby-fan span:nth-child(7) { transform: rotate(54deg); }
@keyframes fan-sway {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}
.gatsby-glass { position: relative; font-size: 3.4rem; top: 75px; filter: drop-shadow(0 0 18px rgba(212,175,55,0.6)); }

.theme-palette { display: flex; justify-content: center; gap: 14px; margin-top: 2.4rem; }
.swatch {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(253,248,236,0.3);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

/* ---- Lieu ---- */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 820px) { .venue-grid { grid-template-columns: 1fr; } }

.venue-info { display: flex; flex-direction: column; gap: 1rem; }
.venue-address { font-size: 1.2rem; font-weight: 600; color: var(--gold-light); }
.venue-extra { opacity: 0.85; }
.venue-info .btn { margin-top: auto; align-self: flex-start; }

.venue-map { border: 1px solid rgba(212,175,55,0.45); border-radius: 4px; overflow: hidden; min-height: 340px; }
#map { width: 100%; height: 100%; min-height: 340px; filter: saturate(0.85); }

.venue-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}
@media (max-width: 700px) { .venue-photos { grid-template-columns: 1fr; } }

.photo {
  position: relative;
  height: 220px;
  border-radius: 6px;
  border: 1px solid rgba(212,175,55,0.4);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 16px 40px rgba(212,175,55,0.18); }
.photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
/* Photos d'ambiance (placeholder Unsplash — remplaçables par les vraies photos) */
.photo-1 { background-image: linear-gradient(rgba(13,13,13,0.15), rgba(13,13,13,0.15)), url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?w=900&q=70&auto=format&fit=crop"), radial-gradient(circle at 30% 30%, #3a2f12, #161616); }
.photo-2 { background-image: linear-gradient(rgba(13,13,13,0.15), rgba(13,13,13,0.15)), url("https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=900&q=70&auto=format&fit=crop"), radial-gradient(circle at 70% 40%, #14301a, #161616); }
.photo-3 { background-image: linear-gradient(rgba(13,13,13,0.15), rgba(13,13,13,0.15)), url("https://images.unsplash.com/photo-1470337458703-46ad1756a187?w=900&q=70&auto=format&fit=crop"), radial-gradient(circle at 50% 60%, #33240f, #161616); }

/* ---- Infos utiles ---- */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.info-card {
  background: linear-gradient(160deg, var(--black-card), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 10px;
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 14px 36px rgba(212,175,55,0.14); }
.info-icon { font-size: 2.1rem; }
.info-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin: 0.5rem 0 0.4rem;
}

/* ---- Invités ---- */
.guests-summary {
  margin-top: 1rem;
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold-light);
}

.guests-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.chip {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  background: rgba(212,175,55,0.06);
  border: 1.5px solid rgba(212,175,55,0.4);
  border-radius: 999px;
  padding: 0.5em 1.3em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--gold); background: rgba(212,175,55,0.14); }
.chip.active {
  color: var(--black);
  background: linear-gradient(110deg, #d4af37, #f3d878);
  border-color: var(--gold);
  font-weight: 600;
}
.chip .chip-count { opacity: 0.7; font-size: 0.9em; margin-left: 4px; }

.guests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.guest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: linear-gradient(160deg, var(--black-card), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  animation: rise 0.5s ease both;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.guest-card:hover, .guest-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(212,175,55,0.18);
}
.guest-avatar {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.guest-avatar img { width: 100%; height: 100%; object-fit: cover; }
.guest-name { font-weight: 600; line-height: 1.25; }
.guest-meta { font-size: 0.88rem; opacity: 0.7; }
.guest-card.maybe { opacity: 0.7; }
.guest-card.maybe .guest-avatar { filter: grayscale(0.7); }
.guest-card.me { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,175,55,0.5); }
.guest-you {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.guest-comment-dot { margin-left: 5px; }

.guests-empty { grid-column: 1 / -1; text-align: center; opacity: 0.7; padding: 2rem; font-style: italic; }
.guests-hint { text-align: center; margin-top: 1.6rem; opacity: 0.65; font-size: 0.98rem; }
.guests-cta { text-align: center; margin-top: 1.4rem; }

/* ---- Fiche invité (modale) ---- */
.guest-sheet {
  width: min(480px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  text-align: center;
  padding: 3.4rem 2.2rem 2.4rem;
  animation: sheet-pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
@keyframes sheet-pop {
  from { transform: scale(0.7) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.sheet-glow {
  position: absolute;
  top: -60px; left: 50%;
  width: 260px; height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212,175,55,0.22), transparent 65%);
  pointer-events: none;
}
.sheet-avatar {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-size: cover;
  background-position: center;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(212,175,55,0.15), 0 14px 40px rgba(212,175,55,0.35);
  overflow: hidden;
  animation: avatar-pop 0.6s cubic-bezier(0.2, 1.8, 0.4, 1) 0.1s both;
}
@keyframes avatar-pop { from { transform: scale(0); } to { transform: scale(1); } }
.sheet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sheet-name {
  font-family: var(--font-title);
  font-size: 1.9rem;
  color: var(--gold-light);
}
.sheet-badges { margin: 0.6rem 0 1rem; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.1);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 3px 14px;
}
.badge.badge-maybe { border-color: rgba(160,160,160,0.5); background: rgba(160,160,160,0.12); color: #ccc; }
.sheet-comment {
  font-family: var(--font-script);
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--cream);
  padding: 1rem 1.4rem;
  margin: 0.6rem 0 0.4rem;
  position: relative;
}
.sheet-comment:not(:empty)::before, .sheet-comment:not(:empty)::after {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.4rem;
}
.sheet-comment:not(:empty)::before { content: "« "; }
.sheet-comment:not(:empty)::after { content: " »"; }
.sheet-private {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  text-align: left;
  border: 1px dashed rgba(212,175,55,0.5);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  background: rgba(212,175,55,0.05);
}
.sheet-private.hidden { display: none; }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 1.6rem; }
.btn-danger { border-color: rgba(220,80,80,0.7); color: #ff9c9c; }
.btn-danger:hover { background: rgba(220,80,80,0.12); }
.btn-danger.hidden, #sheet-edit.hidden { display: none; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
  gap: 1.6rem;
}
.contact-card {
  text-align: center;
  background: linear-gradient(160deg, var(--black-card), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 12px;
  padding: 2rem 1.6rem;
}
.contact-name { font-family: var(--font-title); font-size: 1.5rem; color: var(--gold-light); }
.contact-role { opacity: 0.75; margin-bottom: 1rem; }
.contact-card a {
  display: block;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}
.contact-card a:hover { text-decoration: underline; }
.contact-note { text-align: center; margin-top: 2rem; opacity: 0.65; font-style: italic; }

/* Sur téléphone (grille en une colonne), Elise passe en dernier */
@media (max-width: 600px) {
  .contact-mobile-last { order: 1; }
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem 2.4rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(212,175,55,0.25);
  font-size: 1.05rem;
}
.footer strong { color: var(--gold); }
.footer-small { margin-top: 0.5rem; font-size: 0.92rem; opacity: 0.6; }

/* ---- Idée cadeau ---- */
.gift-intro {
  text-align: center;
  max-width: 640px;
  margin: -0.8rem auto 2.2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}
.gift-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.gift-icon { font-size: 2.8rem; filter: drop-shadow(0 0 16px rgba(212,175,55,0.5)); }
.gift-title { font-family: var(--font-title); font-size: 1.5rem; color: var(--gold-light); }
.gift-text { opacity: 0.9; }
.gift-card .btn { margin-top: 0.6rem; }
.gift-note { font-size: 0.95rem; font-style: italic; opacity: 0.7; margin-top: 0.4rem; }

.gift-ideas-title {
  text-align: center;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--gold);
  margin: 2.8rem 0 1.4rem;
}
.gift-ideas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.gift-idea {
  background: linear-gradient(160deg, var(--black-card), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 10px;
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gift-idea:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 14px 36px rgba(212,175,55,0.14); }

/* ---- Citation décorative ---- */
.quote-divider {
  text-align: center;
  max-width: 800px;
  margin: 1rem auto;
  padding: 2.5rem 1.5rem;
}
.quote-text {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(212,175,55,0.3);
}
.quote-author { margin-top: 0.4rem; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; opacity: 0.6; }

/* ---- Inspirations dress code ---- */
.inspo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.inspo-card {
  background: linear-gradient(160deg, var(--black-card), var(--black-soft));
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 10px;
  padding: 1.4rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.inspo-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.inspo-emoji { display: block; font-size: 2rem; margin-bottom: 0.5rem; }
.inspo-card strong { font-family: var(--font-title); color: var(--gold-light); display: block; margin-bottom: 0.4rem; }
.inspo-card p { font-size: 0.97rem; opacity: 0.85; }

/* ---- Programme (timeline) ---- */
.timeline {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}
.tl-item { position: relative; padding: 0 0 2rem 28px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 8px;
  width: 14px; height: 14px;
  transform: rotate(45deg);
  background: var(--black);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.6);
}
.tl-time {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.tl-title { font-family: var(--font-title); font-size: 1.25rem; color: var(--gold-light); margin: 0.15rem 0; }
.tl-text { opacity: 0.85; }

.programme-note {
  max-width: 660px;
  margin: 1.4rem auto 0;
  text-align: center;
  font-style: italic;
  opacity: 0.85;
}

/* ---- Verrou organisateurs ---- */
.footer-lock {
  display: block;
  margin: 1.6rem auto 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-lock:hover { opacity: 1; transform: scale(1.2); }
.footer-lock.unlocked { opacity: 1; }

.admin-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13,13,13,0.92);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(212,175,55,0.25);
}
.admin-banner button {
  background: none; border: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ---- Divers ---- */
.hidden { display: none; }
.overlay.hidden { display: flex; } /* géré par opacity/visibility pour la transition */

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal-1, .reveal-2, .reveal-3, .reveal-4, .reveal-5 { opacity: 1; transform: none; }
}
