/* ============================================================
   Template-09 — La Coupe de Noam
   Theme : PAW Patrol — Bleu Marine · Rouge · Jaune
   Mobile-first, single-page invitation
   ============================================================ */

/* ── Palette PAW Patrol ── */
:root {
  --paw-blue:      #003087;
  --paw-blue-mid:  #1B5FCF;
  --paw-blue-light:#4A90D9;
  --paw-red:       #E31837;
  --paw-red-dark:  #B5122C;
  --paw-yellow:    #FFD700;
  --paw-orange:    #FF8C1A;
  --paw-green:     #1F7A3B;
  --cream:         #FFF9F2;
  --navy:          #0A1628;
  --card-bg:       rgba(255, 253, 248, 0.93);
  --shadow:        0 8px 40px rgba(0, 48, 135, 0.14);
  --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; }

/* ── Fond radial (ambiance PAW bleue-rouge) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0%    0%,  rgba(0, 48, 135, .14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(227, 24, 55, .09), transparent 60%),
    radial-gradient(ellipse 50% 55% at 50%  50%,  rgba(255, 215, 0, .05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Grandes pattes deco fond (fixees) ── */
.bg-paw {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: .055;
  color: var(--paw-blue);
}
.bg-paw--left  { left: -45px;  top: 22%;    transform: rotate(-18deg); width: 130px; }
.bg-paw--right { right: -45px; bottom: 18%; transform: rotate(22deg);  width: 130px; }

/* ── Layout page ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 64px;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #001033 0%, #003087 55%, #000E28 100%);
  padding: 32px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Paw prints flottantes (generees en JS) */
.paw-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.paw-float {
  position: absolute;
  color: var(--paw-yellow);
  animation: floatPaw var(--dur, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}
@keyframes floatPaw {
  from { transform: translateY(0)    rotate(-12deg); opacity: .12; }
  to   { transform: translateY(-12px) rotate(12deg);  opacity: .28; }
}

/* Eyebrow */
.hero-eyebrow {
  font-family: 'Fredoka One', cursive;
  font-size: .88rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--paw-yellow);
  margin-bottom: 14px;
  position: relative;
  opacity: .9;
}

/* Rangee personnages */
.characters-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin: 14px 0 18px;
  position: relative;
}

/* Pup bobbing */
.pup { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Frame photo Noam */
.noam-frame {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 5px solid var(--paw-yellow);
  box-shadow:
    0 0 0 3px rgba(227, 24, 55, .45),
    0 0 0 7px rgba(255, 215, 0, .14),
    0 16px 48px rgba(0, 0, 0, .55);
  overflow: hidden;
  background: linear-gradient(135deg, #001033, #003087);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.noam-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.noam-frame .placeholder-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
}

/* Hero title */
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  line-height: 1.05;
  color: white;
  text-shadow: 0 4px 24px rgba(0, 48, 135, .7), 0 0 40px rgba(255, 215, 0, .2);
  margin-bottom: 8px;
  position: relative;
}

/* Hero sub */
.hero-sub {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--paw-yellow);
  letter-spacing: .04em;
  margin-bottom: 18px;
  position: relative;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paw-red);
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: .9rem;
  padding: 7px 20px;
  border-radius: 999px;
  position: relative;
  box-shadow: 0 4px 18px rgba(227, 24, 55, .45);
  letter-spacing: .04em;
}

/* ══════════════════════════════
   SECTIONS & CARDS
══════════════════════════════ */
.section {
  padding: 28px 20px;
  position: relative;
}
.section + .section { padding-top: 0; }

.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(0, 48, 135, .11);
  position: relative;
  overflow: hidden;
}
/* Bandeau accent couleur PAW */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--paw-blue), var(--paw-red), var(--paw-yellow));
}

/* ── Carte annonce ── */
.announce-card { text-align: center; }
.announce-card .announce-icon { font-size: 1.8rem; }
.announce-card .verb {
  font-size: .97rem;
  color: #555;
  margin-bottom: 2px;
}
.announce-card .family {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--paw-blue);
  margin-bottom: 8px;
}
.announce-card .announce-text {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 4px;
}
.announce-card .event-name-big {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--paw-blue), var(--paw-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.35;
  margin: 10px 0 4px;
}

