/* --- HEADER & NAVIGATION --- */

/* 1. Navbar Glass (Base) */
.navbar-glass {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.95); /* Blanc quasi opaque par défaut */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 1030;
}

/* 2. Logo & Marque */
.brand-text {
    font-family: var(--font-heading, sans-serif);
    letter-spacing: -0.5px;
    color: #0f172a;
}
.brand-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    color: #2563eb;
    font-size: 1.2rem;
}

/* 3. Centrage Absolu du Menu (Desktop) */
@media (min-width: 992px) {
    #navbarContent {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        justify-content: center;
    }
    .navbar-glass .container {
        position: relative;
    }
    /* Marge droite logo pour éviter chevauchement */
    .navbar-brand { margin-right: 0; }
}

/* 4. Liens du Menu */
.navbar-nav .nav-link {
    font-size: 0.95rem;
    color: #334155;
    padding: 8px 16px !important;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.show {
    color: #2563eb;
}

/* 5. Dropdown Menu (Style Riche) */
.dropdown-menu {
    border: none;
    margin-top: 15px !important;
    min-width: 280px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15);
    background: #fff;
    padding: 12px;
}

/* Animation Slide Up */
.animate-slide-up {
    animation: slideUp 0.3s ease forwards;
    transform-origin: top center;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Items Dropdown (Lien + Icône + Texte) */
.dropdown-item {
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: transparent;
    white-space: normal; /* Permet le texte sur plusieurs lignes */
}
.dropdown-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}
.dropdown-item:active {
    background-color: #f1f5f9;
    color: inherit;
}

/* Icônes carrées colorées (icon-square) */
.icon-square {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.x-small {
    font-size: 0.75rem;
    line-height: 1.3;
    display: block;
    margin-top: 2px;
}

/* Couleurs spécifiques (si absentes de Bootstrap) */
.bg-purple { background-color: #5956e9 !important; }
.text-purple { color: #5956e9 !important; }
.bg-purple.bg-opacity-10 { background-color: rgba(89, 86, 233, 0.1) !important; }

/* 6. Bouton Burger (Mobile) */
.hamburger-icon span {
    display: block; width: 24px; height: 2px;
    background: #334155; margin: 5px 0;
    transition: 0.3s;
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 7. Bouton CTA Header */
.btn-dark-custom {
    background: #0f172a;
    color: white;
    border: 1px solid #0f172a;
    transition: all 0.3s;
}
.btn-dark-custom:hover {
    background: transparent;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}




/* Effet Hover Couleur Primaire */
.hover-primary:hover {
    color: #2563eb !important; /* Ton bleu */
}
.hover-primary:hover i {
    transform: rotate(15deg); /* Petite animation du téléphone */
    transition: transform 0.3s ease;
}

/* Bouton Dégradé (Option 1) */
.btn-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #5956e9 100%);
    border: none;
    color: white;
}
.btn-gradient:hover {
    background: linear-gradient(135deg, #1e40af 0%, #4c1d95 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3) !important;
}

/* Pastille verte qui pulse (Option 2) */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #3ddc89;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(61, 220, 137, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 137, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(61, 220, 137, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 137, 0); }
}

/* Fond gris très léger (Option 3) */
.bg-gray-100 {
    background-color: #f3f4f6;
}

