/* ============================================================
   Alice & Julien — feuille de style
   Palette : vert sauge / crème / terracotta doux
   ============================================================ */

:root {
  --c-bg:        #faf7f2;   /* crème */
  --c-bg-alt:    #f0ece3;   /* crème plus foncé */
  --c-text:      #3a3a35;   /* presque noir chaud */
  --c-muted:     #7a7a70;
  --c-sage:      #8a9a7b;   /* vert sauge */
  --c-sage-dark: #6b7c5c;
  --c-accent:    #c98b6b;   /* terracotta doux */
  --c-white:     #ffffff;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Montserrat", system-ui, sans-serif;

  --maxw: 1100px;
  --nav-h: 70px;
}

/* ----------- Reset léger ----------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ----------- Conteneur & sections ----------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--accent { background: var(--c-sage); color: var(--c-white); }
.section--accent .section__eyebrow { color: rgba(255,255,255,.8); }
.section--accent .section__title { color: var(--c-white); }
.section--accent .section__title::after { background: rgba(255,255,255,.6); }

.section__eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .72rem;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.section__title::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: var(--c-accent);
  margin: 18px auto 0;
}

.prose { max-width: 680px; margin: 0 auto 40px; text-align: center; font-size: 1.05rem; }
.prose p { margin-bottom: 16px; }

/* ----------- Boutons ----------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s ease;
  background: transparent;
}
.btn--light { color: var(--c-white); border-color: rgba(255,255,255,.8); }
.btn--light:hover { background: var(--c-white); color: var(--c-text); }
.btn--dark { color: var(--c-white); background: var(--c-sage-dark); border-color: var(--c-sage-dark); }
.btn--dark:hover { background: var(--c-text); border-color: var(--c-text); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav--scrolled {
  background: rgba(250,247,242,.96);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 1px;
  transition: color .3s ease;
}
.nav--scrolled .nav__brand { color: var(--c-text); }

.nav__menu { display: flex; gap: 30px; align-items: center; }
.nav__link {
  font-size: .82rem;
  letter-spacing: 1px;
  color: var(--c-white);
  position: relative;
  padding: 4px 0;
  transition: color .3s ease;
}
.nav--scrolled .nav__link { color: var(--c-text); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--c-accent);
  transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  border: 1px solid currentColor;
  padding: 8px 18px;
  border-radius: 2px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--c-white);
  transition: all .3s ease;
}
.nav--scrolled .nav__burger span { background: var(--c-text); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-white);
  /* TODO: remplacez l'URL par votre photo (assets/hero.jpg) */
  background: linear-gradient(rgba(60,58,53,.35), rgba(60,58,53,.45)),
              url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.hero__content { padding: 0 24px; animation: fadeUp 1.2s ease both; }
.hero__pretitle {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: .8rem;
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 1;
  margin-bottom: 18px;
}
.hero__title span { color: var(--c-accent); font-style: italic; }
.hero__date {
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

/* Compte à rebours */
.countdown { display: flex; justify-content: center; gap: 28px; margin-bottom: 44px; }
.countdown__item { display: flex; flex-direction: column; min-width: 64px; }
.countdown__item span {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
}
.countdown__item small {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .65rem;
  margin-top: 8px;
  opacity: .85;
}

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: var(--c-white);
  animation: bounce 2s infinite;
}

/* ============================================================
   TIMELINE (programme)
   ============================================================ */
.timeline { max-width: 620px; margin: 0 auto; list-style: none; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 90px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--c-sage);
  opacity: .4;
}
.timeline__item { display: flex; gap: 30px; padding: 18px 0; position: relative; }
.timeline__time {
  flex: 0 0 70px;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-sage-dark);
}
.timeline__item::after {
  content: "";
  position: absolute;
  left: 86px; top: 26px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
}
.timeline__body h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; }
.timeline__body p { color: var(--c-muted); }

/* ============================================================
   CARTES (infos / hébergement)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 20px;
}
.card {
  background: var(--c-white);
  padding: 32px 28px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.09); }
.card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 14px; }
.card p { color: var(--c-muted); font-size: .95rem; }
.card__link { display: inline-block; margin-top: 14px; color: var(--c-accent); font-size: .85rem; letter-spacing: 1px; }

/* ============================================================
   RSVP (lien vers Google Form)
   ============================================================ */
.rsvp-cta { text-align: center; margin-top: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--c-text); color: var(--c-bg); text-align: center; padding: 60px 0; }
.footer__names { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 14px; }
.footer__contact { font-size: .95rem; margin-bottom: 10px; }
.footer__contact a { color: var(--c-accent); }
.footer__credit { font-size: .8rem; opacity: .6; letter-spacing: 1px; margin-top: 18px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h); right: 0;
    width: 75%; max-width: 320px;
    height: calc(100vh - var(--nav-h));
    background: var(--c-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 30px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,.1);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { color: var(--c-text); width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav__link--cta { border: 1px solid var(--c-accent); text-align: center; margin-top: 14px; }

  .section { padding: 70px 0; }
  .countdown { gap: 16px; }
  .timeline::before { left: 70px; }
  .timeline__item::after { left: 66px; }
  .timeline__time { flex-basis: 56px; font-size: 1.2rem; }
}
