/* ============================================================
   LISA & NATHAN — FEUILLE DE STYLE
   Direction artistique : manoir français × Opéra de Paris
   Palette : bordeaux profond, ivoire chaud, or discret
   ============================================================ */

:root {
  /* Couleurs */
  --bordeaux:        #5A0A16;
  --bordeaux-deep:   #3B060E;
  --bordeaux-light:  #7C1421;
  --ivoire:          #F8F5EF;
  --ivoire-deep:     #EFE7D8;
  --or:              #C6A15B;
  --or-light:        #E3CC98;
  --or-deep:         #9C7C3E;
  --noir:            #1B1210;

  /* Typographie */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  /* "Brittany Signature" est une police payante (non disponible sur
     Google Fonts). Si vous possédez sa licence, déposez les fichiers
     .woff2/.woff dans assets/fonts/ et activez le bloc @font-face
     correspondant ci-dessous : elle sera alors utilisée automatiquement.
     En attendant, "Beau Rivage" (Google Fonts, gratuite) est utilisée
     comme aperçu visuel proche pour les prénoms Lisa & Nathan. */
  --font-signature: 'Brittany Signature', 'Beau Rivage', cursive;

  /* Rythme */
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pour activer la vraie police "Brittany Signature" une fois achetée :
@font-face {
  font-family: 'Brittany Signature';
  src: url('../assets/fonts/BrittanySignature.woff2') format('woff2'),
       url('../assets/fonts/BrittanySignature.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
*/

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; }
fieldset { border: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--ivoire);
  color: var(--noir);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--or-light); color: var(--bordeaux-deep); }

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

/* ---------- TYPOGRAPHY UTILITIES ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--or-deep);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.eyebrow--light { color: var(--or-light); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn--ghost-light { color: var(--ivoire); border-color: rgba(248,245,239,0.55); }
.btn--ghost-light:hover { background: var(--ivoire); color: var(--bordeaux-deep); border-color: var(--ivoire); }
.btn--ghost-dark { color: var(--bordeaux); border-color: var(--bordeaux); }
.btn--ghost-dark:hover { background: var(--bordeaux); color: var(--ivoire); }
.btn--fill {
  background: var(--ivoire);
  color: var(--bordeaux-deep);
  border-color: var(--bordeaux);
  width: 100%;
  justify-content: center;
  padding: 1.1rem;
  box-shadow: 0 4px 14px rgba(90,10,22,0.12);
}
.btn--fill:hover { background: var(--ivoire-deep); }

.link-arrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--bordeaux);
  border-bottom: 1px solid var(--or);
  padding-bottom: 2px;
  transition: opacity 0.3s var(--ease);
}
.link-arrow:hover { opacity: 0.6; }

/* ============================================================
   CURTAIN LOADER
   ============================================================ */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}
.curtain__panel {
  flex: 1;
  background: linear-gradient(180deg, var(--bordeaux-light) 0%, var(--bordeaux) 45%, var(--bordeaux-deep) 100%);
  transition: transform 1.4s var(--ease);
}
.curtain__panel--left { transform-origin: left; }
.curtain__panel--right { transform-origin: right; }
.curtain__monogram-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 92px;
  width: auto;
  opacity: 1;
  transition: opacity 0.6s ease 0.2s;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}
.curtain.is-open .curtain__panel--left { transform: translateX(-101%); }
.curtain.is-open .curtain__panel--right { transform: translateX(101%); }
.curtain.is-open .curtain__monogram-img { opacity: 0; }
.curtain.is-done { display: none; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.5rem 0;
  transition: background 0.5s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 rgba(198,161,91,0.35);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__mark {
  display: flex;
  align-items: center;
  transition: opacity 0.4s var(--ease);
}
.site-header__mark:hover { opacity: 0.75; }
.site-logo { height: 42px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.site-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivoire);
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), color 0.4s var(--ease);
}
.site-header.is-scrolled .site-nav a { color: var(--noir); }
.site-nav a:hover { opacity: 1; }
.site-nav__cta {
  border: 1px solid var(--or-light);
  padding: 0.55rem 1.1rem;
  opacity: 1 !important;
}
.site-header.is-scrolled .site-nav__cta { border-color: var(--or); color: var(--bordeaux) !important; }

