/* ====================================================================
   Modern Navbar Brand Design
   Remplace les effets ::before et ::after par un design moderne
   ==================================================================== */

/* ==================== Suppression des anciens effets ==================== */

@media (min-width: 992px) {
    /* Supprimer les barres inclinées en arrière-plan */
    .navbar-brand::before,
    .navbar-brand::after {
        display: none !important;
    }

    .header-top .navbar-brand {
        padding: 20px 30px !important;
        overflow: visible !important;
    }
}

/* ==================== Nouveau Design Moderne ==================== */

/* Logo avec badge moderne */
.navbar-brand {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bordure subtile au repos */
.navbar-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

/* Effet au hover - Bordure gradient orange */
.navbar-brand:hover::before {
    border-color: rgb(214, 64, 0);
    background: linear-gradient(
        135deg,
        rgba(214, 64, 0, 0.05) 0%,
        rgba(255, 87, 34, 0.02) 100%
    );
    box-shadow: 0 4px 12px rgba(214, 64, 0, 0.15);
}

/* Badge "NEW" ou "CERTIFIÉ" optionnel */
.navbar-brand::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(214, 64, 0, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(214, 64, 0, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(214, 64, 0, 0.6);
    }
}

/* Supprime le badge au hover pour plus de propreté */
.navbar-brand:hover::after {
    opacity: 0.8;
}

/* ==================== Alternative 1: Underline moderne ==================== */

/* Si vous préférez un underline au lieu d'un badge, décommentez ceci et commentez le badge ci-dessus */
/*
.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.navbar-brand:hover::after {
    width: 80%;
}
*/

/* ==================== Alternative 2: Glow effect ==================== */

/* Si vous préférez un effet glow, décommentez ceci */
/*
.navbar-brand::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgb(214, 64, 0), rgb(255, 87, 34));
    border-radius: 0.875rem;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
    z-index: -2;
}

.navbar-brand:hover::after {
    opacity: 0.4;
}
*/

/* ==================== Icône et texte ==================== */

.navbar-brand i {
    font-size: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover i {
    color: rgb(214, 64, 0) !important;
    transform: scale(1.1);
}

.navbar-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover h2 {
    background: linear-gradient(135deg, rgb(214, 64, 0) 0%, rgb(255, 87, 34) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Badge de confiance additionnel ==================== */

/* Ajout d'un petit texte "Certifié" sous le logo (optionnel) */
.navbar-brand-wrapper {
    position: relative;
}

.navbar-brand-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(214, 64, 0);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover + .navbar-brand-badge {
    opacity: 1;
}

/* ==================== Version épurée (minimaliste) ==================== */

/* Si vous voulez AUCUN effet ::after, décommentez ceci */
/*
.navbar-brand::after {
    display: none !important;
}

.navbar-brand {
    border-bottom: 2px solid transparent;
}

.navbar-brand:hover {
    border-bottom-color: rgb(214, 64, 0);
}
*/

/* ==================== Responsive ==================== */

@media (max-width: 991px) {
    .navbar-brand::after {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }

    .navbar-brand {
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 575px) {
    .navbar-brand h2 {
        font-size: 1.25rem;
    }

    .navbar-brand i {
        font-size: 1.5rem;
    }

    /* Masquer le badge sur très petit écran pour gagner de la place */
    .navbar-brand::after {
        display: none;
    }
}

/* ==================== Accessibilité ==================== */

.navbar-brand:focus {
    outline: 2px solid rgb(214, 64, 0);
    outline-offset: 4px;
}

/* ==================== Variante: Logo avec séparateur ==================== */

/* Ajoute une ligne verticale élégante à côté du logo */
.navbar-brand {
    border-right: 2px solid rgba(0, 0, 0, 0.06);
    margin-right: 1rem;
}

@media (max-width: 991px) {
    .navbar-brand {
        border-right: none;
        margin-right: 0;
    }
}

/* ==================== Animation d'entrée ==================== */

@keyframes slideInLogo {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.navbar-brand {
    animation: slideInLogo 0.6s ease-out;
}

/* ==================== Effet premium: Gradient border ==================== */

/* Alternative moderne avec bordure gradient */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .navbar-brand::before {
        background: linear-gradient(
            135deg,
            rgba(214, 64, 0, 0.1) 0%,
            rgba(255, 87, 34, 0.1) 100%
        );
    }
}

/* ==================== Dark mode ready ==================== */

@media (prefers-color-scheme: dark) {
    .navbar-brand::before {
        border-color: rgba(214, 64, 0, 0.3);
    }

    .navbar-brand:hover::before {
        background: linear-gradient(
            135deg,
            rgba(214, 64, 0, 0.15) 0%,
            rgba(255, 87, 34, 0.1) 100%
        );
    }
}
