/* ============================================
   JDC PRECOMMANDES 2026-2027 — STYLES
   Coloré, enfantin, ambiance école
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Colors - Ecole / Maternelle / Primaire */
    --color-primary: #4AABE0;        /* Bleu ciel école */
    --color-primary-dark: #2E8BC0;
    --color-primary-light: #A2D6F9;
    --color-secondary: #FF6B8A;      /* Rose vif */
    --color-secondary-dark: #E54E6D;
    --color-accent: #FFD166;         /* Jaune soleil */
    --color-accent-light: #FFF3D0;

    /* Couleurs école supplémentaires */
    --color-green: #5DC47E;          /* Vert pomme */
    --color-green-light: #D4F5DD;
    --color-orange: #FF9A56;         /* Orange mandarine */
    --color-orange-light: #FFE0C7;
    --color-purple: #B07CC6;         /* Violet lavande */
    --color-purple-light: #EDD9F5;
    --color-coral: #FF8A80;          /* Corail */

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-cream: #FFFDF7;
    --color-light: #FFF9F0;
    --color-gray-100: #F8F6F3;
    --color-gray-200: #E8E4E1;
    --color-gray-300: #D1CCC8;
    --color-gray-400: #9E9892;
    --color-gray-500: #6B6660;
    --color-gray-600: #4A4642;
    --color-dark: #2D2926;

    /* Semantic */
    --color-success: #5DC47E;

    /* Typography */
    --font-primary: 'Quicksand', sans-serif;
    --font-display: 'Quicksand', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 41, 38, 0.06);
    --shadow-md: 0 4px 16px rgba(45, 41, 38, 0.08);
    --shadow-lg: 0 8px 32px rgba(45, 41, 38, 0.10);
    --shadow-xl: 0 16px 48px rgba(45, 41, 38, 0.14);
    --shadow-glow: 0 0 40px rgba(74, 171, 224, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* === UTILITIES === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section--accent {
    background-color: var(--color-accent-light);
    position: relative;
}

.section--accent::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 Q150,0 300,30 T600,30 T900,30 T1200,30 L1200,60 L0,60 Z' fill='%23FFF3D0'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 60px;
    pointer-events: none;
}

.section--light {
    background: linear-gradient(180deg, #FFF9F0 0%, var(--color-cream) 100%);
}

.section--gradient {
    background: linear-gradient(160deg, var(--color-primary) 0%, #3A98CC 40%, var(--color-purple) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section--gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 209, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 138, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(93, 196, 126, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.section__eyebrow {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* Badge "New" ludique */
.badge-new {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-orange));
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    animation: badge-bounce 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(255, 107, 138, 0.35);
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    25% { transform: scale(1.1) rotate(1deg); }
    50% { transform: scale(1) rotate(-1deg); }
    75% { transform: scale(1.05) rotate(2deg); }
}

.section__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-align: center;
    line-height: 1.3;
}

.section__subtitle {
    text-align: center;
    color: var(--color-gray-500);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

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

@keyframes floatDelayed {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0%, 100% { box-shadow: var(--shadow-md), 0 4px 0 var(--color-primary-dark), 0 0 20px rgba(74, 171, 224, 0.25); }
    50% { box-shadow: var(--shadow-lg), 0 4px 0 var(--color-primary-dark), 0 0 40px rgba(74, 171, 224, 0.45); }
}

@keyframes shapeFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(180deg); }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
}

.animate-float-delayed {
    animation: floatDelayed 4s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1.4;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3A98CC 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 4px 0 var(--color-primary-dark);
    border-radius: 25px;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 0 var(--color-primary-dark);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm), 0 2px 0 var(--color-primary-dark);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary-dark);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border-radius: 25px;
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn--large {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .btn--large {
        padding: var(--space-lg) var(--space-2xl);
        font-size: 1.125rem;
    }
}

.btn--glow {
    animation: glow 3s ease-in-out infinite;
}

.btn--ghost {
    background: transparent;
    color: var(--color-gray-500);
    padding: var(--space-sm) var(--space-md);
}

.btn--ghost:hover {
    color: var(--color-dark);
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 41, 38, 0.06);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
}

.header.visible {
    transform: translateY(0);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    gap: var(--space-md);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header__logo-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
    display: none;
}

.header__center {
    display: flex;
    align-items: center;
}

.header__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.header__cta {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .header__logo-text {
        display: inline;
    }
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px 0 1rem;
    background: var(--color-cream);
}

/* Pictogrammes scolaires en arrière-plan */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/intercalaires-test-1.png') repeat center center;
    background-size: 500px auto;
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 0 0;
    }

    .hero::after {
        background-size: 600px auto;
        opacity: 0.30;
    }
}

@media (min-width: 1200px) {
    .hero::after {
        background-size: 700px auto;
        opacity: 0.25;
    }
}

/* Background shapes */
.hero__bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    opacity: 0.18;
}

.hero__shape--1 {
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    border-radius: 50%;
    top: -60px;
    right: -60px;
    animation: shapeFloat1 20s ease-in-out infinite;
}

.hero__shape--2 {
    width: 160px;
    height: 160px;
    background: var(--color-secondary);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    bottom: -40px;
    left: -40px;
    animation: shapeFloat2 15s ease-in-out infinite;
}

