/* ============================================
   FINAA Connect — Stylesheet complet
   Style : Cabinet architecture, sobre, moderne
   ============================================ */

/* ─── VARIABLES ─── */
:root {
    --primary: #1B4332;
    --primary-light: #2D6A4F;
    --primary-dark: #0F2A1E;
    --accent: #D4A373;
    --accent-light: #FAEDCD;
    --accent-dark: #B8864E;
    --bg: #FEFAE0;
    --bg-alt: #F5F0DC;
    --bg-card: #FFFFFF;
    --text: #1B1B1B;
    --text-light: #6B705C;
    --text-muted: #999;
    --border: #E0D8C0;
    --border-light: #F0EBD8;
    --success: #40916C;
    --error: #BC4749;
    --warning: #E09F3E;
    --info: #3A86A8;
    --shadow-sm: 0 1px 3px rgba(27,67,50,0.06);
    --shadow: 0 2px 16px rgba(27,67,50,0.08);
    --shadow-lg: 0 8px 32px rgba(27,67,50,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: 'Outfit', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ─── NAVBAR ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-height);
    background: rgba(254,250,224,0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    height: 100%; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--primary);
}
.logo-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1rem;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 700;
}
.logo-text em {
    font-style: italic; font-weight: 500;
    color: var(--accent-dark);
}
.nav-links { display: flex; gap: 28px; }
.nav-link {
    font-size: 0.92rem; font-weight: 500;
    color: var(--text-light); text-decoration: none;
    position: relative; padding: 4px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* User menu */
.user-menu { position: relative; }
.user-menu-btn {
    background: none; border: none; padding: 0;
    cursor: pointer;
}
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    transition: transform var(--transition);
}
.user-avatar:hover { transform: scale(1.08); }
.user-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 220px; overflow: hidden; z-index: 200;
}
.user-dropdown.open { display: block; }
.dropdown-header { padding: 14px 16px; }
.dropdown-header strong { display: block; font-size: 0.9rem; }
.dropdown-header small { color: var(--text-muted); font-size: 0.8rem; }
.dropdown-divider { height: 1px; background: var(--border-light); }
.dropdown-item {
    display: block; padding: 10px 16px;
    font-size: 0.88rem; color: var(--text);
    transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg-alt); color: var(--primary); }
.text-danger { color: var(--error) !important; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 6px;
}
.hamburger span {
    width: 22px; height: 2px; background: var(--text);
    transition: var(--transition);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    border: none; cursor: pointer;
    transition: all var(--transition);
    text-decoration: none; line-height: 1.4;
}
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
    background: transparent; border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-outline-accent {
    background: transparent; border: 1.5px solid var(--accent);
    color: var(--accent-dark);
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--primary); }

.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #a33d3f; color: #fff; }

.btn-success { background: var(--success); color: #fff; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; font-weight: 600; font-size: 0.88rem;
    margin-bottom: 6px; color: var(--text);
}
.form-label .required { color: var(--error); }
.form-control {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text);
    font-size: 0.92rem; outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,67,50,0.08);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--error); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--error); margin-top: 4px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Tags sélectionnables */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-selectable {
    padding: 7px 16px; border-radius: 50px;
    border: 1.5px solid var(--border);
    font-size: 0.82rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition);
    background: var(--bg); color: var(--text);
    user-select: none;
}
.tag-selectable:hover { border-color: var(--primary); }
.tag-selectable.selected,
.tag-selectable input:checked + & {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.tag-selectable input { display: none; }

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius); padding: 32px;
    text-align: center; color: var(--text-light);
    font-size: 0.88rem; cursor: pointer;
    transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary); background: rgba(27,67,50,0.03);
}
.upload-zone-icon { font-size: 2rem; margin-bottom: 8px; }

/* ─── CARDS ─── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.card-body { padding: 24px; }
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
}

/* ─── TALENT CARD (annuaire) ─── */
.talent-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: all var(--transition); cursor: pointer;
    position: relative;
}
.talent-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.talent-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity var(--transition);
}
.talent-card:hover::before { opacity: 1; }
.talent-card-body { padding: 22px; }
.talent-header { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.talent-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem;
    flex-shrink: 0; overflow: hidden;
}
.talent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.talent-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.talent-title { font-size: 0.82rem; color: var(--text-light); }
.talent-location { font-size: 0.8rem; color: var(--text-muted); }
.talent-availability {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 500; margin-top: 4px;
}
.talent-availability.available { color: var(--success); }
.talent-availability.soon { color: var(--warning); }
.talent-availability.unavailable { color: var(--text-muted); }
.availability-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor;
}
.availability-dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.tag {
    padding: 3px 10px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 500;
    background: var(--accent-light); color: var(--primary-light);
}
.tag-software { background: rgba(27,67,50,0.08); color: var(--primary); }
.tag-specialty { background: var(--accent-light); color: var(--accent-dark); }

