/* =============================================================
   WEDDING SITE — style.css
   Alexandre & Noa 2026
============================================================= */

/* ── FONT MELLYNA ───────────────────────────────────────── */
@font-face {
  font-family: 'Mellyna';
  src: url('../fonts/Mellyna.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mellyna';
  src: url('../fonts/Mellyna-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  /* Base */
  --bg:             #F5EFE6;
  --text:           #630310;
  --text-muted:     rgba(99, 3, 16, 0.62);
  --border:         rgba(99, 3, 16, 0.12);

  /* Palette principale */
  --burgundy:       #630310;
  --merlot:         #7A1627;
  --fuchsia:        #A4204A;
  --terracotta:     #B95032;
  --apricot:        #F29C52;
  --dusty-rose:     #C96C72;
  --creamy-yellow:  #FBE7A1;

  /* Aliases sémantiques */
  --bg-dark:        var(--burgundy);
  --accent:         var(--fuchsia);
  --accent-warm:    var(--terracotta);

  /* Typo & Layout */
  --font-display: 'La Belle Aurore', cursive;
  --font-sans:    'Jost', sans-serif;
  --max-w:        1100px;
  --section-pad:  100px;
  --transition:   0.35s ease;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, button { font-family: var(--font-sans); }
.hidden { display: none !important; }


/* ── TYPOGRAPHY HELPERS ─────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
  color: var(--text);
}
.section-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-top: 12px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}


/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: #F29C52;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 52px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--burgundy); }

.btn-outline {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: none;
  border-bottom: 1px solid var(--dusty-rose);
  color: var(--text);
  transition: all var(--transition);
  margin-top: 24px;
}
.btn-outline:hover {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}


/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════ */
#landing {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#landing.fade-out {
  opacity: 0;
  visibility: hidden;
}

.landing-inner {
  text-align: center;
  padding: 40px 20px;
  max-width: 480px;
  width: 100%;
  animation: fadeInUp 1s ease forwards;
}

.landing-ornament {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}
.landing-eyebrow {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.landing-names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 8vw, 72px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.landing-date {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.landing-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 40px;
}

/* Code form */
.landing-code-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.landing-code-form input {
  width: 100%;
  max-width: 300px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 4px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.15em;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.landing-code-form input:focus {
  border-color: var(--text);
}
.landing-code-form input::placeholder {
  color: var(--text-muted);
  font-size: 16px;
  letter-spacing: 0.2em;
}
#enterBtn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid var(--dusty-rose);
  transition: color var(--transition), border-color var(--transition);
}
#enterBtn:hover {
  color: var(--fuchsia);
  border-color: var(--fuchsia);
}
.landing-error {
  font-size: 16px;
  color: #C0392B;
  letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 40px;
}
#navbar.scrolled {
  background: rgba(245, 239, 230, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--burgundy);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(4%) sepia(80%) saturate(5000%) hue-rotate(340deg) brightness(60%);
  transition: filter var(--transition);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(99, 3, 16, 0.65);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[href="#rsvp"] {
  font-weight: 700;
  background: #F29C52;
  color: #fff;
  padding: 6px 14px;
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: background var(--transition);
}

.nav-mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  gap: 0;
  background: rgba(245, 239, 230, 0.98);
  backdrop-filter: blur(8px);
  padding: 16px 40px 24px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.nav-mobile a[href="#rsvp"] { font-weight: 700; }


/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #EDE3D8;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: var(--max-w);
  padding: 100px 40px 60px;
  animation: fadeInUp 1.2s ease 0.3s both;
}

/* Trio : Noa | Photo | Alexandre */
.hero-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-bottom: 40px;
}

.hero-name {
  flex: 1;
  max-width: 260px;
}
.hero-name--left { text-align: right; }
.hero-name--right { text-align: left; }
.hero-name span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 72px);
  color: var(--text);
  line-height: 1;
}

.hero-photo {
  flex-shrink: 0;
}
.hero-polaroid-img {
  width: 280px;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 8px 40px rgba(99, 3, 16, 0.18));
}

/* Date + lieu sous le trio — même grille que .hero-trio */
.hero-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.hero-details > span {
  flex: 1;
  max-width: 260px;
}
.hero-details > span:first-child { text-align: right; }
.hero-details > span:last-child  { text-align: left; }
.hero-details-logo {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  justify-content: center;
}
.hero-details-logo img {
  width: 96px;
  height: auto;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(99, 3, 16, 0.25);
  font-size: 22px;
  animation: bounce 2s infinite;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════════════════════ */
#countdown {
  padding: 52px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
#countdown .section-eyebrow { margin-bottom: 20px; }
.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.count-item span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
  color: var(--text);
}
.count-item label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}
.count-sep {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--border);
  line-height: 1;
  padding-top: 2px;
  align-self: flex-start;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════
   PROGRAMME (TABS)
═══════════════════════════════════════════════════════════ */
#programme {
  padding: var(--section-pad) 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.tabs-wrapper { width: 100%; }

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 16px 32px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--burgundy);
  border-bottom-color: var(--fuchsia);
}

.tab-panel { display: none; animation: fadeIn 0.35s ease; }
.tab-panel.active { display: block; }

.tab-full-date {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  color: #C96C72;
  text-align: center;
  margin-bottom: 48px;
}

