:root {
  --bg: #fff8f3;
  --bg-alt: #fff1ea;
  --primary: #c8694c;
  --primary-light: #f5c7b5;
  --accent-pink: #f4b7c1;
  --text: #2b2623;
  --muted: #7a6d65;
  --border: #ead9cf;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
}

.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 80px 0;
  overflow: visible;
}

.section::before {
  content: "";
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(244, 183, 193, 0.12), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(248, 210, 193, 0.12), transparent 55%);
  opacity: 0.7;
  z-index: -1;
}

.section-alt { background-color: var(--bg-alt); }
.section-alt::before { opacity: 0.4; }

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section > .container > p {
  text-align: center;
  max-width: 760px;
  margin: 0.5rem auto 2rem;
}

/* Grid 3 */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Two columns (utilisé pour RSVP) */
.section-inner.two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .section-inner.two-columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

/* HEADER & NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 248, 243, 0.95);
  border-bottom: 1px solid rgba(234, 217, 207, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo span {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo span::after {
  content: "✿";
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.9rem;
  color: var(--accent-pink);
}

.nav {
  display: none;
  gap: 24px;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  transition: width 0.2s ease-out;
}

.nav a:hover::after { width: 100%; }

.menu-toggle {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav {
  position: fixed;
  inset: 56px 0 auto 0;
  background-color: rgba(255, 247, 241, 0.98);
  display: flex;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-bottom: 1px solid var(--border);
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav { display: flex !important; }
  .menu-toggle { display: none; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.35), transparent 55%),
    linear-gradient(135deg, #c8694c, #85413d);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("assets/sakura-hero.jpg");
  background-size: cover;
  background-position: center 60%;
  opacity: 0.25;
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin: 0 0 0.4rem;
}

.hero-date {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.2rem;
}

.hero-countdown {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.1));
  backdrop-filter: blur(10px);
  margin: 0 auto 24px;
  width: fit-content;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  min-width: 60px;
}

.countdown-item span {
  font-weight: 600;
  font-size: 1.4rem;
}

.countdown-item small {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.countdown {
  margin-bottom: 24px;
}

/* Texte sous le timer : lisible */
.hero-subtitle {
  color: #ffffff;
  max-width: 720px;
  margin: 0.8rem auto 1.8rem;
  padding: 10px 16px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #ffe7e0);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

/* STORY block */
.story {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.story p {
  margin: 0 0 1rem 0;
}

/* CARDS */
.card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(234, 217, 207, 0.9);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -10px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle at 30% 30%, rgba(244, 183, 193, 0.4), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.small { font-size: 0.85rem; color: var(--muted); }

/* TIMELINE */
.timeline-vertical {
  border-left: 2px solid var(--primary-light);
  margin-top: 24px;
  padding-left: 4px;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--primary) 0, var(--accent-pink) 80%);
}

.timeline-item .time {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.timeline-item .details h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* RSVP */
.highlight {
  background:
    radial-gradient(circle at top left, rgba(244, 183, 193, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(248, 210, 193, 0.25), transparent 55%),
    #fff7f2;
}

.rsvp-steps { padding-left: 1.1rem; }
.rsvp-steps li { margin-bottom: 0.4rem; }

.rsvp-form-wrapper {
  max-width: 560px;
  width: 100%;
}

.rsvp-form-wrapper iframe {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #fff;
}

/* FOOTER */
.footer {
  padding: 24px 0 32px;
  background-color: #f8eee7;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero-countdown {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-subtitle {
    border-radius: 16px;
  }
}
/* GALERIE PHOTOS (sous Notre histoire) */
.gallery-title {
  text-align: center;
  font-size: 1.4rem;
  margin: 36px 0 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(234, 217, 207, 0.8);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-note {
  text-align: center;
  margin-top: 12px;
}

/* Centrage du bouton dans le hero */
.hero .btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.hero .btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;   /* ← descend le bouton */
}

/* WERO */
.wero-block {
  margin-top: 24px;
  text-align: center;
}

.wero-qr {
  width: 180px;
  max-width: 80%;
  margin: 12px auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform 0.25s ease;
}

.wero-qr:hover {
  transform: scale(1.05);
}
/* Colonnes florales (inspirées du faire-part) */
body {
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 140px;              /* largeur des bandes */
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 140px auto;
  opacity: 0.35;             /* intensité */
  pointer-events: none;      /* ne bloque pas les clics */
  z-index: 0;                /* derrière le contenu */
}

/* Bande gauche */
body::before {
  left: 0;
  background-image: url("assets/floral-left-120.png");
}

/* Bande droite */
body::after {
  right: 0;
  background-image: url("assets/floral-right-120.png");
}

/* Assure que le contenu passe au-dessus */
.header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* Mobile : on allège ou on masque (recommandé) */
@media (max-width: 900px) {
  body::before,
  body::after {
    opacity: 0.18;
    width: 90px;
    background-size: 90px auto;
  }
}

@media (max-width: 650px) {
  body::before,
  body::after {
    display: none;
  }
}