/* Portfolio thumbnails */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    margin: 12px 0; border-radius: var(--radius-sm); overflow: hidden;
}
.portfolio-thumb {
    aspect-ratio: 4/3; overflow: hidden;
    background: var(--bg-alt);
}
.portfolio-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition);
}
.portfolio-thumb:hover img { transform: scale(1.05); }

/* Card footer */
.talent-card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
}
.talent-rate { font-size: 0.85rem; color: var(--text-light); }
.talent-rate strong { color: var(--primary); font-size: 1rem; }

.btn-contact-sm {
    padding: 7px 16px; border-radius: 50px;
    background: var(--primary); color: #fff;
    font-size: 0.8rem; font-weight: 600;
    border: none; transition: all var(--transition);
}
.btn-contact-sm:hover { background: var(--primary-light); color: #fff; transform: scale(1.03); }

/* ─── BADGE VÉRIFIÉ ─── */
.badge-verified {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 50px;
    background: rgba(64,145,108,0.1); color: var(--success);
    font-size: 0.72rem; font-weight: 600;
}
.badge-pending {
    background: rgba(224,159,62,0.1); color: var(--warning);
}
.badge-rejected {
    background: rgba(188,71,73,0.1); color: var(--error);
}
.badge-draft {
    background: var(--bg-alt); color: var(--text-muted);
}

/* ─── HERO SECTION ─── */
.hero {
    padding: calc(var(--nav-height) + 60px) 24px 80px;
    max-width: 1200px; margin: 0 auto;
}
.hero-split {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 60px; align-items: center;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem; line-height: 1.15;
    color: var(--primary); margin-bottom: 18px;
}
.hero h1 em {
    font-style: italic; color: var(--accent);
    font-weight: 500;
}
.hero-subtitle {
    font-size: 1.12rem; color: var(--text-light);
    line-height: 1.7; margin-bottom: 30px; max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 32px; margin-top: 40px;
}
.hero-stat strong {
    display: block; font-size: 1.5rem; color: var(--primary);
}
.hero-stat span { font-size: 0.82rem; color: var(--text-light); }

/* ─── SECTIONS ─── */
.section {
    max-width: 1200px; margin: 0 auto;
    padding: 60px 24px;
}
.section-narrow { max-width: 700px; }
.section-medium { max-width: 900px; }
.section-header {
    text-align: center; margin-bottom: 40px;
}
.section-label {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--accent); margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem; color: var(--primary);
    margin-bottom: 10px;
}
.section-desc {
    color: var(--text-light); font-size: 1rem; max-width: 550px;
    margin: 0 auto;
}

/* ─── SEARCH BAR ─── */
.search-bar {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 18px 24px;
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.search-input-wrap {
    flex: 1; min-width: 200px; position: relative;
}
.search-input-wrap .icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--text-muted);
}
.search-input {
    width: 100%; padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); font-size: 0.92rem; color: var(--text);
    outline: none; transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--primary); }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 9px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg); font-size: 0.82rem; font-weight: 500;
    color: var(--text); cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--primary); background: var(--primary); color: #fff;
}

/* ─── ANNUAIRE GRID ─── */
.talents-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px; margin-top: 30px;
}

/* ─── STEPS ─── */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-card {
    text-align: center; padding: 28px 22px;
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform var(--transition);
}
.step-card:hover { transform: translateY(-4px); }
.step-number {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem;
    transform: rotate(-5deg);
}
.step-card h3 { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.step-card p { font-size: 0.86rem; color: var(--text-light); line-height: 1.6; }

/* ─── AUTH PAGES ─── */
.auth-section {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--nav-height) + 30px) 16px 60px;
}
.auth-container {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: calc(var(--nav-height) + 30px) 16px 60px;
}
.auth-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 40px;
    width: 100%; max-width: 480px;
}
.auth-card h1, .auth-card h2 {
    font-family: var(--font-display); font-size: 1.8rem;
    color: var(--primary); margin-bottom: 6px;
}
.auth-card .subtitle, .auth-subtitle {
    color: var(--text-light); font-size: 0.92rem; margin-bottom: 28px;
}
.auth-link {
    text-align: center; margin-top: 20px; font-size: 0.88rem;
    color: var(--text-muted);
}
.auth-link a { color: var(--primary); font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }
.auth-success {
    text-align: center; padding: 20px 0;
}
.auth-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.auth-success h2 { margin-bottom: 12px; }
.auth-success p { color: var(--text-light); line-height: 1.6; }
.btn-full { width: 100%; }

