/* Variables CSS pour une meilleure maintenance */
:root {
    --primary-color: #dcabc1;
    --primary-hover: #e9c5d5;
    --secondary-color: #4C989C;
    --secondary-hover: #5fb0b4;
    --text-color: #333;
    --text-light: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset des styles de liste */
.navbar, .nav-list, .dropdown-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Barre de navigation principale */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    box-shadow: var(--shadow);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    position: relative;
}

/* Liste de navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    white-space: nowrap;
    font-family: "Segoe print", Arial, Helvetica, sans-serif;
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Flèches des menus déroulants */
.dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menus déroulants */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    box-shadow: var(--shadow-hover);
    min-width: 220px;
    border-radius: var(--border-radius);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.dropdown-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 1rem 1.25rem;
    color: var(--text-color);
    background: white;
    border-radius: 0;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: none;
    box-shadow: none;
}

/* Menu téléphone */
.phone-menu a {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    color:#000000
}

.phone-menu a:hover {
    background: rgba(255, 255, 255, 0.164);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.phone-menu img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    filter: none;
}

.phone-menu a:hover img {
    filter: none;
}

/* Menu hamburger moderne */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
    position: absolute;
    right: 2rem;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Animation du menu hamburger */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 90vw); /* Limite la largeur pour éviter les débordements */
        max-width: 300px;
        height: 100vh;
        height: 100dvh; /* Utilise dvh pour éviter les problèmes sur mobile */
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 0 2rem 0;
        transition: transform 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        box-sizing: border-box;
        transform: translateX(100%); /* Masqué par défaut */
    }
    
    .nav-list.active {
        transform: translateX(0);
    }
    
    .nav-list > li {
        width: 100%;
        margin: 0;
    }
    
    .nav-list a {
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 0;
        justify-content: space-between;
    }
    
    .nav-list a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
        box-shadow: none;
    }
    
    /* Menus déroulants en mobile */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-menu[aria-hidden="false"] {
        max-height: 400px;
    }
    
    .dropdown-menu a {
        background: transparent;
        color: var(--text-light);
        padding: 0.75rem 3rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .phone-menu {
        margin-top: 1rem;
        padding: 0 2rem;
    }
    
    .phone-menu a {
        justify-content: center;
        border-radius: 25px;
        font-weight: 600;

    }
    
    .phone-menu img {
        filter: none;
    }
}

@media (max-width: 480px) {
    .nav-list {
        width: min(280px, 85vw); /* Adaptation pour très petits écrans */
        max-width: 280px;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo a {
        font-size: 1.3rem;
    }
}

/* Animation d'entrée */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.nav-list.active {
    animation: slideInRight 0.3s ease-out;
}

/* Overlay pour fermer le menu en cliquant à l'extérieur */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}