/* =========================================================================
   CSS COMPLET - PAGE DISPONIBILITÉ
   À 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;
    height: 100%;
}

.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-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}



/* ===== 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);
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--text-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed);
    z-index: 1000;
    margin-top: 8px;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

.language-option {
    background: none;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
}

.language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
}

.language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== 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 {
    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.show {
    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;
  }



/* ===== NAVIGATION SIDEBAR (Mobile) ===== */
.nav-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: 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-dark);
    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-dark);
    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;
}



/* ===== OVERLAY (fermer le sidebar) ===== */
.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;
}

/* ===== 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-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);
}

/* ========== USER MENU ========== */
.user-menu-container {
    position: relative;
}

.btn-login {
    color: var(--text-light);
    background: transparent;
    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;
}
/* ========== STYLES SUPPLÉMENTAIRES POUR LE DROPDOWN ========== */

.user-dropdown {
    position: absolute;
    background: var(--text-light);
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    display: none;
}

/* État ACTIF du dropdown */
.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);
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.8rem;
}

/* ========== STYLES DU BOUTON LOGIN ========== */
.btn-login {
    color: var(--text-light);
    background: transparent;
    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;
    justify-content: center;
    gap: 0.5rem;
    min-width: 45px;
    min-height: 45px;
}

.btn-login:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ========== CONTAINER USER MENU ========== */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* ========== AVATAR IMAGE DANS LE DROPDOWN ========== */
#dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

#dropdown-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

#dropdown-email {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 1024px) {
    .user-dropdown {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 300px;
        height: auto;
        max-height: calc(100vh - var(--header-height));
        border-radius: 0;
        transform: none;
        transition: right var(--transition-speed);
        z-index: 999;
    }

    .user-dropdown.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-item {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #eee;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* ========== 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%;
}
.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;
      padding-left: 20px;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
      border-left-color: 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);
  }

.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;
}

/* ========== BODY DISPONIBILITÉ ========== */
.body-disponibilite {
    width: 100%;
}

.container-disponibilite {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.main-disponibilite {
    width: 100%;
}

.main-disponibilite h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInUp 0.6s ease-out;
}

/* ========== SECTION PREVIEW DATE ========== */
.section-previewDate {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

#preview-calendar {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    color: var(--text-light);
    min-height: 400px;
    border: 1px solid var(--border-light);
}

/* ========== PREVIEW EVENT / TABLEAU ========== */
.previewEventt {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.previewEventt h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== TABLEAU DISPONIBILITÉS ========== */
.tableDisponibiliti {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-light);
}

.tableDisponibiliti thead {
    background: rgba(132, 209, 244, 0.15);
    border-bottom: 2px solid var(--accent-color);
}

.tableDisponibiliti th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tableDisponibiliti tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.tableDisponibiliti tbody tr:hover {
    background-color: rgba(132, 209, 244, 0.1);
    transform: scale(1.01);
}

.tableDisponibiliti td {
    padding: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tableDisponibiliti td strong {
    color: var(--text-light);
    font-weight: 600;
}

/* ========== ACTIONS TABLEAU ========== */
.action-btn {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-edit, .btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    text-decoration: none;
    display: inline-block;
}

.btn-edit {
    background-color: var(--info);
    color: var(--text-light);
}

.btn-edit:hover {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-delete {
    background-color: var(--error);
    color: var(--text-light);
}

.btn-delete:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add {
    background: var(--gradient-cool);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== MODAL AJOUTER DISPONIBILITÉ ========== */
.modal_adddisponibiliti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content_adddisponibiliti {
    background: var(--text-light);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease-out;
}

.modal-content_adddisponibiliti h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-content_adddisponibiliti p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.modal-content_adddisponibiliti label {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.modal-content_adddisponibiliti input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    font-family: inherit;
}

.modal-content_adddisponibiliti input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(132, 209, 244, 0.1);
}

.modal-content_adddisponibiliti button {
    width: 100%;
    padding: 1.2rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

#validerDisponibilite_adddisponibiliti {
    background: var(--gradient-cool);
    color: var(--text-light);
}

#validerDisponibilite_adddisponibiliti:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#annulerModal_adddisponibiliti {
    background: var(--bg-light);
    color: var(--text-dark);
    margin-top: 0.75rem;
}

#annulerModal_adddisponibiliti:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--accent-color);
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-weight: 500;
}

/* ========== 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);
    }
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========== RESPONSIVE DESIGN ========== */

/* ========== AFFICHAGE DU MENU MOBILE - CORRECTION ========== */

