.language-dropdown {
    position: relative;
}

.language-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    width: 55px;
    text-align: center;
}

.language-current:hover {
    color: #3B82F6;
    background-color: rgba(59, 130, 246, 0.1);
}

.language-current i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.language-dropdown.show .language-current i {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-options form {
    margin: 0;
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
}

.language-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.language-option.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.4);
}





/* .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.75rem !important;
    color: var(--text-light) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
    padding: 0.75rem 1rem !important;
}

.form-control:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
}

.form-control:focus {
    outline: none !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
} */


/*  Vérification OK jusqu'ici  */

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    /* semi-transparent */
    backdrop-filter: blur(12px);
    /* flou vitre */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #3B82F6;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Style for notification text */
.notification-text {
    display: inline;
    margin-left: 0.5rem;
}

/* Dropdowns de navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #D1D5DB;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-dropdown-btn:hover {
    color: white;
    background: rgba(75, 85, 99, 0.1);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-dropdown-content.show {
    display: block;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.dropdown-item i {
    margin-right: 0.5rem;
}

/* Layout principal */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Footer */
/* footer { ancien footer 
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(75, 85, 99, 0.2);
    padding: 2rem 1rem;
    margin-top: auto;
} */

footer {
    background: rgba(255, 255, 255, 0.05);
    /* semi-transparent comme la navbar */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* inversion de la navbar */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    /* ombre vers le haut */
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
    /* colle le footer en bas */
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.footer-content .copyright-text {
    color: #D1D5DB;
    margin-bottom: 0.25rem;
}

.footer-content .siret-text {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: #6B7280;
    margin: 0 0.25rem;
}

/* Styles pour les notifications */
.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #EF4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.notification-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
    background-color: rgba(31, 41, 55, 0.8);
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #F3F4F6;
}

.notification-body {
    padding: 0;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: rgba(31, 41, 55, 0.8);
}

.notification-title {
    font-weight: 600;
    color: #F3F4F6;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.notification-description {
    color: #9CA3AF;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.notification-date {
    color: #6B7280;
    font-size: 0.75rem;
    text-align: right;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .form-control {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem !important;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(17, 24, 39, 0.95);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        z-index: 1000;
    }

    .navbar-nav>a {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0.75rem;
        display: flex;
        align-items: center;
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem;
        text-align: left;
    }

    .nav-dropdown-btn .fa-chevron-down {
        margin-left: auto;
    }

    /* Show notification text on mobile */
    .d-none {
        display: none;
    }

    .d-md-inline {
        display: inline !important;
    }

    .nav-dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        box-shadow: none;
        border-left: 2px solid rgba(59, 130, 246, 0.5);
        padding-left: 1rem;
    }

    .dropdown-item {
        padding: 0.75rem;
    }

    /* Réduire la taille du pied de page en mobile */
    footer {
        padding: 1rem 0.5rem;
    }

    .footer-content {
        font-size: 0.75rem;
    }

    .copyright-text {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .footer-content a {
        font-size: 0.75rem;
        margin: 0 0.3rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1rem;
    }

    .form-control {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem !important;
    }
}