/* ===========================================================
   HACKER SCHOOL — Design tokens (kid & parent friendly, white)
   =========================================================== */
:root{
  --white:      #FFFFFF;
  --bg-soft:    #FAF9F4;   /* footer / alt section, barely-off-white */
  --ink:        #1F2147;  /* headline colour, soft navy not black */
  --text:       #2B2D42;
  --text-soft:  #6A6C8A;
  --line:       #ECE8F3;

  --blue:       #3A7BFF;  --blue-soft:#E8F0FF;
  --orange:     #FF6A3D;  --orange-soft:#FFE9DC;
  --green:      #1FAE6B;  --green-soft:#E1F7EA;
  --yellow:     #FFC93C;  --yellow-soft:#FFF6DC;
  --pink:       #F2598B;  --pink-soft:#FDE8F1;
  --purple:     #8C5CF2;  --purple-soft:#F0E9FD;

  --navy-panel: #182159;  /* the one bold dark moment on the page */
  --navy-panel-2:#222C70;

  --radius-xl:  28px;
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;

  --font-display: 'Fredoka', 'Baloo 2', sans-serif;
  --font-body:    'Nunito', 'Segoe UI', sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--text);
  font-family:var(--font-body);
  font-size:18px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  color:var(--ink);
  margin:0;
  line-height:1.15;
}
h1{font-size:clamp(2.5rem,5vw,4.1rem);}
h2{font-size:clamp(1.9rem,3.4vw,2.7rem);}
h3{font-size:1.35rem;}

.eyebrow{
  font-family:var(--font-display);
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.02em;
  color:var(--orange);
  display:inline-flex;align-items:center;gap:.5em;
  margin:0 0 14px;
}
.eyebrow .ico{font-size:1.1em;}

p{margin:0 0 1em;color:var(--text-soft);font-size:1.05rem;}
.lede{font-size:1.22rem;color:var(--text);}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.55em;
  font-family:var(--font-display);font-weight:600;font-size:1.02rem;
  padding:16px 30px;border-radius:999px;border:2.5px solid transparent;
  cursor:pointer;transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--orange);color:#fff;box-shadow:0 8px 22px -8px rgba(255,106,61,.7);}
.btn-primary:hover{box-shadow:0 12px 26px -8px rgba(255,106,61,.85);}
.btn-navy{background:var(--navy-panel);color:#fff;}
.btn-outline{background:transparent;border-color:var(--ink);color:var(--ink);}
.btn-outline:hover{border-color:var(--orange);color:var(--orange);}
.btn-outline-light{background:transparent;border-color:rgba(255,255,255,.4);color:#fff;}
.btn-outline-light:hover{border-color:var(--yellow);color:var(--yellow);}
.btn-sm{padding:11px 20px;font-size:.88rem;}
.link-arrow{font-family:var(--font-display);font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:6px;}
.link-arrow:hover{color:var(--orange);}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:84px;gap:18px;}
.brand{display:flex;align-items:center;gap:10px;}
.brand img{height:46px;width:46px;object-fit:contain;}
.brand-name{font-family:var(--font-display);font-weight:600;font-size:1.2rem;color:var(--ink);}
.brand-name span{color:var(--orange);}
.nav-links{display:flex;align-items:center;gap:30px;}
.nav-links a{font-size:1rem;font-weight:700;color:var(--text);}
.nav-links a:hover{color:var(--orange);}
.nav-cta{display:flex;align-items:center;gap:12px;}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;padding:64px 0 56px;background:var(--white);}
.hero::before{
  content:"";position:absolute;top:-120px;right:-160px;width:480px;height:480px;border-radius:50%;
  background:var(--yellow-soft);z-index:0;
}
.hero::after{
  content:"";position:absolute;bottom:-160px;left:-140px;width:380px;height:380px;border-radius:50%;
  background:var(--blue-soft);z-index:0;
}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;position:relative;z-index:1;}
.hero h1{margin-bottom:22px;}
.hero h1 .hl-orange{color:var(--orange);}
.hero h1 .hl-green{color:var(--green);}
.hero-ctas{display:flex;gap:16px;flex-wrap:wrap;margin-top:30px;}
.hero-art{position:relative;display:flex;justify-content:center;}
.hero-art img{width:300px;animation:float 4.5s ease-in-out infinite;}
.hero-art .blob{
  position:absolute;width:340px;height:340px;border-radius:50%;
  background:var(--orange-soft);top:50%;left:50%;transform:translate(-50%,-50%);z-index:-1;
}
@keyframes float{0%,100%{transform:translateY(0);}50%{transform:translateY(-14px);}}

