/* ──────────────────────────────────────────────────
   WEDDING WEBSITE — Clément & Sophia
   Palette: French tricolor (blue, white, red) meets
   Vietnamese flag (red, yellow) — sober and elegant
   ────────────────────────────────────────────────── */

/* ── DESIGN TOKENS ── */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw,   1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem + 4vw,      5rem);
  --text-hero: clamp(3rem,     1rem + 7vw,       8.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Work Sans', 'Helvetica Neue', sans-serif;

  /* ── PALETTE ──
     French flag: #002395 (bleu), #FFFFFF (blanc), #ED2939 (rouge)
     Vietnamese flag: #DA251D (rouge), #FFCD00 (jaune étoile)
     Merge strategy: deep navy + rich crimson + warm gold + ivory
  */

  /* Surfaces — ivory / warm white */
  --color-bg:             #FAFAF7;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F4EF;
  --color-surface-offset: #EEECE4;
  --color-border:         #DDD9CE;
  --color-divider:        #E6E3D9;

  /* Text */
  --color-text:           #14100C;
  --color-text-muted:     #5C5044;
  --color-text-faint:     #B0A898;
  --color-text-inverse:   #FAFAF7;

  /* Primary — French/Vietnamese crimson */
  --color-primary:        #C41E3A;   /* rich crimson, between French rouge & Viet red */
  --color-primary-hover:  #A01530;
  --color-primary-active: #7A0F24;
  --color-primary-light:  #FAE8EC;

  /* Gold — Vietnamese star / accent */
  --color-gold:           #C8960C;   /* warm gold, muted for elegance */
  --color-gold-bright:    #FFCD00;   /* pure Viet gold for accents only */
  --color-gold-hover:     #A07A08;
  --color-gold-light:     #FBF4DC;

  /* Blue — French tricolor */
  --color-blue:           #002395;   /* French navy */
  --color-blue-muted:     #1A3A7A;   /* softer navy for subtle use */
  --color-blue-light:     #E8ECF8;

  /* Dark bg for programme / rsvp / footer */
  --color-dark-bg:        #120A08;
  --color-dark-surface:   #1E100C;
  --color-dark-border:    #3A1E16;
  --color-dark-text:      #F0E8E0;
  --color-dark-muted:     #9A8070;

  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm:  0 1px 3px rgba(20,16,12,0.08);
  --shadow-md:  0 4px 16px rgba(20,16,12,0.1);
  --shadow-lg:  0 12px 40px rgba(20,16,12,0.15);

  --content-narrow:  640px;
  --content-default: 1000px;
  --content-wide:    1240px;
}

/* ── UPDATE BANNER ── */
.update-banner {
  position: relative;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-gold);
  color: #1A0F00;
  padding: var(--space-3) clamp(var(--space-5), 5vw, var(--space-12));
  font-size: var(--text-sm);
  line-height: 1.5;
  animation: bannerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.update-icon {
  flex-shrink: 0;
  opacity: 0.8;
  animation: bellRing 2s ease-in-out 1.5s 3;
}
@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  15%       { transform: rotate(14deg); }
  30%       { transform: rotate(-12deg); }
  45%       { transform: rotate(10deg); }
  60%       { transform: rotate(-8deg); }
  75%       { transform: rotate(5deg); }
  90%       { transform: rotate(-3deg); }
}
.update-text {
  flex: 1;
  max-width: 100%;
  margin: 0;
}
.update-text strong {
  font-weight: 600;
}
.update-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  color: #1A0F00;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.update-close:hover { background: rgba(0,0,0,0.22); }
.update-banner.hidden { display: none; }

/* ── BASE RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; max-width: 68ch; }
button { cursor: pointer; background: none; border: none; }
a, button, input, textarea, select {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── UTILITIES ── */
.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-5), 5vw, var(--space-12)); }
.container--narrow { max-width: var(--content-narrow); }

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-label--gold { color: var(--color-gold-bright); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.08;
}
.section-title--light { color: var(--color-text); }
.section-subtitle { color: var(--color-text-muted); margin-bottom: var(--space-12); font-size: var(--text-base); }
.section-subtitle strong { color: var(--color-gold-bright); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }

/* ── MUSIC BAR ── */
.music-bar {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(20,16,12,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
}
.music-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.music-btn:hover { background: var(--color-primary-hover); }

/* Pulse animation to attract attention on page load */
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,30,58,0.5); transform: scale(1); }
  50%       { box-shadow: 0 0 0 10px rgba(196,30,58,0); transform: scale(1.08); }
}
.music-btn--pulse {
  animation: musicPulse 1.6s ease-in-out infinite;
}
.music-btn--pulse:hover {
  animation: none;
}
.music-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.header--hidden  { transform: translateY(-100%); }
.header--scrolled { box-shadow: var(--shadow-sm); }

