/* Fonts (from the files you provided) */
@font-face {
  font-family: "PL-Sans";
  src: url("../assets/fonts/5c0c2bcbaa4149ca-s.p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PL-Sans";
  src: url("../assets/fonts/7b89a4fd5e90ede0-s.p.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PL-Serif";
  src: url("../assets/fonts/87069f06a4f1ee13-s.p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PL-Serif";
  src: url("../assets/fonts/904be59b21bd51cb-s.p.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PL-Script";
  src: url("../assets/fonts/e18f83c737786aa7-s.p.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Theme tokens to match the floral style */
  --background: 30 33% 97%;
  --foreground: 24 15% 12%;
  --card: 30 33% 98%;
  --border: 24 12% 86%;
  --muted: 30 20% 96%;
  --muted-foreground: 24 9% 40%;

  --primary: 32 49% 65%; /* warm gold */
  --primary-foreground: 24 15% 12%;

  --secondary: 30 25% 94%;

  --shadow-elegant: 0 20px 60px rgba(0, 0, 0, 0.1);
}

html,
body {
  height: 100%;
}

/*
  Fonts (match the reference template):
  - Body: Lato
  - Serif/display: Playfair Display
  - Script: Great Vibes
*/
body {
  font-family:
    "Lato",
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

.font-sans {
  font-family:
    "Lato",
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}
.font-serif {
  font-family:
    "Playfair Display", ui-serif, Georgia, Cambria, "Times New Roman", Times,
    serif;
}
.font-script {
  font-family: "Great Vibes", cursive;
}

/* Layout helpers to match the original page */
.section-padding {
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding: 5rem 1.5rem;
  }
}

.container-narrow {
  max-width: 56rem;
  margin: 0 auto;
}
.card-elegant {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
}
.divider-ornament {
  display: flex;
  justify-content: center;
  padding: 0.25rem 1.5rem;
}

.btn-wedding {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}
.btn-wedding:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* Vine animations (from original snippet) */
@keyframes vine-grow {
  from {
    stroke-dashoffset: 800;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.12;
  }
}
.vine-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: vine-grow 3s ease-out forwards;
}
.vine-grow-left {
  animation: fadeIn 1.5s ease-out;
}
.vine-grow-right {
  animation: fadeIn 2s ease-out 0.5s both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opening fade */
#opening.is-done {
  pointer-events: none;
}
#opening.is-fading {
  animation: openingFadeOut 0.7s ease forwards;
}
@keyframes openingFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vine-path,
  .vine-grow-left,
  .vine-grow-right {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.12;
  }
  #opening.is-fading {
    animation: none;
    opacity: 0;
  }
}

/* Intro overlay look similar to reference: subtle darkening so white hint is readable */
#openingPoster {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
}
#opening video {
  position: absolute;
  inset: 0;
}

/* Permet d'afficher les \n comme des retours à la ligne */
[data-i18n] {
  white-space: pre-line;
}
