/* ============================================================
   BEPC BAC 2026 — Landing Page Styles
   ============================================================ */

.exam-page {
    background: #ffffff;
}

/* ---- Header ---- */
.exam-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(15, 12, 41, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 47, 247, 0.25);
    padding: 12px 0;
}

.exam-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exam-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7b2ff7, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.exam-header-badge {
    background: linear-gradient(135deg, rgba(255,107,53,0.9), rgba(255,214,10,0.9));
    color: #0f0c29;
    padding: 5px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
}

.exam-header-login {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
}

.exam-header-login:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}

/* ---- Hero ---- */
.exam-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(145deg, #0f0c29 0%, #1a0533 50%, #0f2033 100%);
}

.exam-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(123, 47, 247, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 85%, rgba(76, 201, 240, 0.08) 0%, transparent 50%);
}

.exam-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left side */
.exam-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.35);
    color: #ff8c5a;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(4px);
}

.exam-fire {
    display: inline-block;
    animation: fire-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    0%   { transform: scale(1) rotate(-3deg); }
    100% { transform: scale(1.2) rotate(3deg); }
}

.exam-h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 18px;
}

.exam-h1-accent {
    background: linear-gradient(135deg, #ff6b35, #ffd60a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.exam-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 30px;
    line-height: 1.65;
}

.exam-subtitle strong {
    color: #06d6a0;
    font-weight: 700;
}

/* Countdown in hero */
.exam-countdown-hero { margin-bottom: 30px; }

.exam-count-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.exam-count-boxes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exam-count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 72px;
    backdrop-filter: blur(5px);
}

.exam-count-box span {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.exam-count-box small {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 5px;
}

.exam-count-sep {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 18px;
    user-select: none;
}

/* Benefits */
.exam-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exam-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.exam-benefits li i {
    color: #06d6a0;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ---- Registration Form Card ---- */
.exam-form-card {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.exam-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.exam-form-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.exam-form-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

.exam-alert-error {
    background: rgba(255, 82, 82, 0.14);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff8080;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.exam-form { display: flex; flex-direction: column; gap: 16px; }

.exam-form-group { display: flex; flex-direction: column; gap: 6px; }

.exam-form-group > label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 500;
}

.exam-form-group label .optional {
    font-style: italic;
    opacity: 0.55;
    font-weight: 400;
}

.exam-form-group input[type="text"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    outline: none;
    width: 100%;
}

.exam-form-group input[type="text"]:focus {
    border-color: #7b2ff7;
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.22);
    background: rgba(255, 255, 255, 0.11);
}

.exam-form-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

/* Class selector */
.exam-class-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.exam-class-selector input[type="radio"] { display: none; }

.exam-class-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.exam-class-btn .exam-class-icon { font-size: 1.4rem; }

.exam-class-btn span:not(.exam-class-icon) {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.exam-class-btn small {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}

.exam-class-selector input[type="radio"]:checked + .exam-class-btn {
    background: rgba(123, 47, 247, 0.25);
    border-color: #7b2ff7;
    box-shadow: 0 0 0 2px rgba(123, 47, 247, 0.3);
}

/* Buttons */
.exam-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #7b2ff7, #ff6b35);
    color: white !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.exam-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(123, 47, 247, 0.45);
}

.exam-btn-full { width: 100%; }

.exam-btn-submit {
    background: linear-gradient(135deg, #ff6b35, #ffd60a);
    color: #0f0c29 !important;
    font-size: 1.05rem;
    padding: 15px;
}

.exam-btn-submit:hover {
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.5);
    transform: translateY(-3px);
}

.exam-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.exam-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: white;
}

.exam-form-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: -8px;
}

/* Social proof */
.exam-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.exam-avatars { display: flex; }

.exam-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    color: white;
    border: 2px solid rgba(15, 12, 41, 0.6);
    margin-right: -8px;
    flex-shrink: 0;
}