.hero__shape--3 {
    width: 120px;
    height: 120px;
    background: var(--color-green);
    border-radius: 50% 30% 50% 70% / 60% 50% 50% 40%;
    top: 40%;
    left: 45%;
    animation: shapeFloat3 18s ease-in-out infinite;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.hero__content {
    text-align: center;
    max-width: 700px;
}

/* Badge with pulsing dot */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* Soulignement "fait main" par un prof */
.hero__title-accent--underline {
    position: relative;
    padding-bottom: 0.08em;
}

.hero__title-accent--underline::after {
    content: '';
    display: block;
    position: absolute;
    left: -3%;
    right: -3%;
    bottom: 0;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: rotate(-1deg);
    transform-origin: left center;
    animation: teacher-draw 0.7s ease-out 0.6s both;
}

@keyframes teacher-draw {
    from {
        transform: rotate(-1deg) scaleX(0);
        opacity: 0;
    }
    to {
        transform: rotate(-1deg) scaleX(1);
        opacity: 1;
    }
}

.hero__subtitle {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.hero__subtitle strong {
    color: var(--color-dark);
    font-weight: 700;
}

/* HERO PHOTO — Image de présentation */
.hero__photo {
    position: relative;
    margin-bottom: var(--space-lg);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.hero__photo-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255, 255, 255, 0.6);
    object-fit: cover;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero__photo:hover .hero__photo-img {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(255, 255, 255, 0.8);
}

.hero__photo-caption {
    display: inline-block;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .hero__photo {
        margin-bottom: var(--space-xl);
        max-width: 380px;
        margin-left: 0;
    }

    .hero__photo-caption {
        font-size: 0.8rem;
        padding: 0.5rem 1.4rem;
    }
}

/* COUNTDOWN */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: var(--space-lg);
    flex-wrap: nowrap;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.6rem;
    min-width: 52px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: transform var(--transition-base);
}

.countdown__item:nth-child(1) { border-color: var(--color-primary); }
.countdown__item:nth-child(3) { border-color: var(--color-secondary); }
.countdown__item:nth-child(5) { border-color: var(--color-green); }
.countdown__item:nth-child(7) { border-color: var(--color-orange); }

.countdown__number {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1;
    min-width: 2ch;
    text-align: center;
}

.countdown__label {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 3px;
}

.countdown__sep {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    padding-bottom: 10px;
    animation: pulse 1s ease-in-out infinite;
}

/* CTA group */
.hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.hero__cta-hint {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

/* Hero product visual */
.hero__visual {
    position: relative;
    max-width: 260px;
    width: 100%;
}

.hero__product-wrapper {
    position: relative;
}

.hero__product-img {
    animation: float 6s ease-in-out infinite;
}

.hero__product-glow {
    display: none;
}

/* Floating tags — hidden on mobile */
.hero__floating-tags {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: none;
}

.floating-tag {
    position: absolute;
    padding: 0.4rem 1rem;
    background: var(--color-white);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.floating-tag--1 {
    top: 10%;
    right: -10px;
    animation-delay: 0s;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-light);
}

.floating-tag--2 {
    bottom: 30%;
    left: -15px;
    animation-delay: 1.3s;
    color: var(--color-secondary-dark);
    border: 2px solid var(--color-secondary);
}

.floating-tag--3 {
    bottom: 5%;
    right: -5px;
    animation-delay: 2.6s;
    color: #2d8a4e;
    border: 2px solid var(--color-green);
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

@media (min-width: 768px) {
    .hero__scroll-indicator {
        display: block;
        bottom: 2rem;
    }
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--color-secondary);
    border-bottom: 3px solid var(--color-secondary);
    transform: rotate(45deg);
    animation: arrowBounce 2s infinite;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .hero__container {
        flex-direction: row;
        text-align: left;
        padding: var(--space-4xl) var(--space-lg);
        gap: var(--space-2xl);
    }

    .hero__content {
        text-align: left;
        flex: 1;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: var(--space-2xl);
    }

    .hero__badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.25rem;
        margin-bottom: var(--space-xl);
    }

    .hero__cta-group {
        align-items: flex-start;
        gap: var(--space-md);
    }

    .hero__cta-hint {
        font-size: 0.85rem;
    }

    .hero__visual {
        flex: 0 0 auto;
        max-width: 380px;
    }

    .hero__floating-tags {
        display: block;
    }

    .hero__shape--1 { width: 350px; height: 350px; top: -80px; right: -80px; }
    .hero__shape--2 { width: 280px; height: 280px; bottom: -50px; left: -50px; }
    .hero__shape--3 { width: 180px; height: 180px; }

    .countdown {
        justify-content: flex-start;
        gap: var(--space-sm);
    }

    .countdown__item {
        min-width: 76px;
        padding: var(--space-md) var(--space-lg);
    }

    .countdown__number {
        font-size: 2rem;
    }

    .countdown__label {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .countdown__sep {
        font-size: 1.8rem;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 3.8rem;
    }

    .countdown__item {
        min-width: 80px;
        padding: var(--space-lg) var(--space-xl);
    }

    .countdown__number {
        font-size: 2.25rem;
    }

    .countdown__sep {
        font-size: 2rem;
    }
}

/* === PROMISE SECTION === */
.promise__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.promise__photo {
    flex-shrink: 0;
    max-width: 280px;
    width: 100%;
}

.promise__photo-img {
    object-fit: cover;
    width: 100%;
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
    box-shadow: var(--shadow-md);
}

.promise__content {
    text-align: center;
}

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

.promise__text {
    font-size: 1.1rem;
    color: var(--color-gray-500);
    line-height: 1.8;
    margin-top: var(--space-lg);
}

.promise__text strong {
    color: var(--color-dark);
}

@media (min-width: 768px) {
    .promise__layout {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .promise__photo {
        max-width: 300px;
    }

    .promise__content {
        text-align: left;
    }

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

/* === PROOF SECTION === */
.proof__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.proof__card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 2px solid transparent;
}

.proof__card:nth-child(1) { border-bottom: 4px solid var(--color-primary); }
.proof__card:nth-child(2) { border-bottom: 4px solid var(--color-secondary); }
.proof__card:nth-child(3) { border-bottom: 4px solid var(--color-green); }

.proof__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.proof__card-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.proof__card:nth-child(1) .proof__card-number { color: var(--color-primary); }
.proof__card:nth-child(2) .proof__card-number { color: var(--color-secondary); }
.proof__card:nth-child(3) .proof__card-number { color: var(--color-green); }

.proof__card-label {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

@media (min-width: 768px) {
    .proof__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === FEATURES / WHAT'S NEW === */
.whats-new {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whats-new::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/intercalaires-test-1.png') repeat center center;
    background-size: 500px auto;
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    .whats-new::after {
        background-size: 600px auto;
        opacity: 0.30;
    }
}

@media (min-width: 1200px) {
    .whats-new::after {
        background-size: 700px auto;
        opacity: 0.25;
    }
}

.whats-new > .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 2px solid transparent;
    border-top: 4px solid transparent;
}

.feature-card:nth-child(1) { border-top-color: var(--color-primary); }
.feature-card:nth-child(2) { border-top-color: var(--color-secondary); }
.feature-card:nth-child(3) { border-top-color: var(--color-green); }
.feature-card:nth-child(4) { border-top-color: var(--color-orange); }
.feature-card:nth-child(5) { border-top-color: var(--color-purple); }
.feature-card:nth-child(6) { border-top-color: var(--color-accent); }
.feature-card:nth-child(7) { border-top-color: var(--color-coral); }

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.feature-card:nth-child(1) .feature-card__icon-wrap { background: rgba(74, 171, 224, 0.12); }
.feature-card:nth-child(2) .feature-card__icon-wrap { background: rgba(255, 107, 138, 0.12); }
.feature-card:nth-child(3) .feature-card__icon-wrap { background: rgba(93, 196, 126, 0.12); }
.feature-card:nth-child(4) .feature-card__icon-wrap { background: rgba(255, 154, 86, 0.12); }
.feature-card:nth-child(5) .feature-card__icon-wrap { background: rgba(176, 124, 198, 0.12); }
.feature-card:nth-child(6) .feature-card__icon-wrap { background: rgba(255, 209, 102, 0.15); }
.feature-card:nth-child(7) .feature-card__icon-wrap { background: rgba(255, 138, 128, 0.12); }

.feature-card__icon {
    width: 28px;
    height: 28px;
}

.feature-card:nth-child(1) .feature-card__icon { color: var(--color-primary); }
.feature-card:nth-child(2) .feature-card__icon { color: var(--color-secondary); }
.feature-card:nth-child(3) .feature-card__icon { color: var(--color-green); }
.feature-card:nth-child(4) .feature-card__icon { color: var(--color-orange); }
.feature-card:nth-child(5) .feature-card__icon { color: var(--color-purple); }
.feature-card:nth-child(6) .feature-card__icon { color: #D4A017; }
.feature-card:nth-child(7) .feature-card__icon { color: var(--color-coral); }

.feature-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

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

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === WHATS-NEW LAYOUT (photo + grid) === */
.whats-new__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1100px;
    margin: 0 auto;
}

.whats-new__layout .features-grid {
    max-width: none;
    margin: 0;
    width: 100%;
}

/* === BONUS / POCHETTE SECTION === */

.section__eyebrow--bonus {
    background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
    color: var(--color-dark);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    padding: 0.5rem 1.6rem;
}

/* Pochette magique — stage */
.bonus__magic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.bonus__magic-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 360px;
    margin: 0 auto;
}

/* === HALOS LUMINEUX — 3 couches intenses === */
.bonus__glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 209, 102, 0.6) 0%,
        rgba(255, 209, 102, 0.25) 30%,
        rgba(255, 209, 102, 0.08) 55%,
        transparent 70%
    );
    animation: glowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

.bonus__glow--2 {
    inset: -60px;
    background: radial-gradient(
        circle,
        rgba(255, 154, 86, 0.4) 0%,
        rgba(255, 107, 138, 0.15) 40%,
        transparent 70%
    );
    animation: glowPulse 3s ease-in-out infinite 1s;
}

.bonus__glow--3 {
    inset: -80px;
    background: radial-gradient(
        circle,
        rgba(255, 209, 102, 0.2) 0%,
        rgba(176, 124, 198, 0.1) 35%,
        transparent 65%
    );
    animation: glowPulse 4s ease-in-out infinite 0.5s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.12); }
}

