/* Modern Navbar Styles - CSS Pur */
/* ================================= */

/* Reset et base */
.navbar-modern * {
    box-sizing: border-box;
}

/* Navbar Container Principal */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    width: 100%;
}

.dark .navbar-modern {
    background-color: rgba(17, 24, 39, 0.95);
    border-bottom-color: rgba(55, 65, 81, 0.5);
}

.navbar-modern:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Container interne */
.navbar-modern .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .navbar-modern .container {
        padding: 0 2rem;
    }
}

/* Layout principal de la navbar */
.navbar-modern .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem; /* 64px */
}

@media (min-width: 1024px) {
    .navbar-modern .flex {
        height: 5rem; /* 80px */
    }
}

/* Section Logo */
.navbar-modern .flex > div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo et nom de marque */
.navbar-modern a[href*="home"] {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-modern a[href*="home"]:hover {
    transform: scale(1.05);
}

.navbar-modern .logo {
    height: 3rem;
    width: 3.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    object-fit: contain;
}

@media (min-width: 640px) {
    .navbar-modern .logo {
        height: 3.5rem;
        width: 4rem;
    }
}

@media (min-width: 1024px) {
    .navbar-modern .logo {
        height: 4.5rem;
        width: 5.5rem;
    }
}

@media (min-width: 1280px) {
    .navbar-modern .logo {
        height: 5rem;
        width: 6rem;
    }
}

/* Logo optimisé */
.navbar-modern .logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

/* Effet hover sur le logo */
.navbar-modern a[href*="home"]:hover .logo {
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.3));
    transform: scale(1.05);
}