/* Success card */
.exam-success-card {
    background: rgba(6, 214, 160, 0.08);
    border: 1px solid rgba(6, 214, 160, 0.35);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
}

.exam-success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: success-bounce 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes success-bounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(0.95); }
}

.exam-success-card h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.exam-success-card > p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

.exam-share { margin-top: 20px; }

.exam-share > p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.exam-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0 4px;
    transition: opacity 0.2s;
    background: #1877f2;
    color: white !important;
}

.exam-share-btn:hover { opacity: 0.88; }
.exam-share-wa { background: #25d366; }

/* Particles */
.exam-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    color: rgba(123, 47, 247, 0.25);
    font-size: 1rem;
    animation: float-particle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 8%;  top: 18%; animation-delay: 0s; }
.particle:nth-child(2) { left: 22%; top: 62%; animation-delay: 1.5s; font-size: 0.7rem; }
.particle:nth-child(3) { left: 72%; top: 28%; animation-delay: 3s; }
.particle:nth-child(4) { left: 88%; top: 72%; animation-delay: 4.5s; font-size: 1.2rem; }
.particle:nth-child(5) { left: 50%; top: 88%; animation-delay: 6s; font-size: 0.8rem; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) rotate(0deg);   opacity: 0.25; }
    50%       { transform: translateY(-30px) rotate(180deg); opacity: 0.55; }
}

/* ============================================================
   EXERCISE TYPES SECTION
   ============================================================ */
.exam-types {
    padding: 90px 0;
    background: #f5f6ff;
}

.exam-section-header {
    text-align: center;
    margin-bottom: 52px;
}

.exam-section-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f0c29;
    margin-bottom: 10px;
}

.exam-section-header p {
    color: #6b7280;
    font-size: 0.98rem;
    max-width: 600px;
    margin: 0 auto;
}

.exam-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.exam-type-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1.5px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.exam-type-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
    border-color: #7b2ff7;
}

.exam-type-star {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
}