/* === RAYONS ROTATIFS — 2 couches === */
.bonus__rays {
    position: absolute;
    inset: -50px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 209, 102, 0.2) 8deg,
        transparent 16deg,
        transparent 30deg,
        rgba(255, 154, 86, 0.18) 38deg,
        transparent 46deg,
        transparent 60deg,
        rgba(255, 209, 102, 0.2) 68deg,
        transparent 76deg,
        transparent 90deg,
        rgba(255, 107, 138, 0.15) 98deg,
        transparent 106deg,
        transparent 120deg,
        rgba(255, 209, 102, 0.2) 128deg,
        transparent 136deg,
        transparent 150deg,
        rgba(255, 154, 86, 0.18) 158deg,
        transparent 166deg,
        transparent 180deg,
        rgba(255, 209, 102, 0.2) 188deg,
        transparent 196deg,
        transparent 210deg,
        rgba(255, 107, 138, 0.15) 218deg,
        transparent 226deg,
        transparent 240deg,
        rgba(255, 209, 102, 0.2) 248deg,
        transparent 256deg,
        transparent 270deg,
        rgba(255, 154, 86, 0.18) 278deg,
        transparent 286deg,
        transparent 300deg,
        rgba(255, 209, 102, 0.2) 308deg,
        transparent 316deg,
        transparent 330deg,
        rgba(255, 107, 138, 0.15) 338deg,
        transparent 346deg,
        transparent 360deg
    );
    border-radius: 50%;
    animation: raysRotate 12s linear infinite;
    pointer-events: none;
}

.bonus__rays--2 {
    inset: -30px;
    opacity: 0.7;
    animation: raysRotate 18s linear infinite reverse;
}