/* Sur MOBILE (max-width: 1024px) - AFFICHER les contrôles */
@media (max-width: 1024px) {
    .btnLoginMobile{
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    
    /* ===== AFFICHER LES CONTRÔLES MOBILES ===== */
    .header-controls {
        display: flex !important;
        gap: 1rem;
        align-items: center;
        z-index: 1100;
        width: 100%;
        justify-content: space-between;
    }

    /* ===== MASQUER LA NAVIGATION DESKTOP ===== */
    .nav {
        display: none !important;
    }

    /* ===== MENU HAMBURGER STYLE ===== */
    .menu-btn {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1100;
    }

    .menu-btn span {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all var(--transition-speed);
    }

    /* Animation du menu - État actif */
    .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);
    }

    /* ===== BOUTON LANGUE MOBILE ===== */
    .language-btn-mobile {
        display: flex !important;
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 24px;
        font-weight: 600;
        cursor: pointer;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        transition: all var(--transition-speed);
    }

    .language-btn-mobile:hover {
        background-color: rgba(0, 0, 0, 0.1);
        color: var(--accent-color);
    }

    /* ===== SIDEBAR NAVIGATION ===== */
    .nav-sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 400px;
        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 {
        left: 0;
    }

    .nav-sidebar-header {
        padding: 1.5rem;
        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: all var(--transition-speed);
    }

    .close-nav-sidebar:hover {
        color: var(--accent-color);
        transform: scale(1.2) rotate(90deg);
    }

    .nav-sidebar .nav-sidebar-content {
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-sidebar .nav-sidebar-content a {
        color: var(--text-light);
        text-decoration: none;
        padding: 1rem 1.5rem;
        font-size: 16px;
        font-weight: 500;
        transition: all var(--transition-speed);
        border-left: 4px solid transparent;
    }

    .nav-sidebar .nav-sidebar-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-left-color: var(--accent-color);
        color: var(--accent-color);
        padding-left: 2rem;
    }

    /* ===== OVERLAY ===== */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-speed);
        z-index: 100;
    }

    .nav-overlay.show {
        background: rgba(0, 0, 0, 0.5);
        opacity: 1;
        pointer-events: auto;
    }

    /* ===== LANGUAGE SIDEBAR ===== */
    .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;
    }

   

    /* ===== MASQUER SIDEBAR DESKTOP ===== */
    .sidebar {
        display: none !important;
    }

    /* ===== AJUSTER LAYOUT EN MOBILE ===== */
    .body-dashboard {
        flex-direction: column;
        margin-top: 0;
    }

    .dashboard-main {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Sur DESKTOP (min-width: 1025px) - MASQUER les contrôles mobiles */
@media (min-width: 1025px) {
    
    .header-controls {
        display: none !important;
    }

    .nav-sidebar {
        display: none !important;
    }

    .language-sidebar {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }

    .nav {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
    }
    .section-LogHeader{
        display: flex;
        flex-direction: row;
    }

    .sidebar {
        display: block !important;
    }
}

/* ========== SCROLLBAR PERSONNALISÉE ========== */

.nav-sidebar::-webkit-scrollbar {
    width: 8px;
}

.nav-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.nav-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.language-sidebar::-webkit-scrollbar {
    width: 8px;
}

.language-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.language-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.language-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .header-container {
        margin: 0 15px;
        padding: 0 10px;
    }

    /* Masquer la nav desktop */
    .nav {
        display: none;
    }

    /* Afficher les contrôles mobile */
    .header-controls {
        display: flex;
    }

    .logo img {
        height: 50px;
    }

    /* Sidebar responsive */
    .sidebar {
        display: none;
    }

    .body-dashboard {
        margin-top: 0;
        flex-direction: column;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1.5rem;
        min-height: auto;
    }

    .main-disponibilite h1 {
        font-size: 1.5rem;
    }

    .section-previewDate {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #preview-calendar {
        min-height: 300px;
    }

    .previewEventt {
        padding: 1.5rem;
    }

    .previewEventt h2 {
        font-size: 1.1rem;
    }

    .tableDisponibiliti {
        font-size: 0.85rem;
    }

    .tableDisponibiliti th,
    .tableDisponibiliti td {
        padding: 0.75rem;
    }

    .btn-edit, .btn-delete {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .modal-content_adddisponibiliti {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-content_adddisponibiliti h3 {
        font-size: 1.3rem;
    }
}

@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;
    }

    .main-disponibilite h1 {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .section-previewDate {
        gap: 1rem;
    }

    #preview-calendar {
        min-height: 250px;
        padding: 1rem;
    }

    .previewEventt {
        padding: 1rem;
    }

    .previewEventt h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .tableDisponibiliti {
        font-size: 0.8rem;
    }

    .tableDisponibiliti th,
    .tableDisponibiliti td {
        padding: 0.5rem;
    }

    .tableDisponibiliti th {
        font-size: 0.75rem;
    }

    .btn-edit, .btn-delete {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }

    .action-btn {
        flex-direction: column;
        gap: 0.25rem;
    }

    .modal-content_adddisponibiliti {
        padding: 1rem;
        width: 95%;
    }

    .modal-content_adddisponibiliti h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .modal-content_adddisponibiliti label {
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    .modal-content_adddisponibiliti input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .modal-content_adddisponibiliti button {
        padding: 1rem;
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    .sidebar-header h3 {
        font-size: 1rem;
    }

    .nav-sidebar-content a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .header {
        height: 60px;
    }

    :root {
        --header-height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .main-disponibilite h1 {
        font-size: 1.1rem;
    }

    .tableDisponibiliti {
        font-size: 0.75rem;
    }

    .tableDisponibiliti th,
    .tableDisponibiliti td {
        padding: 0.4rem;
    }

    .dashboard-main {
        padding: 0.75rem;
    }

    .section-previewDate {
        gap: 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; }
