/* Mission Premier Noël — styles communs (bordeaux, rouge, vert sapin, ivoire, or champagne) */
:root {
  --bordeaux: #4a0b14;
  --rouge: #a3182b;
  --vert: #1d4a33;
  --ivoire: #fbf3e6;
  --or: #dcc08a;
  --texte: #fbf3e6;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif; color: var(--texte); overflow-x: hidden;
  background: #b3121f url("../img/hero/fond_desktop.webp") center / cover fixed no-repeat;
}
body::before {               /* voile pour la lisibilité */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(90, 0, 14, 0) 40%, rgba(70, 0, 12, .35) 100%);
}
@media (max-width: 760px) { body { background-image: url("../img/hero/fond_mobile.webp"); } }
#neige { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

.surtitre { margin: 0 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--or); }
.titre-script {
  margin: 0; font-family: "Great Vibes", cursive; font-weight: 400; line-height: .95;
  background: linear-gradient(180deg, #fff6e0 0%, #f1d9a6 45%, #c9a265 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}
.serif { font-family: "Cormorant Garamond", Georgia, serif; }

.bouton {
  display: inline-flex; align-items: center; gap: .6em; text-decoration: none; cursor: pointer; border: 0;
  font: inherit; font-weight: 700; font-size: 1.08rem; color: #3a0a10; padding: 1em 1.7em; border-radius: 999px;
  background: linear-gradient(180deg, #f7e6bf, #d8b876 60%, #c39b58);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .2s, box-shadow .2s;
}
.bouton:hover, .bouton:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .4), 0 0 0 3px rgba(247, 230, 191, .4); outline: none; }
.bouton:disabled { opacity: .6; cursor: wait; transform: none; }
.bouton.discret { color: var(--ivoire); background: transparent; box-shadow: inset 0 0 0 2px rgba(251, 243, 230, .6); }

/* Les deux bébés, présents sur chaque page (coin bas-gauche) */
.bebes-coin { position: fixed; left: clamp(4px, 1.5vw, 24px); bottom: 0; z-index: 30; display: flex; align-items: flex-end; pointer-events: none; }
.bebes-coin .bebe { width: clamp(84px, 11vw, 170px); margin-right: -2.4vw; }
.bebes-coin .bebe:first-child { width: clamp(74px, 9.5vw, 150px); }
.bebe { position: relative; aspect-ratio: 1; animation: sautille 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.bebe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease;
  filter: drop-shadow(0 10px 12px rgba(20, 2, 6, .45)); }
.bebe img.visible { opacity: 1; }
@keyframes sautille { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-5%) rotate(-3deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-3%) rotate(3deg); } }

/* Personnages qui dansent (calques entiers, animations douces) */
.danse { animation: danse 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes danse {
  0%, 100% { transform: translateY(0) rotate(0); } 15% { transform: translateY(-6%) rotate(-5deg); } 30% { transform: translateY(0) rotate(0) scaleY(.96); }
  45% { transform: translateY(-4%) rotate(5deg); } 60% { transform: translateX(-4%) rotate(-3deg); } 75% { transform: translateX(4%) rotate(3deg); }
}

dialog { border: 0; border-radius: 22px; padding: 26px 24px 22px; width: min(440px, 92vw); text-align: center; color: #3a0a10;
  background: linear-gradient(180deg, #fffaf1, #f6ead4); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
dialog::backdrop { background: rgba(28, 3, 8, .72); backdrop-filter: blur(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Les bébés de part et d'autre du titre (pages intérieures) */
.entete-bebes { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 2vw, 28px); }
.entete-bebes .bebe { width: clamp(78px, 11vw, 150px); flex: none; }
.entete-bebes .bebe:first-child { width: clamp(70px, 9.5vw, 132px); }

/* Lettrage des prénoms : majuscule féerique haute, suite en calligraphie droite */
.nom-feerique { font-family: "Great Vibes", cursive; white-space: nowrap; }
.nom-feerique .maj { font-family: "Princess Sofia", cursive; font-size: 1.45em; line-height: 0; position: relative; top: -.12em; margin-right: .02em; }

[hidden] { display: none !important; }
