:root {
    --edu-ink: #243046;
    --edu-primary: #3454d1;
    --edu-primary-dark: #253da0;
    --edu-paper: #fffdf8;
    --edu-soft: #eef2ff;
    --edu-border: #d9deea;
}

body { color: var(--edu-ink); background: var(--edu-paper); }
a { text-underline-offset: .16em; }
.site-header { background: #fff; border-bottom: 1px solid var(--edu-border); }
.site-footer { margin-top: 4rem; padding: 2rem 0; background: #202a3d; color: #fff; }
.site-footer a { color: #fff; }
.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 2000; background: #fff; padding: .75rem; }
.skip-link:focus { left: .5rem; }
.flash-zone { padding-top: 1rem; }
.hero { background: linear-gradient(135deg, #f3f0ff, #e8f8ff); }
.hero h1 { max-width: 13ch; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; }
.eyebrow { color: var(--edu-primary-dark); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero-card, .feature-card, .game-card, .profile-card, .settings-card { position: relative; padding: 1.5rem; border: 1px solid var(--edu-border); border-radius: 1rem; background: #fff; box-shadow: 0 .4rem 1.2rem rgba(36,48,70,.07); }
.hero-card { font-size: 1.15rem; }
.hero-card li { margin-top: 1rem; }
.narrow { max-width: 760px; }
.auth-shell { max-width: 620px; }
.separator { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: #6b7280; }
.separator::before, .separator::after { content: ''; flex: 1; border-top: 1px solid var(--edu-border); }
.settings-card { margin-top: 1.5rem; }
.profile-card { text-align: center; }
.profile-card img, .child-avatar { border-radius: 50%; }
.child-zone { min-height: 70vh; background: linear-gradient(180deg, #fff8dc, #eefaff); }
.game-card.is-locked { background: #f3f4f6; }
.game-card__image, .game-presentation-image { display: block;aspect-ratio: 16 / 9;width: 100%;height: 100%;object-fit: contain; border-radius: .75rem; background: #eef2f7; }
.game-card__image.is-placeholder { display: grid; place-items: center; color: #64748b; font-weight: 600; }
.game-presentation-image { max-height: 32rem; }
.btn-primary { --bs-btn-bg: var(--edu-primary); --bs-btn-border-color: var(--edu-primary); --bs-btn-hover-bg: var(--edu-primary-dark); --bs-btn-hover-border-color: var(--edu-primary-dark); }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.site-body { display: flex; min-height: 100vh; flex-direction: column; }
.site-main { flex: 1; }
.site-header { position: sticky; top: 0; z-index: 1020; box-shadow: 0 .2rem 1rem rgba(36,48,70,.04); }
.site-header .navbar { min-height: 4.5rem; }
.site-header .nav-link { color: var(--edu-ink); font-weight: 600; }
.site-header .nav-link:hover { color: var(--edu-primary); }
.section-space { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading h2 { max-width: 22ch; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3rem); }
.section-heading > p { margin-bottom: .35rem; color: #596579; font-size: 1.08rem; }
.soft-section, .home-benefits { background: #f2f5ff; }
.landing-hero { overflow: hidden; border-bottom: 1px solid #dce5f5; background: radial-gradient(circle at 85% 10%, rgba(255,202,88,.35), transparent 24rem), linear-gradient(135deg, #f7f4ff, #eaf9ff); }
.landing-hero h1 { max-width: 18ch; font-size: clamp(2.45rem, 6vw, 4.7rem); line-height: 1.03; letter-spacing: -.035em; }

.home-hero { overflow: hidden; padding-block: 1.5rem; background: radial-gradient(circle at 85% 15%, rgba(255,202,88,.48), transparent 23rem), linear-gradient(135deg, #f5f1ff, #e7f8ff); }
.home-hero .lead { max-width: 41rem; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.hero-reassurance { margin: 1.25rem 0 0; color: #536079; font-size: .94rem; font-weight: 650; }
.hero-showcase { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid rgba(52,84,209,.18); border-radius: 1.5rem; background: rgba(255,255,255,.92); box-shadow: 0 1.5rem 4rem rgba(36,48,70,.14); }
.hero-showcase__badge { display: inline-block; margin-bottom: 1rem; padding: .35rem .7rem; border-radius: 999px; background: #fff1c6; color: #604700; font-size: .86rem; font-weight: 750; }
.hero-showcase ol { display: grid; gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.hero-showcase li { display: flex; gap: .85rem; align-items: center; font-weight: 650; }
.hero-showcase li span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--edu-primary); color: #fff; }
.home-hero-carousel { overflow: hidden; border: 1px solid rgba(52,84,209,.2); border-radius: 1.5rem; background: #edf2ff; box-shadow: 0 1.5rem 4rem rgba(36,48,70,.14); }
.home-hero-carousel__image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.home-hero-carousel .carousel-control-prev, .home-hero-carousel .carousel-control-next { width: 12%; }
.home-hero-carousel__toggle { position: absolute; z-index: 3; top: 1rem; right: 1rem; padding: .4rem .7rem; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; background: rgba(25,35,55,.82); color: #fff; font-size: .8rem; font-weight: 700; }
.home-hero-carousel__toggle:hover { background: rgba(25,35,55,.96); }
.home-image-slot { position: relative; display: grid; min-height: 15rem; padding: 1.5rem; place-items: center; overflow: hidden; border: 1px dashed #9aace0; border-radius: 1.2rem; background: linear-gradient(145deg, #f7f9ff, #e9efff); color: #34466b; text-align: center; }
.home-image-slot::before { content: ''; position: absolute; width: 14rem; height: 14rem; border-radius: 50%; background: rgba(255, 202, 88, .28); transform: translate(55%, -48%); }
.home-image-slot__badge { position: absolute; z-index: 1; top: 1rem; left: 1rem; padding: .35rem .7rem; border-radius: 999px; background: #fff1c6; color: #604700; font-size: .82rem; font-weight: 750; }
.home-image-slot > strong { position: relative; z-index: 1; }
.home-game-preview { background: #f7f9ff; }
.home-preview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(17rem, .6fr); gap: 1.25rem; }
.home-preview-card { display: grid; grid-template-rows: auto 1fr; position: relative; margin: 0; overflow: hidden; border: 1px solid var(--edu-border); border-radius: 1.25rem; background: #fff; box-shadow: 0 .5rem 1.5rem rgba(36,48,70,.07); }
.home-preview-card img { height: 100%; }
.home-preview-card--featured { grid-row: span 2; }
.home-preview-card--featured .home-image-slot { min-height: 27rem; border: 0; border-radius: 0; }
.home-preview-card:not(.home-preview-card--featured) .home-image-slot { min-height: 11rem; border: 0; border-bottom: 1px dashed #9aace0; border-radius: 0; }
.home-preview-card figcaption { display: grid; gap: .35rem; padding: 1.25rem 1.4rem; }
.home-preview-card figcaption strong { font-size: 1.12rem; }
.home-preview-card figcaption span { color: #596579; }
.home-quote-card { display: grid; grid-template-columns: minmax(16rem, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2rem, 5vw, 4rem); border: 1px solid #d9c9f1; border-radius: 1.5rem; background: linear-gradient(135deg, #fffaf0, #f4efff); }
.home-quote-card h2 { max-width: 18ch; margin-bottom: 0; }
.home-quote-card figure { margin: 0; padding-left: clamp(1.4rem, 4vw, 2.5rem); border-left: .35rem solid #7255b4; }
.home-quote-card blockquote { margin: 0 0 1.25rem; color: #26334c; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.4; }
.home-quote-card figcaption { color: #5f5473; font-weight: 650; }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.subject-card { display: block; min-height: 19rem; padding: 1.7rem; border: 1px solid var(--edu-border); border-radius: 1.25rem; color: var(--edu-ink); text-decoration: none; box-shadow: 0 .5rem 1.5rem rgba(36,48,70,.07); transition: transform .18s ease, box-shadow .18s ease; }
.subject-card:hover { color: var(--edu-ink); transform: translateY(-4px); box-shadow: 0 1rem 2.5rem rgba(36,48,70,.13); }
.subject-card > span { display: inline-grid; min-width: 3.6rem; height: 3.6rem; margin-bottom: 2.7rem; padding-inline: .65rem; place-items: center; border-radius: 1rem; background: rgba(255,255,255,.78); font-size: 1.3rem; font-weight: 850; }
.subject-card h3 { font-size: 1.65rem; }
.subject-card strong { color: var(--edu-primary-dark); }
.subject-card--french { background: #fff3df; }
.subject-card--maths { background: #eaf8ff; }
.subject-card--english { background: #f0ecff; }
.benefit-list { display: grid; gap: 1rem; }
.benefit-list article { display: flex; gap: 1rem; padding: 1.25rem; border-radius: 1rem; background: #fff; box-shadow: 0 .35rem 1.1rem rgba(36,48,70,.06); }
.benefit-list article > span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d9f8e6; color: #166534; font-weight: 800; }
.benefit-list h3 { margin: 0 0 .25rem; font-size: 1.14rem; }
.benefit-list p { margin: 0; color: #596579; }
.level-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.level-links a { display: grid; min-width: 4.5rem; min-height: 4.5rem; place-items: center; border: 1px solid #cbd6ed; border-radius: 1rem; background: #fff; color: var(--edu-primary-dark); font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.level-links a:hover { border-color: var(--edu-primary); background: var(--edu-soft); }
.cta-panel { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 1.5rem; background: linear-gradient(135deg, #283fa9, #4b6bea); color: #fff; box-shadow: 0 1.2rem 3rem rgba(37,61,160,.22); }
.cta-panel .eyebrow, .cta-panel a { color: #fff; }
.cta-panel .btn-light { color: var(--edu-primary-dark); }
.cta-panel h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta-panel p { max-width: 43rem; margin-bottom: 0; color: #eef2ff; }
.cta-panel__actions { display: flex; min-width: 15rem; flex-direction: column; gap: .75rem; text-align: center; }
.offer-summary { padding: 2rem; border: 1px solid rgba(52,84,209,.2); border-radius: 1.4rem; background: #fff; box-shadow: 0 1.2rem 3rem rgba(36,48,70,.12); }
.offer-summary__price { display: block; margin-bottom: .35rem; color: var(--edu-primary-dark); font-size: 3.5rem; font-weight: 850; line-height: 1; }
.offer-summary li { margin-top: .75rem; }
.numbered-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 0; list-style: none; }
.numbered-cards li { padding: 1.5rem; border: 1px solid var(--edu-border); border-radius: 1rem; background: #fff; }
.numbered-cards li > span { display: grid; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; place-items: center; border-radius: .8rem; background: var(--edu-soft); color: var(--edu-primary-dark); font-weight: 850; }
.numbered-cards h3, .feature-card h3 { font-size: 1.18rem; }
.info-panel { padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid #cad7f2; border-radius: 1rem; background: #f4f7ff; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.topic-list li { padding: 1rem 1.1rem; border: 1px solid var(--edu-border); border-radius: .8rem; background: #fff; font-weight: 650; }
.topic-list li::before { content: '✓'; margin-right: .65rem; color: #15803d; font-weight: 900; }
.faq-list { display: grid; gap: .75rem; }
.faq-list details { border: 1px solid var(--edu-border); border-radius: .85rem; background: #fff; }
.faq-list summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 750; }
.faq-list details > div { padding: 0 1.25rem .4rem; color: #526078; }
.content-page, .legal-page { max-width: 920px; }
.content-page > section, .legal-page > section { padding-block: 1.75rem; border-bottom: 1px solid var(--edu-border); }
.legal-page h2 { margin-bottom: 1rem; font-size: 1.45rem; }
.legal-page li { margin-bottom: .5rem; }
.legal-page__updated { margin-top: 2rem; color: #657085; font-size: .9rem; }
.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.principle-grid article { padding: 1.25rem; border: 1px solid var(--edu-border); border-radius: .9rem; background: #fff; }
.principle-grid h3 { font-size: 1.15rem; }
.confirmation-icon { display: grid; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.5rem; place-items: center; border-radius: 1.25rem; background: var(--edu-soft); color: var(--edu-primary); font-size: 2rem; font-weight: 850; }
.error-page { min-height: 62vh; }
.error-page h1 { max-width: 14ch; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; }
.error-page__mascot { width: min(100%, 32rem); height: auto; }

.site-footer { margin-top: 0; padding: 3.5rem 0 1.5rem; }
.site-footer .edu-brand, .site-footer .edu-brand:hover, .site-footer .edu-brand__name { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.site-footer__intro p { max-width: 23rem; margin-top: 1rem; color: #cbd5e1; }
.site-footer__grid > nav { display: flex; flex-direction: column; gap: .65rem; }
.site-footer__grid strong { margin-bottom: .25rem; color: #fff; }
.site-footer a, .site-footer button { color: #dce5f6; }
.site-footer a:hover, .site-footer button:hover { color: #fff; }
.social-links { display: flex; flex-wrap: wrap; gap: .9rem; }
.site-footer__bottom { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; margin-top: 2.75rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.16); color: #b9c5d8; font-size: .9rem; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; }
.site-footer__bottom button { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: .16em; }
.consent-banner { position: fixed; z-index: 1100; right: 1rem; bottom: 1rem; left: 1rem; max-width: 72rem; margin: auto; padding: 1.25rem; border: 1px solid #bfcbed; border-radius: 1rem; background: #fff; box-shadow: 0 1.25rem 4rem rgba(15,23,42,.28); }
.consent-banner__content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.consent-banner p { max-width: 48rem; margin: .35rem 0 0; color: #526078; }
.consent-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-preferences { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--edu-border); }
.consent-preferences label { display: flex; gap: .65rem; align-items: start; margin-bottom: .8rem; font-weight: 700; }
.consent-preferences small { display: block; color: #606c80; font-weight: 400; }

@media (max-width: 991.98px) {
    .site-header { position: static; }
    .site-header__actions { padding-block: .8rem; }
    .section-heading, .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .subject-grid, .numbered-cards { grid-template-columns: 1fr; }
    .home-preview-grid { grid-template-columns: 1fr 1fr; }
    .home-preview-card--featured { grid-column: 1 / -1; grid-row: auto; }
    .home-preview-card--featured .home-image-slot { min-height: 22rem; }
    .home-quote-card { grid-template-columns: 1fr; }
    .subject-card { min-height: auto; }
    .subject-card > span { margin-bottom: 1.5rem; }
    .consent-banner__content { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .section-heading, .site-footer__grid, .principle-grid, .topic-list { grid-template-columns: 1fr; }
    .cta-panel, .site-footer__bottom { align-items: stretch; flex-direction: column; }
    .home-preview-grid { grid-template-columns: 1fr; }
    .home-preview-card--featured { grid-column: auto; }
    .home-preview-card--featured .home-image-slot { min-height: 18rem; }
    .home-quote-card figure { padding-top: 1.25rem; padding-left: 0; border-top: .35rem solid #7255b4; border-left: 0; }
    .cta-panel__actions { min-width: 0; }
    .consent-banner__actions .btn { width: 100%; }
}