@keyframes raysRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === ANNEAUX LUMINEUX === */
.bonus__ring {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 209, 102, 0.5);
    border-right-color: rgba(255, 154, 86, 0.3);
    animation: ringRotate 6s linear infinite;
    pointer-events: none;
}

.bonus__ring--2 {
    inset: -10px;
    border-width: 1.5px;
    border-top-color: rgba(255, 107, 138, 0.35);
    border-left-color: rgba(176, 124, 198, 0.25);
    animation: ringRotate 8s linear infinite reverse;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === IMAGE POCHETTE + SHIMMER === */
.bonus__pochette-wrap {
    position: relative;
    z-index: 2;
    width: 300px;
    max-width: 80%;
}

.bonus__pochette-img {
    width: 100%;
    filter:
        drop-shadow(0 0 20px rgba(255, 209, 102, 0.5))
        drop-shadow(0 0 50px rgba(255, 209, 102, 0.25))
        drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    animation: pochetteFloat 3.5s ease-in-out infinite;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.bonus__pochette-wrap:hover .bonus__pochette-img {
    transform: translateY(-14px) scale(1.06) rotate(-1deg);
    filter:
        drop-shadow(0 0 30px rgba(255, 209, 102, 0.7))
        drop-shadow(0 0 70px rgba(255, 209, 102, 0.35))
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

/* Reflet lumineux qui balaye la pochette */
.bonus__shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 45%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.5) 55%,
        transparent 70%
    );
    animation: shimmerSweep 3s ease-in-out infinite 1s;
    pointer-events: none;
    z-index: 3;
}

@keyframes shimmerSweep {
    0%, 100% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    60% { opacity: 1; }
    70% { left: 180%; opacity: 0; }
}

@keyframes pochetteFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(0.5deg); }
    50% { transform: translateY(-16px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-0.5deg); }
}

/* === PARTICULES — 12 points scintillants === */
.bonus__particles {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    z-index: 3;
}

.bonus__particle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px 2px currentColor;
    animation: particlePop 2s ease-in-out infinite;
}

.bonus__particle--1  { top: 5%;  left: 12%;  animation-delay: 0s;    color: var(--color-accent); }
.bonus__particle--2  { top: 8%;  right: 15%; animation-delay: 0.2s;  width: 5px; height: 5px; background: var(--color-orange);  color: var(--color-orange); }
.bonus__particle--3  { bottom: 18%; left: 8%;  animation-delay: 0.4s;  width: 6px; height: 6px; background: var(--color-secondary); color: var(--color-secondary); }
.bonus__particle--4  { bottom: 12%; right: 10%; animation-delay: 0.6s;  width: 5px; height: 5px; color: var(--color-accent); }
.bonus__particle--5  { top: 35%; left: 2%;  animation-delay: 0.8s;  width: 4px; height: 4px; background: var(--color-orange);  color: var(--color-orange); }
.bonus__particle--6  { top: 30%; right: 5%; animation-delay: 1s;    width: 6px; height: 6px; background: var(--color-secondary); color: var(--color-secondary); }
.bonus__particle--7  { top: 55%; left: 15%; animation-delay: 1.2s;  width: 5px; height: 5px; color: var(--color-accent); }
.bonus__particle--8  { bottom: 30%; right: 18%; animation-delay: 1.4s;  width: 4px; height: 4px; background: var(--color-orange);  color: var(--color-orange); }
.bonus__particle--9  { top: 15%; left: 40%; animation-delay: 0.3s;  width: 4px; height: 4px; background: var(--color-purple);   color: var(--color-purple); }
.bonus__particle--10 { bottom: 8%;  left: 35%; animation-delay: 1.6s;  width: 5px; height: 5px; background: var(--color-green);    color: var(--color-green); }
.bonus__particle--11 { top: 50%; right: 2%; animation-delay: 0.9s;  width: 3px; height: 3px; background: var(--color-secondary); color: var(--color-secondary); }
.bonus__particle--12 { bottom: 40%; left: 3%;  animation-delay: 1.7s;  width: 5px; height: 5px; background: var(--color-accent);   color: var(--color-accent); }

@keyframes particlePop {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    10% { opacity: 1; transform: scale(1.5) translateY(-2px); }
    25% { opacity: 1; transform: scale(1) translateY(-8px); }
    50% { opacity: 0.8; transform: scale(1.2) translateY(-14px); }
    75% { opacity: 0.4; transform: scale(0.6) translateY(-24px); }
}

/* === ÉTOILES — 8 emojis scintillants === */
.bonus__stars {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: 4;
}

.bonus__star {
    position: absolute;
    font-size: 1.3rem;
    animation: starTwinkle 1.8s ease-in-out infinite;
}

.bonus__star--1 { top: 0%;  left: 18%; animation-delay: 0s;    font-size: 1.2rem; }
.bonus__star--2 { top: 5%;  right: 10%; animation-delay: 0.25s; font-size: 1.6rem; }
.bonus__star--3 { bottom: 12%; left: 8%;  animation-delay: 0.5s;  font-size: 1.3rem; }
.bonus__star--4 { bottom: 5%;  right: 15%; animation-delay: 0.75s; font-size: 1.1rem; }
.bonus__star--5 { top: 30%; left: 0%;  animation-delay: 1s;    font-size: 1rem; }
.bonus__star--6 { top: 25%; right: 2%; animation-delay: 1.25s; font-size: 1.4rem; }
.bonus__star--7 { bottom: 30%; left: 5%;  animation-delay: 1.5s;  font-size: 0.9rem; }
.bonus__star--8 { top: 55%; right: 8%; animation-delay: 1.75s; font-size: 1.2rem; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
    30% { opacity: 1; transform: scale(1.3) rotate(15deg); }
    50% { opacity: 0.9; transform: scale(1) rotate(25deg); }
    70% { opacity: 0.5; transform: scale(1.1) rotate(10deg); }
}

