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

:root {
  --green: #717F73;
  --green-dark: #4a5a4c;
  --green-deep: #2e3a2f;
  --green-light: #8a9a8c;
  --ivory: #faf8f2;
  --ivory-warm: #f5f0e8;
  --gold: #b8922e;
  --gold-light: #f5a623;
  --text-dark: #2a2a1e;
  --text-mid: #3a3a2e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--ivory);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(42, 58, 44, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
}
.nav-monogram {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(245,240,232,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-rsvp {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(184,146,46,0.5);
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 1px;
  transition: all 0.2s;
}
.nav-rsvp:hover {
  background: var(--gold);
  color: var(--green-deep);
}

/* ── SECTION BASE ── */
section { position: relative; }

/* ── 1. ACCUEIL (hero) ── */
#accueil {
  height: 100vh;
  min-height: 700px;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 50%, rgba(113,127,115,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(113,127,115,0.18) 0%, transparent 70%);
  z-index: 0;
}
/* Canvas flowers — fills entire section, positioned absolute */
#flowerCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 3;
  animation: fadeUp 1.4s ease both;
  pointer-events: none;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-pretitle {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(245,240,232,0.92);
  margin-bottom: 20px;
  display: block;
  -webkit-text-stroke: 0.4px rgba(0,0,0,0.45);
  paint-order: stroke fill;
  text-shadow: 0 1px 5px rgba(0,0,0,0.9), 0 3px 18px rgba(0,0,0,0.65), 0 6px 32px rgba(0,0,0,0.4);
}
.hero-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(72px, 10vw, 120px);
  color: #ffffff;
  line-height: 0.95;
  display: block;
  /* Contour net + halo profond */
  -webkit-text-stroke: 1.2px rgba(30,20,5,0.55);
  paint-order: stroke fill;
  text-shadow:
    0 0 8px  rgba(255,255,255,0.18),
    0 2px 6px  rgba(0,0,0,0.75),
    0 4px 18px rgba(0,0,0,0.60),
    0 8px 40px rgba(0,0,0,0.45),
    0 16px 60px rgba(0,0,0,0.25);
}
.hero-amp {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(36px, 5vw, 56px);
  color: #f5c84a;
  display: block;
  margin: 6px 0;
  -webkit-text-stroke: 0.8px rgba(80,40,0,0.5);
  paint-order: stroke fill;
  text-shadow:
    0 2px 6px  rgba(0,0,0,0.7),
    0 4px 20px rgba(0,0,0,0.45),
    0 0 30px   rgba(200,140,20,0.3);
}
.hero-date {
  font-family: 'Cormorant SC', serif;
  font-size: 14px;
  letter-spacing: 5px;
  color: #f5c84a;
  margin-top: 28px;
  display: block;
  -webkit-text-stroke: 0.4px rgba(60,30,0,0.5);
  paint-order: stroke fill;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 4px 20px rgba(0,0,0,0.6), 0 8px 36px rgba(0,0,0,0.35);
}
.hero-venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(245,240,232,0.68);
  margin-top: 10px;
  display: block;
  letter-spacing: 1px;
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.35);
  paint-order: stroke fill;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85), 0 3px 16px rgba(0,0,0,0.55), 0 6px 28px rgba(0,0,0,0.35);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: bounce 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes slowspin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-scroll span {
  font-family: 'Cormorant SC', serif;
  font-size: 8px;
  letter-spacing: 3px;
  color: rgba(245,240,232,0.55);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.3), transparent);
}

#lieu {
  background: var(--ivory);
  padding: 120px 48px;
}
.lieu-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lieu-badge {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
  text-align: center;
}
.lieu-title {
  font-family: 'Great Vibes', cursive;
  font-size: 64px;
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 24px;
  text-align: center;
}
.lieu-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 0 auto 24px;
}
.lieu-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-mid);
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 20px;
}
.lieu-details {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  line-height: 2.4;
  display: block;
}
.lieu-map-frame {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: #ddd;
}
.lieu-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.lieu-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  color: rgba(245,240,232,0.5);
  gap: 12px;
}
.lieu-map-placeholder svg {
  opacity: 0.4;
}
.lieu-map-placeholder span {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 2px;
}

/* ── 3. GRANDE PHOTO (section 1) ── */
/* Styles desktop entièrement en inline sur la section.    */
/* Mobile seulement : override les styles inline.         */
@media (max-width: 768px) {
  #photo1 {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
  }
  #photo1 .photo-bg-div     { display: none !important; }
  #photo1 .photo-overlay-div { display: none !important; }
  #photo1 .photo-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,58,44,0.55);
  z-index: 1;
}
.photo-bg {
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-placeholder-text {
  font-family: 'Great Vibes', cursive;
  font-size: 80px;
  color: rgba(245,240,232,0.07);
  text-align: center;
  line-height: 1;
  padding: 20px;
}
.photo-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ivory);
}
.photo-caption blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 16px;
  opacity: 0.9;
}
.photo-caption cite {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.45;
  display: block;
}

/* ── 4. COMMENT Y ACCÉDER ── */
#acces {
  background: var(--green-dark);
  padding: 120px 48px;
}
.acces-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-badge {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  color: var(--ivory);
  text-align: center;
  line-height: 1;
  margin-bottom: 16px;
}
.section-title-dark {
  color: var(--green-dark);
}
.section-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0 auto 64px;
}
.acces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.acces-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 40px 32px;
  text-align: center;
  transition: background 0.3s;
}
.acces-card:hover {
  background: rgba(255,255,255,0.07);
}
.acces-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  color: var(--gold);
  opacity: 0.8;
}
.acces-card-title {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.acces-card-text {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(245,240,232,0.62);
  font-style: italic;
}

/* ── 5. PROGRAMME ── */
#programme {
  background: var(--ivory);
  padding: 100px 48px;
}
.programme-inner {
  max-width: 600px;
  margin: 0 auto;
}
.timeline-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-line { display: none; }
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  align-items: stretch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.tl-item.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Connecteur vertical entre cards */
.tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 44px;
  bottom: -18px;
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, rgba(184,146,46,0.35), rgba(184,146,46,0.1));
  z-index: 1;
}
.tl-dot { display: none; }
.tl-dot-inner { display: none; }