.exam-type-star:hover { border-color: #ff6b35; }

.exam-type-badge {
    display: inline-block;
    background: #7b2ff7;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.badge-orange  { background: #ff6b35; }
.badge-green   { background: #06d6a0; color: #064e3b; }
.badge-purple  { background: #a855f7; }
.badge-teal    { background: #0d9488; }
.badge-blue    { background: #0284c7; }
.badge-red     { background: #dc2626; }
.badge-pink    { background: #db2777; }
.badge-amber   { background: #b45309; }

/* ---- Types 7-10 preview styles ---- */
.ex-short-answer { display: flex; flex-direction: column; gap: 8px; }
.ex-short-input {
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 8px 10px; font-size: 0.78rem; color: #374151;
    font-style: italic; line-height: 1.4;
}
.ex-short-check { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #059669; font-weight: 600; }

.ex-steps { display: flex; flex-direction: column; gap: 6px; }
.ex-step-line {
    display: flex; align-items: center; gap: 6px;
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 6px 10px; font-size: 0.78rem; color: #374151;
}
.ex-step-line.done  { background: #d1fae5; border-color: #6ee7b7; }
.ex-step-line.muted { opacity: 0.45; }
.step-num {
    background: #7b2ff7; color: white; border-radius: 50%;
    width: 18px; height: 18px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.ex-step-input {
    border: 1px solid #c4b5fd; border-radius: 4px; padding: 2px 6px;
    font-size: 0.78rem; width: 50px; outline: none; color: #374151;
    font-family: 'Poppins', sans-serif;
}

.ex-order-list { display: flex; flex-direction: column; gap: 5px; }
.ex-order-item {
    display: flex; align-items: center; gap: 8px;
    background: white; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 6px 10px; font-size: 0.78rem; color: #6b7280;
}
.ex-order-item.selected { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; font-weight: 600; }
.order-num {
    background: #e5e7eb; color: #374151; border-radius: 50%;
    width: 18px; height: 18px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.ex-order-item.selected .order-num { background: #7b2ff7; color: white; }

.ex-schema-demo { margin-top: 4px; }
.schema-circle {
    width: 120px; height: 120px; border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe, #dbeafe);
    border: 2px solid #c4b5fd; margin: 0 auto;
    position: relative;
}
.schema-part { position: absolute; font-size: 0.68rem; }
.schema-p1 { top: 6px; left: 50%; transform: translateX(-50%); }
.schema-p2 { top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.schema-p3 { bottom: 6px; left: 50%; transform: translateX(-50%); }
.schema-label { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.schema-input {
    border: none; border-bottom: 1px solid #7b2ff7; background: transparent;
    width: 50px; font-size: 0.68rem; outline: none; font-family: 'Poppins', sans-serif; color: #374151;
}

/* Desktop : 4-4-3 (grille 8 colonnes, chaque card = 2 cols, dernière rangée centrée) */
@media (min-width: 960px) {
    .exam-types-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    .exam-types-grid > * {
        grid-column: span 2;
    }
    .exam-types-grid > *:nth-child(9)  { grid-column: 2 / 4; }
    .exam-types-grid > *:nth-child(10) { grid-column: 4 / 6; }
    .exam-types-grid > *:nth-child(11) { grid-column: 6 / 8; }
}
.badge-gold    { background: #d97706; }

.exam-type-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
}

/* ---- Exercise Previews ---- */
.ex-preview {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

.ex-q {
    font-size: 0.82rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.45;
}

.ex-options-list { display: flex; flex-direction: column; gap: 5px; }

.ex-opt {
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.ex-opt-correct {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
    font-weight: 600;
}

.ex-vf-row { display: flex; gap: 8px; margin-bottom: 8px; }

.ex-vf-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: default;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
}

.vf-active {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.ex-correct-badge {
    font-size: 0.72rem;
    color: #059669;
    font-weight: 700;
    text-align: center;
}

.ex-blank {
    display: inline-block;
    background: #7b2ff7;
    color: white;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 600;
}

.ex-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.ex-chip {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.ex-chip.used {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #7b2ff7;
    opacity: 0.5;
    text-decoration: line-through;
}

.ex-drag-list { display: flex; flex-direction: column; gap: 6px; }

.ex-drag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.8rem;
    color: #374151;
    cursor: grab;
    transition: all 0.15s;
}

.ex-drag-item:hover { background: #f5f3ff; border-color: #c4b5fd; }

.drag-handle { color: #9ca3af; font-size: 1rem; user-select: none; }

.ex-assoc-grid {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    gap: 0;
    align-items: center;
}

.ex-assoc-col { display: flex; flex-direction: column; gap: 10px; }

.ex-assoc-item {
    padding: 5px 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    font-size: 0.72rem;
    color: #374151;
    text-align: center;
}

.ex-assoc-item.linked {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #5b21b6;
    font-weight: 600;
}

.ex-assoc-lines { display: flex; justify-content: center; align-items: center; }

/* Scanner preview in types card */
.scanner-preview .ex-preview {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}

.scanner-demo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.scanner-input, .scanner-output {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

.scanner-input {
    background: white;
    border: 1.5px dashed #d97706;
    color: #92400e;
}

.scanner-input i { font-size: 1.1rem; color: #d97706; }

.scanner-output {
    background: linear-gradient(135deg, #7b2ff7, #4cc9f0);
    color: white;
}

.scanner-output i { font-size: 1.1rem; }

.scanner-arrow-anim {
    color: #ff6b35;
    font-size: 0.9rem;
    animation: arrow-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes arrow-pulse {
    0%, 100% { transform: translateX(0);    opacity: 1; }
    50%       { transform: translateX(4px); opacity: 0.6; }
}

.scanner-desc {
    font-size: 0.74rem;
    color: #92400e;
    text-align: center;
    line-height: 1.4;
}

/* ============================================================
   SCANNER IA FEATURE SECTION
   ============================================================ */
.exam-scanner-section {
    padding: 90px 0;
    background: linear-gradient(145deg, #0f0c29 0%, #1a0533 100%);
    color: white;
}

.exam-scanner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.exam-tag-dark {
    background: rgba(123, 47, 247, 0.15);
    border-color: rgba(123, 47, 247, 0.45);
    color: #a78bfa;
}

.exam-scanner-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 16px 0;
    line-height: 1.2;
}

.exam-scanner-text > p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.72;
    margin-bottom: 22px;
    font-size: 0.97rem;
}

.exam-scanner-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.exam-scanner-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.exam-scanner-features li i { color: #06d6a0; flex-shrink: 0; }

/* Upload zone */
.scanner-upload-zone {
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(123, 47, 247, 0.45);
    border-radius: 20px;
    padding: 48px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scanner-upload-zone:hover,
.scanner-upload-zone.drag-over {
    background: rgba(123, 47, 247, 0.1);
    border-color: #7b2ff7;
    transform: scale(1.02);
}

.scanner-upload-icon { font-size: 2.8rem; color: #7b2ff7; margin-bottom: 14px; }

.scanner-upload-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.scanner-upload-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    margin-bottom: 22px;
}

/* Scanner result */
.scanner-result-zone {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
}

.scanner-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #06d6a0;
    font-weight: 700;
    font-size: 0.95rem;
}

.scanner-result-header i { font-size: 1.2rem; }

.scanner-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(6, 214, 160, 0.25);
    border-top-color: #06d6a0;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin-left: auto;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.scanner-correction {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.75;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-bottom: 16px;
    max-height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.scanner-error {
    color: #f87171;
    font-size: 0.88rem;
    padding: 12px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.exam-steps-section {
    padding: 90px 0;
    background: #f5f6ff;
}

.exam-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.exam-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 28px 18px;
}

.exam-step-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: #e5e7eb;
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.exam-step-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #7b2ff7, #4cc9f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 6px 20px rgba(123,47,247,0.3);
}

.exam-step h3 { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin-bottom: 8px; }
.exam-step p  { font-size: 0.85rem; color: #6b7280; line-height: 1.55; }

.exam-step-arrow { color: #d1d5db; font-size: 1.4rem; flex-shrink: 0; padding: 0 8px; }

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.exam-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #7b2ff7 0%, #ff6b35 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.exam-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 1px,
        transparent 12px
    );
    pointer-events: none;
}

.exam-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.exam-cta-text { flex: 1; min-width: 250px; }
.exam-cta-text h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.exam-cta-text > p { opacity: 0.9; font-size: 0.98rem; margin-bottom: 14px; }

.exam-cta-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
}

.exam-cta-form { flex: 1; min-width: 280px; }

.exam-cta-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.exam-cta-form-row input,
.exam-cta-form-row select {
    flex: 1;
    min-width: 110px;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: background 0.2s;
}

.exam-cta-form-row input:focus,
.exam-cta-form-row select:focus { background: rgba(255,255,255,0.3); }

.exam-cta-form-row input::placeholder { color: rgba(255,255,255,0.55); }
.exam-cta-form-row select option { color: #0f0c29; background: white; }

.exam-cta-form-row .exam-btn-cta {
    background: white;
    color: #7b2ff7;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
}

.exam-cta-form-row .exam-btn-cta:hover {
    background: #0f0c29;
    color: white;
    transform: translateY(-2px);
}

.exam-cta-already {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.exam-cta-already i { font-size: 1.8rem; opacity: 0.8; }
.exam-cta-already a { color: white; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.exam-footer {
    background: #0f0c29;
    color: rgba(255, 255, 255, 0.5);
    padding: 24px 0;
}

.exam-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.exam-footer-logo {
    font-weight: 800;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #7b2ff7, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.exam-footer-copy { font-size: 0.8rem; }

.exam-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.exam-footer-links a {
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.exam-footer-links a:hover { color: rgba(255,255,255,0.85); }

/* ============================================================
   HOMEPAGE BANNER (used in index.php)
   ============================================================ */
.exam-banner {
    background: linear-gradient(90deg, #0f0c29 0%, #2d1569 45%, #1a0533 75%, #3a0050 100%);
    color: white;
    padding: 13px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(123, 47, 247, 0.25);
    border-bottom: 1px solid rgba(123, 47, 247, 0.25);
}

.exam-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.018) 0px,
        rgba(255,255,255,0.018) 1px,
        transparent 1px,
        transparent 9px
    );
    pointer-events: none;
}

.exam-banner-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.exam-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 107, 53, 0.14);
    border: 1px solid rgba(255, 107, 53, 0.38);
    color: #ff8c5a;
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

.banner-fire {
    display: inline-block;
    animation: fire-flicker 1.5s ease-in-out infinite alternate;
}

.exam-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exam-banner-text strong { font-size: 0.92rem; font-weight: 700; color: white; }
.exam-banner-text span  { font-size: 0.78rem; opacity: 0.7; }

.exam-banner-countdown { display: flex; align-items: center; gap: 5px; }

.banner-count-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    padding: 5px 9px;
    min-width: 42px;
}

.banner-count-block span {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.banner-count-block small {
    font-size: 0.58rem;
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.banner-count-sep { font-size: 0.9rem; opacity: 0.45; margin-bottom: 12px; }

.exam-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35, #ffd60a);
    color: #0f0c29 !important;
    padding: 9px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.exam-banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 107, 53, 0.45);
}

.exam-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    margin-left: 6px;
}

.exam-banner-close:hover { color: white; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .exam-hero-grid { grid-template-columns: 1fr; }
    .exam-hero { padding: 100px 0 60px; min-height: auto; }
    .exam-h1 { font-size: 2.2rem; }
    .exam-scanner-grid { grid-template-columns: 1fr; gap: 40px; }
    .exam-cta-inner { flex-direction: column; text-align: center; }
    .exam-cta-form-row { justify-content: center; }
    .exam-types-grid { grid-template-columns: repeat(2, 1fr); }
    .exam-step-arrow { display: none; }
    .exam-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .exam-h1 { font-size: 1.85rem; }
    .exam-count-box { min-width: 60px; padding: 10px 12px; }
    .exam-count-box span { font-size: 1.65rem; }
    .exam-header-badge { display: none; }
    .exam-types-grid { grid-template-columns: 1fr; }
    .exam-form-card { padding: 24px 18px; }
    .exam-banner-text span { display: none; }
    .banner-count-block { min-width: 34px; padding: 4px 7px; }
    .banner-count-block span { font-size: 0.9rem; }
    .exam-cta-form-row { flex-direction: column; }
}

/* ---- Bloc Sujet Type ---- */
.sujet-type-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 40px;
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(139,92,246,0.12));
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 16px;
    flex-wrap: wrap;
}
.sujet-type-badge-new {
    display: inline-block;
    background: #f97316;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.sujet-type-left h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.sujet-type-left p {
    font-size: .92rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 480px;
}
.sujet-type-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}
.sujet-type-stats {
    display: flex;
    gap: 20px;
    text-align: center;
}
.sujet-type-stats div { display: flex; flex-direction: column; }
.sujet-type-stats strong { font-size: 1.6rem; font-weight: 800; color: #f97316; }
.sujet-type-stats span  { font-size: .72rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .05em; }
.btn-sujet-type {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #a855f7);
    color: #fff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: .95rem;
    transition: opacity .2s;
    white-space: nowrap;
}
.btn-sujet-type:hover { opacity: .88; color: #fff; }
.sujet-type-right small { color: rgba(255,255,255,0.4); font-size: .75rem; }