/* Rôle selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-option {
    padding: 16px; border: 2px solid var(--border);
    border-radius: var(--radius); text-align: center;
    cursor: pointer; transition: all var(--transition);
}
.role-option:hover { border-color: var(--primary-light); }
.role-option.selected { border-color: var(--primary); background: rgba(27,67,50,0.04); }
.role-option input { display: none; }
.role-option .role-icon { font-size: 1.5rem; margin-bottom: 6px; }
.role-option .role-name { font-weight: 700; font-size: 0.92rem; }
.role-option .role-desc { font-size: 0.78rem; color: var(--text-light); }

/* ─── DASHBOARD ─── */
.dashboard-header {
    padding: calc(var(--nav-height) + 30px) 24px 20px;
    background: var(--primary);
}
.dashboard-header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.dashboard-header h1 { color: #fff; font-size: 1.5rem; font-weight: 700; }
.dashboard-header p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.dashboard-content {
    max-width: 1200px; margin: -20px auto 40px;
    padding: 0 24px;
}

/* Status cards */
.status-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 30px;
}
.status-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm);
}
.status-card .label { font-size: 0.82rem; color: var(--text-light); margin-bottom: 4px; }
.status-card .value { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* ─── PROGRESS BAR (onboarding) ─── */
.progress-bar-wrap { margin-bottom: 30px; }
.progress-steps {
    display: flex; justify-content: space-between; position: relative;
    margin-bottom: 8px;
}
.progress-steps::before {
    content: ''; position: absolute; top: 14px; left: 0; right: 0;
    height: 2px; background: var(--border);
}
.progress-step {
    position: relative; text-align: center; z-index: 1;
    flex: 1;
}
.progress-step .dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px; font-size: 0.78rem; font-weight: 700;
    transition: all var(--transition);
}
.progress-step.completed .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.progress-step.active .dot { border-color: var(--accent); color: var(--accent); border-width: 3px; }
.progress-step .label { font-size: 0.72rem; color: var(--text-muted); }
.progress-step.completed .label { color: var(--primary); }
.progress-step.active .label { color: var(--text); font-weight: 600; }