.menu-toggle {
  display: none;
  width: 28px; height: 20px;
  position: relative;
  z-index: 600;
}
.menu-toggle span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ivoire);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled .menu-toggle span { background: var(--bordeaux); }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: var(--bordeaux);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ivoire);
  letter-spacing: 0.06em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bordeaux);
}
.hero__photo {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(30,4,8,0.18) 0%, rgba(30,4,8,0.05) 35%, rgba(20,3,6,0.35) 100%),
    url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(35,4,9,0.32) 0%, rgba(30,4,8,0.62) 100%);
}
.hero__frame {
  position: absolute;
  top: 6%; left: 50%;
  width: min(78vw, 640px);
  height: 82%;
  transform: translateX(-50%);
  pointer-events: none;
}
.arch-line {
  width: 100%; height: 100%;
  fill: none;
  stroke: var(--or);
  stroke-width: 0.35;
  opacity: 0.55;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ivoire);
  padding: 0 1.5rem;
  max-width: 720px;
}
.hero__names {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 7rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero__firstname {
  font-family: var(--font-signature);
  font-size: 1.28em;
  line-height: 1;
  vertical-align: middle;
}
.hero__amp {
  font-style: italic;
  color: var(--or-light);
  padding: 0 0.15em;
}
.hero__rule {
  width: 1px;
  height: 48px;
  background: var(--or);
  margin: 1.6rem auto;
  opacity: 0.7;
}
.hero__date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--or-light);
  margin-bottom: 1.4rem;
}
.hero__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(248,245,239,0.9);
  margin-bottom: 2.6rem;
}

.sound-toggle {
  position: absolute;
  bottom: 2.2rem; right: 2.2rem;
  z-index: 3;
  width: 42px; height: 42px;
  border: 1px solid rgba(248,245,239,0.4);
  border-radius: 50%;
  color: var(--ivoire);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle:hover { border-color: var(--or-light); background: rgba(248,245,239,0.08); }

.hero__scroll-cue {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 46px;
  overflow: hidden;
}
.hero__scroll-cue span {
  display: block;
  width: 1px; height: 100%;
  background: var(--or-light);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(0%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   INTRO / COUNTDOWN
   ============================================================ */
.intro {
  background: var(--ivoire);
  text-align: center;
  padding: var(--section-pad) 1.5rem;
  position: relative;
}
.intro__ornament svg {
  width: 130px; height: 26px;
  stroke: var(--or);
  fill: var(--or);
  stroke-width: 1;
  margin: 0 auto 1.5rem;
  display: block;
}
.intro__ornament path { fill: none; }
.intro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--bordeaux-deep);
  margin-bottom: 1.8rem;
}
.intro__text {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #3b2c28;
}

.intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1180px;
  margin: 0 auto 3.5rem;
}
.intro__illustration {
  display: flex;
  justify-content: center;
  opacity: 0.88;
}
.intro__illustration img {
  width: 100%;
  max-width: 220px;
  filter: sepia(0.35) saturate(0) contrast(1.05);
  opacity: 0.75;
}
.intro__illustration--left img { transform: rotate(-2deg); }
.intro__illustration--right img { transform: rotate(2deg); }

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
}
.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--bordeaux);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-deep);
}
.countdown__sep {
  font-family: var(--font-display);
  color: var(--or);
  font-size: 1.8rem;
  transform: translateY(-6px);
}
.countdown__caption {
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #6b5c56;
}

/* ============================================================
   MOMENTS / EVENTS
   ============================================================ */
.moments { background: var(--ivoire); }
.moments__head {
  text-align: center;
  padding: calc(var(--section-pad) * 0.7) 1.5rem 2rem;
}
.moments__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--bordeaux-deep);
}

.event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.event--bordeaux {
  background-color: var(--bordeaux);
  background-image:
    radial-gradient(ellipse at center, rgba(122,18,32,0.25) 0%, rgba(59,6,14,0.55) 100%),
    url('../assets/images/velvet-texture.png');
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal, overlay;
  color: var(--ivoire);
}
.event--ivoire { background: var(--ivoire-deep); color: var(--noir); }

.event__media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(198,161,91,0.18), rgba(198,161,91,0.05));
}
.event--bordeaux .event__media { background: linear-gradient(160deg, var(--bordeaux-light), var(--bordeaux-deep)); }
.event__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s var(--ease);
}
.event:hover .event__media img { transform: scale(1.09); }
.event__media::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--or-deep);
  opacity: 0.55;
}
.event__media:has(img)::after { content: none; }
.event--bordeaux .event__media::after { color: var(--or-light); }