/* Blue top accent line — French flag nod */
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    var(--color-blue) 0% 33.33%,
    #FFFFFF 33.33% 66.66%,
    var(--color-primary) 66.66% 100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}
.logo { color: var(--color-primary); text-decoration: none; flex-shrink: 0; }
.logo:hover { color: var(--color-primary-hover); }

.nav-links { display: flex; align-items: center; gap: var(--space-8); list-style: none; }
.nav-links a { font-size: var(--text-sm); font-weight: 400; color: var(--color-text-muted); text-decoration: none; letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--color-primary); }
.nav-cta {
  background: var(--color-primary) !important;
  color: #fff !important;
  padding: var(--space-2) var(--space-6) !important;
  border-radius: var(--radius-full);
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--color-primary-hover) !important; color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); color: var(--color-text); }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
.mobile-menu { display: none; padding: var(--space-4) clamp(var(--space-5), 5vw, var(--space-12)) var(--space-6); border-top: 1px solid var(--color-divider); background: var(--color-surface); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.mobile-link { display: block; font-size: var(--text-base); color: var(--color-text); text-decoration: none; padding-block: var(--space-2); }
.mobile-cta { color: var(--color-primary) !important; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image-wrap { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,5,2,0.4) 0%,
    rgba(10,5,2,0.52) 50%,
    rgba(10,5,2,0.78) 100%);
}

/* Thin tricolor stripe at the very bottom of the hero */
.hero-stripe {
  position: absolute;
  bottom: 0;
  height: 4px;
  z-index: 3;
}
.hero-stripe--blue  { left: 0; width: 33.33%; background: var(--color-blue); }
.hero-stripe--red-top { left: 66.66%; right: 0; background: var(--color-primary); }
/* white is the gap between — pure CSS, no element needed since the middle is 33.33% wide and uncolored (shows dark bg which looks like a separator) */

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: var(--space-12) clamp(var(--space-5), 6vw, var(--space-20));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  animation: heroFadeIn 1.4s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  opacity: 0.9;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-names { display: flex; align-items: center; gap: 0.25em; flex-wrap: wrap; justify-content: center; }
.hero-amp { font-style: italic; color: var(--color-gold-bright); font-size: 0.7em; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  max-width: 38ch;
}
.hero-date-badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid rgba(255,255,255,0.3);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-date-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-gold-bright);
  line-height: 1;
}
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2.5s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── STORY ── */
.section-story {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.story-text { display: flex; flex-direction: column; gap: var(--space-5); }
.story-text p { color: var(--color-text-muted); font-size: var(--text-base); line-height: 1.8; }
.story-ornament { margin-top: var(--space-4); color: var(--color-primary); }

.story-photo-wrap { position: relative; }
.story-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.story-photo-caption {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,5,2,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-photo-wrap { order: -1; }
  .story-photo { aspect-ratio: 4 / 3; }
}

/* ── COUNTDOWN — Vietnamese flag ── */
.section-countdown {
  background: #DA251D; /* Viet flag red */
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Big yellow star — Vietnamese flag, prominent */
.section-countdown::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 61,35 95,35 68,57 79,91 50,70 21,91 32,57 5,35 39,35' fill='%23FFCD00' opacity='0.18'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
/* Second smaller star top-right for texture */
.section-countdown::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 61,35 95,35 68,57 79,91 50,70 21,91 32,57 5,35 39,35' fill='%23FFCD00' opacity='0.09'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
.countdown-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,205,0,0.8); /* golden label */
  margin-bottom: var(--space-6);
  position: relative; z-index: 1;
}
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.countdown-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.countdown-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: #FFCD00; /* Vietnamese star gold */
  line-height: 1;
  min-width: 2.5ch;
  text-align: center;
}
.countdown-unit {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.countdown-sep {
  font-size: var(--text-2xl);
  color: rgba(255,205,0,0.35);
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-weight: 300;
  position: relative; z-index: 1;
}

/* ── GALERIE ── */
.section-galerie {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface-2);
}
.section-galerie .section-label,
.section-galerie .section-title { padding-inline: clamp(var(--space-5), 5vw, var(--space-12)); }
.section-galerie .section-title { margin-bottom: var(--space-10); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-3);
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  margin: 0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.04); }

/* photo1 — tall left card */
.gallery-item--large {
  grid-column: 1;
  grid-row: 1 / 3;
}
.gallery-item--large img { aspect-ratio: 3 / 4; height: 100%; }

/* photo2 — top right */
.gallery-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.gallery-item:nth-child(2) img { aspect-ratio: 3 / 4; }

/* photo3 — top far right */
.gallery-item:nth-child(3) {
  grid-column: 3 / 5;
  grid-row: 1;
}
.gallery-item:nth-child(3) img { aspect-ratio: 16 / 9; }