/* === LABEL BADGE === */
.bonus__magic-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
}

.bonus__label-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--color-green), #4ECDC4);
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(93, 196, 126, 0.4);
}

/* === DESCRIPTION FEATURES === */
.bonus__description {
    max-width: 700px;
    margin: 0 auto;
}

.bonus__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.bonus__feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--color-gray-600);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bonus__feature-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.bonus__feature-item strong {
    color: var(--color-dark);
}

.bonus__feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .bonus__magic-stage {
        width: 520px;
        height: 420px;
    }

    .bonus__pochette-wrap {
        width: 380px;
    }
}

/* === PLANNED / ENVISAGED SECTION (legacy) === */

.section__eyebrow--warning {
    background: var(--color-orange);
    color: var(--color-white);
}

.planned-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
}

/* Planned photo — Mathilde brandit le JDC */
.planned-photo {
    position: relative;
    max-width: 260px;
    width: 100%;
    align-self: center;
}

.planned-photo__img {
    width: 100%;
    mix-blend-mode: screen;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(45, 41, 38, 0.15));
    transition: transform var(--transition-slow);
    -webkit-mask-image: linear-gradient(to bottom, black 52%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 52%, transparent 90%);
}

.planned-photo:hover .planned-photo__img {
    transform: translateY(-8px) rotate(2deg);
}

/* Floating hearts */
.planned-heart {
    position: absolute;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    animation: heartFloat 4s ease-in-out infinite;
}

.planned-heart--1 {
    top: 10%;
    left: -8px;
    font-size: 0.75rem;
    animation-delay: 0s;
    animation-duration: 4.5s;
}

.planned-heart--2 {
    top: 30%;
    right: -5px;
    font-size: 1rem;
    animation-delay: 1.2s;
    animation-duration: 5s;
}

.planned-heart--3 {
    top: 55%;
    left: -12px;
    font-size: 0.65rem;
    animation-delay: 2.4s;
    animation-duration: 4s;
}

.planned-heart--4 {
    top: 5%;
    right: -10px;
    font-size: 0.6rem;
    animation-delay: 3.2s;
    animation-duration: 4.8s;
}

.planned-heart--5 {
    top: 45%;
    right: -15px;
    font-size: 0.8rem;
    animation-delay: 0.8s;
    animation-duration: 5.2s;
}

@keyframes heartFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% {
        opacity: 0.9;
        transform: translateY(-8px) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-25px) scale(1.1) rotate(-8deg);
    }
    85% {
        opacity: 0.3;
        transform: translateY(-45px) scale(0.9) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-55px) scale(0.5);
    }
}

.planned-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 2px dashed var(--color-orange-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.planned-card:nth-child(1) { border-color: rgba(255, 154, 86, 0.35); }
.planned-card:nth-child(2) { border-color: rgba(176, 124, 198, 0.35); }
.planned-card:nth-child(3) { border-color: rgba(74, 171, 224, 0.35); }
.planned-card:nth-child(4) { border-color: rgba(255, 107, 138, 0.35); }

.planned-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.planned-card:nth-child(1):hover { border-color: var(--color-orange); }
.planned-card:nth-child(2):hover { border-color: var(--color-purple); }
.planned-card:nth-child(3):hover { border-color: var(--color-primary); }
.planned-card:nth-child(4):hover { border-color: var(--color-secondary); }

.planned-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.planned-card:nth-child(1) .planned-card__icon-wrap { background: var(--color-orange-light); }
.planned-card:nth-child(2) .planned-card__icon-wrap { background: var(--color-purple-light); }
.planned-card:nth-child(3) .planned-card__icon-wrap { background: rgba(74, 171, 224, 0.12); }
.planned-card:nth-child(4) .planned-card__icon-wrap { background: rgba(255, 107, 138, 0.12); }

.planned-card__icon {
    width: 24px;
    height: 24px;
}

.planned-card:nth-child(1) .planned-card__icon { color: var(--color-orange); }
.planned-card:nth-child(2) .planned-card__icon { color: var(--color-purple); }
.planned-card:nth-child(3) .planned-card__icon { color: var(--color-primary); }
.planned-card:nth-child(4) .planned-card__icon { color: var(--color-secondary); }

.planned-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.planned-card__text {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.5;
}

.planned__cta {
    text-align: center;
    margin-top: var(--space-xl);
}

.planned__cta-text {
    font-size: 1.05rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

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

@media (min-width: 900px) {
    .whats-new__layout {
        flex-direction: row;
        align-items: center;
    }

    .whats-new__layout .features-grid {
        flex: 1;
    }

    .planned-photo {
        flex: 0 0 auto;
        max-width: 300px;
        align-self: center;
    }
}

@media (min-width: 1100px) {
    .planned-photo {
        max-width: 340px;
    }
}

/* === PREVIEW / GALLERY === */
.preview__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.preview__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.preview__item--a4 {
    cursor: pointer;
}

.preview__item--a4 img {
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.preview__item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.preview__item:hover img {
    transform: scale(1.03);
}

.preview__caption {
    display: block;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    text-align: center;
    background: var(--color-white);
}

.preview__item:nth-child(1) { border-bottom: 3px solid var(--color-primary); }
.preview__item:nth-child(2) { border-bottom: 3px solid var(--color-secondary); }
.preview__item:nth-child(3) { border-bottom: 3px solid var(--color-green); }
.preview__item:nth-child(4) { border-bottom: 3px solid var(--color-orange); }
.preview__item:nth-child(5) { border-bottom: 3px solid var(--color-purple); }
.preview__item:nth-child(6) { border-bottom: 3px solid var(--color-accent); }

@media (min-width: 900px) {
    .preview__gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: background var(--transition-base);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
}

.lightbox__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__arrow--prev {
    left: var(--space-lg);
}

.lightbox__arrow--prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox__arrow--next {
    right: var(--space-lg);
}

.lightbox__arrow--next:hover {
    transform: translateY(-50%) translateX(3px);
}

.lightbox__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.25s ease;
}

.lightbox__counter {
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .lightbox__arrow {
        width: 36px;
        height: 36px;
    }

    .lightbox__arrow--prev {
        left: var(--space-sm);
    }

    .lightbox__arrow--next {
        right: var(--space-sm);
    }

    .lightbox__close {
        top: var(--space-md);
        right: var(--space-md);
    }
}

/* === FORMATS SECTION === */
.formats {
    background: var(--color-accent-light);
    position: relative;
}

.formats::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 Q75,0 150,20 T300,20 T450,20 T600,20 T750,20 T900,20 T1050,20 T1200,20 L1200,40 L0,40 Z' fill='%23FFF3D0'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 40px;
    pointer-events: none;
}

.formats__hero {
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.formats__hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.1));
}