.event__body {
  padding: clamp(2.5rem, 6vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or-deep);
  margin-bottom: 1rem;
}
.event--bordeaux .event__eyebrow { color: var(--or-light); }
.event__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.6rem;
}
.event__date {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--bordeaux);
  margin-bottom: 1.4rem;
}
.event--bordeaux .event__date { color: var(--or-light); }
.event__divider {
  width: 60px; height: 1px;
  background: var(--or);
  margin-bottom: 1.6rem;
}
.event__text {
  margin-bottom: 1rem;
  max-width: 460px;
  opacity: 0.92;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
}
.event__notice {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bordeaux);
  margin-bottom: 1rem;
}
.event--bordeaux .event__notice { color: var(--or-light); }
.event__venue { margin-top: 1.6rem; }
.event__venue-name { font-weight: 500; margin-bottom: 0.3rem; }
.event__venue-address { opacity: 0.8; margin-bottom: 0.6rem; }
.event__venue-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  opacity: 0.8;
  margin-bottom: 1.4rem;
}
.event__venue .btn { margin-top: 0.6rem; }

/* ============================================================
   PRACTICAL INFO
   ============================================================ */
/* ============================================================
   FAMILLES & HOMMAGE — imbriqués dans la colonne de texte de la
   Houppa (grands-parents, puis parents, à l'image d'un faire-part
   traditionnel), fond velours bordeaux, typographie ivoire et or.
   ============================================================ */
.tribute__families {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 620px;
  margin: 0 0 clamp(2rem, 5vw, 2.75rem);
  text-align: center;
}
.tribute__grandparents {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(248,245,239,0.72);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.tribute__parent {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(248,245,239,0.72);
  line-height: 1.75;
}

.tribute__hebrew {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--or-light);
  margin: 0 0 1.8rem;
  text-align: center;
  direction: rtl;
}

.tribute__ornament {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  text-align: center;
}
.tribute__ornament svg {
  width: 130px; height: 26px;
  stroke: var(--or-light);
  fill: var(--or-light);
  stroke-width: 1;
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  display: block;
}
.tribute__ornament path { fill: none; }

.event--houppa .event__text,
.event--houppa .event__venue {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.event--houppa .event__venue { max-width: 380px; }

.tribute__text {
  max-width: 480px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.85;
  color: var(--ivoire);
}

.practical {
  background: var(--ivoire);
  text-align: center;
  padding: var(--section-pad) 1.5rem;
}
.practical__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--bordeaux-deep);
  margin-bottom: 3.5rem;
}
.practical__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: left;
}
.practical__card {
  border: 1px solid rgba(198,161,91,0.4);
  padding: 2.6rem;
  position: relative;
}
.practical__card::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px solid rgba(198,161,91,0.25);
  pointer-events: none;
}
.practical__label {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or-deep);
  margin-bottom: 1rem;
}
.practical__card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--bordeaux-deep);
  margin-bottom: 0.8rem;
}
.practical__address { margin-bottom: 0.8rem; color: #3b2c28; }
.practical__hours { font-size: 0.88rem; color: var(--bordeaux); margin-bottom: 0.6rem; }
.practical__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: #6b5c56;
  margin-bottom: 1.4rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--ivoire-deep);
  padding: var(--section-pad) 1.5rem;
  text-align: center;
}
.gallery__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--bordeaux-deep);
  margin-bottom: 3rem;
}
.gallery__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--ivoire-deep);
  box-shadow: 0 10px 24px rgba(27,18,16,0.18);
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover { transform: translateY(-4px); }
.gallery__item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Filtre noir et blanc — identique sur chaque photo */
  filter: grayscale(1) contrast(1.08) brightness(1.02);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 800;
  background: rgba(27,18,16,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  width: min(80vw, 620px);
  height: min(78vh, 700px);
  background: linear-gradient(160deg, rgba(198,161,91,0.15), rgba(198,161,91,0.03));
  border: 1px solid rgba(198,161,91,0.4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.lightbox__stage img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  color: var(--ivoire);
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem;
}
.lightbox__close { top: 1.5rem; right: 1.8rem; }
.lightbox__nav--prev { left: clamp(0.5rem, 4vw, 3rem); }
.lightbox__nav--next { right: clamp(0.5rem, 4vw, 3rem); }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  background: var(--ivoire);
  color: var(--bordeaux-deep);
  text-align: center;
  padding: var(--section-pad) 1.5rem;
  position: relative;
}
.rsvp .eyebrow--light { color: var(--bordeaux); }
.rsvp__ornament svg {
  width: 130px; height: 26px;
  stroke: var(--bordeaux);
  fill: var(--bordeaux);
  stroke-width: 1;
  margin: 0 auto 1.5rem;
  display: block;
}
.rsvp__ornament path { fill: none; }
.rsvp__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.4rem;
}
.rsvp__intro {
  max-width: 560px;
  margin: 0 auto 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(59,6,14,0.82);
}
.rsvp__deadline {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--bordeaux);
  margin-bottom: 3rem;
}

