/*
 * Refonte de la couverture Mariage — inspiration de la maquette fournie.
 * Le programme, le formulaire RSVP et la logique Firebase restent inchangés.
 */

body[data-event-id="mariage"] {
  background: linear-gradient(180deg, #fbf8f3 0%, #f7f0e9 100%);
}

body[data-event-id="mariage"] .subhero {
  min-height: 100svh;
  background: #f8f3ec !important;
  color: #302a25;
}

/* Photo éclaircie, séparée du contenu afin de garder tous les textes nets. */
body[data-event-id="mariage"] .subhero::before {
  inset: 0;
  z-index: 0;
  background:
    url("../../images/backgrounds/mariage-clair.jpg") center 45% / cover no-repeat;
  filter: saturate(.92) contrast(.96);
  transform: scale(1.006);
  pointer-events: none;
}

body[data-event-id="mariage"] .subhero::after {
  inset: 0;
  height: auto;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(255, 253, 249, .22) 0%,
      rgba(255, 253, 249, .04) 31%,
      rgba(255, 253, 249, .18) 70%,
      rgba(255, 253, 249, .70) 100%),
    radial-gradient(circle at 50% 54%, rgba(255,255,255,.14), rgba(255,255,255,0) 42%);
  filter: none;
  pointer-events: none;
}

body[data-event-id="mariage"] .hero-particles {
  display: block;
  z-index: 2;
  opacity: 1;
}