.event-card-img-wrapper {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}
.event-card-img {
  max-width: 800px;
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .event-card-img {
    max-width: 560px;
  }
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}
.event-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.event-item:last-child { border-bottom: none; }

.event-item--with-img {
  grid-template-columns: 80px 1fr 40%;
  align-items: center;
}
.event-img {
  width: 100%;
  height: auto;
  justify-self: end;
}
@media (max-width: 600px) {
  .event-item--with-img {
    grid-template-columns: 80px 1fr;
  }
  .event-img {
    grid-column: 1 / -1;
    width: 70%;
    margin: 12px auto 0;
    justify-self: center;
  }
}

.event-time {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  padding-top: 4px;
}
.event-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}
.event-location {
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.event-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════
   INFOS PRATIQUES — SECTIONS VERTICALES
═══════════════════════════════════════════════════════════ */
#info_pratique {
  padding: var(--section-pad) 40px;
  background: var(--bg);
}
#info_pratique .section-header { margin-bottom: 60px; }

.info-sections {
  max-width: 680px;
  margin: 0 auto;
}

.info-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.info-section:last-child { border-bottom: none; }

.info-section-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-section-illu {
  height: 52px;
  width: auto;
  border-radius: 4px;
}
.info-section-illu--sm {
  height: 28px;
}

.info-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(99, 3, 16, 0.07);
}
.info-block:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.info-block-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.info-block-text {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.9;
}
.info-block-note {
  font-size: 16px;
  color: var(--dusty-rose);
  margin-top: 8px;
  font-style: italic;
}
.info-wip {
  font-style: italic;
  opacity: 0.7;
}
.info-alert {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(164, 32, 74, 0.05);
  border-left: 2px solid var(--fuchsia);
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════
   RSVP
═══════════════════════════════════════════════════════════ */
#rsvp {
  padding: var(--section-pad) 40px;
  max-width: 760px;
  margin: 0 auto;
}

.rsvp-header {
  text-align: center;
  margin-bottom: 60px;
}
.rsvp-illu-img {
  height: 180px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
}

/* Form */
#rsvpForm { display: flex; flex-direction: column; gap: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.optional {
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--text); }

/* Checkboxes */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.checkbox-event-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rsvp-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rsvp-event-label {
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.rsvp-yn-buttons {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid rgba(99, 3, 16, 0.25);
  border-radius: 50px;
  overflow: hidden;
}
.rsvp-yn-btn {
  padding: 6px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.rsvp-yn-btn + .rsvp-yn-btn {
  border-left: 1px solid rgba(99, 3, 16, 0.25);
}
.rsvp-yn-oui.active {
  background: var(--text);
  color: var(--bg);
}
.rsvp-yn-non.active {
  background: rgba(99, 3, 16, 0.08);
  color: var(--text);
}
.rsvp-yn-btn:hover:not(.active) {
  background: rgba(99, 3, 16, 0.05);
}

/* Guests conditionnel par événement */
.checkbox-guests {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  animation: fadeIn 0.2s ease;
}
.guests-input {
  width: 56px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 4px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  outline: none;
  text-align: center;
}
.guests-input:focus { border-bottom-color: var(--text); }
.guests-label {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.form-actions { padding-top: 8px; text-align: center; }

.form-group--message {
  margin-top: -12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.form-group--message label {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.form-success {
  text-align: center;
  font-size: 17px;
  color: var(--fuchsia);
  letter-spacing: 0.05em;
  padding: 16px;
  border-bottom: 1px solid var(--dusty-rose);
}
.form-error {
  text-align: center;
  font-size: 17px;
  color: #C0392B;
  padding: 16px;
  border: 1px solid #C0392B;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: var(--merlot);
  padding: 60px 40px;
  text-align: center;
  border-top: 1px solid rgba(245,239,230,0.08);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-ornament { font-size: 14px; color: var(--dusty-rose); }
.footer-names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: #F5EFE6;
}
.footer-date {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,239,230,0.4);
}
.footer-hashtag {
  font-size: 16px;
  color: rgba(245,239,230,0.3);
  letter-spacing: 0.1em;
  margin-top: 4px;
}



/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --section-pad: 56px; }

  /* Nav */
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { padding: 16px 20px 24px; }

  /* Hero */
  .hero-trio {
    flex-direction: column;
    gap: 20px;
  }
  .hero-name--left,
  .hero-name--right { text-align: center; }
  .hero-polaroid { width: 150px; }
  .hero-content { padding: 90px 24px 48px; }
  .hero-details {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    white-space: normal;
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .hero-details > span { max-width: none; text-align: center; }
  .hero-details-logo {
    width: auto;
    order: 2;
  }
  .hero-details > span:first-child { order: 1; }
  .hero-details > span:last-child  { order: 3; }
  .hero-details-logo img { width: 52px; }

  /* Countdown */
  #countdown { padding: 40px 20px; }
  .count-sep { font-size: 32px; }

  /* Programme */
  #programme { padding: 56px 20px; }
  .tab-btn { padding: 12px 16px; font-size: 14px; }
  .event-item { grid-template-columns: 64px 1fr; gap: 0 16px; }

  /* Infos */
  #info_pratique { padding: 56px 20px; }

  /* RSVP */
  #rsvp { padding: 56px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 24px; }

  /* Footer */
  footer { padding: 48px 20px; }
}
