/* ── Font locale Alex-brush (hébergée sur Netlify, pas de flash) ── */
@font-face {
  font-family: 'Alex-brush';
  src: url('./fonts/alex-brush.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream: #FDFCF9;
  --ivory: #F7F4EE;
  --lavender: #8B8AB8;
  --lavender-light: #E8E8F4;
  --mauve: #2563B0;
  --gold: #C9A96E;
  --charcoal: #1E1E2A;
  --body-text: #3D3D4A;
  --muted: #6E6E7E;
  --rsvp-bg: #1A1A2E;
  --border: rgba(30,30,42,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 60px; }

body {
  background: var(--cream);
  color: var(--body-text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(253,252,249,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); }

/* Burger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* Burger open state → X */
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ivory);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(139,138,184,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 90% 10%, rgba(107,95,138,0.07) 0%, transparent 55%);
}
.hero-ornament {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.42);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(201,169,110,0.06) 0%, rgba(201,169,110,0.02) 50%, rgba(255,255,255,0.10) 100%);
}
.hero-ornament::after {
  content: '';
  position: absolute;
  width: 440px; height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.26);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

/* ── Logos hero (desktop) ── */
.hero-logo-left,
.hero-logo-right {
  position: absolute;
  top: calc(50% - 100px);
  height: 160px;
  width: auto;
  opacity: 0.72;
  pointer-events: none;
  animation: fadeUp 1.4s ease both;
}
.hero-logo-left  {
  left: calc((50vw - 440px) / 2);
  transform: translateX(-50%) translateY(-50%);
}
.hero-logo-right {
  right: calc((50vw - 440px) / 2);
  transform: translateX(50%) translateY(-50%);
}

/* ── Logo mobile (caché sur desktop) ── */
.hero-logo-mobile {
  display: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 1rem 1.5rem;
  animation: fadeUp 1.2s ease both;
  width: 100%;
  max-width: 560px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-pre {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1rem;
}
.hero-names {
  font-family: 'Alex-brush', cursive;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: #1A56A0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.hero-names .name-yoanna { font-style: italic; margin-right: 38px; }
.hero-names .name-arthur { font-style: normal; margin-left: 68px; }

.hero-amp {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-style: italic;
  color: var(--gold);
  display: block;
  margin: 0;
}
.hero-date {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-divider {
  width: 50px; height: 1px;
  background: var(--gold);
  margin: 1rem auto;
  opacity: 0.6;
}

/* ── COUNTDOWN ── */
.countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 3px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 2.2rem;
}
.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}
.countdown-label {
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.7;
  align-self: flex-start;
  padding-top: 0.05rem;
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
section {
  min-height: 100dvh;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
section:not(.hero) { padding-top: 3rem; }

.section-inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.8rem;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}
.section-title em { font-style: italic; color: var(--mauve); }
.section-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--body-text);
}

#histoire { background: var(--cream); }

/* ── PROGRAMME ── */
#programme { background: var(--ivory); }
.timeline-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--mauve);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lavender);
}
.timelines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.timeline-col { display: flex; flex-direction: column; }
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 0.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4.5rem;
  top: 1rem; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(139,138,184,0.45) 0%, rgba(139,138,184,0.18) 60%, transparent 100%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.4rem;
  align-items: start;
  padding: 1.4rem 0;
}
.timeline-time {
  text-align: right;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--mauve);
  font-weight: 500;
  padding-top: 0.1rem;
  padding-right: 1rem;
}
.timeline-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--charcoal);
}
.timeline-sublabel {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── LIEUX ── */
#lieux { background: var(--cream); }
.venues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.venue-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.venue-map {
  width: 100%; height: 220px;
  display: block; border: none;
  filter: grayscale(0.3) contrast(0.9);
}
.venue-info { padding: 1.4rem; }
.venue-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.5rem;
}
.venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.venue-address {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.venue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve);
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,176,0.3);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s;
}
.venue-link:hover { border-color: var(--mauve); }

/* ── INFOS ── */
#infos { background: var(--ivory); }
.infos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.info-card {
  padding: 1.8rem;
  border: 1px solid var(--border);
  background: var(--cream);
}
.info-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--lavender-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.info-icon svg { stroke: var(--mauve); }
.info-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}
.info-text {
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.7;
}

/* ── RSVP ── */
#rsvp {
  background: var(--rsvp-bg);
  color: #F8F7FC;
  align-items: flex-start;
  padding-bottom: 5rem;
}
#rsvp .section-label { color: var(--gold); }
#rsvp .section-title { color: #F8F7FC; }
#rsvp .section-title em { color: #C9C3E0; }
#rsvp .section-body { color: rgba(248,247,252,0.6); }

