/* =========================================================
   Klesis Junior Thonon — Cahier de coloriage SPEDEF
   Branding aligné avec masterclass.klesisjuniorthonon.com
   ========================================================= */

:root {
    --color-primary: #4BA968;
    --color-primary-hover: #3F8D55;
    --color-primary-soft: #E8F5ED;
    --color-dark: #1A1A1A;
    --color-overlay: hsla(0, 0%, 0%, 0.78);
    --color-accent: #867474;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F7F8F6;
    --color-bg-warm: #FFF8F0;
    --color-text: #2A2A2A;
    --color-text-soft: #555;
    --color-text-light: #FFFFFF;
    --color-danger-soft: #FFF1F0;
    --color-danger: #C0392B;

    --font-body: "Arimo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    --container-max: 1100px;
    --section-pad-y: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.text-primary {
    color: var(--color-primary);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    line-height: 1.2;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--primary:focus-visible {
    outline: 3px solid #B8E0C4;
    outline-offset: 2px;
}

.btn--small {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
}

.btn--large {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    color: var(--color-dark);
}

.logo__img {
    display: block;
    height: 56px;
    width: auto;
}

@media (min-width: 600px) {
    .logo__img {
        height: 68px;
    }
}

@media (min-width: 900px) {
    .logo__img {
        height: 76px;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background-color: var(--color-dark);
    background-image:
        radial-gradient(circle at 15% 25%, rgba(75, 169, 104, 0.22), transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(75, 169, 104, 0.14), transparent 55%),
        linear-gradient(180deg, #0F0F0F 0%, #1F1F1F 100%);
    color: var(--color-text-light);
    overflow: hidden;
    display: flex;
    align-items: center;
}

@media (min-width: 380px) {
    .hero {
        min-height: 92svh;
    }
}

@media (min-width: 900px) {
    .hero {
        min-height: 100svh;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    padding-top: clamp(1.5rem, 5vw, 4rem);
    padding-bottom: clamp(1.5rem, 5vw, 4rem);
    display: grid;
    gap: clamp(1rem, 3vw, 2.5rem);
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
}

@media (min-width: 900px) {
    .hero__inner {
        grid-template-columns: 1.4fr 1fr;
    }
}

.hero__content {
    text-align: center;
}

@media (min-width: 900px) {
    .hero__content {
        text-align: left;
    }
}

.hero__eyebrow {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: rgba(75, 169, 104, 0.2);
    color: #B8E0C4;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 600px) {
    .hero__eyebrow {
        font-size: 0.88rem;
        margin-bottom: 1.4rem;
    }
}

.hero__title {
    font-size: clamp(1.95rem, 5.2vw, 3.6rem);
    line-height: 1.12;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

@media (min-width: 900px) {
    .hero__title {
        font-size: 4.6rem;
        line-height: 1.08;
        margin-bottom: 1.4rem;
    }
}

.hero__title-accent {
    color: #B8E0C4;
    font-weight: 600;
    font-size: clamp(1.15rem, 2.8vw, 2.1rem);
    display: inline-block;
    margin-top: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 900px) {
    .hero__title-accent {
        font-size: 2.7rem;
        margin-top: 0.75rem;
    }
}

.hero__lede {
    font-size: clamp(0.98rem, 1.8vw, 1.25rem);
    line-height: 1.5;
    margin: 0 auto 1.5rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 600px) {
    .hero__lede {
        margin-bottom: 2rem;
    }
}

@media (min-width: 900px) {
    .hero__lede {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.4rem;
        max-width: 680px;
    }
}

.hero .btn--large {
    font-size: 1.05rem;
    padding: 1rem 1.8rem;
}

@media (min-width: 600px) {
    .hero .btn--large {
        font-size: 1.2rem;
        padding: 1.2rem 2.4rem;
    }
}

@media (min-width: 900px) {
    .hero .btn--large {
        font-size: 1.3rem;
        padding: 1.3rem 2.6rem;
    }
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    padding: 1.5rem 1.5rem 1.5rem 0;
    overflow: visible;
}

/* ---------- 3D book / eBook mockup ---------- */
.book-mockup {
    position: relative;
    max-width: 230px;
    width: 100%;
    animation: book-float 6s ease-in-out infinite;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .book-mockup {
        max-width: 320px;
    }
}

@media (min-width: 900px) {
    .book-mockup {
        max-width: 500px;
    }
}

.book-mockup__inner {
    position: relative;
    transform: rotateY(-26deg) rotateX(6deg);
    transform-style: preserve-3d;
    transform-origin: left center;
}

.book-mockup__cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px 14px 14px 6px;
    box-shadow:
        0 40px 80px -18px rgba(0, 0, 0, 0.65),
        0 24px 48px -14px rgba(0, 0, 0, 0.45),
        3px 0 0 rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

/* Right edge — page thickness (front layer of pages) */
.book-mockup__pages {
    position: absolute;
    right: -10px;
    top: 8px;
    bottom: 8px;
    width: 18px;
    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.12) 0%,
            #f8f5ed 25%,
            #ffffff 50%,
            #efe9dd 75%,
            rgba(0, 0, 0, 0.22) 100%);
    background-size: 100% 100%, 3px 100%;
    background-image:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.12) 0%,
            #f8f5ed 25%,
            #ffffff 50%,
            #efe9dd 75%,
            rgba(0, 0, 0, 0.22) 100%),
        repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0.04) 0,
            rgba(0, 0, 0, 0.04) 1px,
            transparent 1px,
            transparent 3px);
    border-radius: 0 4px 4px 0;
    transform: rotateY(22deg);
    transform-origin: left center;
    box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Bottom edge — additional page thickness */
.book-mockup__pages-back {
    position: absolute;
    left: 4px;
    right: -6px;
    bottom: -8px;
    height: 12px;
    background:
        linear-gradient(to bottom,
            #ffffff 0%,
            #efe9dd 50%,
            rgba(0, 0, 0, 0.25) 100%);
    background-image:
        linear-gradient(to bottom,
            #ffffff 0%,
            #efe9dd 60%,
            rgba(0, 0, 0, 0.22) 100%),
        repeating-linear-gradient(to right,
            rgba(0, 0, 0, 0.04) 0,
            rgba(0, 0, 0, 0.04) 1px,
            transparent 1px,
            transparent 3px);
    border-radius: 0 0 6px 8px;
    transform: rotateX(-18deg);
    transform-origin: top center;
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.12);
    z-index: 0;
}

/* Left edge — spine shadow */
.book-mockup__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(to right,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.08) 75%,
        transparent 100%);
    border-radius: 6px 0 0 6px;
    pointer-events: none;
    z-index: 3;
}

/* "GRATUIT" badge */
.book-mockup__badge {
    position: absolute;
    top: -14px;
    right: 4%;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(75, 169, 104, 0.6);
    transform: rotate(8deg);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.95);
    white-space: nowrap;
}

@keyframes book-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .book-mockup {
        animation: none;
    }
}

/* ---------- Section title (shared) ---------- */
.section__title {
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.section__title--left {
    text-align: left;
}

.section__title--light {
    color: var(--color-text-light);
}

.section__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ---------- Decorative stars (kid-friendly accents) ---------- */
.star {
    position: absolute;
    display: block;
    background-color: currentColor;
    pointer-events: none;
    /* 5-point star via clip-path */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: star-twinkle 3.2s ease-in-out infinite;
}

.star--hero {
    color: #FFD56B;
    filter: drop-shadow(0 0 8px rgba(255, 213, 107, 0.5));
    z-index: 1;
}

/* Mobile (default) — keep stars in safe zones (very edges, not behind text) */
.star--hero-1 { width: 16px; height: 16px; top: 1.5%; left: 3%;    animation-delay: 0s;   }
.star--hero-2 { width: 12px; height: 12px; top: 3%;   right: 3%;   animation-delay: 0.6s; }
.star--hero-3 { display: none; }
.star--hero-4 { display: none; }

@media (min-width: 600px) {
    .star--hero-1 { width: 22px; height: 22px; top: 8%;  left: 4%;  }
    .star--hero-2 { width: 18px; height: 18px; top: 70%; left: 6%;  }
    .star--hero-3 { display: block; width: 22px; height: 22px; top: 12%; right: 5%; animation-delay: 1.2s; }
    .star--hero-4 { display: block; width: 14px; height: 14px; top: 80%; right: 4%; animation-delay: 1.8s; }
}

@media (min-width: 900px) {
    .star--hero-1 { width: 28px; height: 28px; top: 12%; left: 8%;  }
    .star--hero-2 { width: 18px; height: 18px; top: 65%; left: 14%; }
    .star--hero-3 { width: 22px; height: 22px; top: 18%; right: 9%; }
    .star--hero-4 { width: 14px; height: 14px; top: 78%; right: 6%; }
}

.star--final {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
    z-index: 1;
}

.star--final-1 { width: 18px; height: 18px; top: 8%;  left: 4%;     animation-delay: 0s;   }
.star--final-2 { width: 14px; height: 14px; bottom: 8%; left: 6%;   animation-delay: 0.7s; }
.star--final-3 { width: 20px; height: 20px; top: 8%;  right: 4%;    animation-delay: 1.1s; }
.star--final-4 { width: 14px; height: 14px; bottom: 8%; right: 6%;  animation-delay: 1.6s; }

@media (min-width: 600px) {
    .star--final-1 { width: 24px; height: 24px; top: 18%; left: 6%;  }
    .star--final-2 { width: 16px; height: 16px; top: 55%; left: 12%; bottom: auto; }
    .star--final-3 { width: 28px; height: 28px; top: 22%; right: 8%; }
    .star--final-4 { width: 18px; height: 18px; bottom: 18%; right: 14%; }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.45; transform: scale(0.92) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.08) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .star {
        animation: none;
        opacity: 0.7;
    }
}

/* ---------- 2. PROBLEM ---------- */
.problem {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg);
}

.problem__split {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .problem__split {
        grid-template-columns: 1fr 1.4fr;
        align-items: stretch;
    }
}

.problem__col {
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.problem__col--known {
    background: var(--color-bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.problem__col--missing {
    background: var(--color-danger-soft);
    border: 1px solid rgba(192, 57, 43, 0.18);
}

.problem__col-title {
    font-weight: 700;
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.problem__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.problem__list li {
    position: relative;
    padding-left: 1.7rem;
    font-size: 1.1rem;
    line-height: 1.55;
}

.problem__list li::before {
    content: "✔︎";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.problem__list--missing li::before {
    content: "✕";
    color: var(--color-danger);
}

.problem__conclusion {
    text-align: center;
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 600;
    margin: 1.5rem 0 0;
    color: var(--color-text);
    line-height: 1.45;
}

/* ---------- 3. EMOTION TRANSITION ---------- */
.emotion-transition {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emotion-transition__inner {
    position: relative;
    z-index: 2;
}

.emotion-transition__line {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-style: italic;
    color: var(--color-text-soft);
    margin: 0 0 1.25rem;
}

.emotion-transition__punch {
    font-size: clamp(1.5rem, 3.2vw, 2.15rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--color-text);
}

/* ---------- 4. SOLUTION ---------- */
.solution {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg-alt);
}

.solution__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .solution__grid {
        grid-template-columns: 1fr 1.4fr;
    }
}

.solution__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 280px;
}

.solution__kid {
    width: 100%;
    height: auto;
    max-width: 240px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.solution__kid--main {
    position: relative;
    z-index: 2;
}

.solution__kid--peek {
    position: absolute;
    bottom: 0;
    right: 6%;
    width: 38%;
    max-width: 130px;
    transform: rotate(6deg);
    z-index: 1;
    opacity: 0.95;
}

.solution__kid--small {
    position: absolute;
    top: 10%;
    left: 4%;
    width: 30%;
    max-width: 110px;
    transform: rotate(-8deg);
    z-index: 1;
    opacity: 0.92;
}

@media (min-width: 900px) {
    .solution__visual {
        min-height: 380px;
    }
    .solution__kid {
        max-width: 280px;
    }
    .solution__kid--peek {
        max-width: 150px;
    }
    .solution__kid--small {
        max-width: 130px;
        top: 5%;
        left: 0;
    }
}

.solution__intro,
.solution__outro {
    font-size: 1.05rem;
    margin: 0 0 1.25rem;
}

.solution__outro {
    margin-top: 1.5rem;
}

.theme-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0;
    display: grid;
    gap: 0.65rem;
}

.theme-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.theme-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ---------- 5. BENEFITS ---------- */
.benefits {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg);
}

.benefits__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 760px;
    display: grid;
    gap: 1rem;
}

.benefits__list li {
    background: var(--color-primary-soft);
    border-left: 4px solid var(--color-primary);
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 1rem;
}

.check {
    flex-shrink: 0;
    margin-top: 0.05em;
}

/* ---------- 6. STRATEGIC MESSAGE ---------- */
.strategic {
    padding: var(--section-pad-y) 0;
    background: var(--color-dark);
    color: var(--color-text-light);
    text-align: center;
}

.strategic__inner {
    max-width: 720px;
}

.strategic__title {
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--color-text-light);
    line-height: 1.25;
}

.strategic__body {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- 7. KLESIS INTRO ---------- */
.klesis-intro {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg);
    text-align: center;
}

.klesis-intro__visual {
    margin: 0 auto 2rem;
    max-width: 900px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.klesis-intro__lead {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin: 0 0 1rem;
}

.klesis-intro__body {
    font-size: 1.05rem;
    margin: 0 auto 1.5rem;
    max-width: 640px;
    color: var(--color-text-soft);
}

.klesis-intro__list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 480px;
    text-align: left;
}

