/**
 * PrepAI Workspace — vague 6
 * Espace CF formulaires, export CV, renforts marque
 */

/* =============================================================================
   Espace CF — formulaires par étape
   ============================================================================= */
.cf-form-panel {
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    border-radius: 0 0 var(--prep-radius-xl, 24px) var(--prep-radius-xl, 24px);
}

.cf-field {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--prep-border, #e2e8f0);
    border-radius: var(--prep-radius-md, 14px);
    transition: border-color var(--prep-duration, 220ms), box-shadow var(--prep-duration, 220ms);
}

.cf-field:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cf-field label {
    margin-bottom: 8px;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
    border-radius: var(--prep-radius-sm, 10px);
    border-color: var(--prep-border-strong, #cbd5e1);
}

.cf-ai-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cf-brand, #000091);
    background: var(--cf-brand-light, #e8edff);
    border-radius: var(--prep-radius-pill, 9999px);
}

.cf-validation-errors {
    border-radius: var(--prep-radius-md, 14px);
    padding: 12px 14px;
    background: var(--prep-danger-bg, #fef2f2);
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.88rem;
}

.cf-prepai-link .ec-btn-sm {
    border-radius: var(--prep-radius-pill, 9999px);
}

.cf-cursus-toolbar {
    border-radius: var(--prep-radius-md, 14px);
}

/* =============================================================================
   Export CV
   ============================================================================= */
.cv-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--prep-radius-lg, 18px);
}

.cv-export-actions .btn-generate {
    min-height: 48px;
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.cv-export-hint {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: var(--prep-radius-sm, 10px);
    border-left: 3px solid var(--prep-brand-600, #2563eb);
    font-size: 0.82rem;
    line-height: 1.45;
}

.editor-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* =============================================================================
   Sidebar — léger polish (pas mode sombre complet)
   ============================================================================= */
.workspace-sidebar {
    background:
        radial-gradient(ellipse 120% 80% at 0% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
        linear-gradient(180deg, var(--prep-sidebar-from, #0a1020) 0%, var(--prep-sidebar-to, #0d1528) 100%);
}

.workspace-sidebar .nav-link.active {
    box-shadow: inset 3px 0 0 #60a5fa, 0 4px 16px rgba(37, 99, 235, 0.15);
}