.formats__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.format-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: default;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.format-card:nth-child(1) { border-top-color: var(--color-primary); }
.format-card:nth-child(2) { border-top-color: var(--color-green); }
.format-card:nth-child(3) { border-top-color: var(--color-purple); }

.format-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.format-card:hover .format-card__svg {
    animation: float 2s ease-in-out infinite;
}

.format-card__ribbon {
    position: absolute;
    top: 16px;
    right: -28px;
    padding: 0.3rem 2.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(35deg);
}

.format-card__ribbon--eco {
    background: var(--color-green);
    color: #fff;
}

.format-card__ribbon--classic {
    background: var(--color-purple);
    color: #fff;
}

.format-card__ribbon--digital {
    background: var(--color-orange);
    color: #fff;
}

.format-card__picto {
    margin-bottom: var(--space-lg);
}

.format-card__svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.format-card:nth-child(1) .format-card__svg { color: var(--color-primary); }
.format-card:nth-child(2) .format-card__svg { color: var(--color-green); }
.format-card:nth-child(3) .format-card__svg { color: var(--color-purple); }

.format-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-dark);
}

.format-card__subtitle {
    font-size: 0.9rem;
    color: var(--color-gray-400);
}

.format-card__tagline {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    font-weight: 600;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.format-card__perks {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.format-card__perks li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.format-card__perks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-green);
}

.format-card__hint {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-orange);
    font-weight: 600;
    font-style: italic;
}

@media (min-width: 768px) {
    .formats__grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === FORMATS — Encart agenda numérique === */
/* === DIGITAL SHOWCASE — Immersive === */
.digital-showcase {
    position: relative;
    margin-top: var(--space-3xl);
    background: linear-gradient(160deg, #1a1035 0%, #2d1f5e 40%, #1a3a5c 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(26, 16, 53, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glow effects */
.digital-showcase__glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 124, 198, 0.35) 0%, transparent 70%);
    top: -80px;
    left: -60px;
    filter: blur(40px);
    pointer-events: none;
    animation: digital-glow-drift 8s ease-in-out infinite alternate;
}

.digital-showcase__glow--2 {
    background: radial-gradient(circle, rgba(74, 171, 224, 0.3) 0%, transparent 70%);
    top: auto;
    left: auto;
    bottom: -100px;
    right: -80px;
    width: 350px;
    height: 350px;
    animation-delay: -4s;
    animation-direction: alternate-reverse;
}

@keyframes digital-glow-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.15); }
}

/* Header */
.digital-showcase__header {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-xl);
}

.digital-showcase__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.digital-showcase__tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-style: italic;
}

/* Stage — image showcase */
.digital-showcase__stage {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
}

.digital-showcase__mockup {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    animation: digital-float 6s ease-in-out infinite;
}