.klesis-intro__list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1.02rem;
}

.klesis-intro__list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ---------- 8 & 9. PROGRAMS (EFL + BOOTCAMP) ---------- */
.program {
    padding: var(--section-pad-y) 0;
}

.program > .container {
    padding-left: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
}

.program--efl {
    background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
    color: var(--color-text-light);
}

.program--bootcamp {
    background: var(--color-bg-warm);
}

.program__inner {
    max-width: 820px;
}

.program__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.program--efl .program__eyebrow {
    background: rgba(75, 169, 104, 0.18);
    color: #B8E0C4;
}

.program--bootcamp .program__eyebrow {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}

.program__title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.program__title-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 8px;
    font-size: 0.65em;
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

.program__lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin: 0 0 1.5rem;
    opacity: 0.92;
}

.program__highlight {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.program__skills,
.program__activities {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .program__skills,
    .program__activities {
        grid-template-columns: repeat(2, 1fr);
    }
}

.program__skills li,
.program__activities li {
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* On mobile, keep items on a single line for clean look */
@media (max-width: 599px) {
    .program__skills li,
    .program__activities li {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 359px) {
    .program__skills li,
    .program__activities li {
        font-size: 0.92rem;
        padding: 0.65rem 0.85rem;
    }
}

.program--bootcamp .program__skills li,
.program--bootcamp .program__activities li {
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
}

.program__skills li::before {
    content: "✓ ";
    color: var(--color-primary);
    font-weight: 700;
    margin-right: 0.3rem;
}

.program--bootcamp .program__skills li::before {
    color: var(--color-primary);
}

.program__subhead {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.program__outro {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0;
}

.program__cta-row {
    margin: 1.5rem 0 0;
}

/* ---------- Bootcamp 2-column layout (kids on the right) ---------- */
.bootcamp__layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .bootcamp__layout {
        grid-template-columns: 1.4fr 1fr;
        gap: 3rem;
    }
}

.bootcamp__kids {
    position: relative;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 900px) {
    .bootcamp__kids {
        min-height: 420px;
    }
}

.bootcamp-kid {
    position: absolute;
    width: 38%;
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
    transition: transform 0.3s ease;
}

.bootcamp-kid--top {
    top: 0;
    left: 12%;
    transform: rotate(-7deg);
    z-index: 2;
}

.bootcamp-kid--mid {
    top: 18%;
    right: 6%;
    transform: rotate(6deg);
    z-index: 3;
    width: 42%;
    max-width: 175px;
}

.bootcamp-kid--bottom {
    bottom: 0;
    left: 28%;
    transform: rotate(4deg);
    z-index: 1;
    width: 42%;
    max-width: 170px;
}

@media (min-width: 900px) {
    .bootcamp-kid {
        max-width: 180px;
    }
    .bootcamp-kid--top {
        max-width: 175px;
        top: 5%;
        left: 5%;
    }
    .bootcamp-kid--mid {
        max-width: 200px;
        top: 22%;
        right: 0;
    }
    .bootcamp-kid--bottom {
        max-width: 195px;
        bottom: 5%;
        left: 22%;
    }
}

.program__link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.program--efl .program__link {
    color: #B8E0C4;
    border-bottom-color: #B8E0C4;
}

.program__link:hover,
.program__link:focus-visible {
    color: var(--color-primary-hover);
    border-bottom-color: var(--color-primary-hover);
}

.program--efl .program__link:hover,
.program--efl .program__link:focus-visible {
    color: var(--color-text-light);
    border-bottom-color: var(--color-text-light);
}

/* ---------- 10. CTA TRANSITION ---------- */
.cta-transition {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--color-bg);
    text-align: center;
}

.cta-transition__text {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

/* ---------- 11. FORM SECTION ---------- */
.form-section {
    padding: var(--section-pad-y) 0;
    background: var(--color-dark);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(75, 169, 104, 0.22), transparent 60%),
        linear-gradient(180deg, #1A1A1A 0%, #0F0F0F 100%);
    color: var(--color-text-light);
    text-align: center;
}

.form-section__inner {
    max-width: 720px;
}

.form-section__sub {
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.form-wrapper {
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

/* ---------- Brevo form overrides (tasteful, non-breaking) ---------- */
.form-wrapper #sib-container {
    border: none !important;
    background: transparent !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.form-wrapper .sib-form {
    background-color: transparent !important;
}

.form-wrapper .sib-form-block__button {
    background-color: var(--color-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.95rem 1.5rem !important;
    width: 100%;
    text-align: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.form-wrapper .sib-form-block__button:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-1px);
}

.form-wrapper .input {
    border-radius: var(--radius-sm) !important;
}

.form-section__consent {
    margin: 1.5rem auto 0;
    max-width: 540px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    text-align: left;
}

.form-section__consent a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.form-section__consent a:hover,
.form-section__consent a:focus-visible {
    color: var(--color-text-light);
}

/* ---------- 12. ABOUT (video) ---------- */
.about {
    padding: var(--section-pad-y) 0;
    background: var(--color-bg);
    text-align: center;
}

.about__inner {
    max-width: 800px;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 0 auto 1.5rem;
    max-width: 720px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.about__body {
    margin: 0 auto;
    max-width: 640px;
    color: var(--color-text-soft);
    font-size: 1rem;
}

/* ---------- 13. FINAL CTA ---------- */
.final-cta {
    padding: var(--section-pad-y) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    text-align: center;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.final-cta__inner {
    position: relative;
    z-index: 2;
}

.final-cta__inner {
    max-width: 720px;
}

.final-cta__title {
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    margin: 0 0 1.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.final-cta .btn--primary {
    background-color: var(--color-text-light);
    color: var(--color-primary-hover);
}

.final-cta .btn--primary:hover,
.final-cta .btn--primary:focus-visible {
    background-color: var(--color-bg-alt);
    color: var(--color-primary-hover);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 2.5rem 0 2rem;
    font-size: 0.95rem;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.site-footer__brand {
    font-weight: 700;
    color: var(--color-text-light);
    margin: 0;
    font-size: 1.05rem;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1rem;
    font-size: 0.88rem;
}

@media (min-width: 600px) {
    .site-footer__nav {
        gap: 1.5rem;
        font-size: 0.95rem;
    }
}

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

.site-footer__copy {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Thank-you page (merci.html) ---------- */
.thank-you {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-text-light);
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.thank-you__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
}

.thank-you__check {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    animation: thank-pop 0.6s ease-out;
}

@keyframes thank-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.thank-you__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.thank-you__lede {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.5;
    margin: 0 0 2.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.thank-you__lede strong {
    color: #FFFFFF;
    font-weight: 700;
}

/* Steps card */
.thank-you__steps {
    background: rgba(255, 255, 255, 0.97);
    color: var(--color-text);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    text-align: left;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    margin: 0 0 2.5rem;
}

.thank-you__steps-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--color-text);
}

.thank-you__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.thank-you__steps-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.thank-you__steps-list li > div {
    flex: 1;
}

.thank-you__steps-list strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.thank-you__steps-list p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.96rem;
    line-height: 1.5;
}

.thank-you__steps-list a {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Upsell card */
.thank-you__upsell {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    margin: 0 0 2rem;
    backdrop-filter: blur(4px);
}

.thank-you__upsell-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.thank-you__upsell-title {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 0.85rem;
    line-height: 1.25;
}

.thank-you__upsell-body {
    margin: 0 0 1.5rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.thank-you__upsell .btn--primary {
    background-color: #FFFFFF;
    color: var(--color-primary-hover);
    font-weight: 700;
}

.thank-you__upsell .btn--primary:hover,
.thank-you__upsell .btn--primary:focus-visible {
    background-color: var(--color-bg-alt);
    color: var(--color-primary-hover);
}

.thank-you__home {
    margin: 1rem 0 0;
}

.thank-you__home a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    font-size: 0.95rem;
}

.thank-you__home a:hover,
.thank-you__home a:focus-visible {
    color: #FFFFFF;
}

/* ---------- Legal pages (mentions légales, politique de confidentialité) ---------- */
.legal {
    padding: clamp(2.5rem, 6vw, 4rem) 0 var(--section-pad-y);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

.legal__inner {
    max-width: 780px;
}

.legal__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.legal__updated {
    color: var(--color-text-soft);
    font-size: 0.92rem;
    margin: 0 0 2rem;
    font-style: italic;
}

.legal__intro {
    font-size: 1.05rem;
    color: var(--color-text-soft);
    background: var(--color-primary-soft);
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 0 0 2.5rem;
}

.legal h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--color-text);
    line-height: 1.3;
}

.legal h2:first-of-type {
    margin-top: 1rem;
}

.legal p {
    margin: 0 0 1rem;
}

.legal ul {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.legal ul li {
    margin-bottom: 0.4rem;
}

.legal__info {
    list-style: none;
    padding: 1rem 1.25rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    margin: 0 0 1.25rem;
}

.legal__info li {
    padding-left: 0;
}

.legal a {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal a:hover,
.legal a:focus-visible {
    color: var(--color-primary);
}

.site-footer__address {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer__address a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer__address a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
