/* ============================================ */
/* QUIZ RAPIDE - ESPACE PRÉPARATION            */
/* Design System: Anton + Inter                */
/* ============================================ */

:root {
    --cyan: #00D4FF;
    --deep-blue: #0F172A;
    --mid-blue: #334155;
    --bg-page: #FDFDFD;
    --border: #E2E8F0;
    --orange: #E67E22;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --red: #EF4444;
}

/* --- CONTAINER --- */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- TABS (SÉLECTEUR) --- */
.controls-area {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 50px;
}

.tabs-wrapper {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch; /* iOS */
}

.tabs-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    padding-bottom: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--deep-blue);
}

.tab-btn.active {
    color: var(--deep-blue);
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--cyan);
}

.lvl-tag {
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 8px;
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
}

.tab-btn.active .lvl-tag {
    background: var(--deep-blue);
    color: white;
    border-color: var(--deep-blue);
}

/* --- GRILLE MODULES --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

/* --- CARTE MODULE --- */
.module-card {
    background: white;
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 100%;
    text-decoration: none;
}

.module-card:hover {
    border-color: var(--deep-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--deep-blue);
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.progress-indicator {
    font-family: 'Anton', sans-serif;
    color: #CBD5E1;
    font-size: 1.2rem;
}

.progress-indicator.started {
    color: var(--cyan);
}

.module-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: var(--deep-blue);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 12px;
}

.meta-info {
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-critique {
    color: var(--red);
}

.priority-high {
    color: var(--orange);
}

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

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.module-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 32px;
    flex-grow: 1;
}

.desc-highlight {
    color: var(--deep-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.btn-action {
    width: 100%;
    padding: 16px;
    background: white;
    color: var(--deep-blue);
    border: 1px solid var(--deep-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
    display: block;
}

.btn-action:hover {
    background: var(--deep-blue);
    color: white;
}

.priority-high-btn {
    background: var(--deep-blue);
    color: white;
    border: 1px solid var(--deep-blue);
}

.priority-high-btn:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--deep-blue);
}

.priority-critique-btn {
    background: var(--red);
    color: white;
    border: 1px solid var(--red);
}

.priority-critique-btn:hover {
    background: var(--deep-blue);
    border-color: var(--deep-blue);
    color: white;
}

/* --- BLOC SIMULATION --- */
.simulation-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 50px;
    margin-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.simulation-card:hover {
    border-color: var(--cyan);
}

.sim-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--deep-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
}

.sim-content h3 {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: var(--deep-blue);
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.sim-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 600px;
}

.text-highlight {
    color: var(--deep-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--cyan);
}

.condition-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-left: 3px solid var(--border);
    padding: 8px 16px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.condition-block svg {
    width: 22px;
    height: 22px;
    color: var(--orange);
    flex-shrink: 0;
}

.condition-block.success {
    border-left-color: #10B981;
}

.condition-block.success svg {
    color: #10B981;
}

.sim-action {
    flex-shrink: 0;
}

.btn-start-sim {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--cyan);
    color: var(--deep-blue);
    padding: 18px 36px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.btn-start-sim:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.btn-start-sim.locked {
    background: #F1F5F9;
    color: #94A3B8;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- TAB CONTENT --- */
.exam-content {
    display: none;
}

.exam-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* --- EMPTY STATE --- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========================================= */
/* === RESPONSIVE (MOBILE & TABLET) === */
/* ========================================= */
@media (max-width: 900px) {
    .page-container {
        padding: 0 20px;
    }

    .controls-area {
        padding: 30px 0;
        margin-bottom: 30px;
    }

    .tabs-wrapper {
        gap: 24px;
    }

    .tab-btn {
        font-size: 0.95rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .module-card {
        padding: 24px;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
    }

    .module-title {
        font-size: 1.6rem;
    }

    .simulation-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
        gap: 30px;
        margin-bottom: 50px;
    }

    .sim-badge {
        position: relative;
        display: inline-block;
        margin-bottom: 15px;
    }

    .sim-content h3 {
        font-size: 2rem;
    }

    .condition-block {
        width: 100%;
        box-sizing: border-box;
    }

    .sim-action {
        width: 100%;
    }

    .btn-start-sim {
        width: 100%;
        text-align: center;
    }
}
