/* ================================================================
   SITE ENFANTS — style-enfants.css
   Design : lumineux, coloré, accessible, pré-ado friendly
   Inspiré de la page enfants existante, modernisé
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ---- VARIABLES ----------------------------------------------- */
:root {
  --bleu:       #3b8ed4;
  --bleu-l:     #5ba8e8;
  --bleu-dim:   rgba(59,142,212,0.12);
  --vert:       #4db87a;
  --vert-dim:   rgba(77,184,122,0.12);
  --or:         #f0a832;
  --or-dim:     rgba(240,168,50,0.12);
  --rose:       #e8607a;
  --rose-dim:   rgba(232,96,122,0.12);
  --violet:     #8b6bd4;
  --fond:       #f0f6fc;
  --fond2:      #e8f0f8;
  --fond-card:  #ffffff;
  --texte:      #1a2a3a;
  --texte2:     #4a6070;
  --texte3:     #8098a8;
  --bord:       rgba(59,142,212,0.18);
  --bord2:      rgba(0,0,0,0.07);
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --font-titre: 'Lora', Georgia, serif;
  --font-corps: 'Nunito', sans-serif;
}

/* ---- RESET --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--font-corps);
  background: var(--fond);
  color: var(--texte);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; text-decoration: none }

/* Fond décoratif doux */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(59,142,212,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(77,184,122,.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ---- NAVBAR -------------------------------------------------- */
.navbar-e {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 62px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(59,142,212,.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; gap: 1rem;
  box-shadow: 0 2px 16px rgba(59,142,212,.1);
}

.nav-logo-e {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-titre);
  font-size: 1.15rem; font-weight: 600;
  color: var(--bleu);
}
.nav-logo-e .logo-icone {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu), var(--vert));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.nav-links-e {
  display: flex; align-items: center; gap: .2rem; list-style: none;
}
.nav-links-e a {
  color: var(--texte2); font-size: .82rem; font-weight: 600;
  letter-spacing: .03em; padding: 6px 12px; border-radius: var(--r-sm);
  transition: all .2s; white-space: nowrap;
}
.nav-links-e a:hover  { color: var(--bleu); background: var(--bleu-dim) }
.nav-links-e a.active { color: var(--bleu); background: var(--bleu-dim) }

/* Bouton retour adultes */
.nav-btn-adultes {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #1a2a3a, #2a3a50) !important;
  color: white !important;
  border-radius: var(--r-sm);
  padding: 6px 13px !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  transition: all .2s; margin-left: .4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav-btn-adultes:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.nav-btn-adultes .arrow { font-size: .7rem; opacity: .7 }

/* Burger enfants */
.navbar-burger-e {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.navbar-burger-e span {
  display: block; width: 22px; height: 2px;
  background: var(--bleu); border-radius: 2px; transition: all .3s;
}

/* Menu mobile enfants */
.navbar-mobile-e {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0; z-index: 299;
  background: white;
  border-bottom: 2px solid rgba(59,142,212,.1);
  padding: .8rem 1.5rem 1.2rem;
  flex-direction: column; gap: .25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.navbar-mobile-e.open { display: flex }
.navbar-mobile-e a {
  color: var(--texte2); font-size: .92rem; font-weight: 600;
  padding: 10px 12px; border-radius: var(--r-sm); transition: all .2s;
}
.navbar-mobile-e a:hover, .navbar-mobile-e a.active {
  color: var(--bleu); background: var(--bleu-dim);
}
.navbar-mobile-e .nav-btn-adultes {
  margin-top: .5rem; justify-content: center;
}

/* ---- CONTENU ------------------------------------------------- */
.main-e { padding-top: 62px; position: relative; z-index: 1 }

/* ---- HÉRO ---------------------------------------------------- */
.hero-e {
  background: linear-gradient(135deg, #3b8ed4 0%, #2d7fc5 40%, #4db87a 100%);
  color: white; text-align: center;
  padding: 70px 2rem 3rem;
  position: relative; overflow: hidden;
}
.hero-e::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%);
  pointer-events: none;
}
.hero-e::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 40px;
  background: var(--fond);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-e-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto }

.hero-e h1 {
  font-family: var(--font-titre);
  font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 600; line-height: 1.15; margin-bottom: .6rem;
}
.hero-e h1 em { font-style: italic; color: rgba(255,255,255,.85) }
.hero-e p {
  font-size: 1rem; opacity: .88; font-weight: 400; line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-btns-e {
  display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center;
}

/* ---- SOUS-NAV SECTIONS --------------------------------------- */
.subnav-e {
  display: flex; justify-content: center; gap: 8px;
  background: white; padding: 12px 1.5rem;
  position: sticky; top: 62px; z-index: 50;
  box-shadow: 0 2px 12px rgba(59,142,212,.1);
  flex-wrap: wrap; border-bottom: 2px solid rgba(59,142,212,.08);
}
.subnav-e a {
  color: var(--texte2); font-weight: 700; font-size: .86rem;
  padding: 8px 18px; border-radius: 20px;
  transition: all .2s; border: 2px solid transparent;
}
.subnav-e a:hover { background: var(--bleu-dim); color: var(--bleu); border-color: var(--bleu) }

/* ---- SECTIONS ------------------------------------------------ */
.section-e {
  padding: 3rem 1.5rem 2rem;
  max-width: 900px; margin: 0 auto;
}

.section-e-titre {
  text-align: center; margin-bottom: 2rem;
  font-family: var(--font-titre);
  font-size: clamp(1.5rem,3vw,2.1rem);
  font-weight: 600; color: var(--texte);
}
.section-e-titre .icone { font-size: 1.6rem; margin-right: .4rem }

/* Bandeau coloré de section */
.section-band {
  background: linear-gradient(135deg, var(--bleu-dim), var(--vert-dim));
  border-radius: var(--r-lg); padding: .6rem 1.4rem;
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .76rem; font-weight: 700; color: var(--bleu);
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid rgba(59,142,212,.2);
}

/* ---- GRILLE VIDÉOS ------------------------------------------ */
.video-grid { display: grid; gap: 1.4rem }

/* ---- CARTE VIDÉO -------------------------------------------- */
.video-card {
  background: var(--fond-card);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease, box-shadow .25s;
  border: 2px solid transparent;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(59,142,212,.15);
  border-color: rgba(59,142,212,.2);
}
.video-card.visible { opacity: 1; transform: translateY(0) }

.video-card-header {
  padding: 1.1rem 1.4rem .8rem;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--bord2);
}
.video-card-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-l));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titre); font-size: 1.1rem; font-weight: 600; color: white;
}
.video-card-info { flex: 1; min-width: 0 }
.video-card-titre {
  font-size: .98rem; font-weight: 700; color: var(--texte);
  line-height: 1.3; margin-bottom: 2px;
}
.video-card-role {
  font-size: .74rem; color: var(--texte3); font-style: italic;
}

