/* ============================================================
   Template-08 — Brit Milah — Bébé Lévy
   Thème : Monsters & Cie · Bleu · Vert · Violet · Nuit
   Mobile-first, responsive desktop
   ============================================================ */

/* ── Variables ── */
:root {
  --sully:      #3BBFE0;
  --sully-dark: #1A8FB0;
  --mike:       #8BC34A;
  --mike-dark:  #558B2F;
  --boo-purple: #9B59B6;
  --boo-pink:   #F06292;
  --yellow:     #FFD166;
  --orange:     #FF8C42;
  --cream:      #FFFDF7;
  --navy:       #1C2A3A;
  --card-bg:    rgba(255, 255, 255, 0.92);
  --shadow:     0 8px 40px rgba(59, 191, 224, 0.18);

  --max-w:      960px;
  --ease:       cubic-bezier(.23, 1, .32, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  font-family: 'Nunito', sans-serif;
  color: var(--navy);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Fond animé (gradients) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10%   0%,  rgba(59, 191, 224, .18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%,  rgba(139, 195, 74, .15), transparent 60%),
    radial-gradient(ellipse 50% 60% at 50%  50%,  rgba(155, 89, 182, .08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Portes monstres (déco fond) ── */
.door-deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}
.door-deco.left  { left: -20px;  top: 30%;    transform: rotate(-8deg); }
.door-deco.right { right: -20px; bottom: 25%; transform: rotate(8deg);  }

/* ════════════════════════
   LAYOUT
════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* Desktop : on passe en layout plus large */
@media (min-width: 768px) {
  .page {
    max-width: var(--max-w);
    padding: 0 0 100px;
  }
}

/* ════════════════════════
   HERO
════════════════════════ */
.hero {
  background: linear-gradient(160deg, #1C2A3A 0%, #1a3a4a 60%, #0D2233 100%);
  padding: 36px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 64px 48px 72px;
    border-radius: 0 0 40px 40px;
  }
}

/* Étoiles */
.stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.2; transform: scale(1); }
  to   { opacity: 0.9; transform: scale(1.4); }
}

/* Textes hero */
.hero-eyebrow {
  font-family: 'Fredoka One', cursive;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sully);
  margin-bottom: 8px;
  position: relative;
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  line-height: 1;
  color: white;
  text-shadow: 0 4px 20px rgba(59, 191, 224, .5);
  margin-bottom: 4px;
  position: relative;
}
.hero-sub {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--yellow);
  letter-spacing: .06em;
  position: relative;
}

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
  .hero-sub   { font-size: 1.4rem; }
  .hero-eyebrow { font-size: 1.1rem; }
}

/* ── Rangée de monstres ── */
.monsters-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin: 20px 0 16px;
  position: relative;
}

@media (min-width: 768px) {
  .monsters-row { gap: 32px; margin: 32px 0 24px; }
  .monsters-row svg:first-child,
  .monsters-row svg:last-child { transform: scale(1.4); }
}

.monster { animation: bob 2.4s ease-in-out infinite; }
.monster:nth-child(2) { animation-delay: .5s; }
.monster:nth-child(3) { animation-delay: 1s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Photo bébé hero ── */
.baby-frame-hero {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid var(--sully);
  box-shadow: 0 0 0 4px rgba(59, 191, 224, .25), 0 12px 40px rgba(0, 0, 0, .4);
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a4a, #0d2233);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.baby-frame-hero img { width: 100%; height: 100%; object-fit: cover; }
.baby-frame-hero .placeholder-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .4));
}

@media (min-width: 768px) {
  .baby-frame-hero { width: 180px; height: 180px; }
}

/* Mazel Tov badge */
.mazel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: #7A4500;
  font-family: 'Fredoka One', cursive;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(255, 209, 102, .4);
  position: relative;
}

/* ════════════════════════
   SECTIONS & CARDS
════════════════════════ */
.section {
  padding: 32px 20px;
  position: relative;
}
.section + .section { padding-top: 0; }

@media (min-width: 768px) {
  .section { padding: 48px 40px; }
  .section + .section { padding-top: 0; }
}

/* ── Desktop grid ── */
@media (min-width: 768px) {
  /* Annonce + Détails côte à côte */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 48px 40px;
  }
  .two-col .section {
    padding: 0;
  }

  /* Galerie + Quote côte à côte */
  .two-col-gallery {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 0 40px 48px;
    align-items: start;
  }
  .two-col-gallery .section {
    padding: 0;
  }
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(59, 191, 224, .15);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sully), var(--mike), var(--boo-purple));
}

/* ── Annonce famille ── */
.announce-card { text-align: center; }
.announce-card .family {
  font-family: 'Fredoka One', cursive;
  font-size: 1.55rem;
  color: var(--sully-dark);
  margin-bottom: 4px;
}
.announce-card .verb { font-size: 1rem; color: #555; margin-bottom: 2px; }
.announce-card .announce-text {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
  margin: 12px 0;
}
.announce-card .baby-name-big {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--sully), var(--boo-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin: 8px 0;
}
.star-of-david { font-size: 1.4rem; opacity: .55; }

/* ── Titre de card ── */
.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--sully-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Détails événement ── */
.details-grid { display: grid; gap: 14px; }

.detail-item { display: flex; align-items: flex-start; gap: 14px; }
.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.detail-icon.blue   { background: rgba(59, 191, 224, .15);  color: var(--sully-dark); }
.detail-icon.green  { background: rgba(139, 195, 74, .15);  color: var(--mike-dark); }
.detail-icon.purple { background: rgba(155, 89, 182, .15);  color: var(--boo-purple); }
.detail-icon.yellow { background: rgba(255, 209, 102, .20); color: #8A5E00; }

.detail-text strong { display: block; font-weight: 800; font-size: 1rem; color: var(--navy); margin-bottom: 2px; }
.detail-text span   { font-size: .9rem; color: #666; }

/* ── Séparateur monstres ── */
.monster-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 20px;
  color: rgba(59, 191, 224, .4);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.monster-divider hr {
  flex: 1;
  border: none;
  border-top: 1.5px dashed rgba(59, 191, 224, .25);
}

@media (min-width: 768px) {
  .monster-divider { padding: 4px 40px; }
}

/* ── Galerie photos ── */
.gallery-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--sully-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photo-slot {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgba(59, 191, 224, .12), rgba(155, 89, 182, .10));
  border: 2px solid rgba(59, 191, 224, .2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.photo-slot.tall { grid-row: span 2; aspect-ratio: auto; min-height: 280px; }
.photo-slot img  { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .photo-emoji { font-size: 2.4rem; opacity: .45; }
.photo-slot .photo-label {
  font-size: .7rem;
  color: rgba(59, 191, 224, .6);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.photo-slot::after {
  content: '✦';
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: .7rem;
  color: var(--yellow);
  opacity: .6;
}

/* ── Carte citation ── */
.quote-card {
  background: linear-gradient(135deg, #1C2A3A, #1a3a4a);
  color: white;
  text-align: center;
  border: none;
}
.quote-card::before {
  background: linear-gradient(90deg, var(--sully), var(--boo-purple), var(--mike));
}
.quote-card .quote-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  line-height: 1.45;
  color: white;
  margin-bottom: 10px;
}
.quote-card .quote-sub { font-size: .85rem; color: rgba(255, 255, 255, .55); }

.quote-monsters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* ── No-RSVP banner ── */
.no-rsvp {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 209, 102, .15);
  border: 1.5px solid rgba(255, 209, 102, .35);
  border-radius: 16px;
  padding: 14px 16px;
}
.no-rsvp .rsvp-icon { font-size: 1.6rem; flex-shrink: 0; }
.no-rsvp .rsvp-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: #7A4500;
  margin-bottom: 2px;
}
.no-rsvp .rsvp-text span { font-size: .82rem; color: #8A6000; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 20px 20px 0;
}
.footer-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: rgba(59, 191, 224, .6);
  letter-spacing: .08em;
}
.footer-hearts { font-size: 1.3rem; margin: 8px 0 0; }

/* ════════════════════════
   BOUTON AUDIO (flottant)
════════════════════════ */
.audio-btn {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sully), var(--boo-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 20px rgba(59, 191, 224, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  border: 2px solid rgba(255, 255, 255, .25);
}
.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(59, 191, 224, .55);
}
.audio-btn:active { transform: scale(.95); }

/* Icône animée quand la musique joue */
.audio-btn.playing .audio-icon-on  { display: flex; }
.audio-btn.playing .audio-icon-off { display: none; }
.audio-btn.paused  .audio-icon-on  { display: none; }
.audio-btn.paused  .audio-icon-off { display: flex; }

.audio-icon-on,
.audio-icon-off {
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Pulse quand musique active */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(59, 191, 224, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(59, 191, 224, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(59, 191, 224, 0);   }
}
.audio-btn.playing { animation: pulse-ring 2.2s ease-out infinite; }

/* ════════════════════════
   ANIMATIONS GLOBALES
════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-6px) rotate(3deg); }
}
.float      { animation: float 3s ease-in-out infinite; }
.float-slow { animation: float 4.5s ease-in-out infinite; animation-delay: .8s; }

/* Reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