.rsvp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1040px;
  margin: 0 auto;
}
.rsvp__column { min-width: 0; }
.rsvp__illustration {
  display: flex;
  justify-content: center;
}
.rsvp__illustration img {
  width: 100%;
  max-width: 380px;
  filter: sepia(0.3) saturate(0) contrast(1.05);
  opacity: 0.85;
}

.rsvp__form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-field { margin-bottom: 1.5rem; }
.form-field label, .form-field legend {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 0.6rem;
  padding: 0;
  border: none;
}
.optional { text-transform: none; letter-spacing: normal; opacity: 0.6; }
.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea {
  width: 100%;
  background: rgba(90,10,22,0.04);
  border: 1px solid rgba(90,10,22,0.35);
  color: var(--bordeaux-deep);
  padding: 0.9rem 1rem;
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--bordeaux);
  background: rgba(90,10,22,0.07);
  outline: none;
}
.form-field--radio { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.radio-pill {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(90,10,22,0.35);
  padding: 0.75rem 1.1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.radio-pill:has(input:checked) {
  border-color: var(--bordeaux);
  background: rgba(90,10,22,0.1);
}
.radio-pill input { accent-color: var(--bordeaux); }

.form-field--guests { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
.form-field--guests label { margin-bottom: 0; }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid rgba(90,10,22,0.35); border-radius: 2px; }
.stepper__btn { width: 40px; height: 40px; color: var(--bordeaux); font-size: 1.1rem; }
.stepper input {
  width: 48px; text-align: center;
  background: transparent; border: none; color: var(--bordeaux-deep);
  border-left: 1px solid rgba(90,10,22,0.35);
  border-right: 1px solid rgba(90,10,22,0.35);
  height: 40px;
}

.rsvp__submit-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rsvp__submit-row .btn--fill { width: auto; flex: 1; }
.rsvp__submit-hand {
  width: clamp(52px, 8vw, 72px);
  flex-shrink: 0;
  filter: sepia(0.25) saturate(0) contrast(1.05);
  opacity: 0.85;
}

.form-error {
  color: var(--bordeaux);
  font-size: 0.82rem;
  margin-top: 1rem;
  text-align: center;
}

.rsvp__confirmation {
  max-width: 480px;
  margin: 0 auto;
}
.rsvp__confirmation-ornament {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--bordeaux);
  margin-bottom: 1.2rem;
}
.rsvp__confirmation p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--bordeaux-deep);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--noir);
  color: var(--ivoire);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.site-footer__monogram {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}
.site-footer__date {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--or-light);
  margin-top: 0.5rem;
}
.site-footer__rule {
  width: 1px; height: 34px;
  background: var(--or);
  margin: 1.6rem auto;
  opacity: 0.6;
}
.site-footer__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(248,245,239,0.75);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal, .event, .practical__card, .gallery__item, .countdown {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible, .event.is-visible, .practical__card.is-visible,
.gallery__item.is-visible, .countdown.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .tribute__families { grid-template-columns: 1fr; gap: 2.5rem; }
  .rsvp__layout { grid-template-columns: 1fr; }
  .rsvp__illustration { order: -1; padding-top: 0; margin-bottom: 1rem; }
  .rsvp__illustration img { max-width: 190px; opacity: 0.7; }
  .intro__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .intro__illustration img { max-width: 130px; opacity: 0.6; }
  .intro__illustration--left { order: -1; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .event { grid-template-columns: 1fr; min-height: auto; }
  .event__media { min-height: 280px; }
  .event__body { padding: 3rem 1.75rem; }
  .practical__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .countdown { gap: 0.5rem; }
  .countdown__unit { min-width: 62px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .site-header__inner { padding: 0 1.25rem; }
  .hero__content { padding: 0 1.25rem; }
}
