/* ── Custom font: Amellian Gressida ─────────────────────────────────────────
   Placez le fichier dans static/fonts/AmellianGressida.woff2 (et/ou .ttf).
   Si le fichier est absent, le navigateur utilise Alex Brush (Google Fonts).
────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Amellian Gressida';
  src: url('/static/fonts/AmellianGressida.woff2') format('woff2'),
       url('/static/fonts/AmellianGressida.ttf')   format('truetype');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --lavender:   #B5A6C9;
  --sage:       #87A878;
  --olive:      #7D8C5A;
  --rose:       #F2D4D0;
  --bg:         #FAFAF7;
  --text:       #3A3530;
  --text-muted: #8a7e76;
  --white:      #ffffff;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(58,53,48,0.08);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--sage); }

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

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--lavender); border-radius: 3px; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(181,166,201,0.25);
  padding: 0.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand span { color: var(--lavender); }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.main-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.03em;
}

.nav-btn:hover {
  background: var(--rose);
  color: var(--text);
}

.nav-btn.active {
  background: var(--lavender);
  color: var(--white);
}

/* ── Language picker (header) ──────────────────────────────────────────────── */
.lang-picker-header {
  display: flex;
  gap: 0.2rem;
}

.lang-btn {
  background: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lang-btn:hover { border-color: var(--lavender); color: var(--text); }
.lang-btn.active { border-color: var(--lavender); background: var(--lavender); color: var(--white); }

/* ── Floating language picker (mobile) ────────────────────────────────────── */
.lang-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: none; /* shown via JS on mobile */
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(58,53,48,0.15);
  padding: 0.4rem 0.6rem;
  gap: 0.2rem;
  flex-direction: row;
  align-items: center;
  border: 1px solid rgba(181,166,201,0.3);
}

@media (max-width: 767px) {
  .lang-picker-header { display: none; }
  .lang-float { display: flex; }
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section-panel {
  display: none;
  opacity: 0;
  transition: opacity var(--transition);
  min-height: calc(100vh - 60px);
  padding: 3rem 0 5rem;
}

.section-panel.active {
  display: block;
}

.section-panel.fade-in {
  opacity: 1;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 3rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(181,166,201,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Portrait photo */
.hero-photo {
  flex-shrink: 0;
  width: clamp(170px, 22vw, 270px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(58,53,48,0.18);
  border: 3px solid rgba(181,166,201,0.4);
}
.hero-photo img { width:100%; display:block; object-fit:cover; }

/* Text block */
.hero-text { flex:1; text-align:center; }

.hero-save-the-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Names in Amellian Gressida (fallback: Alex Brush) */
.hero-names-script {
  font-family: 'Amellian Gressida', 'Alex Brush', cursive;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  color: var(--lavender);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.hero-amp-script {
  color: var(--lavender);
  margin: 0 0.3rem;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.hero-venue {
  font-size: 0.85rem;
  color: var(--olive);
  font-style: italic;
  margin-bottom: 0;
}

/* Mini divider */
.hero-divider-small {
  margin: 0.9rem 0;
  opacity: 0.5;
  display: flex;
  justify-content: center;
}

/* Quote */
.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.hero-quote p { margin-bottom: 0.15rem; }
.hero-quote footer {
  font-size: 0.82rem;
  color: var(--lavender);
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

/* "Nous avons très hâte" */
.hero-haste {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Mobile */
@media (max-width: 767px) {
  .hero-inner { flex-direction: column; gap: 1.5rem; }
  .hero-photo { width: clamp(140px, 50vw, 210px); }
}

/* ── Divider SVG ───────────────────────────────────────────────────────────── */
.lavender-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  opacity: 0.7;
}

.lavender-divider hr {
  flex: 1;
  max-width: 120px;
  border: none;
  border-top: 1px solid var(--lavender);
}

/* ── Info cards ─────────────────────────────────────────────────────────────── */
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid rgba(181,166,201,0.2);
  height: 100%;
}

.info-card .card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.info-card p, .info-card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-card ul { list-style: none; padding: 0; }
.info-card ul li { padding: 0.2rem 0; }
.info-card ul li::before {
  content: '·';
  color: var(--lavender);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ── Venue card extras ──────────────────────────────────────────────────────── */
.venue-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.93rem;
  margin-bottom: 0.2rem;
}

.venue-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.venue-map-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--lavender);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-map:hover { background: var(--olive); transform: translateY(-1px); color: var(--white); }

.btn-waze { background: var(--sage); }
.btn-waze:hover { background: var(--olive); }

/* ── Programme ──────────────────────────────────────────────────────────────── */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--lavender), var(--rose));
  border-radius: 1px;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  position: relative;
}

.timeline-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lavender);
  width: 48px;
  text-align: right;
  flex-shrink: 0;
  padding-top: 0.15rem;
  letter-spacing: 0.03em;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--lavender);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--lavender);
}