.rsvp-form {
  max-width: 560px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,247,252,0.5);
}
.form-input, .form-select {
  background: rgba(248,247,252,0.07);
  border: 1px solid rgba(248,247,252,0.15);
  color: #F8F7FC;
  padding: 0.85rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-input::placeholder { color: rgba(248,247,252,0.25); }
.form-input:focus, .form-select:focus {
  border-color: rgba(201,169,110,0.65);
  background: rgba(248,247,252,0.1);
}
.form-select option { background: var(--rsvp-bg); }

/* ── PRÉSENCE RADIO ── */
.presence-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.presence-block {
  border: 1px solid rgba(248,247,252,0.15);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.presence-event {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248,247,252,0.55);
  white-space: nowrap;
}
.presence-event span { display: none; }
.radio-group { display: flex; gap: 0.5rem; }
.radio-btn { cursor: pointer; }
.radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.radio-btn span {
  display: block;
  text-align: center;
  padding: 0.4rem 1.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(248,247,252,0.45);
  background: rgba(248,247,252,0.05);
  border: 1px solid rgba(248,247,252,0.15);
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.radio-btn input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.radio-btn input[type="radio"]:checked + span {
  background: linear-gradient(to right, #B8922A 0%, #C9A96E 50%, #DBBE8A 100%);
  color: #1A1A2E;
  font-weight: 500;
  border-color: transparent;
}
.radio-btn:hover input[type="radio"]:not(:checked) + span {
  background: rgba(248,247,252,0.09);
  color: rgba(248,247,252,0.75);
  border-color: rgba(248,247,252,0.25);
}

.form-submit {
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--rsvp-bg);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  align-self: center;
  min-width: 220px;
  border-radius: 2px;
  width: 100%;
  max-width: 320px;
}
.form-submit:hover { opacity: 0.88; }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-message {
  text-align: center;
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(139,138,184,0.2);
  border: 1px solid rgba(139,138,184,0.4);
  color: #D8DAF0;
}
.form-message.error {
  display: block;
  background: rgba(201,195,224,0.12);
  border: 1px solid rgba(201,195,224,0.3);
  color: #C9C3E0;
}
.rsvp-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(248,247,252,0.3);
  margin-top: 0.8rem;
}

/* ── FOOTER ── */
footer {
  background: var(--rsvp-bg);
  border-top: 1px solid rgba(248,247,252,0.07);
  padding: 1rem 2rem;
  text-align: center;
}
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(248,247,252,0.45);
  margin-bottom: 0.5rem;
}
.footer-date {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,247,252,0.22);
}

/* ── CONFETTI ── */
@keyframes confetti-fall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(80vh) rotate(720deg); opacity: 0; }
}
.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  animation: confetti-fall 2.5s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  nav {
    padding: 1rem 1.5rem;
    justify-content: flex-end;
  }

  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100dvh;
    background: rgba(247,244,238,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.16em;
    color: var(--charcoal);
  }

  /* Logos desktop masqués */
  .hero-logo-left,
  .hero-logo-right {
    display: none;
  }

  /* Logo mobile : positionné en absolu en bas du hero, sans affecter le flux */
  .hero-logo-mobile {
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    height: 70px;
    width: auto;
    opacity: 0.72;
    pointer-events: none;
    z-index: 999;
  }

  /* Hero */
  .hero-ornament {
    width: 320px;
    height: 320px;
  }
  .hero-ornament::after {
    width: 270px;
    height: 270px;
  }
  .hero-content { padding: 1rem; }
  .hero-pre { font-size: 0.58rem; letter-spacing: 0.14em; margin-bottom: 0.8rem; }

  .hero-names { font-size: clamp(2.4rem, 14vw, 3.8rem); }
  .hero-names .name-yoanna { margin-right: 20px; }
  .hero-names .name-arthur { margin-left: 36px; }
  .hero-amp { font-size: clamp(1.6rem, 8vw, 2.4rem); }

  .hero-date { font-size: 0.68rem; margin-top: 0.8rem; }
  .hero-divider { margin: 0.8rem auto; }

  .countdown {
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    margin-top: 1rem;
  }
  .countdown-item { min-width: 1.8rem; }
  .countdown-num { font-size: clamp(1.1rem, 5vw, 1.5rem); }
  .countdown-sep { font-size: 0.9rem; }

  /* Sections */
  section { padding: 4rem 1.2rem 3rem; }

  /* Programme */
  .timelines-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Lieux */
  .venues-grid { grid-template-columns: 1fr; }

  /* RSVP form */
  .form-row { grid-template-columns: 1fr; }

  .presence-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .radio-group { width: 100%; }
  .radio-btn { flex: 1; }
  .radio-btn span { padding: 0.5rem 0; text-align: center; width: 100%; }

  .rsvp-form { padding: 0 0.2rem; }
}

@media (max-width: 400px) {
  .hero-names { font-size: clamp(2rem, 16vw, 3rem); }
  .hero-names .name-yoanna { margin-right: 12px; }
  .hero-names .name-arthur { margin-left: 24px; }
}