/* Wrapper vidéo */
.video-wrap-e {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-l));
  padding: 0;
}
.video-wrap-e video {
  width: 100%; height: 100%; object-fit: contain;
  background: #0a0f1a; display: block;
}

/* Boutons vitesse */
.speed-wrap-e {
  padding: .9rem 1.4rem;
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
}
.speed-lbl-e {
  font-size: .72rem; font-weight: 700; color: var(--texte3);
  text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0;
}
.speed-btns-e { display: flex; gap: .5rem; flex: 1; flex-wrap: wrap }
.speed-btn-e {
  flex: 1; min-width: 120px;
  background: var(--fond); color: var(--texte2);
  border: 2px solid var(--bord);
  font-weight: 700; font-family: var(--font-corps);
  cursor: pointer; border-radius: 12px;
  padding: 7px 10px; font-size: .82rem;
  transition: all .18s ease; text-align: center;
}
.speed-btn-e:hover { transform: scale(1.04); box-shadow: 0 3px 10px rgba(0,0,0,.1) }
.speed-btn-e:active { transform: scale(.97) }
.speed-btn-e.active {
  background: var(--bleu); color: white;
  border-color: var(--bleu);
  box-shadow: 0 3px 12px rgba(59,142,212,.3);
}
.speed-btn-e.active-slow {
  background: var(--vert); color: white;
  border-color: var(--vert);
  box-shadow: 0 3px 12px rgba(77,184,122,.3);
}

/* ---- BOUTONS GLOBAUX ---------------------------------------- */
.btn-e {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-corps); font-size: .85rem; font-weight: 700;
  padding: 10px 22px; border-radius: var(--r-md);
  cursor: pointer; transition: all .2s; border: none;
  white-space: nowrap; letter-spacing: .02em;
}
.btn-bleu { background: var(--bleu); color: white }
.btn-bleu:hover { background: var(--bleu-l); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(59,142,212,.3) }
.btn-vert { background: var(--vert); color: white }
.btn-vert:hover { background: #3da86a; transform: translateY(-1px) }
.btn-outline-e {
  background: transparent; color: var(--bleu);
  border: 2px solid var(--bleu);
}
.btn-outline-e:hover { background: var(--bleu-dim) }
.btn-white { background: white; color: var(--bleu); font-weight: 800 }
.btn-white:hover { background: rgba(255,255,255,.9); transform: translateY(-1px) }

/* ---- FOOTER -------------------------------------------------- */
.footer-e {
  background: linear-gradient(135deg, #1a2a3a, #2a3a50);
  color: rgba(255,255,255,.7);
  padding: 2rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; margin-top: 3rem;
}
.footer-logo-e {
  font-family: var(--font-titre); font-size: 1rem; font-weight: 600;
  color: white;
}
.footer-logo-e .icone { margin-right: .3rem }
.footer-txt-e { font-size: .72rem; line-height: 1.6; text-align: right }
.footer-lien-adultes {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12); color: white;
  padding: 6px 14px; border-radius: var(--r-sm);
  font-size: .78rem; font-weight: 700; transition: all .2s;
  border: 1px solid rgba(255,255,255,.2);
}
.footer-lien-adultes:hover { background: rgba(255,255,255,.2) }

/* ---- RESPONSIVE --------------------------------------------- */
@media (max-width: 680px) {
  .navbar-e { padding: 0 1rem }
  .nav-links-e { display: none }
  .navbar-burger-e { display: flex }
  .section-e { padding: 2rem 1rem 1.5rem }
  .speed-btns-e { flex-direction: column }
  .speed-btn-e { min-width: unset }
  .hero-e { padding: 60px 1.2rem 2.5rem }
  .footer-e { flex-direction: column; text-align: center }
  .footer-txt-e { text-align: center }
}

/* ---- ANIMATIONS --------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px) }
  to   { opacity: 1; transform: translateY(0) }
}
.anim-e { animation: fadeUp .6s ease both }
