@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');

/*
  PALETTE — ivoire, sable, terracotta (DA mariage automne)
  --bg #F7EFE9 ivoire · --bg-alt #EDE4DA sable clair · --surface #FBF8F5
  --text #2C1810 brun · --accent #B65A3C terracotta · --muted #8B6F47 bois
  --mint #D9C1A8 sable (bordures) · --blush #C7893C ambre (déco)
*/

:root {
  --bg:      #F7EFE9;   /* ivoire */
  --bg-alt:  #EDE4DA;   /* sable clair */
  --surface: #FBF8F5;   /* blanc ivoire, cartes */
  --text:    #2C1810;   /* brun très foncé ~14:1 sur --bg */
  --accent:  #B65A3C;   /* terracotta ~5:1 sur --bg */
  --muted:   #8B6F47;   /* bois naturel ~4.5:1 sur --bg */
  --mint:    #D9C1A8;   /* sable (bordures, dividers) */
  --blush:   #C7893C;   /* ambre (décoratif : & , touches) */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Utility ── */
.container {
  width: 90%;
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--mint);
  margin: 1.5rem auto;
}

/* ── Nav ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(247,239,233,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(44,24,16,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--accent);
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--mint);
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 95% 10%, rgba(199,137,60,0.10) 0%, transparent 50%);
  pointer-events: none;
}

/* Illustration */
.hero-illustration {
  width: 100%;
  max-width: 440px;
  margin-top: 2rem;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* CTA sous l'illustration */
.hero-cta {
  margin-top: 1.5rem;
}

/* Hero content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.05;
}

.hero-names em {
  font-style: italic;
  color: var(--accent);
}

.hero-ampersand {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--mint);
  display: block;
  font-style: italic;
  margin: 0.15rem 0;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-top: 2rem;
  letter-spacing: 0.06em;
}

.hero-location {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.7;
}

/* Bouton hero */
.btn-hero-rsvp {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: var(--surface);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--accent);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-hero-rsvp:hover {
  background: transparent;
  color: var(--accent);
}

.scroll-hint {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  opacity: 0.4;
  animation: fadeUp 2.5s ease-in-out infinite;
}

@keyframes fadeUp {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%       { opacity: 0.7; transform: translateY(-6px); }
}

/* ── Sections ── */
section { padding: 5rem 1.5rem; }

section:nth-child(even) { background: var(--bg-alt); }

section .container { text-align: center; }

section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 1.2rem;
}

section p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ── Notre histoire ── */
#histoire p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
}

/* ── Timeline ── */
/* ── Texte long ── */
#histoire p, #programme .container > p, #hebergement .container > p { margin-bottom: 1.2rem; }
#histoire p:last-child { margin-bottom: 0; }
#hebergement .container > p, #programme .container > p { max-width: 640px; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; margin-top: 3rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--mint); transform: translateX(-50%);
}
.tl-item { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: start; gap: 1rem; padding: 1.4rem 0; }
.tl-left { text-align: right; }
.tl-right { text-align: left; }
.tl-left, .tl-right { min-width: 0; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
  outline: 3px solid rgba(217,193,168,0.4); outline-offset: 1px;
  margin: 0.6rem auto 0;
}
.tl-time { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.2rem; }
.tl-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--text); line-height: 1.25; }
.tl-desc { font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }
.tl-left .tl-time, .tl-left .tl-title, .tl-left .tl-desc,
.tl-right .tl-time, .tl-right .tl-title, .tl-right .tl-desc { max-width: none; margin-left: 0; margin-right: 0; }
.tl-left:empty, .tl-right:empty { visibility: hidden; }
.day-note { margin-top: 2rem !important; font-style: italic; color: var(--text) !important; }

/* ── Palette ── */
.palette {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.2rem 1.6rem; margin: 1.6rem 0;
}
.palette li {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text);
}
.palette li span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(44,24,16,0.12); }

/* ── Infos pratiques ── */
.infos-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.info-card--wide { grid-column: 1 / -1; }
.info-card--wide p { max-width: 640px; margin-left: auto; margin-right: auto; }
.info-card p + p, .info-card .palette + p { margin-top: 0.8rem; }
.info-card strong { color: var(--text); font-weight: 500; }
#hebergement .infos-grid { margin-top: 2.5rem; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--mint);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.info-card .icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

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

.info-card p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 100%;
}

.card-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(182,90,60,0.3);
  transition: border-color 0.2s;
}
.card-link:hover { border-color: var(--accent); }

/* ── RSVP ── */
#rsvp {
  background: var(--text);
  color: var(--surface);
  text-align: center;
}

#rsvp .section-label {
  color: var(--mint);
}

#rsvp h2 {
  color: var(--surface);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

#rsvp p {
  color: rgba(250,247,243,0.65);
  max-width: 480px;
}

#rsvp .divider {
  background: var(--mint);
  opacity: 0.4;
}

.rsvp-deadline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--blush);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.btn-rsvp {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--bg);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  border-radius: 2px;
}

.btn-rsvp:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ── Footer ── */
footer {
  background: var(--text);
  border-top: 1px solid rgba(217,193,168,0.12);
  text-align: center;
  padding: 2rem 1.5rem;
  color: rgba(250,247,243,0.35);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

footer em {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: rgba(250,247,243,0.55);
}

.footer-link {
  color: rgba(217,193,168,0.5);
  border-bottom: 1px solid rgba(217,193,168,0.18);
  font-size: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.footer-link:hover {
  color: var(--mint);
  border-color: rgba(217,193,168,0.45);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-illustration { max-width: 320px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(247,239,233,0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(217,193,168,0.3);
  }

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

  .nav-links li { width: 100%; padding: 0.65rem 0; border-bottom: 1px solid rgba(44,24,16,0.05); }
  .nav-links li:last-child { border: none; padding-top: 1rem; }
  .nav-links a { color: var(--muted); }
  .nav-links .nav-cta { border: none; background: none; color: var(--accent); padding: 0; }

  .timeline::before { left: 20px; }
  .tl-item { grid-template-columns: 40px 1fr; }
  .tl-dot { grid-row: 1; grid-column: 1; margin: 0.5rem 0 0 15px; }
  .tl-left, .tl-right { grid-column: 2; grid-row: 1; text-align: left; }
  .tl-left:empty, .tl-right:empty { display: none; }

  .infos-grid { grid-template-columns: 1fr; }
}

/* Mention de date sous le CTA du hero */
.hero-cta .rsvp-deadline { margin-top: 0.75rem; font-size: 1rem; text-align: center; }