.digital-showcase__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.digital-showcase__mockup:hover .digital-showcase__img {
    transform: scale(1.02);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(176, 124, 198, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

/* Pictogrammes flottants */
.digital-pictos {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.digital-picto {
    position: absolute;
    font-size: 1.4rem;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0;
    animation: picto-pop 0.5s ease forwards, picto-float 4s ease-in-out infinite;
}

.digital-picto--1 { top: 5%;  left: 5%;  animation-delay: 0.2s, 0.7s; }
.digital-picto--2 { top: 40%; left: -2%; animation-delay: 0.4s, 0.9s; }
.digital-picto--3 { top: 10%; right: 5%; animation-delay: 0.6s, 1.1s; }
.digital-picto--4 { top: 45%; right: -1%;animation-delay: 0.8s, 1.3s; }
.digital-picto--5 { bottom: 15%; left: 3%; animation-delay: 1.0s, 1.5s; }
.digital-picto--6 { bottom: 10%; right: 4%;animation-delay: 1.2s, 1.7s; }

@keyframes picto-pop {
    0%   { opacity: 0; transform: scale(0.3); }
    100% { opacity: 1; transform: scale(1); }
}

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

@media (min-width: 768px) {
    .digital-picto {
        font-size: 1.6rem;
        width: 3rem;
        height: 3rem;
    }

    .digital-picto--1 { top: 8%;  left: 2%;  }
    .digital-picto--2 { top: 45%; left: -4%; }
    .digital-picto--3 { top: 8%;  right: 2%; }
    .digital-picto--4 { top: 50%; right: -3%;}
    .digital-picto--5 { bottom: 15%; left: 0%; }
    .digital-picto--6 { bottom: 10%; right: 1%;}
}

/* Features grid */
.digital-showcase__features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.digital-showcase__feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.digital-showcase__feature:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.digital-showcase__feature-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Hint */
.digital-showcase__hint {
    position: relative;
    z-index: 1;
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Desktop */
@media (min-width: 768px) {
    .digital-showcase {
        padding: var(--space-3xl) var(--space-2xl);
    }

    .digital-showcase__title {
        font-size: 2rem;
    }

    .digital-showcase__mockup {
        max-width: 600px;
    }

    .digital-showcase__features {
        grid-template-columns: 1fr 1fr;
        max-width: 680px;
    }
}

/* === STICKERS SECTION === */
.section__eyebrow--new {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-orange));
    color: var(--color-white);
}

.stickers__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.stickers__photo {
    flex-shrink: 0;
    max-width: 400px;
    width: 100%;
}

.stickers__photo-img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    width: 100%;
}

.stickers__content {
    text-align: center;
}

.stickers__text {
    font-size: 1.1rem;
    color: var(--color-gray-500);
    line-height: 1.8;
    margin-top: var(--space-lg);
}

.stickers__text strong {
    color: var(--color-dark);
}

@media (min-width: 768px) {
    .stickers__layout {
        flex-direction: row-reverse;
        align-items: center;
    }

    .stickers__photo {
        max-width: 420px;
    }

    .stickers__content {
        text-align: left;
        flex: 1;
    }
}

/* === DIGITAL / AGENDA NUMERIQUE SECTION === */
.digital {
    background: linear-gradient(135deg, #EDE7F6 0%, #E8F5E9 100%);
    position: relative;
}

.digital__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.digital__photo {
    flex-shrink: 0;
    max-width: 380px;
    width: 100%;
}

.digital__photo-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.digital__content {
    text-align: center;
}

.section__eyebrow--digital {
    background: linear-gradient(135deg, var(--color-purple), var(--color-primary));
    color: var(--color-white);
}

.digital__text {
    font-size: 1.05rem;
    color: var(--color-gray-500);
    line-height: 1.8;
    margin-top: var(--space-lg);
}

.digital__text strong {
    color: var(--color-dark);
}

.digital__features {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.digital__feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--color-gray-600);
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.digital__feature-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.digital__feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.digital__hint {
    margin-top: var(--space-xl);
    font-size: 0.9rem;
    color: var(--color-purple);
    font-weight: 600;
    font-style: italic;
}

@media (min-width: 768px) {
    .digital__layout {
        flex-direction: row;
        align-items: center;
    }

    .digital__photo {
        max-width: 400px;
    }

    .digital__content {
        text-align: left;
        flex: 1;
    }
}

/* === FINAL CTA === */
.final-cta__content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.final-cta__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
}

@media (min-width: 600px) {
    .final-cta__title {
        font-size: 2.5rem;
    }
}

/* === FOOTER === */
.footer {
    background: var(--color-dark);
    color: var(--color-gray-300);
    padding: var(--space-2xl) 0;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
}

.footer__logo {
    margin-bottom: var(--space-md);
}

.footer__logo-img {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    object-fit: contain;
}

.footer__tagline {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    color: var(--color-gray-400);
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.footer__links a:hover {
    color: var(--color-white);
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* === NOTIFY POPUP === */
.notify-popup {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.notify-popup.active {
    opacity: 1;
    visibility: visible;
}

.notify-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 41, 38, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.notify-popup__container {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 460px;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notify-popup.active .notify-popup__container {
    transform: translateY(0) scale(1);
}

.notify-popup__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    transition: all var(--transition-base);
}

.notify-popup__close:hover {
    background: var(--color-gray-200);
    color: var(--color-dark);
}

.notify-popup__emoji {
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.notify-popup__emoji--big {
    font-size: 3rem;
}

.notify-popup__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.notify-popup__text {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.notify-popup__text strong {
    color: var(--color-dark);
}

.notify-popup__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.notify-popup__input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-base);
    background: var(--color-light);
    text-align: center;
}

.notify-popup__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(74, 171, 224, 0.15);
}

.notify-popup__submit {
    width: 100%;
}

/* === SURVEY CTA SECTION === */
.survey-cta {
    position: relative;
    overflow: hidden;
}

.survey-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/intercalaires-test-1.png') repeat center center;
    background-size: 500px auto;
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    .survey-cta::after {
        background-size: 600px auto;
        opacity: 0.30;
    }
}

@media (min-width: 1200px) {
    .survey-cta::after {
        background-size: 700px auto;
        opacity: 0.25;
    }
}

.survey-cta__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.proof__cta-text {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: var(--space-2xl) auto 0;
    line-height: 1.7;
}

/* ==========================================================================
   SURVEY POPUP MODAL — Multi-step wizard
   ========================================================================== */

.survey-popup {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.survey-popup.active {
    opacity: 1;
    visibility: visible;
}

.survey-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 41, 38, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.survey-popup__container {
    position: relative;
    z-index: 1;
    width: 95%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 0;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.survey-popup.active .survey-popup__container {
    transform: translateY(0) scale(1);
}

.survey-popup__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    transition: all var(--transition-base);
}

.survey-popup__close:hover {
    background: var(--color-gray-200);
    color: var(--color-dark);
}

.survey-popup__progress {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 4px;
    background: var(--color-gray-100);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.survey-popup__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-green), var(--color-accent), var(--color-orange), var(--color-secondary));
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.survey-popup__step-count {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-gray-400);
    padding: var(--space-sm) var(--space-xl) 0;
    font-weight: 600;
}

/* Steps */
.survey-step {
    display: none;
    padding: var(--space-lg) var(--space-xl) var(--space-md);
    animation: surveyStepIn 0.35s ease forwards;
}

.survey-step.active {
    display: block;
}

@keyframes surveyStepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.4s ease;
    border-color: var(--color-secondary) !important;
}

.survey-step__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.survey-step__emoji {
    display: block;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.survey-step__emoji--big {
    font-size: 3rem;
}

.survey-step__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.survey-step__subtitle {
    font-size: 0.9rem;
    color: var(--color-gray-400);
    line-height: 1.5;
}

.survey-step__body {
    margin-bottom: var(--space-md);
}

.survey-step__body--double {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.survey-step__sub-question {
    padding-bottom: var(--space-md);
}

.survey-step__sub-question:not(:last-child) {
    border-bottom: 1px solid var(--color-gray-100);
}

.survey-step__sub-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-600);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.survey-step__label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-sm);
}

