/* =========================================================================
   CSS COMPLET - DASHBOARD & PROFILE
   À charger SEUL dans votre HTML - il contient TOUT!
   ========================================================================= */

/* ========== VARIABLES CSS - PALETTE COMPLÈTE ========== */
:root {
    --primary-color: #2f4b78;
    --secondary-color: #142137;
    --accent-color: #84d1f4;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --bg-primary: #2f4b78;
    --bg-secondary: #142137;
    --border-light: rgba(255,255,255,0.1);
    --border-radius-md: 10px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 4px 15px rgba(0,0,0,0.3);
    --gradient-primary: linear-gradient(135deg, #2f4b78, #84d1f4);
    --gradient-secondary: linear-gradient(135deg, #142137, #2f4b78);
    --gradient-cool: linear-gradient(135deg, #84d1f4, #2f4b78);
    --transition-speed: 0.3s ease;
    --header-height: 90px;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
}

body {
    background-color: var(--bg-secondary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

   .header {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: var(--header-height);
}

.header-container {
    max-width: 100%;
    margin: 0 35px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-controls {
    display: none;
    gap: 10px;
    align-items: center;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 12px;
}

.nav a:hover {
    color: var(--accent-color);
}



.btn-login:hover {
    background-color: var(--text-light);
    transform: translateY(-2px);
}

/* ===== SÉLECTEUR DE LANGUE (DESKTOP) ===== */
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
}






/* ===== SÉLECTEUR DE LANGUE (MOBILE) ===== */
.language-btn-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
}
.language-btn-mobile:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}
.language-sidebar-index {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1500;
    overflow-y: auto;
    display: none; /* caché par défaut */
}

/* Lorsque la classe active est ajoutée */
.language-sidebar-index.active {
    display: block;
}


.sidebar-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-language-option {
    background: none;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.sidebar-language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
    padding-left: 30px;
}

.sidebar-language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== NAVIGATION SIDEBAR (Mobile) ===== */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1400;
    overflow-y: auto;
    display: block;
}

.nav-sidebar.active {
    left: 400px;
    top: 10px;
}

.nav-sidebar-header {
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.close-nav-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.close-nav-sidebar:hover {
    transform: scale(1.2);
}

.nav-sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.nav-sidebar-content a {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.nav-sidebar-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    padding-left: 30px;
    color: var(--accent-color);
}

.btn-login-sidebar {
    background-color: var(--accent-color) !important;
    color: var(--secondary-color) !important;
    font-weight: bold;
    margin: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s !important;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.btn-login-sidebar:hover {
    background-color: var(--text-light) !important;
}

/* ===== OVERLAY (fermer le sidebar) ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1300;
}

.nav-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    pointer-events: auto;
}

/* ===== MENU HAMBURGER (Mobile) ===== */
.menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
    color: var(--bg-primary);
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-primary);
    border-radius: 2px;
    transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* ========== NAVIGATION DESKTOP ========== */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
    width: 100%;
    justify-content: space-between;
}
.section-LogHeader{
    display: flex;
    flex-direction: row;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
    position: relative;
}

.nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========== LANGUAGE SELECTOR ========== */
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed);
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    background: none;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.language-option.active {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 700;
}

/* ========== USER MENU ========== */
.user-menu-container {
    position: relative;
}

.btn-login {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    z-index: 1000;
    overflow: hidden;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background var(--transition-speed);
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* ========== MOBILE CONTROLS ========== */
.header-controls {
    display: none;
    gap: 1rem;
    align-items: center;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    transition: all var(--transition-speed);
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-secondary);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.language-btn-mobile {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.language-btn-mobile:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* ========== NAVIGATION OVERLAY ========== */
.nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 140;
    animation: fadeIn 0.3s ease;
}

.nav-overlay.show {
    display: block;
}

/* ========== NAVIGATION SIDEBAR MOBILE ========== */
.nav-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform var(--transition-speed);
    overflow-y: auto;
}

.nav-sidebar.show {
    transform: translateX(0);
}

.nav-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: flex-end;
}

.close-nav-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    transition: all var(--transition-speed);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-nav-sidebar:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.nav-sidebar .nav-sidebar-content {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.nav-sidebar .nav-sidebar-content a {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    border-left: 4px solid transparent;
}

.nav-sidebar .nav-sidebar-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--accent-color);
    padding-left: 2rem;
}





/* ========== LANGUAGE SIDEBAR MOBILE ========== */
.language-btn-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.language-btn-mobile:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.language-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right var(--transition-speed);
    overflow-y: auto;
}

.language-sidebar.active {
    right: 0;
}

.sidebar-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-language-option {
    background: none;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.sidebar-language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
    padding-left: 30px;
}

.sidebar-language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ========== BODY DASHBOARD ========== */
.body-dashboard {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    background-color: var(--bg-secondary);
}

/* ========== SIDEBAR PRINCIPAL ========== */
.sidebar {
    position: inherit;
    top: var(--header-height);
    width: 280px;
    color: var(--text-light);
    height: 100%;
}

