        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #2292cb;
            --dark: #152f7b;
            --gray: #727170;
            --bg: #f8f9fa;
            --white: #ffffff;
            --accent-orange: #e8922a;
            --accent-green: #2eb87a;
            --accent-purple: #8b5cf6;
            --accent-red: #e03d3d;
            --gradient: linear-gradient(90deg, #2292cb 0%, #152f7b 100%);
        }

        html, body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            color: #333;
            background: var(--bg);
            overflow-x: hidden;
        }

        body.dark-mode {
            background: #1a1a1a;
            color: #f0f0f0;
        }

        .header {
            background: #ffffff;
            padding: 0 24px;
            border-bottom: 1px solid #eee;
            position: sticky;
            top: 0;
            z-index: 100;
            transition: transform 0.4s ease, opacity 0.4s ease;
        }

        .header.hidden {
            transform: translateY(-100%);
            opacity: 0;
            position: absolute;
            pointer-events: none;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            height: 64px;
            gap: 24px;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
            font-weight: 800;
            font-size: 16px;
            color: var(--dark);
            text-decoration: none;
            letter-spacing: -0.3px;
            flex-shrink: 0;
        }

        .logo-container:hover {
            opacity: 0.85;
        }

        .logo-svg {
            height: 36px;
            width: auto;
        }

        .header-title {
            display: none;
        }

        .header-right {
            display: flex;
            gap: 4px;
            align-items: center;
            margin-left: auto;
        }

        .admin-btn {
            background: transparent;
            border: none;
            color: #64748b;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
            opacity: 0;
            pointer-events: none;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .admin-btn.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .admin-btn:hover {
            background: #f0f0f0;
            color: #666;
        }

        .nav-container {
            display: flex;
            gap: 2px;
            background: #f4f4f5;
            border-radius: 10px;
            padding: 3px;
        }

        .nav-btn {
            background: transparent;
            border: none;
            color: #777;
            padding: 8px 18px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.25s ease;
            text-decoration: none;
        }

        .nav-btn:hover {
            color: #333;
            background: rgba(0,0,0,0.04);
        }

        .nav-btn.active {
            background: #ffffff;
            color: var(--dark);
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .container-landing {
            max-width: 100%;
            padding: 0;
        }

        .container-page {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* Internal page back button */
        .page-title {
            font-size: 28px;
            font-weight: 800;
            color: #1a1a2e;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .page-subtitle {
            font-size: 14px;
            color: #999;
            margin-bottom: 32px;
        }

        .back-to-home {
            display: none;
            align-items: center;
            gap: 8px;
            background: none;
            border: none;
            color: var(--primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            padding: 8px 0;
            margin-bottom: 20px;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .back-to-home:hover {
            color: var(--dark);
            transform: translateX(-4px);
        }

        /* ===== LANDING PAGE - CLEAN CORPORATE DESIGN ===== */
        .landing-page {
            text-align: center;
            padding: 0 !important;
            width: 100%;
        }

        .landing-hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding: 50px 20px 40px;
            background-color: #ffffff;
            background-image: radial-gradient(circle, #d0d0d0 0.8px, transparent 0.8px);
            background-size: 24px 24px;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-15px); }
            to { opacity: 1; transform: translateY(0); }
        }

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

        /* Brand lockup: logo + wordmark on the same line */
        .hero-brand {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 36px;
            animation: fadeInUp 0.6s ease 0.1s both;
            position: relative;
            z-index: 1;
        }

        .hero-brand svg {
            width: 56px;
            height: auto;
            flex-shrink: 0;
        }

        .hero-brand-name {
            font-size: 28px;
            font-weight: 800;
            letter-spacing: 3px;
            color: #1a1a2e;
            text-transform: uppercase;
        }

        .hero-brand-divider {
            width: 1px;
            height: 32px;
            background: #d0d0d0;
        }

        .hero-brand-event {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray);
            text-align: left;
            line-height: 1.4;
        }

        .hero-brand-event span {
            display: block;
            color: var(--primary);
            font-weight: 700;
        }

        /* Event badge */
        .event-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            border: 1px solid #e0e0e0;
            padding: 8px 20px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--gray);
            margin-bottom: 28px;
            animation: fadeInDown 0.6s ease;
            position: relative;
            z-index: 1;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        }

        .event-badge-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent-green);
            animation: blinkDot 2s ease-in-out infinite;
        }

        @keyframes blinkDot {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        /* Vignette overlay to fade dots behind content */
        .landing-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 60%, transparent 100%);
            pointer-events: none;
            z-index: 0;
        }

        /* Hero headline */
        .hero-headline {
            font-size: 46px;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 16px;
            color: #1a1a2e;
            letter-spacing: -1px;
            animation: fadeInUp 0.6s ease 0.2s both;
            position: relative;
            z-index: 1;
        }

        .hero-headline .gradient-text {
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-desc {
            font-size: 16px;
            color: #666;
            max-width: 520px;
            margin: 0 auto 44px;
            line-height: 1.7;
            animation: fadeInUp 0.6s ease 0.3s both;
            position: relative;
            z-index: 1;
        }

        /* Feature cards grid */
        .feature-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px;
            max-width: 880px;
            margin: 0 auto 48px;
            animation: fadeInUp 0.6s ease 0.4s both;
            position: relative;
            z-index: 1;
        }

        .feature-card {
            background: #ffffff;
            border-radius: 20px;
            text-align: left;
            border: 1px solid rgba(0,0,0,0.06);
            box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
            transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .feature-card:hover {
            border-color: transparent;
            box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
            transform: translateY(-8px);
        }

        /* Top visual banner per card */
        .feature-card-visual {
            padding: 32px 28px 28px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        /* Decorative pattern in visual banner */
        .feature-card-visual::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
            background-size: 16px 16px;
            pointer-events: none;
        }

        /* Decorative glow circle behind icon */
        .feature-card-visual::after {
            content: '';
            position: absolute;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            pointer-events: none;
            opacity: 0.3;
            filter: blur(30px);
        }

        .feature-card.formations .feature-card-visual {
            background: linear-gradient(135deg, var(--primary), var(--dark));
        }

        .feature-card.formations .feature-card-visual::after {
            background: rgba(255,255,255,0.5);
        }

        .feature-card.quiz .feature-card-visual {
            background: linear-gradient(135deg, #e8922a, #d63031);
        }

        .feature-card.quiz .feature-card-visual::after {
            background: rgba(255,255,255,0.5);
        }

        .feature-card-icon {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            position: relative;
            z-index: 1;
            background: rgba(255,255,255,0.18);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.25);
            transition: transform 0.4s ease;
        }

        .feature-card:hover .feature-card-icon {
            transform: scale(1.08);
        }

        .feature-card-icon svg {
            width: 30px;
            height: 30px;
        }

        .feature-card.formations .feature-card-icon {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        .feature-card.quiz .feature-card-icon {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        .feature-card-visual-text {
            position: relative;
            z-index: 1;
        }

        .feature-card-title {
            font-size: 19px;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 4px;
            letter-spacing: -0.2px;
        }

        .feature-card-subtitle {
            font-size: 13px;
            color: rgba(255,255,255,0.8);
            font-weight: 500;
        }

        /* Card body */
        .feature-card-body {
            padding: 24px 28px 28px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .feature-card-desc {
            font-size: 14px;
            color: #555;
            line-height: 1.7;
            margin-bottom: 20px;
            flex: 1;
        }

        .feature-card-metrics {
            display: flex;
            gap: 8px;
            margin-bottom: 22px;
        }

        .feature-metric {
            flex: 1;
            border-radius: 12px;
            padding: 12px 8px;
            text-align: center;
            position: relative;
        }

        .feature-card.formations .feature-metric {
            background: linear-gradient(135deg, rgba(34,146,203,0.06), rgba(21,47,123,0.06));
            border: 1px solid rgba(34,146,203,0.1);
        }

        .feature-card.quiz .feature-metric {
            background: linear-gradient(135deg, rgba(232,146,42,0.06), rgba(214,48,49,0.06));
            border: 1px solid rgba(232,146,42,0.1);
        }

        .feature-metric-num {
            font-size: 20px;
            font-weight: 800;
            line-height: 1;
            margin-bottom: 3px;
        }

        .feature-card.formations .feature-metric-num { color: var(--primary); }
        .feature-card.quiz .feature-metric-num { color: #e8922a; }

        .feature-metric-label {
            font-size: 10px;
            font-weight: 600;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        .feature-card-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            padding: 14px 24px;
            border-radius: 12px;
            transition: all 0.3s ease;
            width: 100%;
            text-align: center;
            letter-spacing: 0.2px;
        }

        .feature-card.formations .feature-card-cta {
            background: linear-gradient(135deg, var(--primary), var(--dark));
            color: white;
            box-shadow: 0 4px 14px rgba(34,146,203,0.25);
        }

        .feature-card.quiz .feature-card-cta {
            background: linear-gradient(135deg, #e8922a, #d63031);
            color: white;
            box-shadow: 0 4px 14px rgba(232,146,42,0.25);
        }

        .feature-card-cta:hover {
            transform: translateY(-2px);
            filter: brightness(1.05);
        }

        .feature-card.formations .feature-card-cta:hover {
            box-shadow: 0 6px 20px rgba(34,146,203,0.35);
        }

        .feature-card.quiz .feature-card-cta:hover {
            box-shadow: 0 6px 20px rgba(232,146,42,0.35);
        }

        .feature-card-cta svg {
            transition: transform 0.3s ease;
        }

        .feature-card:hover .feature-card-cta svg {
            transform: translateX(4px);
        }

        .feature-card-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255,255,255,0.22);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 20px;
            letter-spacing: 0.3px;
            z-index: 2;
            text-transform: uppercase;
        }

        /* Divider line */
        .hero-divider {
            display: none;
        }

        /* Info bar */
        .hero-info-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 0 auto 0;
            animation: fadeInUp 0.6s ease 0.5s both;
            position: relative;
            z-index: 1;
        }

        .hero-info-item {
            display: flex;
            align-items: center;
            gap: 0;
            font-size: 13px;
            color: #999;
            font-weight: 500;
        }

        .hero-info-sep {
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: #ccc;
        }

        .hero-info-icon {
            display: none;
        }

        .hero-info-num {
            font-size: inherit;
            font-weight: inherit;
            color: inherit;
            line-height: 1;
            margin-bottom: 0;
        }

        .hero-info-label {
            font-size: inherit;
            font-weight: inherit;
            color: inherit;
            letter-spacing: 0;
        }

        /* Responsive landing */
        @media (max-width: 768px) {
            .hero-headline {
                font-size: 32px;
                letter-spacing: -0.5px;
            }

            .hero-desc {
                font-size: 15px;
            }

            .feature-cards {
                grid-template-columns: 1fr;
                padding: 0 16px;
                gap: 16px;
            }

            .hero-info-bar {
                gap: 8px;
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .hero-headline {
                font-size: 26px;
            }

            .landing-hero {
                padding: 36px 16px 30px;
                min-height: auto;
            }

            .feature-card-visual {
                padding: 24px 20px 20px;
            }

            .feature-card-body {
                padding: 18px 20px 22px;
            }

            .feature-card-metrics {
                gap: 6px;
            }

            .feature-card-icon {
                width: 56px;
                height: 56px;
                border-radius: 16px;
            }

            .feature-card-icon svg {
                width: 26px;
                height: 26px;
            }

            .feature-card-title {
                font-size: 17px;
            }

            .hero-info-bar {
                flex-wrap: wrap;
                justify-content: center;
            }

            .hero-info-item {
                font-size: 12px;
            }

            .hero-brand {
                gap: 10px;
            }

            .hero-brand svg {
                width: 42px;
            }

            .hero-brand-name {
                font-size: 20px;
                letter-spacing: 2px;
            }
        }

        .formation-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 30px;
        }

        .formation-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #eee;
        }

        .formation-card:hover {
            box-shadow: 0 6px 24px rgba(0,0,0,0.08);
            border-color: #ddd;
        }

        /* Top row: trainer info + body */
        .formation-card-top {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 26px 28px;
            gap: 24px;
        }

        /* Left: trainer photo + name stacked */
        .formation-card-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 10px;
            flex-shrink: 0;
            min-width: 140px;
        }

        .formation-avatar {
            width: 116px;
            height: 116px;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 34px;
            color: white;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 3px solid white;
            outline: 2px solid #eee;
        }

        .formation-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .formation-header-text {
            text-align: center;
        }

        .formation-trainer {
            font-weight: 700;
            color: #1a1a2e;
            font-size: 17px;
            margin-bottom: 4px;
        }

        .formation-tag {
            display: inline-block;
            font-size: 13px;
            font-weight: 600;
            padding: 3px 11px;
            border-radius: 20px;
            letter-spacing: 0.2px;
        }

        /* Center: content */
        .formation-card-body {
            flex: 1;
            min-width: 0;
            padding: 0 20px;
            border-left: 1px solid #f0f0f0;
        }

        .formation-title {
            font-size: 19px;
            font-weight: 700;
            margin-bottom: 6px;
            color: #1a1a2e;
            line-height: 1.35;
        }

        .formation-resume {
            font-size: 16px;
            color: #999;
            line-height: 1.5;
            margin-bottom: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .formation-idlabs-link {
            display: inline-block;
            margin-top: 10px;
            font-size: 14px;
            font-weight: 700;
            color: #207fbc;
            text-decoration: none;
        }

        .formation-idlabs-link:hover {
            text-decoration: underline;
        }

        .formation-meta {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .formation-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 15px;
            color: #aaa;
            font-weight: 500;
        }

        .formation-meta-item svg {
            flex-shrink: 0;
            color: #ccc;
        }

        /* Sessions section */
        .formation-card-sessions {
            width: 100%;
            border-top: 1px solid #f0f0f0;
            padding: 16px 28px 20px;
        }

        .sessions-label {
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #bbb;
            margin-bottom: 12px;
        }

        .session-row {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 13px 18px;
            background: #fafafa;
            border-radius: 10px;
            margin-bottom: 8px;
        }

        .session-row:last-child {
            margin-bottom: 0;
        }

        .session-date {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 17px;
            font-weight: 600;
            color: #444;
            min-width: 200px;
            flex-shrink: 0;
        }

        .session-date svg {
            color: var(--primary);
            flex-shrink: 0;
        }

        .session-lieu {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 15px;
            font-weight: 500;
            color: #666;
            min-width: 190px;
            flex-shrink: 0;
        }

        .session-lieu svg {
            color: var(--accent-orange);
            flex-shrink: 0;
        }

        .session-seats {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }

        .session-cta {
            padding: 10px 22px;
            background: var(--gradient);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(34,146,203,0.15);
            flex-shrink: 0;
        }

        .session-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(34,146,203,0.25);
        }

        /* Visual price block */
        .formation-price-block {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px 22px 14px;
            margin-left: auto;
            background: white;
            border-radius: 14px;
            border: 2px solid var(--primary);
            position: relative;
            min-width: 140px;
            box-shadow: 0 4px 16px rgba(34,146,203,0.1);
        }

        .price-badge-ribbon {
            position: absolute;
            top: -11px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--gradient);
            color: white;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 3px 14px;
            border-radius: 20px;
            white-space: nowrap;
        }

        .price-row {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-top: 6px;
        }

        .price-amount {
            font-size: 28px;
            font-weight: 900;
            color: var(--primary);
            line-height: 1;
            letter-spacing: -1px;
        }

        .price-amount-crossed {
            font-size: 17px;
            font-weight: 600;
            color: #bbb;
            text-decoration: line-through;
            text-decoration-thickness: 2px;
            line-height: 1;
        }

        .price-saving {
            margin-top: 6px;
            font-size: 13px;
            font-weight: 700;
            color: var(--accent-green);
            background: rgba(46,184,122,0.08);
            padding: 3px 12px;
            border-radius: 20px;
        }

        /* Legacy footer (kept for compatibility) */
        .formation-card-footer {
            display: none;
        }

        .formation-seats-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            width: 100%;
        }

        .formation-seats-dots {
            display: flex;
            gap: 5px;
            justify-content: center;
        }

        .formation-seats-dots .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #e8e8e8;
            transition: background 0.3s ease;
        }

        .formation-seats-dots .dot.taken {
            background: var(--primary);
            box-shadow: 0 1px 4px rgba(34,146,203,0.3);
        }

        .formation-seats-dots .dot.taken.warn {
            background: #e8922a;
            box-shadow: 0 1px 4px rgba(232,146,42,0.3);
        }

        .formation-seats-text {
            font-size: 15px;
            font-weight: 600;
            color: #2eb87a;
        }

        .formation-seats-text.few {
            color: #e8922a;
        }

        .formation-seats-text.full {
            color: #e03d3d;
        }

        .formation-seats-hint {
            font-size: 10px;
            color: #bbb;
            font-style: italic;
        }

        .formation-cta {
            padding: 10px 22px;
            background: var(--gradient);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(34,146,203,0.2);
        }

        .formation-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 14px rgba(34,146,203,0.3);
        }

        .formation-cta:active {
            transform: scale(0.98);
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 0;
            max-width: 680px;
            width: 92%;
            max-height: 92vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease;
        }

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

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            padding: 20px 28px;
            border-bottom: 1px solid #f0f0f0;
        }

        .modal-header h2 {
            font-size: 20px;
            font-weight: 700;
            color: #1a1a2e;
            line-height: 1.3;
            margin: 0;
            flex: 1;
            min-width: 0;
        }

        .close-modal {
            background: #f5f5f5;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #64748b;
            line-height: 1;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 2px;
            transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
        }

        .close-modal:active {
            transform: scale(0.92);
        }

        .close-modal:hover {
            background: #eee;
            color: #333;
        }

        /* Modal body with layout */
        .modal-body-inner {
            padding: 24px 28px;
        }

        .modal-info-bar {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .modal-info-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: #f8f9fa;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            color: #555;
        }

        .modal-info-chip svg {
            color: var(--primary);
            flex-shrink: 0;
        }

        .modal-info-chip.status-available {
            background: #ecfdf5;
            color: #059669;
        }

        .modal-info-chip.status-full {
            background: #fef2f2;
            color: #dc2626;
        }

        .modal-objectives {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 20px;
        }

        .modal-objective-tag {
            padding: 7px 14px;
            background: #f0f9ff;
            border: 1px solid rgba(34,146,203,0.1);
            border-radius: 6px;
            font-size: 15px;
            color: #444;
            line-height: 1.3;
        }

        .modal-idlabs-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 13px 20px;
            background: #207fbc;
            color: white;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            text-decoration: none;
            margin-bottom: 20px;
            transition: background 0.2s ease, transform 0.15s ease;
            width: fit-content;
        }

        .modal-idlabs-btn:hover {
            background: #1a6ea3;
            transform: translateY(-1px);
        }

        /* Form 2-column layout */
        .modal-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .modal-form-grid .form-group-full {
            grid-column: 1 / -1;
        }

        .form-group {
            margin-bottom: 0;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 6px;
            font-size: 14px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 13px 14px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            font-size: 17px;
            font-family: inherit;
            transition: all 0.2s ease;
            background: #fafafa;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(34,146,203,0.08);
            background: white;
        }

        .form-submit {
            width: 100%;
            padding: 16px;
            background: var(--gradient);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.3s ease;
            margin-top: 16px;
        }

        .form-submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(34,146,203,0.3);
        }

        .form-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .success-message {
            background: #ecfdf5;
            color: #065f46;
            padding: 16px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 1px solid #c3e6cb;
        }

        /* ===== QUIZ PAGE ===== */
        .quiz-page {
            max-width: 680px;
            margin: 0 auto;
        }

        .quiz-page:has(#resultsPage[style*="block"]) {
            max-width: 100%;
        }

        /* ===== CIA ONBOARDING — design clair ===== */
        .cia-onboarding {
            position: fixed;
            inset: 0;
            z-index: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #eef1f7;
            overflow-y: auto;
            padding: 40px 20px;
        }

        .cia-step {
            display: none;
            flex-direction: column;
            align-items: center;
            text-align: center;
            max-width: 580px;
            width: 100%;
            background: #ffffff;
            border: 1px solid #dde3ee;
            border-radius: 20px;
            padding: 48px 40px 40px;
            box-shadow: 0 2px 16px rgba(0,0,0,0.07);
            overflow: hidden;
            position: relative;
            animation: ciaAppear 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .cia-step::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 4px;
            background: #2292cb;
        }

        .cia-step.active {
            display: flex;
        }

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

        .cia-access-tag {
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.35em;
            color: #2eb87a;
            text-transform: uppercase;
            margin-bottom: 20px;
            animation: blinkAccess 1.4s step-end 3;
        }

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

        .cia-sentence {
            font-size: 26px;
            font-weight: 700;
            color: #334155;
            line-height: 2;
            margin-bottom: 40px;
            text-align: center;
            max-width: 540px;
        }

        .cia-sentence--sm {
            font-size: 20px;
        }

        .cia-filled {
            color: #2292cb;
            font-weight: 800;
        }

        .cia-blank {
            color: #cbd5e1;
            border-bottom: 1px dashed #cbd5e1;
            padding-bottom: 2px;
            font-style: italic;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .cia-select {
            background: none;
            border: none;
            border-bottom: 2px solid rgba(34,146,203,0.4);
            color: #2292cb;
            font-size: inherit;
            font-weight: 800;
            font-family: inherit;
            cursor: pointer;
            outline: none;
            padding: 0 4px 4px;
            transition: border-color 0.2s ease;
            -webkit-appearance: none;
            appearance: none;
        }

        .cia-select option {
            background: white;
            color: #0f172a;
            font-weight: 600;
        }

        .cia-select:focus {
            border-bottom-color: #2292cb;
            border-bottom-width: 3px;
        }

        .cia-inline-input {
            background: none;
            border: none;
            border-bottom: 2px solid rgba(34,146,203,0.4);
            color: #2292cb;
            font-size: inherit;
            font-weight: 800;
            font-family: inherit;
            text-align: center;
            padding: 0 6px 4px;
            outline: none;
            min-width: 80px;
            transition: border-color 0.2s ease, width 0.15s ease;
            caret-color: #2292cb;
        }

        .cia-inline-input--email {
            min-width: 200px;
        }

        .cia-inline-input:focus {
            border-bottom-color: #2292cb;
            border-bottom-width: 3px;
        }

        .cia-inline-input::placeholder {
            color: #cbd5e1;
            font-weight: 600;
        }

        .cia-badge {
            display: inline-block;
            background: rgba(34,146,203,0.08);
            border: 1px solid rgba(34,146,203,0.25);
            color: #2292cb;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 8px;
            padding: 8px 24px;
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .cia-label {
            font-size: 12px;
            font-weight: 600;
            color: #94a3b8;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 36px;
        }

        .cia-step-num {
            font-size: 12px;
            font-weight: 700;
            color: #2292cb;
            letter-spacing: 3px;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .cia-question {
            font-size: 28px;
            font-weight: 800;
            color: #0f172a;
            line-height: 1.35;
            margin-bottom: 36px;
        }

        .cia-question strong {
            color: #2292cb;
        }

        .cia-hint {
            font-size: 14px;
            color: #94a3b8;
            margin-bottom: 36px;
            letter-spacing: 0.5px;
        }

        .cia-fields {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            max-width: 400px;
            margin-bottom: 28px;
        }

        .cia-input {
            width: 100%;
            padding: 16px 20px;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            font-size: 17px;
            font-family: inherit;
            color: #0f172a;
            background: #f8fafc;
            transition: all 0.2s ease;
            text-align: center;
        }

        .cia-input:focus {
            outline: none;
            border-color: #2292cb;
            background: white;
            box-shadow: 0 0 0 4px rgba(34,146,203,0.1);
        }

        .cia-input::placeholder {
            color: #cbd5e1;
        }

        .cia-btn {
            padding: 16px 44px;
            background: #2292cb;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            letter-spacing: 0.3px;
            box-shadow: 0 4px 0 #1568a0;
        }

        .cia-btn:hover {
            background: #27a0df;
            transform: translateY(-1px);
            box-shadow: 0 6px 0 #1568a0;
        }

        .cia-btn:active {
            transform: translateY(3px);
            box-shadow: 0 1px 0 #1568a0;
        }

        .cia-option-label {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: #3a5070;
            margin-bottom: 10px;
            margin-top: 8px;
            align-self: flex-start;
        }

        .cia-btn-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
            width: 100%;
            justify-content: center;
        }

        .cia-option-btn {
            padding: 10px 18px;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            background: #f8fafc;
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .cia-option-btn:hover {
            border-color: #2292cb;
            color: #4ab8f5;
            background: rgba(34,146,203,0.1);
        }

        .cia-option-btn.selected {
            background: rgba(34,146,203,0.2);
            border-color: #2292cb;
            color: #4ab8f5;
        }

        /* Lead form (legacy, kept for compat) */
        .quiz-lead-form {
            background: transparent;
        }

        .quiz-welcome-hero {
            background: linear-gradient(135deg, #152f7b 0%, #2292cb 100%);
            padding: 40px 32px 32px;
            text-align: center;
            color: white;
        }

        .quiz-welcome-emoji {
            font-size: 60px;
            display: block;
            margin-bottom: 14px;
            animation: floatEmoji 3s ease-in-out infinite;
        }

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

        .quiz-welcome-title {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 8px;
            color: white;
        }

        .quiz-welcome-sub {
            font-size: 16px;
            opacity: 0.85;
            margin-bottom: 22px;
            color: white;
        }

        .quiz-welcome-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .quiz-welcome-tags span {
            background: rgba(255,255,255,0.18);
            border: 1px solid rgba(255,255,255,0.3);
            padding: 5px 13px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            color: white;
        }

        .quiz-lead-fields {
            padding: 28px 32px 32px;
        }

        .quiz-lead-form .form-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 16px;
        }

        .quiz-lead-form .form-row.full {
            grid-template-columns: 1fr;
        }

        .quiz-start-btn {
            width: 100%;
            padding: 18px;
            background: linear-gradient(90deg, #2292cb 0%, #152f7b 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
        }

        .quiz-start-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(34,146,203,0.3);
        }

        /* ===== QUIZ ARENA — Design clair ===== */
        #quizArena {
            position: fixed;
            inset: 0;
            z-index: 500;
            background: #eef1f7;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 24px 20px;
            overflow-y: auto;
        }

        .qa-inner {
            width: 100%;
            max-width: 700px;
            margin: auto;
            padding: 24px 0 80px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* ---- Topbar ---- */
        .qa-topbar {
            background: #ffffff;
            border: 1px solid #dde3ee;
            border-radius: 16px;
            padding: 16px 20px 14px;
            box-shadow: 0 1px 6px rgba(0,0,0,0.06);
        }

        /* Category stepper */
        .qa-cats {
            display: flex;
            align-items: flex-start;
            gap: 0;
            margin-bottom: 14px;
        }

        .qa-cat-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            flex: 1;
            position: relative;
        }

        .qa-cat-step:not(:last-child)::after {
            content: \'\';
            position: absolute;
            top: 15px;
            left: calc(50% + 15px);
            right: calc(-50% + 15px);
            height: 2px;
            background: #dde3ee;
            transition: background 0.3s ease;
        }

        .qa-cat-step.done:not(:last-child)::after {
            background: #86efac;
        }

        .qa-cat-bubble {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            background: #f1f5f9;
            border: 2px solid #dde3ee;
            color: #94a3b8;
            transition: all 0.25s ease;
            position: relative;
            z-index: 1;
        }

        .qa-cat-step.active .qa-cat-bubble {
            background: var(--c);
            border-color: var(--c);
            color: white;
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent);
        }

        .qa-cat-step.done .qa-cat-bubble {
            background: #dcfce7;
            border-color: #86efac;
            color: #16a34a;
            font-size: 12px;
            font-weight: 700;
        }

        .qa-cat-name {
            font-size: 9px;
            font-weight: 600;
            text-align: center;
            color: #cbd5e1;
            max-width: 80px;
            line-height: 1.3;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .qa-cat-step.active .qa-cat-name {
            color: var(--c);
            font-weight: 700;
        }

        .qa-cat-step.done .qa-cat-name {
            color: #86efac;
        }

        /* Progress bar */
        .qa-progress-track {
            height: 4px;
            background: #e8ecf4;
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 0;
        }

        .qa-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #2292cb, #152f7b);
            border-radius: 4px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            width: 0%;
        }

        /* ---- Question Card ---- */
        .qa-card {
            background: #ffffff;
            border: 1px solid #dde3ee;
            border-radius: 20px;
            padding: 0;
            box-shadow: 0 2px 16px rgba(0,0,0,0.07);
            overflow: hidden;
        }

        .qa-card::before {
            content: \'\';
            display: block;
            height: 4px;
            background: var(--cat-color, #2292cb);
        }

        .qa-card.qa-exit {
            animation: slideOutQ 0.2s ease forwards;
        }

        .qa-card.qa-enter {
            animation: slideInQ 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        @keyframes slideOutQ {
            from { opacity: 1; transform: translateX(0) scale(1); }
            to   { opacity: 0; transform: translateX(-28px) scale(0.97); }
        }

        @keyframes slideInQ {
            from { opacity: 0; transform: translateX(28px) scale(0.97); }
            to   { opacity: 1; transform: translateX(0) scale(1); }
        }

        .qa-card-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 20px 28px 16px;
            border-bottom: 1px solid #f1f5f9;
            margin-bottom: 0;
        }

        .qa-category {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .qa-category-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: color-mix(in srgb, var(--cat-color, #2292cb) 10%, transparent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .qa-category-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .qa-category-label {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: #94a3b8;
        }

        .qa-category-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--cat-color, #2292cb);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .qa-counter {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
            flex-shrink: 0;
        }

        .qa-counter-label {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: #94a3b8;
        }

        .qa-counter-value {
            font-size: 16px;
            font-weight: 800;
            color: #1e293b;
        }

        .qa-mission-label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--cat-color, #2292cb);
            padding: 20px 28px 0;
            opacity: 0.7;
            margin-bottom: 0;
        }

        .qa-question {
            font-size: 21px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.55;
            margin: 12px 0 0;
            padding: 0 28px 28px;
            text-align: center;
        }

        /* ---- Answer buttons ---- */
        .qa-answers {
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-top: 1px solid #f1f5f9;
            padding: 20px 28px 28px;
        }

        .answer-scale-hint {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: #8fa0b8;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding: 0 2px;
        }

        .answer-btns-row {
            display: flex;
            flex-direction: row;
            gap: 8px;
        }

        .answer-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 52px;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            background: #fafbfd;
            cursor: pointer;
            color: #64748b;
            text-align: center;
            flex: 1;
            min-width: 0;
            font-size: 18px;
            font-weight: 700;
            box-shadow: 0 2px 0 #d0d9e8;
            transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease, transform 0.08s ease, box-shadow 0.08s ease;
            user-select: none;
        }

        .answer-btn:hover {
            background: color-mix(in srgb, var(--cat-color, #2292cb) 8%, white);
            border-color: var(--cat-color, #2292cb);
            color: var(--cat-color, #2292cb);
        }

        .answer-btn:active {
            transform: translateY(2px);
            box-shadow: 0 0 0 #d0d9e8;
        }

        .answer-btn.selected {
            background: var(--cat-color, #2292cb);
            border-color: var(--cat-color, #2292cb);
            color: white;
            box-shadow: 0 2px 0 color-mix(in srgb, var(--cat-color, #2292cb) 55%, black);
        }

        .answer-btn.selected:active {
            transform: translateY(2px);
            box-shadow: 0 0 0 color-mix(in srgb, var(--cat-color, #2292cb) 55%, black);
        }

        .answer-btn.selected

        /* ---- Abandon button ---- */
        .qa-quit-btn {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: 510;
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 11px 20px;
            background: white;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            color: #64748b;
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            box-shadow: 0 2px 0 #d0d9e8, 0 4px 12px rgba(0,0,0,0.07);
            transition: all 0.12s ease;
            letter-spacing: 0.01em;
        }

        .qa-quit-btn::before {
            content: '←';
            font-size: 14px;
            opacity: 0.6;
        }

        .qa-quit-btn:hover {
            border-color: #fca5a5;
            color: #ef4444;
            background: #fff8f8;
            box-shadow: 0 2px 0 #fca5a5, 0 4px 12px rgba(239,68,68,0.08);
        }

        .qa-quit-btn:active {
            transform: translateY(2px);
            box-shadow: 0 0 0 #d0d9e8;
        }

        /* XP floating animation */
        .xp-gain-float {
            position: fixed;
            pointer-events: none;
            font-size: 20px;
            font-weight: 800;
            color: #e8922a;
            text-shadow: 0 2px 8px rgba(0,0,0,0.15);
            animation: xpFloatUp 1s ease forwards;
            z-index: 9999;
        }

        @keyframes xpFloatUp {
            0% { opacity: 1; transform: translateY(0) scale(1); }
            50% { opacity: 1; transform: translateY(-30px) scale(1.2); }
            100% { opacity: 0; transform: translateY(-60px) scale(0.9); }
        }

        /* Inter-section screens between categories */
        .qa-intersect {
            position: fixed;
            inset: 0;
            z-index: 600;
            background: #07091a;
            background-image:
                linear-gradient(rgba(34,146,203,0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(34,146,203,0.04) 1px, transparent 1px);
            background-size: 48px 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 48px 32px;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .qa-intersect.visible {
            opacity: 1;
        }

        .qa-intersect-check {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #16a34a;
            margin-bottom: 20px;
            animation: fadeUp 0.5s ease both;
        }

        .qa-intersect-icon {
            font-size: 56px;
            line-height: 1;
            margin-bottom: 12px;
            animation: fadeUp 0.5s 0.05s ease both;
        }

        .qa-intersect-completed {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.3);
            margin-bottom: 32px;
            animation: fadeUp 0.5s 0.1s ease both;
        }

        .qa-intersect-phrase {
            font-size: 26px;
            font-weight: 700;
            color: rgba(255,255,255,0.9);
            max-width: 540px;
            line-height: 1.4;
            margin: 0 0 40px;
            animation: fadeUp 0.5s 0.15s ease both;
        }

        .qa-intersect-sep {
            width: 40px;
            height: 1px;
            background: rgba(34,146,203,0.35);
            margin: 0 auto 32px;
            animation: fadeUp 0.5s 0.2s ease both;
        }

        .qa-intersect-next-label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.25);
            margin-bottom: 8px;
            animation: fadeUp 0.5s 0.25s ease both;
        }

        .qa-intersect-next-name {
            font-size: 22px;
            font-weight: 800;
            margin-bottom: 48px;
            animation: fadeUp 0.5s 0.3s ease both;
        }

        .qa-intersect-btn {
            padding: 14px 36px;
            background: rgba(34,146,203,0.12);
            border: 1px solid rgba(34,146,203,0.35);
            border-radius: 14px;
            color: #4ab8f5;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 0 rgba(0,0,0,0.3);
            animation: fadeUp 0.5s 0.35s ease both;
        }

        .qa-intersect-btn:hover {
            background: rgba(34,146,203,0.22);
            border-color: #2292cb;
            color: white;
        }

        .qa-intersect-btn:active {
            transform: translateY(3px);
            box-shadow: 0 1px 0 rgba(0,0,0,0.3);
        }

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

        /* ===== RESULTS PAGE — DATA DASHBOARD ===== */
        .results-page {
            background: #f0f4f9;
            border-radius: 0;
            padding: 0;
            max-width: 100%;
            margin: 0;
        }

        /* HERO */
        .rp-hero {
            background: linear-gradient(90deg, #2292cb 0%, #152f7b 100%);
            padding: 48px 48px 52px;
            position: relative;
            overflow: hidden;
        }

        .rp-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                radial-gradient(circle at 80% 20%, rgba(34,146,203,0.12) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(21,47,123,0.15) 0%, transparent 50%);
        }

        .rp-hero-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 40px;
            position: relative;
        }

        .rp-report-label {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.35);
        }

        .rp-report-date {
            font-size: 12px;
            color: rgba(255,255,255,0.3);
            font-weight: 500;
        }

        .rp-hero-body {
            display: flex;
            align-items: center;
            gap: 52px;
            position: relative;
        }

        .rp-arc-wrapper {
            position: relative;
            width: 200px;
            height: 200px;
            flex-shrink: 0;
        }

        .rp-arc-wrapper svg {
            width: 200px;
            height: 200px;
        }

        .rp-arc-center {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .rp-arc-score {
            font-size: 52px;
            font-weight: 900;
            color: white;
            line-height: 1;
            letter-spacing: -2px;
        }

        .rp-arc-total {
            font-size: 14px;
            color: rgba(255,255,255,0.4);
            font-weight: 600;
        }

        .rp-hero-info {
            flex: 1;
        }

        .rp-hero-name {
            font-size: 13px;
            font-weight: 600;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 8px;
        }

        .rp-hero-company {
            font-size: 28px;
            font-weight: 800;
            color: white;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .rp-level-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 16px;
            border-radius: 40px;
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
            background: rgba(255,255,255,0.15) !important;
            color: white !important;
            border: 1px solid rgba(255,255,255,0.3) !important;
        }

        .rp-level-title {
            font-size: 17px;
            font-weight: 600;
            color: white;
            margin-bottom: 10px;
        }

        .rp-level-desc {
            font-size: 14px;
            color: white;
            line-height: 1.75;
        }

        .rp-level-desc span,
        .rp-level-desc strong {
            color: white !important;
            font-weight: 700;
            text-decoration: underline;
            text-underline-offset: 3px;
            text-decoration-color: rgba(255,255,255,0.4);
        }

        /* 6 KPI CARDS */
        .rp-kpi-section {
            padding: 36px 48px;
            background: #f0f4f9;
        }

        .rp-section-label {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 20px;
        }

        .rp-kpi-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .kpi-card {
            background: white;
            border-radius: 14px;
            padding: 20px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            position: relative;
            overflow: hidden;
        }

        .kpi-card::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: var(--kpi-color);
        }

        .kpi-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .kpi-card-icon {
            font-size: 22px;
        }

        .kpi-score-circle {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
        }

        .kpi-score-circle svg {
            width: 44px;
            height: 44px;
        }

        .kpi-card-name {
            font-size: 12px;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 6px;
        }

        .kpi-card-score {
            font-size: 26px;
            font-weight: 900;
            color: #0f172a;
            line-height: 1;
        }

        .kpi-card-score span {
            font-size: 13px;
            font-weight: 600;
            color: #94a3b8;
        }

        .kpi-card-bar {
            height: 5px;
            background: #f1f5f9;
            border-radius: 3px;
            margin-top: 14px;
            overflow: hidden;
        }

        .kpi-card-bar-fill {
            height: 100%;
            border-radius: 3px;
            background: var(--kpi-color);
            width: 0%;
            transition: width 1s cubic-bezier(0.4,0,0.2,1);
        }

        .kpi-card-tier {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-top: 8px;
            color: var(--kpi-color);
        }

        .kpi-card-divider {
            height: 1px;
            background: #f1f5f9;
            margin: 16px 0 12px;
        }

        .kpi-reco-tag {
            display: inline-block;
            color: white;
            padding: 3px 9px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 8px;
        }

        .kpi-reco-text {
            font-size: 13.5px;
            color: #475569;
            line-height: 1.65;
        }

        .kpi-formation {
            margin-top: 16px;
            background: #f8fafc;
            border-radius: 10px;
            padding: 12px;
            border: 1px solid #e2e8f0;
        }

        .kpi-formation-label {
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #94a3b8;
            margin-bottom: 10px;
        }

        .kpi-formation-inner {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .kpi-formation-photo {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            border: 2px solid #e2e8f0;
        }

        .kpi-formation-info {
            flex: 1;
            min-width: 0;
        }

        .kpi-formation-trainer {
            font-size: 12px;
            font-weight: 700;
            color: #0f172a;
        }

        .kpi-formation-title {
            font-size: 11px;
            color: #64748b;
            line-height: 1.3;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .kpi-formation-cta {
            flex-shrink: 0;
            padding: 6px 12px;
            border-radius: 8px;
            color: white;
            font-size: 11px;
            font-weight: 700;
            text-decoration: none;
            transition: opacity 0.15s;
        }

        .kpi-formation-cta:hover {
            opacity: 0.85;
        }

        /* VIZ SECTION — radar + analysis */
        .rp-viz-section {
            display: grid;
            grid-template-columns: 360px 1fr;
            gap: 24px;
            padding: 0 48px 36px;
            background: #f0f4f9;
            align-items: start;
        }

        .rp-radar-box {
            background: white;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .rp-box-label {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 16px;
        }

        .radar-canvas {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
        }

        .rp-analysis-box {
            background: white;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            padding: 28px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .personal-analysis {
            font-size: 15px;
            color: #334155;
            line-height: 1.75;
        }

        /* RECOS */
        .recos-section {
            padding: 0 48px 48px;
            background: #f0f4f9;
        }

        .recos-title {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 20px;
        }

        .recos-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .reco-card {
            background: white;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .reco-card-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 14px 18px;
            border-bottom: 1px solid #f1f5f9;
            background: #fafbfd;
        }

        .reco-cat-icon { font-size: 16px; }

        .reco-cat-name {
            font-size: 12px;
            font-weight: 700;
            flex: 1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .reco-score-badge {
            font-size: 11px;
            font-weight: 800;
            padding: 3px 9px;
            border-radius: 20px;
        }

        .reco-tag {
            display: inline-block;
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 800;
            margin: 14px 18px 6px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .reco-text {
            font-size: 13px;
            color: #475569;
            line-height: 1.65;
            padding: 0 18px 18px;
        }

        /* DIPLOMA & NAV */
        .diploma-container {
            margin: 0 48px 48px;
            text-align: center;
            background: white;
            border-radius: 14px;
            border: 1px solid #e2e8f0;
            padding: 32px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .diploma-container h3 {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #94a3b8;
            margin-bottom: 20px;
        }

        .diploma-btn {
            padding: 13px 32px;
            background: linear-gradient(135deg, #2292cb, #152f7b);
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
            letter-spacing: 0.3px;
        }

        .diploma-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(34,146,203,0.35);
        }

        .results-nav {
            display: flex;
            gap: 12px;
            padding: 0 48px 48px;
            background: #f0f4f9;
        }

        .results-nav a,
        .results-nav button {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 700;
            font-size: 14px;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .results-nav .back-home {
            background: white;
            color: #0f172a;
            border: 1.5px solid #e2e8f0;
            box-shadow: 0 2px 0 #d0d9e8;
        }

        .results-nav .back-home:hover { background: #f8fafc; }

        .results-nav .new-quiz {
            background: linear-gradient(135deg, #2292cb, #152f7b);
            color: white;
            flex: 2;
            box-shadow: 0 4px 16px rgba(34,146,203,0.3);
        }

        .results-nav .new-quiz:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(34,146,203,0.4);
        }

        @media (max-width: 768px) {
            .rp-hero { padding: 32px 24px 36px; }
            .rp-hero-body { flex-direction: column; gap: 28px; }
            .rp-kpi-section { padding: 24px; }
            .rp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
            .rp-viz-section { grid-template-columns: 1fr; padding: 0 24px 24px; }
            .recos-section { padding: 0 24px 32px; }
            .recos-grid { grid-template-columns: 1fr; }
            .diploma-container { margin: 0 24px 32px; }
            .results-nav { padding: 0 24px 32px; }
        }

        .cta-btn {
            display: inline-block;
            padding: 12px 24px;
            background: var(--gradient);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(64, 162, 212, 0.3);
        }

        .cta-btn.secondary {
            background: white;
            color: var(--dark);
            border: 2px solid var(--primary);
        }

        .cta-btn.secondary:hover {
            background: var(--bg);
        }

        .admin-panel {
            background: white;
            border-radius: 12px;
            padding: 30px;
            max-width: 800px;
            margin: 0 auto;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .admin-section {
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 2px solid var(--bg);
        }

        .admin-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .admin-section h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            color: #333;
        }

        .admin-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }

        .stat-box {
            background: var(--bg);
            padding: 20px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-number {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 6px;
        }

        .stat-label {
            font-size: 13px;
            color: var(--gray);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .admin-actions {
            display: flex;
            gap: 12px;
        }

        .admin-actions button {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .admin-actions .export-btn {
            background: var(--primary);
            color: white;
        }

        .admin-actions .export-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(64, 162, 212, 0.3);
        }

        .admin-actions .clear-btn {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .admin-actions .clear-btn:hover {
            background: #f5c2c7;
        }

        .formation-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .formation-stat {
            background: var(--bg);
            padding: 14px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
        }

        .formation-stat-name {
            font-weight: 600;
            color: #333;
        }

        .formation-stat-count {
            background: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 4px;
            font-weight: 700;
            font-size: 13px;
        }

        @media (max-width: 768px) {
            .header-content {
                flex-wrap: nowrap;
                height: auto;
                padding: 10px 14px;
                gap: 8px;
            }

            .logo-container span {
                display: none;
            }

            .header-right {
                gap: 4px;
                margin-left: auto;
            }

            .nav-container {
                gap: 2px;
                padding: 2px;
            }

            .nav-btn {
                padding: 7px 10px;
                font-size: 12px;
            }

            .formation-card-top {
                flex-direction: column;
                padding: 16px 20px;
                gap: 12px;
            }

            .formation-card-header {
                flex-direction: row;
                min-width: auto;
                text-align: left;
            }

            .formation-header-text {
                text-align: left;
            }

            .formation-card-body {
                padding: 0;
                border-left: none;
            }

            .formation-card-sessions {
                padding: 14px 16px 16px;
            }

            .session-row {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                padding: 12px;
            }

            .session-date {
                min-width: auto;
            }

            .session-seats {
                flex-wrap: wrap;
            }

            .formation-price-block {
                margin-left: 0;
                margin-top: 4px;
                width: fit-content;
            }

            .results-content {
                grid-template-columns: 1fr;
            }

            .quiz-lead-form .form-row {
                grid-template-columns: 1fr;
            }

            .results-page {
                padding: 24px;
            }

            .modal-content {
                padding: 0;
                max-width: 95%;
            }

            .modal-body-inner {
                padding: 16px 20px;
            }

            .modal-form-grid {
                grid-template-columns: 1fr;
            }

            .modal-header {
                padding: 16px 18px;
                gap: 12px;
            }
            .modal-header h2 {
                font-size: 16px;
                line-height: 1.3;
            }
            .close-modal {
                width: 34px;
                height: 34px;
                font-size: 18px;
            }

            .recos-grid {
                grid-template-columns: 1fr;
            }

            .scale-buttons {
                grid-template-columns: repeat(5, 1fr);
            }

            .scale-btn {
                font-size: 11px;
                padding: 10px 6px;
            }

            .admin-stats {
                grid-template-columns: 1fr;
            }
        }

        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--dark);
            color: white;
            padding: 16px 24px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            animation: slideInUp 0.3s ease;
            z-index: 2000;
            max-width: 300px;
        }

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

        .confetti {
            position: fixed;
            pointer-events: none;
            z-index: 999;
        }

        @media (max-width: 480px) {
            .container {
                padding: 20px 15px;
            }

            .header {
                padding: 15px;
            }

            .modal-content {
                width: 95%;
                padding: 0;
            }

            .results-page {
                padding: 16px;
            }

            .score-ring {
                width: 160px;
                height: 160px;
                font-size: 40px;
            }

            .section-name {
                font-size: 20px;
            }

            .level-name {
                font-size: 24px;
            }

            .quiz-progress {
                padding: 16px;
            }
        }

/* ===== ADMIN — EXPORT CARDS ===================================== */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.export-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.25);
}

.export-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-from), var(--card-to));
    z-index: 0;
}

.export-card::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -25%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.export-card > * { position: relative; z-index: 1; }

.export-card--blue   { --card-from: #2292cb; --card-to: #152f7b; }
.export-card--purple { --card-from: #8b5cf6; --card-to: #4338ca; }

.export-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -10px rgba(15, 23, 42, 0.35);
}

.export-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: #fff;
}

.export-card-info { display: flex; flex-direction: column; gap: 4px; }

.export-card-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.export-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.export-card-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.export-card-count {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.export-card-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
}

.export-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.export-card:hover .export-card-cta { background: #fff; }

/* ===== ADMIN — CHANGE PASSWORD ================================== */
.admin-pw-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}

.admin-pw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.admin-pw-field { display: flex; flex-direction: column; gap: 6px; }

.admin-pw-field label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-pw-field input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-pw-field input:focus {
    outline: none;
    border-color: #2292cb;
    box-shadow: 0 0 0 3px rgba(34, 146, 203, 0.15);
}

.admin-pw-submit {
    background: linear-gradient(135deg, #2292cb, #152f7b);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-pw-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgba(21, 47, 123, 0.4);
}

.admin-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.admin-alert--success { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.admin-alert--error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ===== FOOTER CRÉDIT ============================================ */
.idlabs-footer {
    text-align: center;
    padding: 16px 12px 24px;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: #94a3b8;
    opacity: 0.8;
}

.idlabs-footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.idlabs-footer a:hover { color: #2292cb; }

/* =================================================================
   QUIZ — Boutons d'évaluation 1-6 (refonte design)
   ================================================================= */
.answer-scale-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 4px;
    margin-bottom: 10px;
}

.answer-scale-end {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.answer-scale-end--low  { color: #ef4444; }
.answer-scale-end--high { color: #16a34a; }

.answer-scale-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.answer-btns-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.answer-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    color: #475569;
    font-size: 19px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        inset 0 -2px 0 rgba(15, 23, 42, 0.04);
    transition:
        transform 0.12s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.answer-btn-num {
    line-height: 1;
}

.answer-btn:hover {
    border-color: var(--cat-color, #2292cb);
    color: var(--cat-color, #2292cb);
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--cat-color, #2292cb) 9%, white) 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px -8px color-mix(in srgb, var(--cat-color, #2292cb) 35%, transparent),
        inset 0 -2px 0 rgba(15, 23, 42, 0.04);
}

.answer-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.answer-btn.selected {
    background: linear-gradient(180deg,
        var(--cat-color, #2292cb) 0%,
        color-mix(in srgb, var(--cat-color, #2292cb) 78%, black) 100%);
    border-color: var(--cat-color, #2292cb);
    color: #ffffff;
    transform: scale(1.04);
    box-shadow:
        0 10px 22px -6px color-mix(in srgb, var(--cat-color, #2292cb) 55%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.answer-btn.selected:active {
    transform: scale(1.02) translateY(1px);
}

/* =================================================================
   RESPONSIVE — Optimisations spécifiques mobiles (≤ 640px et ≤ 380px)
   Ajouts pour le salon : usage 100% smartphone visé.
   ================================================================= */

/* ---- Tablettes / petits écrans (≤ 768px) ---- */
@media (max-width: 768px) {
    /* Header géré dans le bloc media 768 d'origine (sans flex-wrap) */
    .admin-btn {
        font-size: 12px;
    }

    /* Quiz CIA : phrases plus compactes pour mobiles */
    .cia-sentence {
        font-size: 22px;
        line-height: 1.7;
        padding: 0 8px;
    }
    .cia-sentence--sm {
        font-size: 17px;
    }
    .cia-question {
        font-size: 22px !important;
        line-height: 1.35;
    }
    .cia-step {
        padding: 24px 18px;
    }

    /* Stepper de catégories : ne montrer que les bulles */
    .qa-cat-name {
        font-size: 0;        /* masque le label texte */
        max-width: 0;
    }
    .qa-cats {
        gap: 0;
    }
}

/* ---- Smartphones (≤ 600px) ---- */
@media (max-width: 600px) {
    /* === Page de résultats du quiz : grilles 1 colonne === */
    .rp-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .rp-kpi-section {
        padding: 24px 18px !important;
    }
    .kpi-card {
        padding: 18px 20px;
    }
    .kpi-card-name {
        font-size: 14px;
        line-height: 1.3;
    }
    .kpi-card-score {
        font-size: 26px;
    }
    .kpi-card-tier {
        font-size: 12px;
    }
    .kpi-reco-tag {
        font-size: 11px;
        padding: 4px 9px;
    }
    .kpi-reco-text {
        font-size: 13px;
        line-height: 1.55;
    }
    .kpi-formation-label {
        font-size: 11px;
    }
    .kpi-formation-trainer {
        font-size: 14px;
    }
    .kpi-formation-title {
        font-size: 12px;
    }

    /* Hero résultats : padding plus aéré, plus compact */
    .rp-hero {
        padding: 28px 20px 32px !important;
    }
    .rp-hero-name {
        font-size: 18px;
    }
    .rp-hero-company {
        font-size: 13px;
    }
    .rp-arc-score {
        font-size: 60px !important;
    }

    .recos-grid { grid-template-columns: 1fr !important; }
    .recos-section { padding: 0 18px 32px !important; }

    /* Mes nouveautés admin : 1 colonne */
    .export-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .export-card {
        padding: 18px;
    }
    .export-card-title {
        font-size: 16px;
    }
    .export-card-count {
        font-size: 20px;
    }
    .export-card-cta {
        width: 100%;
        justify-content: center;
    }
    .admin-pw-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .admin-pw-submit {
        width: 100%;
    }
    .admin-pw-form {
        padding: 14px;
    }

    /* Login : moins de padding */
    .admin-panel {
        padding: 22px 18px !important;
    }

    /* Modal d'inscription formation : confort tactile */
    .modal-content {
        padding: 18px 16px;
        max-height: 92vh;
    }
    .modal-info-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .modal-info-chip {
        justify-content: center;
    }
    .modal-objectives {
        gap: 6px;
    }
    .modal-objective-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
    .form-submit {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    /* Quiz : carte plus compacte */
    .qa-card {
        border-radius: 16px;
    }

    /* Bouton Abandonner : pas trop encombrant */
    .qa-quit-btn {
        bottom: 14px;
        right: 14px;
        padding: 9px 14px;
        font-size: 12px;
    }

    /* Footer crédit : encore plus discret */
    .idlabs-footer {
        font-size: 9px;
    }
}

/* ---- Smartphones étroits (≤ 480px) ---- */
@media (max-width: 480px) {
    .cia-sentence {
        font-size: 19px;
        line-height: 1.6;
    }
    .cia-sentence--sm {
        font-size: 16px;
    }
    .cia-question {
        font-size: 20px !important;
    }
    .cia-inline-input {
        min-width: 60px;
    }
    .cia-inline-input--email {
        min-width: 140px;
        max-width: 100%;
    }
    .cia-select {
        padding: 0 4px 4px;
        max-width: 220px;
    }
    .cia-step-num {
        font-size: 10px;
        letter-spacing: 0.15em;
    }
    .cia-btn {
        width: 100%;
        padding: 14px 18px;
        font-size: 14px;
    }
    .cia-badge {
        font-size: 11px;
        letter-spacing: 5px;
        padding: 6px 18px;
    }

    /* Boutons 1-6 : plus compact */
    .answer-btn {
        height: 46px;
        font-size: 16px;
        border-radius: 10px;
    }
    .answer-btns-row {
        gap: 6px;
    }
    .answer-scale-hint {
        font-size: 10px;
    }

    /* Stepper bulles : un peu plus petites */
    .qa-cat-bubble {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .qa-cat-step:not(:last-child)::after {
        top: 13px;
        left: calc(50% + 13px);
        right: calc(-50% + 13px);
    }

    /* qa-counter peut surcharger sur petit */
    .qa-counter-label {
        display: none;
    }

    /* Page admin : titres + paragraphes resserrés */
    .admin-section h3 {
        font-size: 16px;
    }
    .admin-stats {
        gap: 10px;
    }
    .stat-box {
        padding: 14px;
    }
    .stat-number {
        font-size: 28px;
    }

    /* Header très étroit : on cache le texte ID LABS, on garde le logo */
    .logo-container span {
        display: none;
    }
}

/* ---- Téléphones étroits (≤ 380px) ---- */
@media (max-width: 380px) {
    /* Hero brand : passer en colonne pour éviter "ID / LABS" sur 2 lignes */
    .hero-brand {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    .hero-brand-divider {
        display: none;
    }
    .hero-brand-name {
        white-space: nowrap;
        font-size: 22px;
        letter-spacing: 3px;
    }
    .hero-brand-event {
        font-size: 12px;
        text-align: center;
    }
    .hero-brand-event span {
        display: block;
        margin-top: 2px;
    }

    /* Hero headline : un peu plus contenu */
    .hero-headline {
        font-size: 24px;
        line-height: 1.2;
    }
    .hero-desc {
        font-size: 14px;
    }
    .landing-hero {
        padding: 28px 14px 24px;
    }

    /* Feature card : padding interne réduit */
    .feature-card-visual {
        padding: 18px 16px 16px;
    }
    .feature-card-body {
        padding: 16px;
    }
    .feature-card-desc {
        font-size: 13px;
    }
    .feature-card-metrics {
        gap: 4px;
    }
    .feature-metric {
        padding: 8px 4px;
    }
    .feature-metric-num {
        font-size: 18px;
    }
    .feature-metric-label {
        font-size: 10px;
    }

    /* Event badge : reste lisible */
    .event-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* ---- Très petits téléphones (≤ 360px) ---- */
@media (max-width: 360px) {
    .answer-btn {
        height: 42px;
        font-size: 14px;
    }
    .answer-btns-row {
        gap: 4px;
    }
    .cia-sentence {
        font-size: 17px;
    }
    .cia-inline-input--email {
        min-width: 110px;
    }
    .nav-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* ---- Touch targets : taille minimale 44x44 (iOS HIG) ---- */
@media (pointer: coarse) {
    button,
    .cta-btn,
    .feature-card-cta,
    .session-cta,
    .form-submit,
    .cia-btn,
    .nav-btn,
    .admin-btn,
    .export-card-cta,
    .answer-btn {
        min-height: 44px;
    }
}

/* ===============================================================
   BURGER MENU MOBILE
   =============================================================== */
.burger-btn {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: 4px;
    transition: background 0.15s ease;
}
.burger-btn:hover { background: #f1f5f9; }
.burger-btn span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.burger-btn span:nth-child(1) { top: 13px; }
.burger-btn span:nth-child(2) { top: 19px; }
.burger-btn span:nth-child(3) { top: 25px; }
.burger-btn[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
}
.nav-backdrop.active { opacity: 1; pointer-events: auto; }

/* Croix de fermeture dans le drawer (mobile uniquement) */
.nav-close {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
}
.nav-close:hover  { background: #e2e8f0; color: #1e293b; }
.nav-close:active { transform: scale(0.94); }

/* Sections du drawer (transparentes en desktop, structurées en mobile) */
.nav-section { display: contents; }
.nav-section--admin { display: none; }

.nav-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0 4px;
    margin-bottom: 4px;
}

/* Variantes admin / logout dans le drawer */
.nav-btn--admin {
    color: #2292cb !important;
    border: 1px solid rgba(34, 146, 203, 0.25);
}
.nav-btn--admin:hover { background: rgba(34, 146, 203, 0.08) !important; }

.nav-btn--logout {
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.nav-btn--logout:hover { background: rgba(239, 68, 68, 0.08) !important; }

/* Cacher les boutons admin desktop sur mobile (gérés via le drawer) */
@media (max-width: 768px) {
    .admin-btn--desktop { display: none !important; }
    .nav-close { display: flex; }
    .nav-section { display: flex; flex-direction: column; gap: 6px; width: 100%; }
    .nav-section--admin {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid #e2e8f0;
    }
}

@media (max-width: 768px) {
    .burger-btn { display: flex; align-items: center; justify-content: center; }

    .nav-container {
        position: fixed;
        top: 0;
        right: 0;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        gap: 6px;
        padding: 80px 20px 24px;
        border-radius: 0;
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }
    .nav-container.active {
        transform: translateX(0);
    }
    .nav-container .nav-btn {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 10px;
    }
    .nav-container .nav-btn.active {
        background: linear-gradient(135deg, #2292cb, #152f7b);
        color: #fff;
    }
}

@media (min-width: 769px) {
    .burger-btn,
    .nav-backdrop { display: none !important; }
}

/* ===============================================================
   PAGE VIDÉOS
   =============================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
.videos-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 60px 20px;
    font-size: 14px;
}

.video-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    text-align: left;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.18);
    border-color: var(--video-color, #2292cb);
}

.video-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}
.video-card-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--video-color, #2292cb);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    pointer-events: none;
}
.video-card-play svg { transform: translateX(2px); }
.video-card:hover .video-card-play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.video-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.video-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.video-card-trainer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.video-card-trainer-photo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.video-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
}

/* ===== LIGHTBOX ===== */
.video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 24, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.video-lightbox.active { display: flex; }
.video-lightbox-content {
    width: 100%;
    max-width: 960px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.video-lightbox-content video {
    width: 100%;
    max-height: 70vh;
    background: #000;
    display: block;
}
.video-lightbox-meta {
    padding: 16px 20px 20px;
    color: #fff;
}
.video-lightbox-trainer {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 4px;
}
.video-lightbox-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.video-lightbox-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}
.video-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
    z-index: 1001;
}
.video-lightbox-close:hover  { background: rgba(255,255,255,0.22); }
.video-lightbox-close:active { transform: scale(0.94); }

@media (max-width: 600px) {
    .videos-grid { grid-template-columns: 1fr; gap: 14px; margin: 20px 0; }
    .video-lightbox { padding: 0; }
    .video-lightbox-content { border-radius: 0; max-height: 100vh; }
    .video-lightbox-content video { max-height: 55vh; }
}

/* admin-btn--logout : style direct (pour éviter inline-styles) */
.admin-btn--logout {
    background: #ef4444;
    color: #fff !important;
    margin-left: 8px;
}
.admin-btn--logout:hover { background: #dc2626; }