/* ── Titre carte ── */
.card-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--paw-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Grille details ── */
.details-grid { display: grid; gap: 15px; }

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.detail-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.detail-icon.blue   { background: rgba(0, 48, 135, .10);  color: var(--paw-blue); }
.detail-icon.red    { background: rgba(227, 24, 55, .10);  color: var(--paw-red-dark); }
.detail-icon.yellow { background: rgba(255, 215, 0, .20);  color: #7A5800; }
.detail-icon.green  { background: rgba(31, 122, 59, .12);  color: var(--paw-green); }

.detail-text strong {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.detail-text span { font-size: .88rem; color: #666; }

/* ── Separateur pattes ── */
.paw-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 20px;
  color: rgba(0, 48, 135, .35);
  font-size: .95rem;
}
.paw-divider hr {
  flex: 1;
  border: none;
  border-top: 1.5px dashed rgba(0, 48, 135, .2);
}

/* ── Galerie photos ── */
.gallery-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  color: var(--paw-blue);
  margin-bottom: 14px;
  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(0, 48, 135, .09), rgba(227, 24, 55, .07));
  border: 2px solid rgba(0, 48, 135, .15);
  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: .4; }
.photo-slot .photo-label {
  font-size: .7rem;
  color: rgba(0, 48, 135, .5);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.photo-slot::after {
  content: '\1F43E';
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: .75rem;
  opacity: .35;
}

/* ── Carte message ── */
.quote-card {
  background: linear-gradient(150deg, #001033 0%, #003087 100%);
  color: white;
  text-align: center;
  border: none;
}
.quote-card::before {
  background: linear-gradient(90deg, var(--paw-yellow), var(--paw-red), var(--paw-blue-mid));
}
.quote-pups {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}
.quote-card .quote-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  line-height: 1.5;
  color: white;
  margin-bottom: 12px;
}
.quote-card .quote-sub {
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
}

/* ── Bandeau info / no-rsvp ── */
.no-rsvp {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 215, 0, .13);
  border: 1.5px solid rgba(255, 215, 0, .32);
  border-radius: 18px;
  padding: 16px 18px;
}
.no-rsvp .rsvp-icon { font-size: 1.8rem; flex-shrink: 0; }
.no-rsvp .rsvp-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: #5A3A00;
  margin-bottom: 3px;
}
.no-rsvp .rsvp-text span { font-size: .83rem; color: #6A4A00; line-height: 1.5; }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 20px 20px 0;
}
.footer-logo {
  font-family: 'Fredoka One', cursive;
  font-size: .92rem;
  color: rgba(0, 48, 135, .55);
  letter-spacing: .06em;
  line-height: 1.4;
}
.footer-hearts { font-size: 1.4rem; margin: 8px 0 4px; }
.footer-venue {
  font-size: .8rem;
  color: #aaa;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.footer-credit {
  font-size: .75rem;
  color: #bbb;
  margin-top: 4px;
}
.footer-credit a {
  color: var(--paw-blue);
  font-weight: 700;
}

/* ══════════════════════════════
   ANIMATIONS GLOBALES
══════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-7px) 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(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════
   TABLETTE / DESKTOP
══════════════════════════════ */
@media (min-width: 600px) {
  .page { max-width: 480px; }

  .hero { padding: 40px 32px 56px; }
  .hero-title { font-size: 3.5rem; }
  .hero-sub   { font-size: 1.2rem; }
  .hero-badge { font-size: 1rem; padding: 8px 24px; }

  .noam-frame { width: 156px; height: 156px; }

  .announce-card .family       { font-size: 1.65rem; }
  .announce-card .event-name-big { font-size: 1.65rem; }

  .card-title { font-size: 1.2rem; }
}

@media (min-width: 900px) {
  .page { max-width: 540px; }

  .hero-title { font-size: 4rem; }

  .details-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .photo-grid { gap: 12px; }
  .photo-slot { border-radius: 22px; }

  .quote-card .quote-text { font-size: 1.35rem; }
}