.timeline-content {
  flex: 1;
}

.timeline-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.timeline-content span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Section titles ─────────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ── Speech section ─────────────────────────────────────────────────────────── */
.speech-container {
  max-width: 720px;
  margin: 0 auto;
}

.speech-locked {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(181,166,201,0.2);
  box-shadow: var(--shadow);
}

.speech-locked .lock-icon { font-size: 3rem; margin-bottom: 1rem; }
.speech-locked h3 { margin-bottom: 0.75rem; }
.speech-locked p { color: var(--text-muted); font-size: 0.9rem; }

.speech-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(181,166,201,0.2);
  line-height: 1.9;
}

.speech-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--lavender);
}

.speech-content p { margin-bottom: 1.2rem; color: var(--text); }

.speech-content blockquote {
  border-left: 3px solid var(--lavender);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(181,166,201,0.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

.speech-content em { color: var(--olive); }

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lavender);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 2rem;
}

.btn-refresh:hover { background: var(--olive); transform: translateY(-1px); }
.btn-refresh svg { transition: transform 0.4s; }
.btn-refresh:active svg { transform: rotate(360deg); }

/* ── Live section ───────────────────────────────────────────────────────────── */
.live-gate {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(181,166,201,0.2);
}

.live-gate .live-icon { font-size: 3rem; margin-bottom: 1rem; }
.live-gate h3 { margin-bottom: 0.75rem; }
.live-gate p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.live-input-wrap {
  display: flex;
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}

.live-input-wrap input {
  flex: 1;
  border: 1.5px solid rgba(181,166,201,0.4);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.live-input-wrap input:focus { border-color: var(--lavender); }

.btn-primary {
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn-primary:hover { background: var(--lavender); }

.live-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.live-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.live-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Photos section ─────────────────────────────────────────────────────────── */
.photos-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.photos-empty .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.5; }
.photos-empty h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.photos-empty p { font-size: 0.9rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.photo-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: rgba(181,166,201,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.photo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.photo-item:hover img { transform: scale(1.04); }

/* ── Lightbox ───────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,22,18,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 1.5rem;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(181,166,201,0.15);
  margin-top: 3rem;
}

.site-footer .footer-heart { color: var(--lavender); }

/* ── SVG decorations ────────────────────────────────────────────────────────── */
.deco-lavender {
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
}

.hero-deco-left, .hero-deco-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.18;
}

.hero-deco-left { left: 1rem; }
.hero-deco-right { right: 1rem; transform: translateY(-50%) scaleX(-1); }

/* ── Utility ────────────────────────────────────────────────────────────────── */
.text-lavender { color: var(--lavender); }
.text-olive    { color: var(--olive); }
.text-muted    { color: var(--text-muted); }

/* ── Live gate (new wrapper style) ─────────────────────────────────────────── */
.live-gate {
  padding: 0 0 3rem;
}

.live-gate-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(181,166,201,0.2);
}

.live-gate-box .live-icon { font-size: 3rem; margin-bottom: 1rem; }
.live-gate-box h3 { margin-bottom: 0.75rem; }
.live-gate-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── Live split layout ──────────────────────────────────────────────────────── */
.live-unlocked {
  padding: 0;
}

.live-split-layout {
  display: flex;
  gap: 1.25rem;
  height: calc(100svh - 72px); /* full height minus header */
  padding: 1rem 1.25rem;
  align-items: stretch;
}

/* YouTube column — ~55% */
.live-video-col {
  flex: 55;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.live-player-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.live-player-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Discours/Speech column — ~45% */
.live-speech-col {
  flex: 45;
  min-width: 260px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(181,166,201,0.2);
  overflow: hidden;
}

.live-speech-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(181,166,201,0.15);
  flex-shrink: 0;
}

.live-speech-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
  color: var(--lavender);
}

.live-speech-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.live-speech-header .btn-refresh {
  margin-bottom: 0;
  font-size: 0.78rem;
  padding: 0.4rem 1rem;
}

