/* ============================================
   ECOLE HUBLINBU - Nature & Enfantin 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Nature palette */
  --vert: #3b8a4a;
  --vert-fonce: #2a6e38;
  --vert-clair: #6dbf5c;
  --vert-pale: #dff2d0;
  --vert-fond: #f3fae9;
  --brun: #7a5c2e;
  --brun-clair: #c9a355;
  --brun-fond: #fdf5e2;
  --orange: #e8873a;
  --orange-fond: #fff1e0;
  --bleu-ciel: #4db8d1;
  --bleu-fond: #e4f5fa;
  --rouge-doux: #d95555;
  --jaune: #f2c94c;
  --jaune-fond: #fef9e7;
  --bg: #faf8f0;
  --bg-card: #ffffff;
  --text: #2c2c1e;
  --text-light: #5a5540;
  --text-muted: #8e8672;
  --border: #e6dfc8;
  --shadow-sm: 0 2px 10px rgba(60,50,20,0.07);
  --shadow-md: 0 6px 24px rgba(60,50,20,0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1100px;
  --nav-h: 74px;
}

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

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--vert);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
a:hover { color: var(--orange); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250, 248, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--vert-pale);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 20px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.navbar-brand img {
  width: 48px; height: 48px; object-fit: contain; border-radius: 0;
}
.navbar-brand img.logo-charleroi {
  width: 46px; height: 46px; margin-left: 10px;
}
.navbar-brand span {
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem; font-weight: 800;
  color: var(--vert-fonce);
  text-align: center;
}

.nav-links {
  display: flex; list-style: none; gap: 2px; align-items: center;
}
.nav-links a {
  padding: 7px 12px; border-radius: 24px;
  font-size: 0.84rem; font-weight: 700;
  color: var(--text-light); text-decoration: none;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--vert-pale); color: var(--vert-fonce);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border: none; background: none; z-index: 1001;
}
.hamburger span {
  width: 25px; height: 3px; background: var(--vert-fonce);
  border-radius: 3px; transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ============================================
   HERO (index)
   ============================================ */
.hero {
  margin-top: var(--nav-h);
  padding: 36px 24px 32px;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(109,191,92,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(242,201,76,0.12) 0%, transparent 50%),
    linear-gradient(170deg, #eaf5d3 0%, #f6f0d8 50%, #faf8f0 100%);
  position: relative; overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
}

.hero h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 2.6rem; font-weight: 800;
  color: var(--vert-fonce); line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.05rem; color: var(--text-light);
  margin-bottom: 24px; line-height: 1.85;
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid white;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-green { background: var(--vert); color: white; box-shadow: 0 4px 14px rgba(59,138,74,0.3); }
.btn-green:hover { background: var(--vert-fonce); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,138,74,0.4); }
.btn-outline { background: white; color: var(--vert-fonce); border: 2px solid var(--vert-pale); }
.btn-outline:hover { border-color: var(--vert); color: var(--vert); }

/* ============================================
   PAGE HEADER (sub-pages)
   ============================================ */
.page-header {
  margin-top: var(--nav-h);
  padding: 48px 24px 40px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(109,191,92,0.12) 0%, transparent 60%),
    linear-gradient(170deg, #eaf5d3 0%, #f6f0d8 50%, #faf8f0 100%);
  text-align: center;
}
.page-header h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 2.2rem; font-weight: 800;
  color: var(--vert-fonce); margin-bottom: 6px;
}
.page-header p { color: var(--text-muted); font-weight: 600; }

/* ============================================
   MAIN
   ============================================ */
.main { max-width: var(--max-w); margin: 0 auto; padding: 40px 24px 80px; }

/* Section title */
.stitle {
  font-family: 'Baloo 2', cursive;
  font-size: 1.55rem; font-weight: 800;
  color: var(--vert-fonce); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.stitle::before {
  content: ''; display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--jaune); flex-shrink: 0;
}

/* Sub-title colored */
.sub { font-size: 0.88rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.4px; margin: 18px 0 10px; }

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem; color: var(--vert-fonce); margin-bottom: 12px;
}

.card p { color: var(--text-light); margin-bottom: 10px; }
.card img { border-radius: var(--radius-sm); margin: 8px 0; }

.card ul { list-style: none; padding: 0; }
.card ul li {
  padding: 7px 0 7px 28px; position: relative;
  color: var(--text-light); font-weight: 500;
}
.card ul li::before {
  content: ''; position: absolute;
  left: 6px; top: 16px;
  width: 10px; height: 10px;
  background: var(--vert-clair); border-radius: 50%;
}

.card hr { border: none; height: 2px; background: var(--vert-pale); margin: 20px 0; border-radius: 1px; }

/* ============================================
   FEATURES (index)
   ============================================ */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin: 36px 0;
}

.feat {
  background: var(--bg-card);
  border-radius: var(--radius); padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--vert-pale); }
.feat::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
}
.feat:nth-child(1)::after { background: var(--vert-clair); }
.feat:nth-child(2)::after { background: var(--orange); }
.feat:nth-child(3)::after { background: var(--bleu-ciel); }

.feat-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.feat:nth-child(1) .feat-icon { background: var(--vert-pale); }
.feat:nth-child(2) .feat-icon { background: var(--orange-fond); }
.feat:nth-child(3) .feat-icon { background: var(--bleu-fond); }

