/* =====================================================
   FÊTE DES MÈRES - Styles partagés
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
  --rose:        #d63384;
  --rose-light:  #f7c5de;
  --rose-pale:   #fff0f6;
  --violet:      #8b3fd9;
  --gold:        #e8950a;
  --cream:       #fdf6f9;
  --text:        #1e1829;   /* quasi-noir légèrement violet */
  --text-body:   #3d3650;   /* corps de texte */
  --text-soft:   #6b6480;   /* texte secondaire */
  --text-muted:  #9691a8;   /* sous-titres, captions */
  --white:       #ffffff;
  --shadow-rose: rgba(214, 51, 132, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Floating hearts background ──────────────────── */
.hearts-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hearts-bg span {
  position: absolute;
  bottom: -60px;
  animation: floatUp linear infinite;
  opacity: 0;
  user-select: none;
}

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);       opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(20deg); opacity: 0; }
}

/* ── Bouton retour ────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: white;
  color: var(--rose);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.14);
  transition: all .22s ease;
}

.back-btn::before {
  content: '←';
  font-size: 1rem;
}

.back-btn:hover,
.back-btn:active {
  background: var(--rose);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-rose);
}

/* ── Cards enfants (page accueil) ─────────────────── */
.children-grid {
  display: grid;
  gap: 16px;
  padding: 0 18px 40px;
  max-width: 500px;
  margin: 0 auto;
}

.child-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: all .25s ease;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Gradient propre à chaque enfant */
.child-card.maxime   { background: linear-gradient(135deg, #eef5ff 0%, #dceeff 100%); }
.child-card.matthieu { background: linear-gradient(135deg, #fff8ee 0%, #ffeece 100%); }
.child-card.chloe    { background: linear-gradient(135deg, #fff0f8 0%, #ffdcee 100%); }

/* Barre colorée à gauche */
.child-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  border-radius: 22px 0 0 22px;
}

.child-card.maxime::before   { background: linear-gradient(180deg, #4a9eff, #1a73e8); }
.child-card.matthieu::before { background: linear-gradient(180deg, #ffb740, #e67e22); }
.child-card.chloe::before    { background: linear-gradient(180deg, #f06bb7, #d63384); }

.child-card:hover,
.child-card:active {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.child-card.maxime:hover   { border-color: #4a9eff; }
.child-card.matthieu:hover { border-color: #ffb740; }
.child-card.chloe:hover    { border-color: #f06bb7; }

/* Avatar */
.child-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.child-card.maxime   .child-avatar { background: linear-gradient(135deg, #c8e0ff, #9dc8ff); }
.child-card.matthieu .child-avatar { background: linear-gradient(135deg, #ffe0a0, #ffc84a); }
.child-card.chloe    .child-avatar { background: linear-gradient(135deg, #ffc0e0, #ff8fc4); }

/* Infos */
.child-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.child-info p {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
}

/* Flèche */
.card-arrow {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-soft);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all .2s;
}

.child-card.maxime:hover   .card-arrow { background: #1a73e8; color: white; }
.child-card.matthieu:hover .card-arrow { background: #e67e22; color: white; }
.child-card.chloe:hover    .card-arrow { background: var(--rose); color: white; }

/* ── Hero des pages enfants ───────────────────────── */
.page-hero {
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 65px 24px 45px;
  position: relative;
  z-index: 1;
}

.page-hero .emoji-large {
  font-size: 4.2rem;
  margin-bottom: 14px;
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.page-hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  line-height: 1.2;
  margin-bottom: 6px;
}

.page-hero .subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

/* Badge âge (utilisé dans les pages enfants) */
.age-badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  border: 1.5px solid rgba(255,255,255,0.45);
  color: white;
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
}

/* ── Sections de contenu ──────────────────────────── */
.content-section {
  background: white;
  border-radius: 22px;
  padding: 26px 22px;
  margin: 0 16px 18px;
  box-shadow: 0 3px 18px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}

.content-section h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.65rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.content-section p {
  line-height: 1.85;
  font-size: 0.97rem;
  color: var(--text-body);
}

/* ── Liste des raisons ────────────────────────────── */
.reasons-list {
  list-style: none;
  margin-top: 8px;
}

.reasons-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f2eff6;
  font-size: 0.94rem;
  color: var(--text-body);
  font-weight: 600;
  line-height: 1.5;
}

.reasons-list li:last-child { border-bottom: none; }

.reasons-list li span.icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Boîte message ────────────────────────────────── */
.message-box {
  border-radius: 16px;
  padding: 24px 22px 20px;
  font-size: 1rem;
  line-height: 1.95;
  position: relative;
  border-left: 4px solid transparent;
}

.message-box::before {
  content: '\201C';
  position: absolute;
  top: -4px; left: 18px;
  font-family: 'Dancing Script', cursive;
  font-size: 4.5rem;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
}

/* ── Signature ────────────────────────────────────── */
.signature {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 2.1rem;
  margin: 10px 0 4px;
  position: relative;
  z-index: 1;
}

.signature-sub {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

/* ── Placeholder photo ────────────────────────────── */
.photo-placeholder {
  border-radius: 14px;
  padding: 30px 22px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
  border: 2px dashed;
}

.photo-placeholder .icon {
  font-size: 2.3rem;
  display: block;
  margin-bottom: 10px;
}

/* ── Footer de page ───────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 20px 20px 52px;
  position: relative;
  z-index: 1;
}