.sidebar .nav-sidebar-content {
    padding: 20px 0;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========== DASHBOARD MAIN ========== */
.dashboard-main {
    flex: 1;
    padding: 2rem;
    background-color: var(--bg-light);
    min-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.sydebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 1000;
    transition: right var(--transition-speed);
    padding: 0;
    border-radius: 0;
}

.sydebar.active {
    right: 0;
}

/* ========== WELCOME TITLE ========== */
.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#usernameLabel {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ========== DASHBOARD GRID ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ========== CALENDAR SECTION ========== */
.calendar-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
}

#preview-calendar {
    flex: 1;
    min-height: 300px;
    border-radius: 12px;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    color: var(--text-light);
}

/* ========== PROFILE COMPLETION CARD ========== */
.profile-completion-card {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    max-width: 350px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-light);
}

.half-circle-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.half-circle {
    position: relative;
    width: 140px;
    height: 80px;
}

.half-circle svg {
    width: 100%;
    height: 100%;
}

.progress-fill {
    transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
}

.percentage-text {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
}

.profile-details {
    margin: 1.5rem 0;
}

.completion-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.complete-profile-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--gradient-cool);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.complete-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.complete-profile-btn:active {
    transform: translateY(0);
}

/* ========== AVAILABILITY SECTION ========== */
.availability-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.disponibiltéContainer {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 200px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== STATISTICS SECTION ========== */
.statistics-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.visibility-stats h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.visibility-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.visibility-item {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.visibility-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.visibility-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.visibility-item:hover::before {
    transform: scaleX(1);
}

.visibility-item h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visibility-item p {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.mission-stats h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.mission-stat-item {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed);
}

.mission-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success);
}

.mission-stat-item h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mission-stat-item span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.mission-stat-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ========== ANIMATIONS ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-grid > * {
    animation: fadeIn 0.6s ease-out;
}

.dashboard-grid > *:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid > *:nth-child(2) { animation-delay: 0.2s; }
.dashboard-grid > *:nth-child(3) { animation-delay: 0.3s; }

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--accent-color);
}

.footer p {
    margin: 0;
    font-weight: 500;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1200px) {
    .visibility-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-section {
        flex-direction: column;
    }

    .profile-completion-card {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .nav {
        display: none !important;
    }

    .nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .language-dropdown {
        right: -10px;
    }

    .sidebar {
        width: 250px;
    }

    .dashboard-main {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    /* Masquer la nav desktop */
    .nav {
        display: none;
    }

    /* Afficher les contrôles mobile */
    .header-controls {
        display: flex;
        flex-direction: row;
        gap: 0px;
        width: 100%;
        justify-content: space-between;
    }
    .btnLoginMobile{
        display: flex;
        flex-direction: row;
      
        align-items: center;
    }
  


    .logo img {
        height: 50px;
    }

    /* Sidebar responsive */
    .sidebar {
        display: none;
    }

    .body-dashboard {
        margin-top: 0;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .calendar-section {
        flex-direction: column;
    }

    #preview-calendar {
        min-height: 200px;
    }

    .profile-completion-card {
        max-width: 100%;
    }

    .visibility-content {
        grid-template-columns: 1fr;
    }

    .visibility-item p {
        font-size: 2rem;
    }

    .dashboard-grid {
        gap: 1.5rem;
    }

    .nav-sidebar {
        width: 100%;
        max-width: 400px;
    }

    .nav-overlay {
        top: var(--header-height);
    }

    .language-dropdown {
        position: fixed;
        bottom: 10px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        max-width: 90vw;
    }
    .language-btn-mobile{
        display: block;
    }
}

@media (max-width: 480px) {
    .header {
        height: 70px;
    }

    :root {
        --header-height: 70px;
    }

    .header-container {
        margin: 0 10px;
        padding: 0 5px;
    }

    .logo img {
        height: 45px;
    }

    .menu-btn span {
        width: 20px;
    }

    .language-btn-mobile {
        font-size: 0.9rem;
    }

    .dashboard-main {
        padding: 1rem;
    }

    .welcome-title {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .profile-completion-card {
        padding: 1.5rem;
    }

    .visibility-item {
        padding: 1.5rem;
    }

    .visibility-item p {
        font-size: 1.8rem;
    }

    .mission-stat-item span {
        font-size: 1.6rem;
    }

    .percentage-text {
        font-size: 24px;
    }

    .visibility-content {
        grid-template-columns: 1fr;
    }

    .mission-stat-item {
        padding: 1.5rem;
    }

    .nav-sidebar-header,
    .nav-sidebar-content {
        padding: 0.75rem;
    }

    .nav-sidebar-content a {
        padding: 0.75rem 1rem;
    }

    
}

@media (max-width: 360px) {
    .header {
        height: 60px;
    }

    :root {
        --header-height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .welcome-title {
        font-size: 1.1rem;
    }

    .visibility-item h3 {
        font-size: 0.75rem;
    }

    .dashboard-main {
        padding: 0.75rem;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-dark { color: var(--text-dark); }
.text-white { color: white; }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-light { background-color: var(--bg-light); }
.bg-success { background-color: var(--success); }

.gradient-primary { background: var(--gradient-primary); }
.gradient-secondary { background: var(--gradient-secondary); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded { border-radius: var(--border-radius-md); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }