/* ============================================================
   Mariage Mathilde & Kylian — thème « Promesse »
   Blanc naturel, calligraphie et accents dorés, style épuré.
   ============================================================ */

:root {
  --blanc: #fdfcf9;        /* blanc naturel, légèrement crème */
  --creme: #f7f3ea;
  --or: #c4a24d;           /* doré principal */
  --or-fonce: #a8853a;
  --or-pale: #e8dcc0;
  --encre: #3d3a33;        /* texte principal, brun-gris doux */
  --encre-douce: #7c7668;
  --font-script: "Ephesis", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--encre);
  background-color: var(--blanc);
  /* léger grain, clin d'œil au papier 280 g grainé du faire-part */
  background-image: radial-gradient(rgba(196, 162, 77, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.nav--scrolled {
  background: rgba(253, 252, 249, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 14px rgba(61, 58, 51, 0.08);
  padding: 0.6rem 2rem;
}

.nav__brand {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--or-fonce);
  text-decoration: none;
}

.nav__amp { font-size: 1.2rem; }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--encre);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav__links a:hover { color: var(--or-fonce); }

/* ===== Accueil ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

.hero__inner {
  max-width: 46rem;
  /* cadre fin doré, comme une carte de faire-part */
  border: 1px solid var(--or-pale);
  outline: 1px solid var(--or-pale);
  outline-offset: 6px;
  padding: 3.5rem 2.5rem;
  background: rgba(253, 252, 249, 0.75);
}

.hero__intro {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--encre-douce);
  margin-bottom: 1.8rem;
}

.hero__rings {
  width: 90px;
  color: var(--or);
  margin-bottom: 1rem;
}

.hero__names {
  font-family: var(--font-script);
  font-weight: 400;
  /* Ephesis dessine plus petit qu'une police classique : corps volontairement large */
  font-size: clamp(3rem, 8.5vw, 5rem);
  line-height: 1.1;
  color: var(--or-fonce);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.4em;
}

.hero__amp {
  font-size: 0.55em;
  color: var(--or);
}

.hero__divider,
.section__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.6rem auto;
  color: var(--or);
}

.hero__divider span,
.section__ornament span {
  display: block;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}

.hero__divider em,
.section__ornament em {
  font-style: normal;
  font-size: 1rem;
}

.hero__date {
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre);
  margin-bottom: 0.4rem;
}

.hero__place {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--encre-douce);
  margin-bottom: 1.2rem;
}

.hero__countdown {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--or);
  margin-bottom: 2rem;
  min-height: 1.2em;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll span {
  display: block;
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--or);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--or);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  background: var(--or);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid var(--or);
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: transparent;
  color: var(--or-fonce);
}

.btn--ghost {
  background: transparent;
  color: var(--or-fonce);
}

.btn--ghost:hover {
  background: var(--or);
  color: #fff;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
}

.section--alt {
  max-width: none;
  background: var(--creme);
}

.section__head { text-align: center; margin-bottom: 3.5rem; }

.section__eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--encre-douce);
  margin-bottom: 0.6rem;
}

.section__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 4.2rem);
  color: var(--or-fonce);
}

/* ===== Programme (frise) ===== */
.timeline {
  list-style: none;
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8.2rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--or-pale) 8%, var(--or-pale) 92%, transparent);
}

.timeline__day {
  /* même grille que les étapes pour que le badge soit centré sur les cartes */
  display: grid;
  grid-template-columns: 7rem 2.4rem 1fr;
  margin: 0 0 2rem;
  position: relative;
  z-index: 1;
}

.timeline__day span {
  grid-column: 3;
  justify-self: center;
  background: var(--blanc);
  border: 1px solid var(--or-pale);
  color: var(--or-fonce);
  padding: 0.35rem 1.4rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 7rem 2.4rem 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 2.4rem;
}

.timeline__time {
  text-align: right;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--or-fonce);
  letter-spacing: 0.05em;
  /* centre du texte aligné sur le centre du point doré */
  padding-top: 1.25rem;
}

.timeline__dot {
  justify-self: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blanc);
  border: 2px solid var(--or);
  margin-top: 1.45rem;
}

.timeline__card {
  background: #fff;
  border: 1px solid var(--or-pale);
  padding: 1.3rem 1.6rem;
  box-shadow: 0 2px 16px rgba(61, 58, 51, 0.05);
}

.timeline__icon { font-size: 1.4rem; margin-bottom: 0.3rem; }

.timeline__card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--encre);
}

.timeline__card p {
  color: var(--encre-douce);
  font-style: italic;
}

/* ===== Les lieux ===== */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 24rem));
  justify-content: center;
  gap: 2rem;
  max-width: 62rem;
  margin: 0 auto;
}

.place {
  background: #fff;
  border: 1px solid var(--or-pale);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(61, 58, 51, 0.05);
}

.place__icon { font-size: 2rem; margin-bottom: 0.8rem; }

.place h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--encre);
}

.place p {
  color: var(--encre-douce);
  margin-bottom: 1.6rem;
}

/* ===== Pied de page ===== */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.footer__names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--or-fonce);
}

.footer__names span { color: var(--or); font-size: 0.7em; }

.footer__note {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--encre-douce);
}

/* ===== Animations d'apparition ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

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

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .nav { padding: 0.8rem 1.2rem; }
  .nav__links { gap: 1.2rem; }
  .nav__links a { font-size: 0.85rem; }

  .hero__inner { padding: 2.5rem 1.4rem; }

  .timeline::before { left: 1.15rem; }

  .timeline__day { grid-template-columns: 2.4rem 1fr; }

  .timeline__day span { grid-column: 2; }

  .timeline__item {
    grid-template-columns: 2.4rem 1fr;
    grid-template-areas:
      "dot time"
      "dot card";
  }

  .timeline__dot { grid-area: dot; }

  .timeline__time {
    grid-area: time;
    text-align: left;
    padding: 1.1rem 0 0.3rem 0.2rem;
  }

  .timeline__card { grid-area: card; margin-left: 0.2rem; }
}