/* stat strip */
.stat-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
  margin-top:54px;position:relative;z-index:1;
}
.stat-chip{
  background:var(--white);border:1.5px solid var(--line);border-radius:var(--radius);
  padding:20px 18px;text-align:center;
}
.stat-chip .num{font-family:var(--font-display);font-size:1.7rem;color:var(--ink);display:block;}
.stat-chip .lbl{font-size:.86rem;color:var(--text-soft);font-weight:700;}

/* ---------- Section shells ---------- */
section{padding:90px 0;}
.section-soft{background:var(--bg-soft);}
.section-head{max-width:680px;margin-bottom:46px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}

/* ---------- Module / colour-block cards ---------- */
.modules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.module-card{
  border-radius:var(--radius-xl);
  padding:30px 26px;
  display:flex;flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease;
}
.module-card:hover{transform:translateY(-6px);box-shadow:0 22px 34px -18px rgba(31,33,71,.22);}
.module-card .emoji{font-size:2.4rem;margin-bottom:14px;}
.module-card .tag{
  align-self:flex-start;font-family:var(--font-display);font-weight:600;font-size:.78rem;
  background:rgba(255,255,255,.7);color:var(--ink);padding:5px 12px;border-radius:999px;margin-bottom:16px;
}
.module-card h3{font-size:1.25rem;margin-bottom:10px;}
.module-card p{font-size:.95rem;color:var(--ink);opacity:.78;margin-bottom:18px;}
.module-card .perks{list-style:none;margin:0 0 16px;padding:0;}
.module-card .perks li{font-size:.86rem;color:var(--ink);opacity:.85;padding-left:20px;position:relative;margin-bottom:7px;}
.module-card .perks li::before{content:"★";position:absolute;left:0;font-size:.74rem;}
.module-card .more{margin-top:auto;}
.block-blue{background:var(--blue-soft);}
.block-orange{background:var(--orange-soft);}
.block-green{background:var(--green-soft);}
.block-pink{background:var(--pink-soft);}
.block-yellow{background:var(--yellow-soft);}
.block-purple{background:var(--purple-soft);}

