/* 🎨 IDENTITÉ VISUELLE "EXECUTIVE NAVY & GOLD" (Ultra fluide) */
:root {
    --primary: #0F172A; /* Bleu Marine Profond (Navy) */
    --primary-hover: #1E293B; 
    --accent: #D97706; /* Ambre / Or premium */
    --accent-hover: #B45309;
    --bg-page: #F8FAFC; 
    --text-main: #0F172A; 
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --header-bg: #0F172A; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-page);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    display: flex; flex-direction: column; 
    height: 100vh; /* 👈 Verrouille la hauteur à 100% de l'écran */
    overflow: hidden; /* 👈 Tue le double scroll de la page entière */
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, .logo, .job-title, .badge { font-family: 'Outfit', sans-serif; }

/* 🌟 NAVBAR : Contrastée, sombre et élégante */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--header-bg);
padding: 12px 35px; /* 👈 On redonne de l'épaisseur en haut et en bas */
    margin: 20px auto; width: 96%; max-width: 1800px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    z-index: 100; position: sticky; top: 20px;
}

.logo { font-size: 26px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.5px; }
.logo span { color: var(--accent); } 

.nav-separator { width: 2px; height: 24px; background-color: #334155; }
.btn-tuto { background: none; border: none; color: #94A3B8; font-weight: 600; cursor: pointer; font-size: 15px; transition: color 0.2s; }
.btn-tuto:hover { color: #FFFFFF; }

.btn-create {
    background-color: var(--accent); 
    color: white; border: none; padding: 12px 24px;
    border-radius: 12px; font-weight: 800; cursor: pointer; font-size: 15px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
}
.btn-create:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(217, 119, 6, 0.3); }

/* LAYOUT */
.main-container { display: flex; width: 96%; max-width: 1800px; margin: 10px auto 20px; flex: 1; overflow: hidden; min-height: 0; } /* 👈 min-height: 0 est vital ici */
.left-column { flex: 0 0 50%; padding: 20px 30px; display: flex; flex-direction: column; height: 100%; } /* 👈 Fini le calc() ! */
.left-column h2 { font-size: 32px; font-weight: 800; margin-bottom: 25px; color: var(--text-main); letter-spacing: -0.5px; text-shadow: 0 2px 5px white; }

/* CARTE */
.map-container { width: 100%; height: 100%; min-height: 0; flex-grow: 1; border-radius: 20px; z-index: 1; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 4px solid white; background-color: white; }
.right-column { flex: 1; padding: 20px 40px; display: flex; flex-direction: column; height: 100%; } /* 👈 Fini le calc() ! */

.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-shrink: 0; }
.feed-header h2 { font-size: 32px; font-weight: 800; margin: 0; color: var(--text-main); letter-spacing: -0.5px; text-shadow: 0 2px 5px white;}
.badge { background-color: var(--text-main); color: white; padding: 8px 16px; border-radius: 12px; font-size: 15px; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.feed-list { overflow-y: auto; flex-grow: 1; padding-right: 15px; padding-bottom: 40px; }
.feed-list::-webkit-scrollbar { width: 8px; }
.feed-list::-webkit-scrollbar-thumb { background-color: #CBD5E1; border-radius: 10px; }
.empty-state { text-align: center; color: var(--text-muted); margin-top: 15vh; font-size: 18px; display: flex; flex-direction: column; align-items: center; gap: 15px; font-weight: 600; background: white; padding: 40px; border-radius: 20px; border: 1px solid var(--border-color);}

/* 🌟 ANNONCES : Blanches, pures et contrastées */
.job-card { 
    background-color: #FFFFFF; 
    border: 1px solid var(--border-color); 
    border-left: 6px solid var(--primary); 
    border-radius: 16px; padding: 30px; margin-bottom: 20px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); 
    transition: all 0.2s ease; 
    position: relative; overflow: hidden; 
}
.job-card:hover { 
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1); 
    transform: translateY(-4px); 
    border-left-color: var(--accent); 
}
.job-title { font-size: 24px; font-weight: 800; color: var(--text-main); margin-bottom: 18px; letter-spacing: -0.5px; }
.job-tags { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.tag { background-color: #F1F5F9; color: #475569; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 1px solid #E2E8F0; }
.tag.highlight { background-color: var(--primary); color: white; border: none;} 
.tag.budget { background-color: #F59E0B; color: white; border: none; } 

.job-details { font-size: 15px; color: #475569; margin-bottom: 25px; line-height: 1.7; }
.job-details strong { color: var(--text-main); font-weight: 800; }

.btn-apply { background-color: #F8FAFC; border: 2px solid #E2E8F0; color: var(--text-main); padding: 12px 24px; border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; width: 100%; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-apply:hover { background-color: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2); }

/* FILTRES */
.filters-bar { display: flex; gap: 12px; margin-bottom: 25px; position: relative; z-index: 20; }
.search-wrapper { flex-grow: 1; position: relative; }
#search-dept { width: 100%; padding: 14px 20px; border: 2px solid white; border-radius: 12px; font-size: 15px; font-weight: 600; outline: none; transition: all 0.2s; background-color: white; font-family: 'Inter', sans-serif; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
#search-dept:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15); }

.search-results { position: absolute; top: 100%; left: 0; right: 0; background-color: white; border: 1px solid var(--border-color); border-radius: 12px; margin-top: 8px; max-height: 250px; overflow-y: auto; list-style: none; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.search-results.hidden { display: none; }
.search-results li { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid #F1F5F9; font-size: 14px; font-weight: 600; color: var(--text-main); }
.search-results li:hover { background-color: var(--accent); color: white; }

.filter-btn { padding: 0 20px; border: 2px solid white; background-color: white; border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--text-muted); transition: all 0.2s; white-space: nowrap; font-family: 'Inter', sans-serif; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.filter-btn:hover { background-color: #F8FAFC; color: var(--text-main); border-color: #E2E8F0;}
.filter-btn.active { background-color: var(--text-main); color: white; border-color: var(--text-main); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2); }
.filter-btn.remote-active { background-color: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2); }

/* TÉLÉPORTATION */
.map-teleport { position: absolute; top: 15px; right: 15px; z-index: 1000; padding: 10px 15px; border-radius: 10px; border: none; background-color: var(--text-main); font-weight: 700; color: white; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.15); outline: none; font-family: 'Inter', sans-serif; transition: 0.2s; }
.map-teleport:hover { background-color: var(--accent); transform: translateY(-2px); }

/* AUTHENTIFICATION */
.hidden { display: none !important; }
.user-profile { display: flex; align-items: center; gap: 12px; background-color: #1E293B; padding: 6px 16px 6px 6px; border-radius: 30px; border: 1px solid #334155; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.user-name { font-size: 14px; font-weight: 700; color: white; }
.btn-logout { background: none; border: none; color: #94A3B8; font-size: 13px; font-weight: 800; cursor: pointer; margin-left: 5px; transition: 0.2s;}
.btn-logout:hover { color: var(--accent); }

/* 🥶 MASQUAGE DE LA CARTE */
body.modal-open .main-container { pointer-events: none; user-select: none; }
.map-container { opacity: 1; visibility: visible; transition: opacity 0.2s; }
body.modal-open .map-container { opacity: 0; visibility: hidden; }
body.modal-open { overflow: hidden; }

/* 🌟 STYLES DES MODALES */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.85); 
    display: flex; align-items: center; justify-content: center; z-index: 2000;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-content {
    background-color: white; width: 90%; max-width: 750px; padding: 40px; border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: translateY(20px); transition: transform 0.3s ease;
    /* 💡 NOUVEAU : Sécurité pour les petits écrans */
    max-height: 90vh; 
    overflow-y: auto; 
}
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-thumb { background-color: #CBD5E1; border-radius: 10px; }
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.modal-header h2 { font-size: 28px; color: var(--text-main); margin: 0; font-weight: 800; letter-spacing: -0.5px;}
.btn-close { background-color: #F1F5F9; border: none; font-size: 24px; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--text-main); transition: 0.2s; font-weight: bold;}
.btn-close:hover { background-color: var(--text-main); color: white; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.form-group.full { grid-column: span 2; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--border-color); border-radius: 10px; font-family: 'Inter', sans-serif; font-weight: 500; outline: none; transition: 0.2s; background-color: #F8FAFC; }
.form-group textarea {
    resize: vertical; /* 👈 Empêche d'élargir sur les côtés et de casser la modale */
    max-height: 250px; /* 👈 Limite la hauteur maximale */
    min-height: 80px; /* 👈 Assure une belle hauteur de base */
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { background-color: white; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15); }

.btn-submit-mission { width: 100%; background-color: var(--primary); color: white; border: none; padding: 18px; border-radius: 12px; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); transition: 0.2s; }
.btn-submit-mission:hover { background-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(217, 119, 6, 0.3); }

.input-group { display: flex; gap: 10px; }
.input-group input { flex: 1.5; }
.input-group select { flex: 1; }

.options-group { background-color: #F8FAFC; padding: 20px; border-radius: 12px; border: 2px dashed #CBD5E1; }
.checkbox-list { display: flex; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.checkbox-list label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text-main); }
.checkbox-list input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }

/* MODALE DÉTAILS (Large) */
/* 💡 NOUVEAU : Formulaire de candidature bien aéré */
#form-apply {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 👈 Magique : crée un espace parfait entre chaque champ ! */
}

/* 💡 NOUVEAU : Le cadre de la description avec son scroll intégré */
.description-box {
    background-color: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-height: 250px; /* 👈 Au-delà de cette taille, on scroll à l'intérieur */
    overflow-y: auto;
}
.description-box::-webkit-scrollbar { width: 6px; }
.description-box::-webkit-scrollbar-thumb { background-color: #CBD5E1; border-radius: 10px; }
.details-content-large { max-width: 1100px; width: 95%; }
.modal-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-left { padding-right: 20px; border-right: 2px solid var(--border-color); }

.details-tags { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.details-section { margin-bottom: 25px; }
.details-section h3 { font-size: 14px; color: var(--text-main); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 800; }
.details-section p { font-size: 16px; line-height: 1.7; color: var(--text-main); white-space: pre-wrap; font-weight: 500;}
.details-text-highlight { font-weight: 800; font-size: 22px !important; color: var(--accent) !important; }

.prerequis-list { list-style: none; padding: 0; display: flex; gap: 15px; flex-wrap: wrap; }
.prerequis-list li { background-color: var(--text-main); padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; color: white; }

.apply-box { background-color: #F8FAFC; padding: 30px; border-radius: 16px; border: 2px solid var(--border-color); }
.apply-box h3 { font-size: 22px; color: var(--text-main); margin-bottom: 20px; font-weight: 800; }

/* 🔄 GESTION DES VUES (SPA) */
.view-section { display: none; width: 100%; height: 100%; overflow-y: auto; padding-bottom: 20px; } /* 👈 Laisse scroller le profil / Légal */
.view-section.active { display: flex; }
#view-home.active { display: flex; overflow: hidden; } /* 👈 Pas de scroll global sur l'accueil, que dans les listes ! */
#view-dashboard.active { display: flex; flex-direction: column; width: 100%; overflow: hidden; }

/* 🌟 DASHBOARD & PROFIL */
.btn-dashboard { background-color: #1E293B; color: white; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-dashboard:hover { background-color: var(--accent); }

/* 🌟 BOUTON RETOUR (Remis à sa place avec nouveau design) */
.btn-back { 
    padding: 12px 24px; 
    background-color: #EF4444; 
    color: white; 
    border: none;
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 800; 
    font-family: 'Inter', sans-serif; 
    font-size: 15px; 
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-back:hover { 
    background-color: #DC2626; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35); 
}

/* 🌟 EN-TÊTE COLLANT (Sticky) */
.dashboard-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; 
    padding: 20px 30px; 
    position: sticky; /* 👈 LE SECRET EST LÀ */
    top: 0; 
    z-index: 90; 
    background-color: var(--bg-page); 
    box-shadow: 0 15px 15px var(--bg-page); /* 👈 Astuce pour cacher le texte qui glisse en dessous */
}

.dashboard-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; flex: 1; overflow: hidden; padding: 0 30px 30px; }

.dashboard-col { display: flex; flex-direction: column; background-color: white; border: 1px solid var(--border-color); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); min-height: 0; overflow: hidden; }
.dashboard-col h3 { font-size: 20px; color: var(--text-main); margin-bottom: 20px; font-weight: 800; border-bottom: 2px solid var(--bg-page); padding-bottom: 15px; }

.dash-list { flex: 1; overflow-y: auto; padding-right: 10px; }
.dash-list::-webkit-scrollbar { width: 8px; }
.dash-list::-webkit-scrollbar-thumb { background-color: #CBD5E1; border-radius: 10px; }
.empty-msg { color: var(--text-muted); font-size: 15px; font-weight: 500; text-align: center; margin-top: 30px; }

/* 🌟 DASHBOARD CARTES */
.dash-card { background-color: #F8FAFC; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 15px; position: relative; transition: all 0.2s; cursor: pointer; }
.dash-card:hover { border-color: var(--accent); background-color: white; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08); }
.dash-card h4 { font-size: 18px; margin-bottom: 5px; color: var(--text-main); font-weight: 800; }
.dash-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500;}

.status-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.status-attente { background-color: #FDE68A; color: #B45309; } 
.status-accepte { background-color: #10B981; color: white; } 
.status-refuse { background-color: #EF4444; color: white; }  

.dash-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.expand-icon { font-size: 14px; color: var(--text-muted); font-weight: bold; }
.dash-card-details { display: none; margin-top: 15px; padding-top: 15px; border-top: 2px dashed var(--border-color); }
.dash-card.expanded .dash-card-details { display: block; }

.dash-card-actions { display: flex; gap: 10px; margin-top: 15px; }
.btn-dash-action { flex: 1; padding: 12px; border-radius: 8px; font-weight: 800; font-size: 13px; cursor: pointer; border: none; transition: 0.2s; font-family: 'Inter', sans-serif; }
.btn-edit { background-color: #DBEAFE; color: #1D4ED8; }
.btn-edit:hover { background-color: #BFDBFE; }
.btn-withdraw { background-color: #FEE2E2; color: #B91C1C; }
.btn-withdraw:hover { background-color: #FECACA; }
.btn-archive { background-color: #FEF3C7; color: #B45309; }
.btn-archive:hover { background-color: #FDE68A; }

/* 🌟 MODALE DES CANDIDATS */
.candidates-content { max-width: 850px; width: 95%; max-height: 90vh; display: flex; flex-direction: column; }
.candidates-list { flex: 1; overflow-y: auto; padding-right: 10px; display: flex; flex-direction: column; gap: 15px; }
.candidates-list::-webkit-scrollbar { width: 8px; }
.candidates-list::-webkit-scrollbar-thumb { background-color: #CBD5E1; border-radius: 10px; }

.candidate-card { background-color: white; border: 2px solid var(--border-color); border-radius: 16px; padding: 25px; }
/* Animation d'ouverture de l'accordéon candidat */
.candidate-card { transition: all 0.2s ease; }
.candidate-card:hover { border-color: var(--accent); box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08); }

/* On cache les détails par défaut via le CSS */
.candidate-details { display: none; } 
.candidate-card.expanded .candidate-details { display: block; animation: fadeInCard 0.3s ease-out; }
.candidate-card.expanded .cand-expand-icon { transform: rotate(180deg); color: var(--accent); }

/* L'animation d'apparition fluide */
@keyframes fadeInCard { 
    from { opacity: 0; transform: translateY(-5px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.candidate-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.candidate-info h4 { font-size: 20px; color: var(--text-main); margin-bottom: 8px; font-weight: 800;}
.candidate-info p { font-size: 15px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500;}

.candidate-message { background-color: #F8FAFC; padding: 20px; border-radius: 12px; border: 1px solid #E2E8F0; font-size: 15px; color: var(--text-main); white-space: pre-wrap; margin-bottom: 20px; line-height: 1.6; font-weight: 500;}

.candidate-actions { display: flex; gap: 15px; }
.btn-status { padding: 14px 16px; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer; border: none; transition: 0.2s; flex: 1; font-family: 'Inter', sans-serif; color: white;}
.btn-accept { background-color: #10B981; }
.btn-accept:hover { background-color: #059669; }
.btn-reject { background-color: #EF4444; }
.btn-reject:hover { background-color: #DC2626; }

.badge-applied { position: absolute; top: 15px; right: 15px; background-color: #10B981; color: white; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 800; z-index: 2; }
.badge-fermee { background-color: #64748B; color: white; padding: 4px 10px; border-radius: 6px; font-size: 11px; margin-left: 10px; text-transform: uppercase; }

.candidates-filters { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 2px solid var(--border-color); }
.filter-select { padding: 12px 18px; border-radius: 10px; border: 2px solid var(--border-color); outline: none; font-family: 'Inter', sans-serif; font-size: 14px; background-color: white; cursor: pointer; color: var(--text-main); font-weight: 700; transition: 0.2s; }
.filter-select:focus { border-color: var(--accent); }

/* 🎓 VUE TUTORIEL */
.tuto-section h3 { color: var(--primary); font-size: 22px; margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.tuto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.tuto-card { background: white; border: 2px solid var(--border-color); padding: 30px 25px 25px; border-radius: 16px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.tuto-number { position: absolute; top: -18px; left: -18px; background: var(--accent); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; border: 4px solid white; box-shadow: 0 4px 10px rgba(217,119,6,0.2); font-family: 'Outfit', sans-serif;}
.tuto-card h4 { margin-bottom: 12px; color: var(--text-main); font-size: 17px; font-weight: 800; }
.tuto-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* 🌟 FOOTER (PIED DE PAGE) */
.site-footer {
    background-color: var(--header-bg);
    border-top: 1px solid #334155;
    padding: 12px 40px; /* 👈 Footer beaucoup plus fin (12px au lieu de 30px) */
    margin-top: auto; 
    z-index: 10;
}
.footer-content { 
    max-width: 1800px; margin: 0 auto; 
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-content p { color: #94A3B8; font-size: 14px; font-weight: 500; }
.footer-links { display: flex; gap: 25px; flex-wrap: wrap; }
.footer-links a { color: #CBD5E1; text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* Styles pour le texte légal injecté */
#legal-content h3 { color: var(--primary); margin-top: 25px; margin-bottom: 10px; font-size: 18px; }
#legal-content p, #legal-content ul { margin-bottom: 15px; }
#legal-content ul { padding-left: 20px; }

/* 🌟 SYSTÈME DE NOTIFICATIONS (TOASTS) */
.toast {
    background: white; 
    border-left: 6px solid var(--accent);
    color: var(--text-main); 
    font-weight: 600; font-size: 14px;
    padding: 16px 24px; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
    display: flex; align-items: center; gap: 15px;
    transform: translateX(120%); opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Inter', sans-serif;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }
.toast.info { border-left-color: var(--primary); }

@media (max-width: 900px) {
    .dashboard-split { grid-template-columns: 1fr; overflow-y: auto; }
    .dashboard-col { overflow: visible; }
    .dash-list { overflow: visible; }
    .modal-split { grid-template-columns: 1fr; gap: 20px; }
    .split-left { border-right: none; padding-right: 0; border-bottom: 2px solid var(--border-color); padding-bottom: 20px; }

    .btn-back { 
        padding: 10px 18px; 
        font-size: 14px; 
    }
}

