/**
 * PrepAI Workspace — vague 4
 * Onboarding premium, visio entretien, Espace CF
 */

/* =============================================================================
   Onboarding
   ============================================================================= */
body.onboarding-page .onboarding-center-card,
body.onboarding-page .onboarding-wide-card {
    border-radius: var(--prep-radius-xl);
    box-shadow: var(--prep-shadow-lg);
    border: 1px solid var(--prep-border);
}

body.onboarding-page .onboarding-center-card h2,
body.onboarding-page .onboarding-wide-card h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.onboarding-page .pulse-ring {
    margin: 0 auto 20px;
    border-color: var(--prep-brand-600);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
}

body.onboarding-page .onboarding-step .input-dark,
body.onboarding-page .onboarding-step select {
    border-radius: var(--prep-radius-md);
    border: 2px solid var(--prep-border);
    transition: border-color var(--prep-duration) var(--prep-ease), box-shadow var(--prep-duration) var(--prep-ease);
}

body.onboarding-page .onboarding-step .input-dark:focus,
body.onboarding-page .onboarding-step select:focus {
    outline: none;
    border-color: var(--prep-brand-600);
    box-shadow: var(--prep-ring);
}

body.onboarding-page .onboarding-footer {
    gap: 12px;
}

body.onboarding-page .dropzone {
    border-radius: var(--prep-radius-lg);
    border: 2px dashed #c7d2fe;
    background: linear-gradient(160deg, #f8fafc, #eef2ff);
    transition: border-color var(--prep-duration) var(--prep-ease), background var(--prep-duration) var(--prep-ease);
}

body.onboarding-page .dropzone:hover,
body.onboarding-page .dropzone.drag {
    border-color: var(--prep-brand-600);
    background: var(--prep-info-bg);
    box-shadow: var(--prep-ring);
}

body.onboarding-page .file-preview-card {
    border-radius: var(--prep-radius-md);
    box-shadow: var(--prep-shadow-xs);
    transition: transform var(--prep-duration) var(--prep-ease), box-shadow var(--prep-duration) var(--prep-ease);
}

body.onboarding-page .file-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--prep-shadow-sm);
}

body.onboarding-page .format-toggle label {
    border-radius: var(--prep-radius-md);
}

body.onboarding-page .recap-card .recap-block {
    border-radius: var(--prep-radius-lg);
}

/* =============================================================================
   Entretien CF / CB — visio
   ============================================================================= */
.cfi-visio-stage {
    border-radius: var(--prep-radius-xl);
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 0, 145, 0.25), transparent 60%),
        linear-gradient(180deg, #020617 0%, #0f172a 100%);
    box-shadow: var(--prep-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.campus-france-theme .cfi-visio-stage {
    border: 1px solid rgba(0, 0, 145, 0.35);
}

body.campus-belgium-theme .cfi-visio-stage {
    border: 1px solid rgba(202, 138, 4, 0.35);
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(202, 138, 4, 0.15), transparent 60%),
        linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.cfi-examiner-frame {
    border-radius: var(--prep-radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cfi-selfie-pip {
    border-radius: var(--prep-radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cfi-controls.recap-block {
    border-radius: var(--prep-radius-lg);
}

.cfi-timer-bar div {
    background: var(--cf-gradient-progress, linear-gradient(90deg, #2563eb, #60a5fa));
}

body.campus-belgium-theme .cfi-timer-bar div {
    background: linear-gradient(90deg, var(--be-brand), var(--be-accent));
}

.cfi-status-row {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: var(--prep-radius-md);
    border: 1px solid var(--prep-border);
}

.cfi-history {
    background: var(--prep-bg-surface);
    border: 1px solid var(--prep-border);
    border-radius: var(--prep-radius-md);
    padding: 8px 14px;
}

.cfi-history li:last-child {
    border-bottom: none;
}

.cfi-persona-label select {
    border-radius: var(--prep-radius-md);
    font-family: inherit;
    border: 2px solid var(--prep-border);
}

.cfi-persona-label select:focus {
    outline: none;
    border-color: var(--prep-brand-600);
    box-shadow: var(--prep-ring);
}

/* Badge LIVE sur visio */
.cfi-visio-stage::before {
    content: 'SIMULATION';
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
    border-radius: var(--prep-radius-pill);
    pointer-events: none;
}

/* =============================================================================
   Espace CF
   ============================================================================= */
.espace-cf-shell {
    border-radius: var(--prep-radius-xl);
    box-shadow: var(--prep-shadow-md);
}

.cf-masthead {
    border-radius: var(--prep-radius-lg) var(--prep-radius-lg) 0 0;
    padding: clamp(16px, 3vw, 22px) clamp(18px, 3vw, 24px);
}

.cf-logo-eef {
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.espace-cf-nav {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.cf-nav-link {
    border-radius: var(--prep-radius-sm);
}

.cf-nav-link.active {
    box-shadow: inset 3px 0 0 var(--cf-brand-red), var(--prep-shadow-xs);
}

.cf-video-wrap {
    border-radius: var(--prep-radius-lg);
    box-shadow: var(--prep-shadow-sm);
}

.cf-video-placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 0, 145, 0.35), transparent 50%),
        linear-gradient(145deg, #1e293b, #0f172a);
}

.cf-play-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: transform var(--prep-duration) var(--prep-ease), background var(--prep-duration) var(--prep-ease);
}

.cf-video-wrap:hover .cf-play-icon {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.2);
}

.fr-alert-mock {
    border-radius: 0 var(--prep-radius-md) var(--prep-radius-md) 0;
    background: var(--cf-brand-light);
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    outline: none;
    border-color: var(--cf-brand);
    box-shadow: 0 0 0 3px rgba(0, 0, 145, 0.15);
}

.cf-mock-form .ec-btn,
.cf-form-actions .ec-btn {
    border-radius: var(--prep-radius-pill);
}

/* Questions CF — cartes phases */
.cfq-phase-card {
    border-radius: var(--prep-radius-md);
    transition: border-color var(--prep-duration) var(--prep-ease), background var(--prep-duration) var(--prep-ease);
}

.cfq-phase-card.active {
    box-shadow: var(--prep-shadow-xs);
}

.cfq-console .recap-block {
    border-radius: var(--prep-radius-lg);
}

@media (max-width: 900px) {
    .cf-section-grid {
        grid-template-columns: 1fr;
    }

    .cf-video-panel {
        position: static;
    }
}
