/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --gold: #b8902e;
  --gold-light: #d4a94a;
  --gold-dark: #8c6e1e;
  --bg: #FAFAF8;
  --bg-2: #F5F2EC;
  --bg-3: #EDE9E0;
  --text: #1A1612;
  --text-muted: #7A7168;
  --text-light: #B0A898;
  --white: #ffffff;
  --font-serif: 'Cormorant Garant', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

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

/* =============================================
   CONTAINER
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.75rem 2rem;
  box-shadow: 0 1px 0 rgba(184, 144, 46, 0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

#navbar.scrolled .nav-logo {
  color: var(--text);
}

.nav-logo-year {
  color: var(--gold-light);
  font-weight: 300;
}

#navbar.scrolled .nav-logo-year {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

#navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover,
#navbar.scrolled .nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color var(--transition);
}

#navbar.scrolled .nav-toggle {
  color: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 1rem 2rem 1.5rem;
  list-style: none;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-mobile a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-mobile a:hover {
  color: var(--gold);
}

.nav-mobile.open {
  display: flex;
}

/* =============================================
   HERO — stays dark (video background)
   ============================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1408 0%, #2d2010 50%, #1a1408 100%);
}

/* YouTube iframe background */
#yt-player {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, calc(100vh * 16 / 9));
  height: max(100vh, calc(100vw * 9 / 16));
  pointer-events: none;
}

#yt-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 4, 0.45) 0%,
    rgba(10, 8, 4, 0.25) 40%,
    rgba(10, 8, 4, 0.5) 80%,
    rgba(10, 8, 4, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem;
  animation: heroFadeIn 1.4s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero-number {
  font-family: var(--font-serif);
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 300;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-light);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 80px rgba(212, 169, 74, 0.2);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 400;
  color: #FAF9F6;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
}

.hero-divider span:not(.diamond) {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-light);
  opacity: 0.5;
}

.diamond {
  color: var(--gold-light);
  font-size: 0.5rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(250, 249, 246, 0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
  background: transparent;
  cursor: pointer;
}

/* In hero (dark background), invert on hover */
#hero .btn-primary {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

#hero .btn-primary:hover {
  background: var(--gold-light);
  color: #1A1612;
}

/* On light background */
section:not(#hero) .btn-primary:hover,
.btn-primary:not(#hero .btn-primary):hover {
  background: var(--gold);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(184, 144, 46, 0.35);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* =============================================
   SECTION COMMON
   ============================================= */
section {
  padding: 7rem 0;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 3.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* =============================================
   EVENEMENT CARDS
   ============================================= */
#evenement {
  background: var(--white);
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--bg-3);
}

.event-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  text-align: center;
  transition: background var(--transition);
}

.event-card:hover {
  background: var(--bg);
}

.event-icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.event-card a {
  color: var(--gold);
}

/* =============================================
   PORTRAIT
   ============================================= */
#portrait {
  background: var(--bg-2);
  position: relative;
}

#portrait::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,144,46,0.25), transparent);
}

.portrait-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: center;
}

.portrait-photo {
  position: relative;
}

.portrait-photo img {
  width: 100%;
  filter: grayscale(1) contrast(1.05);
  display: block;
  box-shadow: 8px 8px 0 rgba(184,144,46,0.15);
}

.portrait-caption {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.portrait-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.portrait-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.portrait-divider span:not(.diamond) {
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(184,144,46,0.3);
}

.portrait-quote {
  font-family: var(--font-serif) !important;
  font-size: 1.2rem !important;
  font-weight: 300;
  color: var(--text) !important;
  line-height: 1.6 !important;
}

@media (max-width: 768px) {
  .portrait-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .portrait-photo img {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* =============================================
   PROGRAMME TIMELINE
   ============================================= */
#programme {
  background: var(--bg-2);
  position: relative;
}

#programme::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,144,46,0.25), transparent);
}

.timeline {
  position: relative;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(184,144,46,0.25) 10%, rgba(184,144,46,0.25) 90%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 20px 1fr;
  gap: 0 2rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  padding-top: 0.1rem;
  line-height: 1;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--gold);
  margin-top: 0.3rem;
  justify-self: center;
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* =============================================
   HÉBERGEMENTS
   ============================================= */
#hebergements {
  background: var(--white);
  position: relative;
}

#hebergements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,144,46,0.2), transparent);
}

.hebergements-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.hebergements-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bg-3);
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.heberg-card {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.heberg-card p {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 400;
}

.heberg-card span {
  font-size: 0.72rem;
  color: var(--text-light);
  white-space: nowrap;
}

.heberg-badge {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.heberg-badge.hotel  { background: rgba(96,165,250,0.12); color: #3b82f6; }
.heberg-badge.gite   { background: rgba(52,211,153,0.12); color: #10b981; }
.heberg-badge.chambre{ background: rgba(251,146,60,0.12);  color: #f97316; }

.hebergements-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.hebergements-note {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}

/* =============================================
   RSVP
   ============================================= */
#rsvp {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}

#rsvp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,144,46,0.2), transparent);
}

.rsvp-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184, 144, 46, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(184, 144, 46, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.rsvp-container {
  position: relative;
  z-index: 1;
}

.rsvp-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.rsvp-intro strong {
  color: var(--gold);
}

#rsvp-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--bg-3);
  border-radius: 0;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input[type="number"] {
  -moz-appearance: textfield;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--bg-3);
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.checkbox-label:hover {
  border-color: rgba(184, 144, 46, 0.4);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.checkbox-label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(184, 144, 46, 0.05);
}

.checkbox-label:has(input:checked) span {
  color: var(--gold-dark);
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-notice {
  font-size: 0.85rem;
  color: var(--gold);
  min-height: 1.5rem;
}

/* =============================================
   ACCES
   ============================================= */
#acces {
  background: var(--white);
}

.acces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.acces-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.acces-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.acces-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-left: 2px solid var(--bg-3);
}

.acces-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.acces-item strong {
  color: var(--text);
  font-weight: 500;
}

.acces-item span {
  color: var(--gold);
}

.acces-map iframe {
  border: 1px solid var(--bg-3);
  filter: sepia(0.08) brightness(0.97);
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--text);
  padding: 3.5rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: #FAF9F6;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(250, 249, 246, 0.5);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
}

.footer-divider span:not(.diamond) {
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(184, 144, 46, 0.4);
}

.footer-divider .diamond {
  color: var(--gold-light);
}

.footer-contact {
  font-size: 0.8rem;
  color: rgba(250, 249, 246, 0.5);
}

.footer-contact a {
  color: var(--gold-light);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .event-cards {
    grid-template-columns: 1fr;
  }

  .hebergements-preview {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 80px;
  }

  .timeline-item {
    grid-template-columns: 70px 20px 1fr;
    gap: 0 1rem;
  }

  .timeline-time {
    font-size: 1.1rem;
  }

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

  .acces-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .checkbox-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-number {
    -webkit-text-stroke-width: 0.5px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto;
  }

  .timeline-dot {
    display: none;
  }
}