/* photo4 — bottom wide */
.gallery-item--wide {
  grid-column: 2 / 5;
  grid-row: 2;
}
.gallery-item--wide img { aspect-ratio: 21 / 9; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: var(--space-2); }
  .gallery-item--large, .gallery-item:nth-child(2),
  .gallery-item:nth-child(3), .gallery-item--wide {
    grid-column: auto; grid-row: auto;
  }
  .gallery-item img, .gallery-item--large img,
  .gallery-item:nth-child(3) img, .gallery-item--wide img { aspect-ratio: 1 / 1; height: auto; }
}
@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── PROGRAMME ── */
.section-programme {
  background: #FAF7F0;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Gold top border line */
.section-programme::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
}
.section-programme .section-subtitle { color: var(--color-text-muted); }

.programme-timeline {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}
.programme-timeline::before {
  content: '';
  position: absolute;
  left: calc(50% - 0.5px);
  top: var(--space-4); bottom: var(--space-4);
  width: 1px;
  background: var(--color-border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: var(--space-5);
  align-items: center;
  padding-block: var(--space-8);
}
.timeline-time {
  text-align: right;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 500;
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  border: 2px solid var(--color-primary);
  margin: 0 auto;
  position: relative; z-index: 1;
}
.timeline-dot--gold { border-color: var(--color-gold); background: var(--color-gold); }
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.timeline-content p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 28ch; }

@media (max-width: 600px) {
  .programme-timeline::before { left: 16px; }
  .timeline-item { grid-template-columns: 32px 1fr; }
  .timeline-time { grid-column: 2; grid-row: 1; text-align: left; }
  .timeline-dot  { grid-column: 1; grid-row: 1 / 3; }
  .timeline-content { grid-column: 2; grid-row: 2; }
}

/* ── INFOS PRATIQUES ── */
.section-infos {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition), transform var(--transition);
  /* Top accent line per card — alternates between French blue and crimson */
  border-top: 3px solid var(--color-primary);
}
.info-card:nth-child(2) { border-top-color: var(--color-blue); }
.info-card:nth-child(3) { border-top-color: var(--color-gold); }
.info-card:nth-child(4) { border-top-color: var(--color-primary); }
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.info-icon { color: var(--color-primary); }
.info-card:nth-child(2) .info-icon { color: var(--color-blue); }
.info-card:nth-child(3) .info-icon { color: var(--color-gold); }
.info-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; color: var(--color-text); }
.info-card p  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; max-width: 100%; }

/* ── RSVP ── */
.section-rsvp {
  background: #FAF7F0;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-rsvp::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

.rsvp-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--color-text-faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196,30,58,0.12);
}
.form-field textarea { resize: vertical; min-height: 88px; }
.field-hint { font-size: var(--text-xs); color: var(--color-text-faint); }

.radio-group { display: flex; flex-direction: column; gap: var(--space-3); }
.radio-label {
  display: flex; align-items: center; gap: var(--space-3);
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.radio-label input[type="radio"] { display: none; }
.radio-custom {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.radio-custom::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.radio-label input[type="radio"]:checked ~ .radio-custom { border-color: var(--color-primary); }
.radio-label input[type="radio"]:checked ~ .radio-custom::after { opacity: 1; }

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5044' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: var(--space-10);
}
.form-field select option { background: #FFFFFF; color: var(--color-text); }

.btn-submit { align-self: center; min-width: 220px; text-align: center; margin-top: var(--space-4); }

.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  text-align: center;
  padding: var(--space-6);
  animation: heroFadeIn 0.6s ease both;
}
.form-success.visible { display: flex; }

.form-error {
  display: none;
  justify-content: center;
  color: var(--color-primary);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-4);
}
.form-error.visible { display: flex; }

/* ── FOOTER ── */
.footer {
  background: #FAF7F0;
  border-top: 1px solid var(--color-border);
  padding-bottom: var(--space-12);
}

/* Dual flag banner */
.footer-flags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-10);
}

/* Each flag block */
.flag-block {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  width: 96px;
  height: 64px;
  flex-shrink: 0;
}

/* French flag — vertical tricolor */
.flag-fr { flex-direction: row; }
.flag-stripe { flex: 1; height: 100%; }
.fr-blue  { background: #002395; }
.fr-white { background: #FFFFFF; }
.fr-red   { background: #ED2939; }

/* Vietnamese flag — red background + star */
.flag-vn {
  background: #DA251D;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vn-star {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Heart divider */
.flag-heart {
  color: var(--color-primary);
  flex-shrink: 0;
  opacity: 1;
}

.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3); text-align: center;
}
.footer-monogram { color: var(--color-primary); }
.footer-date {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.22em;
}
.footer-tagline { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); }

/* ── SCROLL FADE-IN ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
