/* --- NAV : logo + liens --- */

/* Logo dans la navbar */


/* Animation halo autour du logo */
/* Wrapper du logo pour l'animation */
.navbar {
    border-bottom: 3px solid var(--color-accent-gold, #dac27a) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}




.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Halo animé avec effet étoilé */
.logo-wrapper::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 243, 214, 0.8) 0%,
        rgba(255, 243, 214, 0.4) 30%,
        rgba(255, 243, 214, 0) 70%
    );
    /* Rayons étoilés avec box-shadow */
    box-shadow: 
        0 0 20px 4px rgba(255, 243, 214, 0.6),
        0 0 40px 8px rgba(255, 243, 214, 0.3),
        0 0 60px 12px rgba(255, 243, 214, 0.1);
    animation: haloPulse 3.5s ease-in-out infinite;
    filter: blur(6px);
    z-index: -1;
}

/* Logo dans la navbar */
.logo-nav {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
}

@keyframes haloPulse {
    0%   { opacity: 0; transform: scale(0.85); }
    50%  { opacity: 0.9; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(0.85); }
}



/* Liens du menu : soulignement + ligne verte animée */
.custom-nav-link {
    position: relative;
    margin: 0 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--color-text-navbar, #ffffff) !important;
}

.custom-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 3px;
    width: 0;
    background-color: var(--color-accent-gold, #dac27a) !important;
    transition: width 0.25s ease-out;
}

.custom-nav-link:hover::after,
.custom-nav-link:focus::after {
    width: 100%;
}

/* Bouton burger */
.custom-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.custom-toggler:focus {
    box-shadow: none;
}

.custom-toggler .toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-navbar, #ffffff) !important;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation burger -> croix quand le menu est ouvert
   (Bootstrap met aria-expanded="true" automatiquement) */
.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