/* Support du mode sombre pour le logo */
.dark .navbar-modern .logo {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

.dark .navbar-modern a[href*="home"]:hover .logo {
    filter: drop-shadow(0 4px 8px rgba(74, 222, 128, 0.4));
}

/* Navigation Desktop */
.navbar-modern .hidden.lg\\:flex {
    display: none;
}

@media (min-width: 1024px) {
    .navbar-modern .hidden.lg\\:flex {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Liens de navigation */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.dark .nav-link {
    color: #d1d5db;
}

.nav-link:hover {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .nav-link:hover {
    color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

.nav-link.active {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .nav-link.active {
    color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

/* Icônes dans les liens */
.nav-link svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Ligne animée sous les liens */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Lien dropdown */
.nav-link-dropdown {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.dark .nav-link-dropdown {
    color: #d1d5db;
}

.nav-link-dropdown:hover {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .nav-link-dropdown:hover {
    color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

.nav-link-dropdown svg:last-child {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.nav-link-dropdown:hover svg:last-child {
    transform: rotate(180deg);
}

/* Menu dropdown */
.navbar-modern .group:hover .absolute {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.navbar-modern .absolute {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease;
    transform-origin: top;
    z-index: 100;
}

.dark .navbar-modern .absolute {
    background-color: #1f2937;
    border-color: #374151;
}

.navbar-modern .absolute .p-4 {
    padding: 1rem;
}

.navbar-modern .absolute .space-y-3 > div {
    margin-bottom: 0.75rem;
}

.navbar-modern .absolute .space-y-3 > div:last-child {
    margin-bottom: 0;
}

/* Items du dropdown */
.dropdown-item {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    transform: translateX(4px);
}

.dropdown-item > div {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover > div {
    background-color: #f9fafb;
}

.dark .dropdown-item:hover > div {
    background-color: #374151;
}

/* Icônes colorées dans le dropdown */
.dropdown-item .flex-shrink-0 {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item .bg-primary-100 {
    background-color: #dcfce7;
}

.dark .dropdown-item .bg-primary-900\/30 {
    background-color: rgba(34, 197, 94, 0.3);
}

.dropdown-item .bg-blue-100 {
    background-color: #dbeafe;
}

.dark .dropdown-item .bg-blue-900\/30 {
    background-color: rgba(59, 130, 246, 0.3);
}

.dropdown-item .bg-green-100 {
    background-color: #dcfce7;
}

.dark .dropdown-item .bg-green-900\/30 {
    background-color: rgba(34, 197, 94, 0.3);
}

/* Texte du dropdown */
.dropdown-item .ml-3 p:first-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.dark .dropdown-item .ml-3 p:first-child {
    color: #ffffff;
}

.dropdown-item .ml-3 p:last-child {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.dark .dropdown-item .ml-3 p:last-child {
    color: #9ca3af;
}

/* Lien spécial (Immobilier) */
.nav-link-special {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #dc2626;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.dark .nav-link-special {
    color: #f87171;
}

.nav-link-special:hover {
    color: #b91c1c;
    background-color: rgba(220, 38, 38, 0.1);
}

.dark .nav-link-special:hover {
    color: #ef4444;
    background-color: rgba(220, 38, 38, 0.2);
}

.nav-link-special::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-special:hover::before {
    width: 100%;
}

/* Section des actions (droite) */
.navbar-modern .flex.items-center.space-x-2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .navbar-modern .flex.items-center.space-x-2 {
        gap: 0.75rem;
    }
}

/* Boutons d'action */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dark .action-button {
    color: #9ca3af;
    border-color: #4b5563;
}

.action-button:hover {
    color: #22c55e;
    border-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.dark .action-button:hover {
    color: #4ade80;
    border-color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

/* Bouton de langue */
.language-button {
    width: auto;
    padding: 0 0.75rem;
}

.language-button span {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Bouton de thème */
.theme-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bouton d'authentification */
.auth-button-primary {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #22c55e;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.dark .auth-button-primary {
    background-color: #22c55e;
}

.auth-button-primary:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.dark .auth-button-primary:hover {
    background-color: #15803d;
}

.auth-button-primary svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Bouton menu mobile */
.mobile-menu-button {
    transition: all 0.3s ease;
    background: none;
    cursor: pointer;
}

.dark .mobile-menu-button {
    color: #9ca3af;
    border-color: #4b5563;
}

.mobile-menu-button:hover {
    color: #22c55e;
    border-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .mobile-menu-button:hover {
    color: #4ade80;
    border-color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

/* Icône hamburger */
.hamburger {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
}

.hamburger span {
    position: absolute;
    display: block;
    width: 1.25rem;
    height: 0.125rem;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Animation hamburger */
.mobile-menu-open .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* Menu mobile */
.mobile-menu {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .mobile-menu {
    background-color: #111827;
    border-top-color: #374151;
}

.mobile-menu-open .mobile-menu {
    max-height: 100vh;
}

.mobile-menu .container {
    padding: 1.5rem 1rem;
}

.mobile-menu .space-y-4 > div {
    margin-bottom: 1rem;
}

.mobile-menu .space-y-4 > div:last-child {
    margin-bottom: 0;
}

/* Liens de navigation mobile */
.mobile-nav-link,
.mobile-nav-link-special {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .mobile-nav-link,
.dark .mobile-nav-link-special {
    color: #d1d5db;
}

.mobile-nav-link:hover,
.mobile-nav-link-special:hover {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .mobile-nav-link:hover,
.dark .mobile-nav-link-special:hover {
    color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

.mobile-nav-link.active,
.mobile-nav-link-special.active {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .mobile-nav-link.active,
.dark .mobile-nav-link-special.active {
    color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

.mobile-nav-link svg,
.mobile-nav-link-special svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

/* Lien spécial mobile */
.mobile-nav-link-special {
    color: #dc2626;
}

.dark .mobile-nav-link-special {
    color: #f87171;
}

.mobile-nav-link-special:hover {
    color: #b91c1c;
    background-color: rgba(220, 38, 38, 0.1);
}

.dark .mobile-nav-link-special:hover {
    color: #ef4444;
    background-color: rgba(220, 38, 38, 0.2);
}

/* Séparateurs dans le menu mobile */
.mobile-menu .border-t {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.dark .mobile-menu .border-t {
    border-top-color: #374151;
}

/* Titres de section mobile */
.mobile-menu h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding: 0 0.75rem;
}

.dark .mobile-menu h3 {
    color: #9ca3af;
}

/* Boutons d'action mobile */
.mobile-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: none;
    cursor: pointer;
}

.dark .mobile-action-button {
    color: #9ca3af;
    border-color: #4b5563;
}

.mobile-action-button:hover {
    color: #22c55e;
    border-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.dark .mobile-action-button:hover {
    color: #4ade80;
    border-color: #4ade80;
    background-color: rgba(34, 197, 94, 0.2);
}

/* Bouton d'authentification mobile */
.mobile-auth-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #22c55e;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.dark .mobile-auth-button {
    background-color: #22c55e;
}

.mobile-auth-button:hover {
    background-color: #16a34a;
}

.dark .mobile-auth-button:hover {
    background-color: #15803d;
}

.mobile-auth-button svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Espacement pour la navbar fixe */
.h-16 {
    height: 4rem;
}

@media (min-width: 1024px) {
    .h-20 {
        height: 5rem;
    }
}

/* Responsive */
@media (max-width: 1023px) {
    .navbar-modern .hidden.lg\\:flex {
        display: none !important;
    }
}

/* Amélioration de l'espacement sur grands écrans */
@media (min-width: 1280px) {
    .navbar-modern .flex {
        gap: 1.5rem;
    }
    
    .navbar-modern .hidden.lg\\:flex {
        gap: 1rem;
    }
    
    .navbar-modern .flex > div:last-child {
        gap: 1rem;
    }
}

/* Espacement optimal sur très grands écrans */
@media (min-width: 1536px) {
    .navbar-modern .flex {
        gap: 2rem;
    }
    
    .navbar-modern .hidden.lg\\:flex {
        gap: 1.25rem;
    }
}

@media (max-width: 639px) {
    .navbar-modern .hidden.sm\\:block {
        display: none !important;
    }
    
    .navbar-modern .flex.items-center.space-x-2 {
        gap: 0.25rem;
    }
}

/* Animations */
.navbar-fade-in {
    animation: navbarFadeIn 0.5s ease-out forwards;
}

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

/* États de scroll */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .navbar-scrolled {
    background-color: rgba(17, 24, 39, 0.98);
}

/* Support du mode sombre */
.dark .navbar-modern {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.dark .navbar-modern:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.dark .navbar-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Focus states pour l'accessibilité */
.nav-link:focus,
.nav-link-dropdown:focus,
.nav-link-special:focus,
.action-button:focus,
.auth-button-primary:focus,
.mobile-nav-link:focus,
.mobile-nav-link-special:focus {
    outline: none;
    box-shadow: 0 0 0 2px #22c55e, 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.dark .nav-link:focus,
.dark .nav-link-dropdown:focus,
.dark .nav-link-special:focus,
.dark .action-button:focus,
.dark .auth-button-primary:focus,
.dark .mobile-nav-link:focus,
.dark .mobile-nav-link-special:focus {
    box-shadow: 0 0 0 2px #4ade80, 0 0 0 4px rgba(74, 222, 128, 0.2);
}

/* Support du mode haute contraste */
@media (prefers-contrast: high) {
    .nav-link,
    .nav-link-dropdown,
    .nav-link-special {
        border: 2px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link-dropdown:hover,
    .nav-link-special:hover {
        border-color: currentColor;
    }
    
    .action-button,
    .auth-button-primary {
        border: 2px solid currentColor;
    }
}

/* Support du mode mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .navbar-modern,
    .nav-link,
    .nav-link-dropdown,
    .nav-link-special,
    .action-button,
    .auth-button-primary,
    .mobile-nav-link,
    .mobile-nav-link-special {
        transition: none;
    }
    
    .hamburger span {
        transition: none;
    }
    
    .mobile-menu {
        transition: none;
    }
    
    .navbar-fade-in {
        animation: none;
    }
}

/* Styles d'impression */
@media print {
    .navbar-modern {
        display: none;
    }
    
    .h-16,
    .h-20 {
        height: 0;
    }
}

/* ================================= */
/* STYLES POUR LE DROPDOWN DE LANGUE */
/* ================================= */

/* Container du dropdown de langue */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 8rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.dark .language-dropdown {
    background-color: #1f2937;
    border-color: rgba(55, 65, 81, 0.8);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* État visible du dropdown */
.language-dropdown.show,
.group:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Container des options */
.language-dropdown .py-2 {
    padding: 0.5rem 0;
}

/* Options de langue individuelles */
.language-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    position: relative;
    overflow: hidden;
}

.dark .language-option {
    color: #d1d5db;
}

/* Effet hover sur les options */
.language-option:hover {
    background-color: #f3f4f6;
    color: #22c55e;
    transform: translateX(4px);
}

.dark .language-option:hover {
    background-color: #374151;
    color: #4ade80;
}

/* Effet de fond au hover */
.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: left 0.3s ease;
    z-index: -1;
}

.language-option:hover::before {
    left: 100%;
}

/* Icônes de drapeaux */
.language-option .flag-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    border-radius: 0.25rem;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.language-option:hover .flag-icon {
    transform: scale(1.1);
}

/* Animation d'entrée pour les options */
.language-option {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.3s ease forwards;
}

.language-option:nth-child(1) {
    animation-delay: 0.1s;
}

.language-option:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive pour le dropdown */
@media (max-width: 640px) {
    .language-dropdown {
        width: 7rem;
        right: -0.5rem;
    }
    
    .language-option {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .language-option .flag-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
}

/* Support du mode haute contraste */
@media (prefers-contrast: high) {
    .language-dropdown {
        border-width: 2px;
    }
    
    .language-option {
        border: 1px solid transparent;
    }
    
    .language-option:hover {
        border-color: currentColor;
    }
}

/* ================================= */
/* STYLES POUR LE BOUTON MOBILE */
/* ================================= */

/* Bouton du menu mobile - Caché sur grands écrans */
.mobile-menu-button {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 40;
}

/* Force le masquage sur grands écrans */
@media (min-width: 1024px) {
    .mobile-menu-button {
        display: none !important;
    }
}

/* Styles du bouton hamburger */
.mobile-menu-button .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.25rem;
    height: 1rem;
}

.mobile-menu-button .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation du hamburger au hover */
.mobile-menu-button:hover .hamburger span {
    background-color: #22c55e;
}

/* Animation du hamburger quand le menu est ouvert */
.mobile-menu-button.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Support du mode sombre */
.dark .mobile-menu-button {
    border-color: #4b5563;
    color: #9ca3af;
}

.dark .mobile-menu-button:hover .hamburger span {
    background-color: #4ade80;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .mobile-menu-button {
        display: flex !important;
    }
}

/* Support du mode haute contraste */
@media (prefers-contrast: high) {
    .mobile-menu-button {
        border-width: 2px;
    }
    
    .mobile-menu-button .hamburger span {
        height: 3px;
    }
}