.speech-output {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.speech-pdf-frame {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: var(--radius);
  min-height: 0;
  background: var(--white);
}

/* Anti-copy protection */
.no-copy {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.speech-locked h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* ── Mobile: stack vertically ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .live-split-layout {
    flex-direction: column;
    height: auto;
    padding: 0.75rem;
  }
  .live-video-col {
    height: 56vw;
    flex: none;
  }
  .live-speech-col {
    flex: none;
    max-width: 100%;
    min-height: 300px;
  }
}

/* ── Color swatches (dress code) ────────────────────────────────────────────── */
.color-swatches {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(58,53,48,0.1);
  box-shadow: 0 2px 8px rgba(58,53,48,0.12);
  flex-shrink: 0;
}

/* ── Upload section ─────────────────────────────────────────────────────────── */
.upload-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.upload-modes {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.mode-btn {
  background: none;
  border: 1.5px solid rgba(181,166,201,0.4);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.mode-btn:hover { border-color: var(--lavender); color: var(--text); }
.mode-btn.active { background: var(--lavender); border-color: var(--lavender); color: #fff; }

.upload-zone {
  max-width: 560px;
  margin: 0 auto 1rem;
  border: 2px dashed rgba(181,166,201,0.5);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.25rem;
  text-align: center;
  background: rgba(181,166,201,0.04);
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}
.upload-zone.drag-over {
  border-color: var(--lavender);
  background: rgba(181,166,201,0.1);
}
.upload-zone input[type="file"] {
  display: none;
}
.upload-zone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.upload-browse-label {
  color: var(--olive);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.3rem;
}
.upload-browse-label:hover { color: var(--lavender); }
.upload-hint { font-size: 0.75rem !important; opacity: 0.7; }

.upload-zone-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.file-chip {
  background: rgba(181,166,201,0.15);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text);
  border: 1px solid rgba(181,166,201,0.3);
}

.upload-error {
  text-align: center;
  color: #c0392b;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

.btn-upload-send {
  display: block;
  margin: 0 auto 1.5rem;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-upload-send:hover { background: var(--lavender); transform: translateY(-1px); }
.btn-upload-send:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Session upload log */
.upload-session {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(181,166,201,0.25);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
}
.upload-session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.upload-session-clear {
  background: none;
  border: 1px solid rgba(181,166,201,0.4);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.upload-session-clear:hover { border-color: var(--lavender); color: var(--text); }
.upload-session-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.upload-session-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.upload-ok {
  color: var(--sage);
  font-weight: 700;
  font-size: 0.9rem;
}

.badge-lang {
  display: inline-block;
  background: rgba(181,166,201,0.15);
  color: var(--lavender);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* ── Guestbook ───────────────────────────────────────────────────────────────── */
.guestbook-frame-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  min-height: 600px;
}

.guestbook-iframe {
  width: 100%;
  height: 640px;
  border: none;
  display: block;
}

.guestbook-fallback {
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Fun Facts Infographic ──────────────────────────────────────────────────── */
.funfacts-infographic {
  position: relative;
  margin: 1.5rem auto 4rem;
  padding: 0 0.5rem;
}

/* Vertical lavender spine */
.funfacts-infographic::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 38px;
  bottom: 38px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(181,166,201,0.55) 8%,
    rgba(181,166,201,0.55) 92%,
    transparent 100%
  );
}

.funfact-node {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
  position: relative;
}

.funfact-medallion {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(181,166,201,0.18) 0%,
    rgba(242,212,208,0.22) 100%
  );
  border: 1px solid rgba(181,166,201,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 14px rgba(181,166,201,0.2);
}

.funfact-medallion svg {
  width: 42px;
  height: 42px;
}

.funfact-body {
  flex: 1;
  padding-top: 1rem;
}

.funfact-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

@media (max-width: 575px) {
  .funfacts-infographic::before { left: 27px; }
  .funfact-medallion { width: 54px; height: 54px; }
  .funfact-medallion svg { width: 32px; height: 32px; }
  .funfact-node { gap: 1.2rem; }
  .funfact-text { font-size: 1.05rem; }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .section-panel { padding: 2rem 0 6rem; }
  .speech-content { padding: 1.5rem 1.25rem; }
  .info-card { padding: 1.5rem 1.25rem; }
  .timeline::before { left: 40px; }
  .timeline-time { width: 40px; font-size: 0.78rem; }
}

@media (max-width: 767px) {
  .brand { font-size: 1.1rem; }
  .main-nav { gap: 0.1rem; }
  .nav-btn { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
}