body[data-event-id="mariage"] .hero-particles span {
  width: 12px;
  height: 12px;
  opacity: .28;
  background: radial-gradient(circle,
    rgba(255,255,255,1) 0%,
    rgba(255,250,240,.96) 26%,
    rgba(247,227,190,.70) 52%,
    rgba(247,227,190,.24) 76%,
    rgba(255,255,255,0) 100%);
  box-shadow:
    0 0 18px rgba(255,255,255,.52),
    0 0 36px rgba(229,206,163,.34);
  filter: blur(.12px);
  animation-name: floatParticleMariage;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(1) {
  width: 6px;
  height: 6px;
  opacity: .27;
  animation-duration: 19s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(2) {
  width: 8px;
  height: 8px;
  opacity: .25;
  animation-duration: 17s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(3) {
  width: 12px;
  height: 12px;
  opacity: .22;
  animation-duration: 21s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(4) {
  width: 5px;
  height: 5px;
  opacity: .30;
  animation-duration: 16s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(5) {
  width: 9px;
  height: 9px;
  opacity: .24;
  animation-duration: 22s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(6) {
  width: 7px;
  height: 7px;
  opacity: .27;
  animation-duration: 18s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(7) {
  width: 11px;
  height: 11px;
  opacity: .20;
  animation-duration: 23s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(8) {
  width: 6px;
  height: 6px;
  opacity: .25;
  animation-duration: 20s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(9) {
  width: 7px;
  height: 7px;
  opacity: .24;
  animation-duration: 21s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(10) {
  width: 10px;
  height: 10px;
  opacity: .26;
  animation-duration: 18s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(11) {
  width: 6px;
  height: 6px;
  opacity: .25;
  animation-duration: 22s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(12) {
  width: 9px;
  height: 9px;
  opacity: .23;
  animation-duration: 20s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(13) {
  width: 11px;
  height: 11px;
  opacity: .21;
  animation-duration: 24s;
}

body[data-event-id="mariage"] .hero-particles span:nth-child(14) {
  width: 8px;
  height: 8px;
  opacity: .27;
  animation-duration: 19s;
}

@keyframes floatParticleMariage {
  0% {
    transform: translate3d(0, 0, 0) scale(.88);
    opacity: 0;
  }
  12% {
    opacity: .40;
  }
  55% {
    opacity: .22;
  }
  100% {
    transform: translate3d(0, -118vh, 0) scale(1.35);
    opacity: 0;
  }
}

body[data-event-id="mariage"] .subhero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

body[data-event-id="mariage"] .subhero-content {
  width: min(100%, 1180px);
  max-width: none;
  min-height: 100svh;
  padding: 0 20px;
}

body[data-event-id="mariage"] .hero-glass {
  width: 100%;
  max-width: 980px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: clamp(34px, 5vh, 58px) 16px clamp(28px, 4vh, 46px);
}

body[data-event-id="mariage"] .subhero-top {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

body[data-event-id="mariage"] .subhero-content .eyebrow {
  display: none;
}

body[data-event-id="mariage"] .subhero-content h1 {
  margin: 0;
  transform: none;
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-size: clamp(3.6rem, 4.6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  color: #b99a6c;
  text-shadow:
    0 2px 2px rgba(255,255,255,.95),
    0 8px 30px rgba(93,70,44,.14);
}

body[data-event-id="mariage"] .subhero-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(225px, 27vh, 292px);
}

body[data-event-id="mariage"] .mariage-verse {
  width: min(100%, 690px);
  max-width: 690px;
  margin: 0;
  padding: 14px 24px 12px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 253, 249, .26);
  box-shadow: none;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

body[data-event-id="mariage"] .mariage-verse blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.28rem, 1.65vw, 1.7rem);
  font-weight: 600;
  line-height: 1.38;
  color: #332e2a;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(255,255,255,1),
    0 3px 14px rgba(255,255,255,.96);
}

body[data-event-id="mariage"] .mariage-verse cite {
  margin-top: 7px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #5c5550;
  text-shadow: 0 1px 8px rgba(255,255,255,.95);
}

body[data-event-id="mariage"] .hero-under-verse {
  margin-top: 16px;
  gap: 12px;
}

body[data-event-id="mariage"] .hero-invite-line {
  gap: 12px;
}

body[data-event-id="mariage"] .hero-copy {
  width: auto;
  max-width: 760px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #403a35;
  font-size: clamp(.86rem, 1.05vw, 1rem);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 9px rgba(255,255,255,.98);
}

body[data-event-id="mariage"] .hero-date {
  margin: 0;
  min-height: 50px;
  padding: 11px 34px 10px;
  border: 1px solid rgba(183,151,103,.24);
  border-radius: 999px;
  background: rgba(255, 253, 249, .76);
  color: #b7925f;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow:
    0 9px 24px rgba(90,68,40,.08),
    inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-event-id="mariage"] .hero-mini-nav {
  gap: 10px;
}

body[data-event-id="mariage"] .hero-mini-nav a {
  min-width: 170px;
  padding: 11px 20px;
  border: 1px solid rgba(130,105,76,.16);
  background: rgba(255, 253, 249, .72);
  color: #4b4239;
  font-size: .86rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(75,58,37,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-event-id="mariage"] .hero-mini-nav a:first-child {
  border-color: rgba(185,151,101,.48);
  background: linear-gradient(135deg, #c8aa79, #b89561);
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(132,99,54,.18);
}

body[data-event-id="mariage"] .hero-mini-nav a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.92);
}

body[data-event-id="mariage"] .hero-mini-nav a:first-child:hover {
  background: linear-gradient(135deg, #d1b485, #bea06c);
}

body[data-event-id="mariage"] .hero-scroll-link {
  margin-top: 13px;
  gap: 8px;
  color: #50483f;
  font-size: .72rem;
  letter-spacing: .20em;
  text-shadow: 0 1px 8px rgba(255,255,255,.98);
}

body[data-event-id="mariage"] .hero-scroll-link::after {
  height: 28px;
  background: linear-gradient(to bottom, rgba(83,71,57,.55), rgba(83,71,57,0));
}

body[data-event-id="mariage"] .hero-soft-edge {
  height: 70px;
  background: linear-gradient(to bottom, rgba(248,243,239,0), #f8f3ef 90%);
}

/* Le contenu sous la couverture conserve sa structure, avec une transition plus douce. */
body[data-event-id="mariage"] main.section {
  margin-top: -12px;
  padding-top: 68px;
}

@media (max-height: 760px) and (min-width: 901px) {
  body[data-event-id="mariage"] .hero-glass {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  body[data-event-id="mariage"] .subhero-content h1 {
    font-size: clamp(3.4rem, 5vw, 4.8rem);
  }

  body[data-event-id="mariage"] .subhero-bottom {
    margin-top: clamp(170px, 22vh, 205px);
  }

  body[data-event-id="mariage"] .mariage-verse {
    padding-top: 9px;
    padding-bottom: 8px;
  }

  body[data-event-id="mariage"] .mariage-verse blockquote {
    font-size: 1.15rem;
  }

  body[data-event-id="mariage"] .hero-under-verse {
    margin-top: 9px;
    gap: 8px;
  }

  body[data-event-id="mariage"] .hero-date {
    min-height: 42px;
    padding: 8px 26px;
    font-size: .94rem;
  }

  body[data-event-id="mariage"] .hero-mini-nav a {
    padding: 9px 17px;
  }

  body[data-event-id="mariage"] .hero-scroll-link {
    margin-top: 7px;
  }
}


@media (max-width: 900px) {
  body[data-event-id="mariage"] .hero-particles span:nth-child(9),
  body[data-event-id="mariage"] .hero-particles span:nth-child(10),
  body[data-event-id="mariage"] .hero-particles span:nth-child(11),
  body[data-event-id="mariage"] .hero-particles span:nth-child(12),
  body[data-event-id="mariage"] .hero-particles span:nth-child(13),
  body[data-event-id="mariage"] .hero-particles span:nth-child(14) {
    display: none;
  }


  body[data-event-id="mariage"] .subhero::before {
    background-position: center 42%;
  }

  body[data-event-id="mariage"] .subhero-inner,
  body[data-event-id="mariage"] .subhero-content,
  body[data-event-id="mariage"] .hero-glass {
    min-height: 100svh;
  }

  body[data-event-id="mariage"] .hero-glass {
    justify-content: flex-start;
    padding: 34px 10px 28px;
  }

  body[data-event-id="mariage"] .subhero-content h1 {
    font-size: clamp(3rem, 12vw, 4.25rem);
  }

  body[data-event-id="mariage"] .subhero-bottom {
    margin-top: clamp(210px, 29vh, 280px);
  }

  body[data-event-id="mariage"] .mariage-verse {
    width: min(100%, 620px);
    padding: 12px 15px 10px;
    background: rgba(255,253,249,.42);
  }

  body[data-event-id="mariage"] .mariage-verse blockquote {
    font-size: clamp(1rem, 3.7vw, 1.28rem);
    line-height: 1.42;
  }

  body[data-event-id="mariage"] .hero-copy {
    font-size: .83rem;
  }

  body[data-event-id="mariage"] .hero-date {
    min-height: 44px;
    padding: 9px 20px;
    font-size: clamp(.78rem, 3vw, .96rem);
    letter-spacing: .11em;
  }

  body[data-event-id="mariage"] .hero-mini-nav a {
    min-width: 150px;
    padding: 10px 16px;
    font-size: .82rem;
  }
}

@media (max-width: 520px) {
  body[data-event-id="mariage"] .subhero::before {
    background-position: center 38%;
  }

  body[data-event-id="mariage"] .subhero-content {
    padding-inline: 10px;
  }

  body[data-event-id="mariage"] .hero-glass {
    padding-top: 26px;
  }

  body[data-event-id="mariage"] .subhero-bottom {
    margin-top: clamp(185px, 26vh, 235px);
  }

  body[data-event-id="mariage"] .mariage-verse blockquote {
    font-size: .98rem;
  }

  body[data-event-id="mariage"] .mariage-verse cite {
    font-size: .72rem;
  }

  body[data-event-id="mariage"] .hero-under-verse {
    width: 100%;
    margin-top: 10px;
    gap: 9px;
  }

  body[data-event-id="mariage"] .hero-invite-line,
  body[data-event-id="mariage"] .hero-mini-nav {
    width: 100%;
  }

  body[data-event-id="mariage"] .hero-date {
    width: min(100%, 355px);
  }

  body[data-event-id="mariage"] .hero-mini-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 7px;
  }

  body[data-event-id="mariage"] .hero-mini-nav a {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    padding: 10px 9px;
    font-size: .74rem;
  }

  body[data-event-id="mariage"] .hero-scroll-link {
    margin-top: 9px;
  }
}

@media (max-width: 370px), (max-height: 680px) and (max-width: 900px) {
  body[data-event-id="mariage"] .hero-glass {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  body[data-event-id="mariage"] .subhero-content h1 {
    font-size: 3.2rem;
  }

  body[data-event-id="mariage"] .subhero-bottom {
    margin-top: 155px;
  }

  body[data-event-id="mariage"] .mariage-verse {
    padding: 8px 10px 7px;
  }

  body[data-event-id="mariage"] .mariage-verse blockquote {
    font-size: .88rem;
    line-height: 1.34;
  }

  body[data-event-id="mariage"] .hero-copy {
    font-size: .74rem;
  }

  body[data-event-id="mariage"] .hero-date {
    min-height: 38px;
    padding-block: 7px;
    font-size: .73rem;
  }

  body[data-event-id="mariage"] .hero-mini-nav a {
    padding-block: 8px;
    font-size: .68rem;
  }

  body[data-event-id="mariage"] .hero-scroll-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-event-id="mariage"] .hero-mini-nav a,
  body[data-event-id="mariage"] .hero-scroll-link {
    transition: none;
  }
}
