/* ================================================================
   NAVIGATION MODERNE - BOOTSTRAP 5 NAVBAR + OFFCANVAS
   ================================================================ */

/* === NAVBAR PRINCIPAL === */
.navbar {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Animation respirante pour attirer l'attention sur le menu */
.navbar-toggler {
    font-size: 1.2rem;
    position: relative;
}

.navbar-toggler::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    animation: breathe 2s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.navbar-toggler:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important;
}

.navbar-toggler:hover::before {
    animation-play-state: paused;
}

/* Barres hamburger blanches */
.navbar-toggler i[data-lucide="menu"] {
    color: white !important;
    stroke: white !important;
}

/* Taille plus grande sur les grands écrans */
@media (min-width: 992px) {
    .navbar-toggler {
        font-size: 1.4rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 1200px) {
    .navbar-toggler {
        font-size: 1.5rem;
        padding: 0.6rem 0.9rem;
    }
}

@keyframes breathe {
    0%, 100% { 
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15);
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Menu desktop supprimé - utilise maintenant uniquement l'offcanvas pour toutes les résolutions */

/* === OFFCANVAS MENU === */
.offcanvas {
    width: 300px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* === LIST GROUP MENU === */
.offcanvas .list-group-item {
    background: transparent !important;
    color: var(--primary-rose-700) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    transition: var(--transition-base);
    font-weight: 500;
    border: none !important;
}

.offcanvas .list-group-item:hover {
    background: var(--primary-rose-50) !important;
    color: var(--primary-rose-800) !important;
    transform: translateX(4px);
}

.offcanvas .list-group-item.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-color: transparent !important;
}

/* === BOUTONS COLLAPSE === */
.offcanvas .btn-link {
    color: var(--primary-rose-700) !important;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.offcanvas .btn-link:hover {
    background: var(--primary-rose-50) !important;
    color: var(--primary-rose-800) !important;
}

.offcanvas .btn-link:focus {
    background: var(--primary-rose-50) !important;
    color: var(--primary-rose-800) !important;
    box-shadow: none !important;
}

.offcanvas .btn-link[aria-expanded="true"] {
    background: var(--primary-rose-100) !important;
    color: var(--primary-rose-900) !important;
}

/* === SOUS-MENUS === */
.offcanvas .collapse .list-group-item {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-left: 2px solid var(--primary-rose-200) !important;
    background: transparent !important;
    color: var(--primary-rose-600) !important;
}

.offcanvas .collapse .list-group-item:hover {
    border-left-color: var(--primary-rose-400) !important;
    background: var(--primary-rose-50) !important;
    color: var(--primary-rose-800) !important;
}

.offcanvas .collapse .list-group-item.active {
    border-left-color: var(--primary-rose-600) !important;
    background: var(--gradient-primary) !important;
    color: white !important;
}

/* === BADGES === */
.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* === ICONES === */
[data-lucide] {
    width: 1rem;
    height: 1rem;
    opacity: 0.8;
    transition: var(--transition-base);
}

.list-group-item:hover [data-lucide],
.nav-link:hover [data-lucide],
.dropdown-item:hover [data-lucide] {
    opacity: 1;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offcanvas-body {
    animation: fadeInUp 0.3s ease-out;
}

/* === RESPONSIVE SPECIFIQUE === */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .offcanvas {
        width: 280px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .offcanvas {
        width: 100vw !important;
    }
}

/* === BOUTON RETOUR EN HAUT === */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back-to-top:hover {
    background: var(--gradient-secondary);
    transform: translateY(0px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

.btn-back-to-top [data-lucide] {
    width: 20px;
    height: 20px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .btn-back-to-top [data-lucide] {
        width: 18px;
        height: 18px;
    }
}

/* === BANDEAU COOKIES RGPD === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    z-index: 1001;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-rose-400);
    animation: slideInUp 0.3s ease-out;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner .btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.cookie-banner .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.cookie-banner .btn-primary:hover {
    background: var(--gradient-secondary);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive pour mobile */
@media (max-width: 991.98px) {
    .cookie-banner .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-banner .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* === FOCUS ET ACCESSIBILITÉ === */
.nav-link:focus,
.list-group-item:focus,
.btn-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.offcanvas .list-group-item:focus {
    outline: 2px solid var(--primary-rose-400);
    outline-offset: 2px;
}

.btn-back-to-top:focus {
    outline: 2px solid var(--primary-rose-400);
    outline-offset: 2px;
}