/* ========== HENDERSON - PROFIL ENTREPRISE CSS ========== */

:root {
    --profile-bg: linear-gradient(135deg, #e8f5f3 0%, #f0faf8 100%);
    --profile-card-bg: white;
    --profile-text-primary: #1a1a1a;
    --profile-text-secondary: #666;
    --profile-text-muted: #999;
    --profile-border: #e0e0e0;
    --profile-border-light: #f0f0f0;
    --profile-brand: #00aa88;
    --profile-brand-hover: #008866;
    --profile-input-bg: white;
    --profile-btn-secondary-bg: #f5f5f5;
}

[data-theme="dark"] {
    --profile-bg: linear-gradient(135deg, #0a1f16 0%, #030f0a 100%);
    --profile-card-bg: #0a1f16;
    --profile-text-primary: #f0fdf4;
    --profile-text-secondary: #86efac;
    --profile-text-muted: #6b9b8c;
    --profile-border: #1a3d2e;
    --profile-border-light: #1a3d2e;
    --profile-brand: #00ff94;
    --profile-brand-hover: #00cc77;
    --profile-input-bg: #0d2a1f;
    --profile-btn-secondary-bg: #1a3d2e;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--profile-bg);
    min-height: 100vh;
    padding: 0; /* Remove padding - header is now fixed */
}

/* Profile page container - wider for better readability */
.profile-main .container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--profile-card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* CRITICAL: Profile page header must use full width like dashboard */
body .header {
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
}

/* Old profile header - renamed to avoid conflict with main header */
.profile-internal-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-internal-header .logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--profile-brand);
    margin-bottom: 8px;
}

.header-subtitle {
    font-size: 16px;
    color: var(--profile-text-secondary);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--profile-border);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--profile-card-bg);
    border: 2px solid var(--profile-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--profile-text-muted);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: var(--profile-brand);
    border-color: var(--profile-brand);
    color: white;
}

.progress-step.completed .progress-circle {
    background: rgba(0, 170, 136, 0.15);
    border-color: var(--profile-brand);
    color: var(--profile-brand);
}

.progress-label {
    font-size: 12px;
    color: var(--profile-text-muted);
    font-weight: 500;
}

.progress-step.active .progress-label {
    color: var(--profile-brand);
}

/* Form Sections */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--profile-text-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--profile-border-light);
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--profile-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: var(--profile-input-bg);
    color: var(--profile-text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--profile-brand);
    box-shadow: 0 0 0 3px rgba(0, 170, 136, 0.1);
}

.form-group small {
    display: block;
    font-size: 12px;
    color: var(--profile-text-muted);
    margin-top: 4px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--profile-border-light);
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--profile-brand);
    color: white;
}

.btn-primary:hover {
    background: var(--profile-brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 170, 136, 0.3);
}

.btn-secondary {
    background: var(--profile-btn-secondary-bg);
    color: var(--profile-text-secondary);
}

.btn-secondary:hover {
    opacity: 0.8;
}

.btn-success {
    background: linear-gradient(135deg, var(--profile-brand) 0%, var(--profile-brand-hover) 100%);
    color: white;
    padding: 14px 40px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 170, 136, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .progress-bar {
        flex-wrap: wrap;
        gap: 16px;
    }

    .progress-bar::before {
        display: none;
    }

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

    .form-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading::after {
    content: '...';
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ========== DARK MODE FIXES ========== */
[data-theme="dark"] .progress-bar::before {
    background: linear-gradient(90deg, var(--profile-brand) 0%, rgba(0, 255, 148, 0.3) 100%);
}

[data-theme="dark"] .progress-step.completed .progress-circle {
    background: rgba(0, 255, 148, 0.2);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--profile-brand);
    box-shadow: 0 0 0 3px rgba(0, 255, 148, 0.15);
}

[data-theme="dark"] .section-title {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group label {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .form-group small {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}