/* Colonne heure — pill dorée */
.tl-time-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 36px 0;
}
.tl-time {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(184,146,46,0.10);
  border: 1px solid rgba(184,146,46,0.28);
  border-radius: 20px;
  padding: 7px 14px;
  display: inline-block;
  white-space: nowrap;
}

/* Colonne contenu — carte arrondie */
.tl-content-col {
  background: white;
  border: 1px solid rgba(113,127,115,0.12);
  border-radius: 20px;
  padding: 22px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(74,90,76,0.07), 0 1px 4px rgba(74,90,76,0.05);
  transition: box-shadow 0.25s, transform 0.25s;
}
.tl-content-col:hover {
  box-shadow: 0 6px 28px rgba(74,90,76,0.13), 0 2px 8px rgba(74,90,76,0.08);
  transform: translateY(-2px);
}
.tl-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  display: block;
}
.tl-sub {
  font-family: 'Cormorant SC', serif;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: var(--green);
  opacity: 0.55;
  display: block;
  margin-top: 5px;
}
.tl-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mid);
  opacity: 0.65;
  margin-top: 8px;
  font-style: italic;
}

/* ── 6. GRANDE PHOTO 2 ── */
/* Styles desktop entièrement en inline sur la section.    */
/* Mobile seulement : override les styles inline.         */
@media (max-width: 768px) {
  #photo2 {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
  }
  #photo2 .photo-bg-div     { display: none !important; }
  #photo2 .photo-overlay-div { display: none !important; }
  #photo2 .photo-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
.photo2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,58,44,0.7) 0%, rgba(42,58,44,0.3) 100%);
  z-index: 1;
}
.photo2-dahlia {
  position: absolute;
  right: 10%;
  bottom: 10%;
  opacity: 0.15;
  z-index: 1;
  animation: slowspin 90s linear infinite;
}
.photo2-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 0 40px;
}
.photo2-label {
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(245,240,232,0.45);
  display: block;
  margin-bottom: 20px;
}
.photo2-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(60px, 8vw, 100px);
  color: var(--ivory);
  line-height: 1;
  display: block;
  opacity: 0.9;
}
.photo2-date {
  font-family: 'Cormorant SC', serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold);
  display: block;
  margin-top: 20px;
}

/* ── 7. OÙ DORMIR ── */
#hebergement {
  background: var(--ivory-warm);
  padding: 120px 48px;
}
.heberg-inner {
  max-width: 960px;
  margin: 0 auto;
}
.heberg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}
.heberg-card {
  background: var(--ivory);
  border: 1px solid rgba(113,127,115,0.15);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.heberg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(74,90,76,0.12);
}
.heberg-stars {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.heberg-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
  font-style: italic;
}
.heberg-cat {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--green);
  opacity: 0.7;
  display: block;
  margin-bottom: 16px;
}
.heberg-rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  margin-bottom: 16px;
}
.heberg-info {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  opacity: 0.72;
  font-style: italic;
}
.heberg-dist {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold);
  display: block;
  margin-top: 16px;
  opacity: 0.8;
}

/* ── 8. DÉTAILS / RSVP ── */
#details {
  background: var(--green-deep);
  padding: 120px 48px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.details-dahlia-left {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  animation: slowspin 110s linear infinite;
}
.details-dahlia-right {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  animation: slowspin 110s linear infinite reverse;
}
.details-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.details-pretitle {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 20px;
  display: block;
}
.details-big {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(56px, 7vw, 90px);
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 12px;
}
.details-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: rgba(245,240,232,0.5);
  margin-bottom: 56px;
  line-height: 1.8;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 56px;
  text-align: left;
}
.detail-item {
  background: var(--green-deep);
  padding: 32px 36px;
}
.detail-label {
  font-family: 'Cormorant SC', serif;
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: rgba(245,240,232,0.8);
  line-height: 1.7;
}
.detail-tr {
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(245,240,232,0.3);
  display: block;
  margin-top: 4px;
}
.rsvp-btn {
  display: inline-block;
  font-family: 'Cormorant SC', serif;
  font-size: 10px;
  letter-spacing: 3.5px;
  color: var(--green-deep);
  background: var(--gold);
  padding: 18px 48px;
  text-decoration: none;
  border-radius: 1px;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 32px;
}
.rsvp-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.details-footer {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(245,240,232,0.3);
  margin-top: 20px;
  line-height: 2;
}
.details-heart {
  color: var(--gold);
  opacity: 0.5;
  font-size: 14px;
  display: block;
  margin-top: 16px;
}

/* ── FOOTER ── */
footer {
  background: #1e2a20;
  text-align: center;
  padding: 28px;
  font-family: 'Cormorant SC', serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(245,240,232,0.2);
}

/* ── DAHLIA SVG HELPER ── */
.dahlia-svg {
  display: block;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .lieu-inner,
  .acces-grid,
  .heberg-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  #lieu, #acces, #programme, #hebergement, #details { padding: 80px 24px; }
  .timeline-wrapper { padding-left: 32px; }
  .tl-time-col { min-width: 90px; }
}