.feat h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.feat p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Quote */
.quote {
  background: var(--brun-fond);
  border-radius: var(--radius); padding: 30px 32px;
  margin: 28px 0;
  border-left: 5px solid var(--brun-clair);
  text-align: center;
}
.quote p {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem; color: var(--brun); margin: 0;
}

/* ============================================
   CLASSES
   ============================================ */
.classes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.class-card {
  background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 2px solid var(--border);
  transition: all var(--transition);
}
.class-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--vert-clair); }
.class-card img { width: 100%; height: auto; object-fit: contain; border-radius: 0; }
.class-card h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.05rem; padding: 12px 18px; margin: 0;
  color: var(--vert-fonce); background: var(--vert-pale);
}

/* ============================================
   TEAM
   ============================================ */
.team-section { margin-bottom: 32px; }
.team-section .sub-text { color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.team-section img { border-radius: var(--radius-sm); box-shadow: none; border: none; }

/* ============================================
   SCHEDULE
   ============================================ */
.sched {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 2px solid var(--border); margin-bottom: 20px;
}
.sched-head {
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert));
  color: white; padding: 16px 24px;
}
.sched-head h2 { font-family: 'Baloo 2', cursive; font-size: 1.2rem; color: white; margin: 0; }
.sched-body { padding: 20px 24px; }

.sched-row {
  display: flex; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.sched-row:last-child { border-bottom: none; }
.sched-time { font-weight: 700; color: var(--vert-fonce); min-width: 150px; }
.sched-label { color: var(--text-light); }

/* Calendar */
.cal-list { list-style: none; padding: 0; }
.cal-list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.cal-list li:last-child { border-bottom: none; }
.cal-date { font-weight: 700; color: var(--orange); min-width: 220px; font-size: 0.9rem; }
.cal-event { color: var(--text-light); font-weight: 500; }

/* ============================================
   LINKS
   ============================================ */
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.link-card {
  display: block; background: var(--bg-card);
  border-radius: var(--radius-sm); padding: 18px 22px;
  box-shadow: var(--shadow-sm); border: 2px solid var(--border);
  transition: all var(--transition); text-decoration: none;
}
.link-card:hover { box-shadow: var(--shadow-md); border-color: var(--vert-clair); transform: translateY(-2px); }
.link-card h3 { font-family: 'Baloo 2', cursive; font-size: 1rem; color: var(--vert-fonce); margin-bottom: 3px; }
.link-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-info {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); border: 2px solid var(--border);
}
.contact-info h2 { font-family: 'Baloo 2', cursive; color: var(--vert-fonce); margin-bottom: 18px; }
.contact-det { margin-bottom: 14px; font-size: 0.95rem; color: var(--text-light); }
.contact-det strong { color: var(--text); display: block; margin-bottom: 2px; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 3px solid var(--vert-pale); }
.contact-map iframe { width: 100%; height: 400px; border: none; display: block; }

/* ============================================
   MEMBERS
   ============================================ */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.member-item { padding: 6px 0; font-size: 0.95rem; color: var(--text-light); font-weight: 600; }
.member-role { font-weight: 800; color: var(--orange); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 16px 0; }
.price-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); border: 2px solid var(--border);
  text-align: center; transition: all var(--transition);
}
.price-card:hover { border-color: var(--vert-clair); box-shadow: var(--shadow-md); }
.price-card h3 { font-family: 'Baloo 2', cursive; font-size: 1.15rem; color: var(--vert-fonce); margin-bottom: 14px; }
.price-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.price-row:last-child { border-bottom: none; }
.price-val { font-weight: 800; color: var(--vert); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--vert-fonce);
  color: rgba(255,255,255,0.82);
  padding: 44px 24px 20px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--vert-clair) 0px, var(--vert-clair) 20px,
    var(--jaune) 20px, var(--jaune) 40px,
    var(--orange) 40px, var(--orange) 60px,
    var(--bleu-ciel) 60px, var(--bleu-ciel) 80px
  );
}

.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 36px; margin-bottom: 32px;
}
.footer h3 { font-family: 'Baloo 2', cursive; color: white; font-size: 1.15rem; margin-bottom: 10px; }
.footer p, .footer li { font-size: 0.9rem; line-height: 1.7; }
.footer ul { list-style: none; }
.footer a { color: rgba(255,255,255,0.8); font-weight: 600; }
.footer a:hover { color: var(--jaune); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center; font-size: 0.82rem; opacity: 0.7;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-btns { justify-content: center; }
  .hero-img { max-width: 480px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 3px solid var(--vert-pale);
    box-shadow: var(--shadow-md);
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { list-style: none; }

  .nav-links a {
    display: block;
    font-family: 'Baloo 2', cursive;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 16px;
    color: var(--text-light);
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--vert-pale);
    color: var(--vert-fonce);
    border-color: var(--vert-clair);
  }
}

@media (max-width: 600px) {
  .navbar-brand span { font-size: 1.1rem; }
  .navbar-brand img { width: 38px; height: 38px; }

  .hero { padding: 36px 16px 32px; }
  .hero h1 { font-size: 1.65rem; }
  .hero-img { max-width: 85% !important; }
  .main { padding: 28px 16px 60px; }
  .card { padding: 22px 18px; }
  .page-header h1 { font-size: 1.7rem; }
  .classes-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .sched-time { min-width: 115px; font-size: 0.85rem; }
  .cal-list li { flex-direction: column; gap: 3px; }
  .cal-date { min-width: auto; }
}