.survey-step__input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-base);
    background: var(--color-light);
}

.survey-step__input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(74, 171, 224, 0.15);
}

/* Options grids */
.survey-step__options--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.survey-step__options--inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.survey-step__conditional {
    border-left: 3px solid var(--color-primary-light);
    padding-left: var(--space-md);
    margin-top: var(--space-md);
}

.survey-popup__close-text {
    margin-top: var(--space-md);
}

/* Nav buttons */
.survey-popup__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
}

.survey-popup__prev {
    visibility: hidden;
}

.survey-popup__prev.visible {
    visibility: visible;
}

.survey-popup__next {
    margin-left: auto;
}

/* Star rating */
.star-rating {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.star-rating__star {
    font-size: 2.5rem;
    color: var(--color-gray-200);
    transition: color var(--transition-fast), transform var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.star-rating__star:hover,
.star-rating__star.active {
    color: var(--color-accent);
}

.star-rating__star:hover {
    transform: scale(1.2);
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.star-rating__star.active {
    animation: starPop 0.3s ease;
}

/* Checkbox & Radio cards */
.checkbox-card,
.radio-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
}

.checkbox-card:hover,
.radio-card:hover {
    background: var(--color-white);
    border-color: var(--color-primary-light);
}

.checkbox-card input,
.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-card__box,
.radio-card__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-gray-300);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.radio-card__box {
    border-radius: var(--radius-full);
}

.checkbox-card input:checked ~ .checkbox-card__box {
    background: var(--color-green);
    border-color: var(--color-green);
}

.radio-card input:checked ~ .radio-card__box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-card input:checked ~ .checkbox-card__box::after {
    content: '\2713';
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
}

.radio-card input:checked ~ .radio-card__box::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: var(--radius-full);
}

.checkbox-card input:checked ~ .checkbox-card__text,
.radio-card input:checked ~ .radio-card__text {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.checkbox-card__text,
.radio-card__text {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    transition: all var(--transition-base);
}

/* Textarea */
.survey-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    resize: vertical;
    transition: border-color var(--transition-base);
    background: var(--color-light);
    line-height: 1.5;
}

.survey-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(74, 171, 224, 0.15);
}

.survey-textarea::placeholder {
    color: var(--color-gray-300);
}

/* Responsive popup */
@media (min-width: 600px) {
    .survey-step__options--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .survey-step__options--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Body lock */
body.survey-open {
    overflow: hidden;
}

/* === CONFETTI DECORATIONS === */
.hero__confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    display: none;
}

@media (min-width: 768px) {
    .hero__confetti {
        display: block;
    }
}

.confetti {
    position: absolute;
    display: block;
    opacity: 0.5;
}

.confetti--1 {
    width: 12px; height: 12px;
    background: var(--color-secondary);
    border-radius: 50%;
    top: 15%; left: 8%;
    animation: confettiFloat 8s ease-in-out infinite;
}

.confetti--2 {
    width: 8px; height: 20px;
    background: var(--color-accent);
    border-radius: 3px;
    top: 25%; right: 12%;
    transform: rotate(35deg);
    animation: confettiFloat 10s ease-in-out infinite 1s;
}

.confetti--3 {
    width: 16px; height: 16px;
    background: var(--color-green);
    border-radius: 2px;
    top: 60%; left: 5%;
    transform: rotate(45deg);
    animation: confettiFloat 9s ease-in-out infinite 2s;
}

.confetti--4 {
    width: 10px; height: 10px;
    background: var(--color-orange);
    border-radius: 50%;
    top: 70%; right: 8%;
    animation: confettiFloat 7s ease-in-out infinite 0.5s;
}

.confetti--5 {
    width: 14px; height: 6px;
    background: var(--color-purple);
    border-radius: 3px;
    top: 40%; left: 15%;
    transform: rotate(-20deg);
    animation: confettiFloat 11s ease-in-out infinite 3s;
}

.confetti--6 {
    width: 10px; height: 10px;
    background: var(--color-primary);
    top: 80%; left: 20%;
    border-radius: 2px;
    transform: rotate(30deg);
    animation: confettiFloat 8s ease-in-out infinite 1.5s;
}

.confetti--7 {
    width: 8px; height: 8px;
    background: var(--color-coral);
    border-radius: 50%;
    top: 30%; left: 40%;
    animation: confettiFloat 9s ease-in-out infinite 2.5s;
}

.confetti--8 {
    width: 12px; height: 5px;
    background: var(--color-accent);
    border-radius: 3px;
    top: 50%; right: 18%;
    transform: rotate(-45deg);
    animation: confettiFloat 10s ease-in-out infinite 4s;
}

@keyframes confettiFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); opacity: 0.5; }
    25% { transform: translateY(-15px) rotate(calc(var(--rotation, 0deg) + 45deg)); opacity: 0.7; }
    50% { transform: translateY(-8px) rotate(calc(var(--rotation, 0deg) + 90deg)); opacity: 0.5; }
    75% { transform: translateY(-20px) rotate(calc(var(--rotation, 0deg) + 135deg)); opacity: 0.6; }
}

/* === School-themed section separators === */
.section--light::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 Q75,0 150,20 T300,20 T450,20 T600,20 T750,20 T900,20 T1050,20 T1200,20 L1200,40 L0,40 Z' fill='%23FFF9F0'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 40px;
    pointer-events: none;
}

.section--light {
    position: relative;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* === PRINT === */
@media print {
    .header,
    .hero__scroll-indicator,
    .hero__bg-shapes,
    .survey-popup {
        display: none;
    }

    .section {
        padding: 1rem 0;
    }

    body {
        color: #000;
        background: #fff;
    }
}
