@font-face {
  font-family: 'Exposure';
  src: url('../fonts/Exposure.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Exposure';
  src: url('../fonts/ExposureItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  /* Base creams (inchanges) */
  --ivory: #F6F3EE;
  --warm-white: #FDFCFA;

  /* Warm neutrals - peche-tinted */
  --sand: #F0DCC8;
  --stone: #D9B9A2;
  --blush: #D4A89A;

  /* Accents palette mariees (extrait des sources vectorielles du faire-part PDF) */
  --peach: #F9CDA8;          /* peche du faire-part - extrait CMYK source */
  --terracotta: #AA5C40;     /* terracotta (monogram) */
  --brick: #BB2317;          /* rouge brique - chiffres heures dans le faire-part */
  --bordeaux: #BC2217;       /* test couleur user */

  /* Textes - bordeaux du faire-part pour CTA + accents */
  --taupe: #B26F4F;          /* warm taupe (subtitles, nav scrolled) */
  --earth: #BC2217;          /* test couleur user */
  --charcoal: #2D1B14;       /* warm dark brown pour body */
  --ink: #4F0F08;            /* bordeaux plus fonce pour titles section */

  /* Compat avec l existant - alias warm */
  --sage: #AA5C40;
  --sage-light: #FACCB5;
  --gold: #AA5C40;           /* timeline dot terracotta */
  --gold-light: #F0DCC8;
}

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

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

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  transition: all 0.5s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

nav a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s;
}

nav.hero-visible a {
  color: var(--warm-white);
}

nav.scrolled a {
  color: var(--charcoal) !important;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(40, 12, 6, 0.18) 0%,
      rgba(40, 12, 6, 0.05) 40%,
      rgba(40, 12, 6, 0.30) 100%
    ),
    linear-gradient(
      135deg,
      var(--stone) 0%,
      var(--sand) 30%,
      var(--peach) 60%,
      var(--stone) 100%
    );
  opacity: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.4s ease both;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.6rem, 9.5vw, 6.8rem);
  letter-spacing: 0.005em;
  color: var(--bordeaux);
  line-height: 1.05;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.hero-amp {
  display: inline-block;
  margin: 0 0.05em;
  color: var(--bordeaux);
  line-height: 1;
}

.hero-amp svg {
  height: 0.62em;
  width: auto;
  vertical-align: -0.02em;
  display: inline-block;
}

.hero-amp img {
  display: inline-block;
  height: 0.95em;
  width: auto;
  vertical-align: -0.12em;
}

.hero-date {
  font-family: 'Exposure', serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: var(--bordeaux);
  opacity: 0.9;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: var(--warm-white);
  opacity: 0.4;
}

/* ═══════════════════════════════════════
   SECTIONS COMMON
═══════════════════════════════════════ */
section {
  padding: 7rem 2rem;
}

.section-inner {
  max-width: 680px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Exposure', serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--ink);
}

.section-subtitle {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--taupe);
  margin-bottom: 4rem;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--stone);
  margin: 0 auto 4rem;
}

/* ═══════════════════════════════════════
   PROGRAMME
═══════════════════════════════════════ */
#programme {
  background: var(--warm-white);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--sand);
}

.timeline-event {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-event:nth-child(2) { animation-delay: 0.3s; }

.timeline-event::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--warm-white), 0 0 0 5px var(--sand);
}

.event-time {
  font-family: 'Exposure', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.event-name {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 1rem;
}

.event-details {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--taupe);
}

.event-details .venue {
  font-weight: 400;
  color: var(--charcoal);
}

.event-location-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.event-location-link:hover {
  color: var(--earth);
}

.event-location-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform 0.3s;
}

.event-location-link:hover svg {
  transform: translateX(3px);
}

.event-conseil {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--gold);
  background: rgba(170, 92, 64, 0.06);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--taupe);
  text-align: left;
  border-radius: 0 2px 2px 0;
}

.event-conseil strong {
  font-weight: 500;
  color: var(--earth);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   RSVP
═══════════════════════════════════════ */
#rsvp {
  background: var(--ivory);
}

.rsvp-note {
  font-family: 'Exposure', serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: center;
  color: var(--earth);
  margin-bottom: 3rem;
}

.rsvp-form {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 2px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: none;
  padding: 0;
  margin: 0;
}

.rsvp-field > label,
.rsvp-field > legend {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  line-height: 1.7;
}

.rsvp-field input[type="text"] {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sand);
  padding: 0.55rem 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.rsvp-field input[type="text"]:focus {
  border-bottom-color: var(--earth);
}

.rsvp-field textarea {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--sand);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  resize: vertical;
  min-height: 90px;
}

.rsvp-field textarea:focus {
  border-color: var(--earth);
}

.rsvp-radios {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.rsvp-radio {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.rsvp-radio:hover {
  border-color: var(--taupe);
  background: var(--ivory);
}

.rsvp-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--taupe);
  border-radius: 50%;
  position: relative;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.rsvp-radio input[type="radio"]:checked {
  border-color: var(--earth);
}

.rsvp-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--earth);
  border-radius: 50%;
}

.rsvp-radio:has(input[type="radio"]:checked) {
  border-color: var(--earth);
  background: var(--ivory);
}

.rsvp-submit {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--earth);
  border: none;
  padding: 1.1rem 2.5rem;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.5rem;
  align-self: center;
  min-width: 260px;
}

.rsvp-submit:hover:not(:disabled) {
  background: var(--ink);
}

.rsvp-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rsvp-success {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 2px;
  padding: 4.5rem 2rem;
  text-align: center;
  animation: fadeInUp 0.7s ease both;
}

.rsvp-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.8rem;
  stroke: var(--earth);
  stroke-width: 1.4;
  fill: none;
}

.rsvp-success-title {
  font-family: 'Exposure', serif;
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.rsvp-success-message {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--earth);
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   CAGNOTTE
═══════════════════════════════════════ */
#cagnotte {
  background: var(--warm-white);
}

#cagnotte .section-inner {
  max-width: 820px;
}

.cagnotte-text {
  font-family: 'Exposure', serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: center;
  color: var(--earth);
  margin-bottom: 3rem;
}

.cagnotte-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--charcoal);
  text-decoration: none;
  padding: 1.1rem 2.8rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cagnotte-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.5s ease;
}

.cagnotte-link:hover::before {
  transform: translateX(0);
}

.cagnotte-link span,
.cagnotte-link svg {
  position: relative;
  z-index: 1;
}

.cagnotte-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s;
}

.cagnotte-link:hover svg {
  transform: translateX(4px);
}

.cagnotte-wrapper {
  text-align: center;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  padding: 4rem 2rem 3rem;
  text-align: center;
  background: var(--ink);
  color: var(--stone);
}

.footer-monogram {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 1.4rem;
  border-radius: 2px;
  opacity: 0.92;
}

.footer-date {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--peach);
  opacity: 0.95;
}

.footer-back-top {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-back-top:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
  }

  section {
    padding: 5rem 1.5rem;
  }

  .section-subtitle {
    margin-bottom: 3rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-event {
    padding-left: 1.5rem;
  }

  .rsvp-form {
    padding: 2rem 1.4rem;
  }

  .cagnotte-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

}