/* ---------- CTA mini strip ---------- */
.mini-cta{
  background:var(--purple-soft);border-radius:var(--radius-xl);
  padding:38px 40px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.mini-cta h3{font-size:1.4rem;margin-bottom:6px;}
.mini-cta p{margin:0;}

/* ---------- Age path (dark panel — the one bold moment) ---------- */
.age-panel{background:var(--navy-panel);color:#fff;position:relative;overflow:hidden;}
.age-panel::before{
  content:"";position:absolute;top:-100px;right:-100px;width:320px;height:320px;border-radius:50%;
  background:var(--navy-panel-2);
}
.age-panel .section-head h2{color:#fff;}
.age-panel .eyebrow{color:var(--yellow);}
.age-panel p{color:#C7CBEE;}
.age-tabs{position:relative;z-index:1;}
.age-tabs input{display:none;}
.tab-labels{display:flex;gap:12px;margin-bottom:30px;flex-wrap:wrap;}
.tab-labels label{
  font-family:var(--font-display);font-weight:600;font-size:1rem;
  padding:12px 22px;border-radius:999px;border:2px solid rgba(255,255,255,.25);
  cursor:pointer;color:#C7CBEE;transition:all .15s ease;
}
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"],
#tab3:checked ~ .tab-labels label[for="tab3"]{
  background:var(--yellow);color:var(--navy-panel);border-color:var(--yellow);
}
.tab-panels{position:relative;z-index:1;}
.tab-panels .panel{display:none;}
#tab1:checked ~ .tab-panels .p1{display:block;}
#tab2:checked ~ .tab-panels .p2{display:block;}
#tab3:checked ~ .tab-panels .p3{display:block;}
.tab-panel-inner{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-xl);padding:34px;display:grid;grid-template-columns:1fr 1fr;gap:30px;
}
.tab-panel-inner h4{color:#fff;font-family:var(--font-display);font-size:1.2rem;margin-bottom:12px;}
.tab-panel-inner p{color:#C7CBEE;}
.feature-pills{display:flex;flex-wrap:wrap;gap:10px;}
.feature-pill{
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  border-radius:999px;padding:9px 16px;font-size:.86rem;font-weight:700;color:#fff;
}

/* ---------- Steps ---------- */
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.step-card{position:relative;padding:32px 26px 26px;border-radius:var(--radius-xl);border:1.5px solid var(--line);}
.step-card .step-no{
  position:absolute;top:-18px;left:26px;
  width:40px;height:40px;border-radius:50%;background:var(--orange);color:#fff;
  display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700;
}
.step-card h4{font-size:1.1rem;margin:14px 0 10px;}
.step-card p{font-size:.94rem;margin:0;}

/* ---------- Principles ---------- */
.principles-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.principle-card{padding:6px 4px;}
.principle-card .ico{
  width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;margin-bottom:16px;
}
.principle-card h4{font-size:1.05rem;margin-bottom:8px;}
.principle-card p{font-size:.92rem;margin:0;}

/* ---------- Learning path (two col) ---------- */
.path-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:center;}
.path-art{display:flex;justify-content:center;}
.path-art img{width:260px;}
.path-list{list-style:none;margin:0;padding:0;}
.path-list li{
  display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);
}
.path-list li:last-child{border-bottom:none;}
.path-list .pico{
  width:44px;height:44px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;
}
.path-list h4{font-size:1.05rem;margin-bottom:4px;}
.path-list p{font-size:.92rem;margin:0;}

/* ---------- Takeaway strip ---------- */
.takeaway-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.takeaway-card{
  border-radius:var(--radius);padding:24px 20px;text-align:center;border:1.5px dashed var(--line);
}
.takeaway-card .emoji{font-size:1.9rem;margin-bottom:10px;}
.takeaway-card p{margin:0;font-size:.92rem;font-weight:700;color:var(--ink);}

/* ---------- Team ---------- */
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.team-card{
  background:var(--white);border:1.5px solid var(--line);border-radius:var(--radius-xl);
  padding:30px 26px;text-align:center;
}
.team-card .avatar{
  width:96px;height:96px;border-radius:50%;margin:0 auto 18px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-weight:700;font-size:1.4rem;color:#fff;
}
.team-card h4{font-size:1.1rem;margin-bottom:6px;}
.team-card .role{
  display:inline-block;font-family:var(--font-display);font-weight:600;font-size:.78rem;
  background:var(--bg-soft);color:var(--text-soft);padding:5px 14px;border-radius:999px;margin-bottom:12px;
}
.team-card p{font-size:.92rem;margin:0;}

/* ---------- Final CTA ---------- */
.final-cta{
  background:var(--orange);border-radius:var(--radius-xl);
  padding:54px 48px;color:#fff;text-align:center;
}
.final-cta h2{color:#fff;margin-bottom:14px;}
.final-cta p{color:rgba(255,255,255,.92);max-width:560px;margin:0 auto 30px;}
.final-cta .ctas{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}
.final-cta .price-recap{margin-top:24px;font-family:var(--font-display);font-weight:600;color:#fff;opacity:.92;}

/* ---------- FAQ ---------- */
.faq-list{max-width:760px;margin:0 auto;}
.faq-item{
  border:1.5px solid var(--line);border-radius:var(--radius);margin-bottom:14px;overflow:hidden;background:var(--white);
}
.faq-item summary{
  list-style:none;cursor:pointer;padding:20px 24px;font-family:var(--font-display);font-weight:600;
  font-size:1.05rem;display:flex;align-items:center;justify-content:space-between;color:var(--ink);
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary .plus{color:var(--orange);font-size:1.3rem;transition:transform .15s ease;}
.faq-item[open] summary .plus{transform:rotate(45deg);}
.faq-item .faq-a{padding:0 24px 22px;}
.faq-item .faq-a p{margin:0;}

/* ---------- Footer ---------- */
.site-footer{background:var(--bg-soft);padding:56px 0 30px;border-top:1px solid var(--line);}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px;margin-bottom:36px;}
.site-footer h4{font-family:var(--font-display);font-size:1rem;margin-bottom:14px;color:var(--ink);}
.site-footer p{font-size:.94rem;}
.site-footer a{font-size:.94rem;color:var(--text-soft);}
.site-footer a:hover{color:var(--orange);}
.footer-bottom{
  border-top:1px solid var(--line);padding-top:22px;
  font-size:.84rem;color:var(--text-soft);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
}

/* ---------- Floating WhatsApp ---------- */
.float-wa{
  position:fixed;bottom:24px;right:24px;z-index:60;
  background:#25D366;color:#fff;width:60px;height:60px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:1.6rem;
  box-shadow:0 12px 26px rgba(0,0,0,.22);transition:transform .15s ease;
}
.float-wa:hover{transform:scale(1.08);}

/* ===========================================================
   PROGRAMME AVANCÉ page
   =========================================================== */
.page-hero{padding:60px 0 50px;position:relative;overflow:hidden;}
.page-hero::before{
  content:"";position:absolute;top:-100px;left:-120px;width:340px;height:340px;border-radius:50%;
  background:var(--green-soft);z-index:0;
}
.page-hero .wrap{position:relative;z-index:1;}
.back-link{
  display:inline-flex;align-items:center;gap:8px;color:var(--orange);
  font-family:var(--font-display);font-weight:600;margin-bottom:22px;
}
.back-link:hover{color:var(--ink);}

.cat-grid{display:grid;gap:18px;}
.cat-card{border-radius:var(--radius-xl);overflow:hidden;}
.cat-card summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;gap:16px;
  padding:24px 28px;font-family:var(--font-display);font-weight:600;font-size:1.1rem;color:var(--ink);
}
.cat-card summary::-webkit-details-marker{display:none;}
.cat-card summary .count{
  margin-left:auto;font-family:var(--font-body);font-weight:700;font-size:.8rem;
  background:rgba(255,255,255,.7);padding:5px 12px;border-radius:999px;color:var(--ink);
}
.cat-card summary .chev{color:var(--ink);font-size:.9rem;transition:transform .15s ease;}
.cat-card[open] summary .chev{transform:rotate(90deg);}
.cat-items{padding:0 28px 26px 66px;display:grid;grid-template-columns:1fr 1fr;gap:8px 26px;}
.cat-items div{font-size:.96rem;color:var(--ink);opacity:.82;position:relative;padding-left:18px;}
.cat-items div::before{content:"•";position:absolute;left:0;font-weight:700;}

.age-tier-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.tier-card{border-radius:var(--radius);padding:24px;border:1.5px solid var(--line);background:var(--white);}
.tier-card .tier-age{
  font-family:var(--font-display);font-weight:600;font-size:.86rem;color:var(--orange);margin-bottom:8px;display:block;
}
.tier-card h5{font-family:var(--font-display);font-weight:600;font-size:1.02rem;margin:0 0 12px;color:var(--ink);}
.tier-card ul{margin:0;padding:0;list-style:none;}
.tier-card li{font-size:.92rem;color:var(--text-soft);padding-left:16px;position:relative;margin-bottom:7px;}
.tier-card li::before{content:"–";position:absolute;left:0;}

.formats-row{display:flex;gap:14px;flex-wrap:wrap;}
.format-pill{
  background:var(--white);border:1.5px solid var(--line);border-radius:999px;
  padding:12px 20px;font-size:.94rem;font-weight:700;color:var(--ink);
  display:flex;align-items:center;gap:8px;
}
.format-pill::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--green);}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
summary:focus-visible, label:focus-visible{
  outline:3px solid var(--orange);outline-offset:2px;border-radius:6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-art{order:-1;}
  .stat-strip{grid-template-columns:repeat(2,1fr);}
  .modules-grid{grid-template-columns:repeat(2,1fr);}
  .steps-grid{grid-template-columns:1fr;}
  .principles-grid{grid-template-columns:repeat(2,1fr);}
  .path-grid{grid-template-columns:1fr;}
  .takeaway-grid{grid-template-columns:repeat(2,1fr);}
  .team-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;gap:24px;}
  .tab-panel-inner{grid-template-columns:1fr;}
  .age-tier-grid{grid-template-columns:1fr;}
  .cat-items{grid-template-columns:1fr;}
}
@media (max-width: 720px){
  .nav-links{display:none;}
  body{font-size:17px;}
  .modules-grid{grid-template-columns:1fr;}
  .stat-strip{grid-template-columns:1fr 1fr;}
  section{padding:64px 0;}
  .final-cta{padding:40px 26px;}
  .mini-cta{flex-direction:column;align-items:flex-start;}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}
