/* ============================================
   EVM PlanificIA - Style Principal
   Design : Moderne, coloré, inspiré du logo EVM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Couleurs EVM - tirées du logo */
    --evm-rouge: #E53935;
    --evm-bleu: #1E88E5;
    --evm-vert: #43A047;
    --evm-orange: #FB8C00;
    --evm-jaune: #FDD835;
    --evm-violet: #7B1FA2;

    /* Couleurs système */
    --primary: #1E88E5;
    --primary-dark: #1565C0;
    --primary-light: #BBDEFB;
    --secondary: #E53935;
    --success: #43A047;
    --warning: #FB8C00;
    --danger: #E53935;
    --info: #1E88E5;

    /* Neutres */
    --bg-main: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-dark: #0F1923;
    --bg-sidebar: #1A2332;
    --text-primary: #1A2332;
    --text-secondary: #5F6B7A;
    --text-light: #8896A6;
    --text-white: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Gradients */
    --gradient-evm: linear-gradient(135deg, #E53935 0%, #FB8C00 25%, #43A047 50%, #1E88E5 75%, #7B1FA2 100%);
    --gradient-hero: linear-gradient(135deg, #0F1923 0%, #1A2332 50%, #1E3A5F 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-primary: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);

    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(30, 136, 229, 0.15);

    /* Rayons */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   PAGE D'AUTHENTIFICATION (Login/Inscription)
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30,136,229,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(229,57,53,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Panneau gauche - Branding */
.auth-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    z-index: 1;
}

.auth-branding .logo-container {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

.auth-branding .logo-container img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.auth-branding h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.auth-branding h1 span {
    background: var(--gradient-evm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-branding .tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.6);
    max-width: 400px;
    text-align: center;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.auth-branding .features-list {
    margin-top: 48px;
    list-style: none;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.auth-branding .features-list li {
    color: rgba(255,255,255,0.7);
    padding: 10px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-branding .features-list li .icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.auth-branding .features-list li:nth-child(1) .icon { background: rgba(229,57,53,0.15); }
.auth-branding .features-list li:nth-child(2) .icon { background: rgba(67,160,71,0.15); }
.auth-branding .features-list li:nth-child(3) .icon { background: rgba(30,136,229,0.15); }
.auth-branding .features-list li:nth-child(4) .icon { background: rgba(251,140,0,0.15); }

/* Panneau droit - Formulaire */
.auth-form-panel {
    width: 520px;
    min-height: 100vh;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    z-index: 2;
    box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}

.auth-form-panel h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-form-panel .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 36px;
}

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.form-group label .required {
    color: var(--evm-rouge);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,136,229,0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(229,57,53,0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235F6B7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(30,136,229,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,136,229,0.4);
}

.btn-evm {
    background: var(--gradient-evm);
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(30,136,229,0.25);
}

.btn-evm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30,136,229,0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30,136,229,0.04);
}

.btn-success {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(67,160,71,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: var(--text-white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn.loading .spinner {
    display: block;
}

.btn.loading .btn-text {
    opacity: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   MODAL (remplacement des alertes JS)
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15,25,35,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 460px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal .modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.modal .modal-icon.success {
    background: rgba(67,160,71,0.1);
    color: var(--evm-vert);
}

.modal .modal-icon.error {
    background: rgba(229,57,53,0.1);
    color: var(--evm-rouge);
}

.modal .modal-icon.info {
    background: rgba(30,136,229,0.1);
    color: var(--evm-bleu);
}

.modal h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal .code-display {
    background: var(--bg-dark);
    color: var(--evm-jaune);
    font-family: 'Space Grotesk', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    letter-spacing: 3px;
    user-select: all;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.modal .code-display:hover {
    background: #1A2332;
}

.modal .code-display .copy-hint {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.modal .btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================
   LIEN ALTERNATIF (Connexion ↔ Inscription)
   ============================================ */
.auth-switch {
    text-align: center;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.auth-switch a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   BARRE DE PROGRESSION (steps inscription)
   ============================================ */
.evm-rainbow-bar {
    height: 4px;
    background: var(--gradient-evm);
    border-radius: 2px;
    margin-bottom: 32px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--info); }
.toast.warning { border-color: var(--warning); }

.toast .toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.toast .toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .auth-branding {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .auth-form-panel {
        padding: 32px 20px;
    }

    .auth-form-panel h2 {
        font-size: 1.4rem;
    }

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

    .modal {
        padding: 28px 20px;
        margin: 16px;
    }

    .modal .code-display {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* ============================================
   DASHBOARD (préparation Phase 2)
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.sidebar .sidebar-logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .sidebar-logo img {
    width: 44px;
    height: auto;
}

.sidebar .sidebar-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-nav {
    padding: 16px 12px;
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-nav li a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}

.sidebar-nav li a.active {
    background: rgba(30,136,229,0.15);
    color: var(--evm-bleu);
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.topbar h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.topbar .user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-evm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card .stat-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    background: var(--bg-main);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

table tbody td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

table tbody tr:hover {
    background: rgba(30,136,229,0.02);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(67,160,71,0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(229,57,53,0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(30,136,229,0.1);
    color: var(--info);
}

.badge-warning {
    background: rgba(251,140,0,0.1);
    color: var(--warning);
}

/* ============================================
   SIDEBAR FOOTER & MOBILE
   ============================================ */
.sidebar-footer {
    padding: 16px 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(229,57,53,0.7);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-logout:hover {
    background: rgba(229,57,53,0.08);
    color: var(--evm-rouge);
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-dark);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 150;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0,0,0,0.3);
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-content {
        margin-left: 0;
        padding: 24px 16px;
        padding-top: 72px;
    }
}

/* ============================================
   DASHBOARD PHASE 2
   ============================================ */

/* Grille de contenu */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

/* Bannière de bienvenue */
.welcome-banner {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 36px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30,136,229,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(67,160,71,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner .welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-banner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.welcome-banner h2 span {
    background: var(--gradient-evm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-banner p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    max-width: 500px;
}

.welcome-banner .welcome-meta {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.welcome-banner .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.welcome-banner .meta-item .meta-icon {
    font-size: 1rem;
}

/* Matières grid */
.matieres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.matiere-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.matiere-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.matiere-card .matiere-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.matiere-card .matiere-nom {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.matiere-card .matiere-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: rgba(30,136,229,0.1);
    color: var(--evm-bleu);
    font-weight: 600;
}

/* Section title */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Activités récentes */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Quick action buttons */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.quick-action-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.quick-action-btn .qa-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.quick-action-btn .qa-text h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1px;
}

.quick-action-btn .qa-text p {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Connexion history */
.connexion-list {
    list-style: none;
}

.connexion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
}

.connexion-item:last-child {
    border-bottom: none;
}

.connexion-item .cx-date {
    font-weight: 600;
    color: var(--text-primary);
}

.connexion-item .cx-ip {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--bg-main);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.connexion-item .cx-device {
    font-size: 0.78rem;
    color: var(--text-light);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
