/* === HERO SECTION === */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 22px 0;
    /* hauteur adaptative au contenu */
    position: relative;
    /* sticky désactivé pour éviter les problèmes de scroll */
    z-index: 10;
    /* z-index réduit pour ne pas interférer avec le menu mobile */
    overflow: visible;
    /* visible pour permettre au contenu de s'afficher complètement */
    margin-bottom: 40px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    transition: padding 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .1) 35px, rgba(255, 255, 255, .1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 255, 255, .05) 35px, rgba(255, 255, 255, .05) 70px);
    pointer-events: none;
    /* permet de cliquer à travers le pattern */
}

.hero-banner .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: flex-start;
    min-height: 64px;
    /* hauteur minimale pour l'icône */
}

.hero-banner-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    align-self: flex-start;
    /* aligner l'icône en haut pour permettre au texte de s'étendre */
    margin-top: 0;
}

.hero-banner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.hero-banner-text {
    flex: 1;
    min-width: 0;
    /* permet au texte de se rétrécir si nécessaire */
}

.hero-banner-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Sous-nav dans la hero (pills élégants) */
.hero-subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.hero-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 160ms ease;
}

.hero-subnav a i {
    font-size: 14px;
}

.hero-subnav a:hover,
.hero-subnav a.active {
    color: #fff;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.25);
}

.hero-banner-title {
    margin: 0;
    color: white;
    font-size: 1.9rem;
    /* titre plus compact */
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-banner-subtitle {
    margin: 10px 0 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.98rem;
    /* sous-titre plus compact */
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
    /* espacement des lignes pour lisibilité */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-banner-breadcrumb {
    margin: 10px 0 0 0;
    padding: 0;
}

.hero-banner-breadcrumb .breadcrumbs {
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.hero-banner-breadcrumb nav {
    margin: 0;
    padding: 0;
}

.hero-banner-breadcrumb .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.hero-banner-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-banner-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-banner-breadcrumb .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.hero-banner-breadcrumb .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 2px;
}

.hero-banner-breadcrumb .breadcrumb-current {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* État compact (au scroll) */
.hero-banner.compact {
    padding: 12px 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, #5e6fe7 0%, #6f55a5 100%);
}

.hero-banner.compact .hero-banner-icon {
    width: 54px;
    height: 54px;
    font-size: 28px;
    border-radius: 14px;
}

.hero-banner.compact .hero-banner-logo {
    padding: 6px;
}

.hero-banner.compact .hero-banner-title {
    font-size: 1.5rem;
}

.hero-banner.compact .hero-banner-subtitle {
    display: none;
    /* masquer le sous-titre en mode compact */
}

.hero-banner.compact .hero-banner-breadcrumb {
    display: none;
    /* masquer le breadcrumb en mode compact */
}

/* Responsive - Mobile et Tablette */
@media (max-width: 1200px) {
    .hero-banner {
        padding: 12px 0;
        /* mobile et tablette très compact */
    }

    .hero-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        align-items: center;
        /* centrer tous les éléments sur mobile */
    }

    .hero-banner-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        max-width: 48px;
        max-height: 48px;
        overflow: hidden;
        align-self: center;
        /* centrer l'icône sur mobile */
        margin-top: 0;
    }

    .hero-banner-logo {
        padding: 6px;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        box-sizing: border-box;
    }

    .hero-banner-title {
        font-size: 1.4rem;
    }

    .hero-banner-subtitle {
        font-size: 0.9rem;
    }

    .hero-banner-breadcrumb {
        font-size: 0.85rem;
    }

    .hero-banner-breadcrumb .breadcrumb-list {
        gap: 3px;
    }

    .hero-banner-right {
        justify-content: center;
        width: 100%;
    }

    .hero-subnav {
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    .hero-subnav a {
        height: 28px;
        padding: 5px 8px;
        font-size: 0.8rem;
        border-radius: 14px;
    }

    .hero-subnav a i {
        font-size: 12px;
    }
}