/* ─── ACADEMY CARDS ─── */
.content-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.content-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: all var(--transition);
}
.content-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.content-card-cover {
    height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3); font-size: 3rem;
    position: relative; overflow: hidden;
}
.content-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.content-type-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px;
}
.type-article { background: var(--primary); color: #fff; }
.type-video { background: var(--error); color: #fff; }
.type-pdf { background: var(--accent); color: #fff; }
.access-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600;
    background: rgba(0,0,0,0.5); color: #fff;
}
.content-card-body { padding: 20px; }
.content-card-category {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--accent); margin-bottom: 6px;
}
.content-card-title {
    font-weight: 700; font-size: 1.05rem; margin-bottom: 8px;
    color: var(--text); line-height: 1.4;
}
.content-card-excerpt {
    font-size: 0.85rem; color: var(--text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── PROFILE PAGE (public) ─── */
.profile-hero {
    padding: calc(var(--nav-height) + 40px) 24px 40px;
    background: var(--primary);
}
.profile-hero-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; gap: 24px; align-items: center;
}
.profile-avatar-lg {
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem; font-weight: 700;
    flex-shrink: 0; overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-info h1 { color: #fff; font-size: 1.6rem; font-weight: 700; }
.profile-hero-info .title { color: rgba(255,255,255,0.7); font-size: 1rem; }
.profile-hero-info .location { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 4px; }

.profile-content {
    max-width: 900px; margin: -20px auto 60px;
    padding: 0 24px;
    display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
}
.profile-main .card { margin-bottom: 24px; }
.profile-sidebar .card { margin-bottom: 16px; }

/* ─── ADMIN TABLE ─── */
.admin-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
.admin-table th {
    text-align: left; padding: 14px 16px;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-light); background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 14px 16px; font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(27,67,50,0.02); }

/* ─── PAGINATION ─── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 500;
    transition: all var(--transition);
}
.pagination a {
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border); text-decoration: none;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current {
    background: var(--primary); color: #fff; border: none;
}

/* ─── FLASH MESSAGES ─── */
.flash-container {
    position: fixed; top: calc(var(--nav-height) + 10px); right: 20px;
    z-index: 150; display: flex; flex-direction: column; gap: 8px;
    max-width: 400px;
}
.flash {
    padding: 14px 40px 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    position: relative;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.flash-success { background: #D8F3DC; color: #1B4332; border-left: 4px solid var(--success); }
.flash-error { background: #FFE0E0; color: #8B0000; border-left: 4px solid var(--error); }
.flash-warning { background: #FFF3CD; color: #856404; border-left: 4px solid var(--warning); }
.flash-info { background: #D6EAF0; color: #1A5276; border-left: 4px solid var(--info); }
.flash-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer; opacity: 0.5;
    color: inherit;
}
.flash-close:hover { opacity: 1; }

/* ─── FOOTER ─── */
.footer {
    background: var(--primary-dark); color: rgba(255,255,255,0.6);
    padding: 50px 24px 0;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.5fr 2fr;
    gap: 40px; padding-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 14px; max-width: 320px; }
.footer .logo { color: #fff; }
.footer .logo-icon { background: rgba(255,255,255,0.1); }
.footer-links-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.footer-links-grid h4 {
    color: #fff; font-size: 0.85rem; font-weight: 700;
    margin-bottom: 12px;
}
.footer-links-grid a {
    display: block; color: rgba(255,255,255,0.5);
    font-size: 0.85rem; margin-bottom: 8px; text-decoration: none;
}
.footer-links-grid a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.4rem; }
    .hero-subtitle { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: var(--bg); padding: 20px; gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .talents-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .profile-content { grid-template-columns: 1fr; }
    .profile-hero-inner { flex-direction: column; text-align: center; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .auth-section, .auth-container { padding: calc(var(--nav-height) + 20px) 12px 40px; }
    .auth-card { padding: 28px 20px; max-width: 100%; }
    .section-title { font-size: 1.8rem; }
    .dashboard-header-inner { flex-direction: column; gap: 10px; text-align: center; }
    .status-cards { grid-template-columns: 1fr 1fr; }
    .search-bar { flex-direction: column; }
    .role-selector { grid-template-columns: 1fr; }
}

/* ─── SOFTWARE LEVELS ─── */
.software-levels-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.software-level-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-card); transition: all 0.2s;
}
.software-level-row.active { border-color: var(--primary); background: rgba(27,67,50,0.04); }
.sw-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.sw-check input { accent-color: var(--primary); }
.sw-level-select {
    padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border);
    font-size: 0.8rem; background: #fff; min-width: 120px;
}
.software-level-row:not(.active) .sw-level-select { opacity: 0.3; pointer-events: none; }

/* ─── FILTER BAR ENHANCED ─── */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter-row .form-control { min-width: 140px; flex: 1; max-width: 200px; font-size: 0.85rem; }
.filter-row .btn { white-space: nowrap; }
.multi-select-wrap { position: relative; min-width: 180px; flex: 1; max-width: 220px; }
.multi-select-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 0.85rem; min-height: 40px;
}
.multi-select-btn::after { content: '▾'; margin-left: 8px; font-size: 0.7rem; color: var(--text-light); }
.multi-select-dropdown {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; margin-top: 4px;
}
.multi-select-dropdown.open { display: block; }
.multi-select-dropdown label {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    cursor: pointer; font-size: 0.85rem; transition: background 0.15s;
}
.multi-select-dropdown label:hover { background: var(--bg-alt); }
.multi-select-dropdown input { accent-color: var(--primary); }
.filter-badge {
    background: var(--primary); color: #fff; border-radius: 50%;
    width: 18px; height: 18px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 0.7rem; margin-left: 6px;
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .status-cards { grid-template-columns: 1fr; }
    .software-levels-list { grid-template-columns: 1fr; }
}

/* ─── AVATAR LARGE (home) ─── */
.talent-avatar-lg {
    width: 64px; height: 64px; font-size: 1.15rem;
}

/* ─── BANDE PARTENAIRES DÉFILANTE ─── */
.partners-band {
    overflow: hidden;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: partnerScroll 25s linear infinite;
    width: max-content;
}
.partners-track a {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.partner-logo {
    display: inline-block !important;
    height: 32px !important;
    max-height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(100%);
    transition: opacity var(--transition), filter var(--transition);
    flex-shrink: 0;
}
.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}
@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Pause au hover */
.partners-band:hover .partners-track {
    animation-play-state: paused;
}