/* ==========================================================================
   Bannière "Nos expertises" (page racine + ses sous-menus ayant des enfants)
   ========================================================================== */

.heb-banner {
    position: relative;
    overflow: hidden;
    background-color: #f2f5fa;
    /* padding: 64px 0; */
    border-bottom: 2px solid #e2e8f2;
}

/* photo du côté droit : sa boîte ne couvre que la largeur réellement visible
   (à partir de la pointe haute de la diagonale, ~42%), pour que le recadrage
   "cover" utilise toute l'image plutôt que d'en cacher la moitié sous le bleu */
.heb-banner__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 42%;
    z-index: 0;
}

.heb-banner__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* forme diagonale bleue (côté gauche) + fine bordure verte qui suit la diagonale */
.heb-banner__diagonal {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.heb-banner__diagonal--green {
    z-index: 1;
    background: var(--hubera-secondary);
    /* clip-path: polygon(0 0, calc(42% + 6px) 0, calc(53% + 6px) 100%, 0 100%); */
    clip-path: polygon(0 0, calc(43% + 6px) 0, calc(56% + 6px) 100%, 0 100%);
}

.heb-banner__diagonal--blue {
    z-index: 2;
    background: linear-gradient(180deg, #1c91e9 0%, #318BE5 20%, #2771D9 40%, #1953C8 60%, #0B30B8 80%, #142bb3 90%, #2f09bb 100%);
    /* clip-path: polygon(0 0, 42% 0, 53% 100%, 0 100%); */
    clip-path: polygon(0 0, 43% 0, 56% 100%, 0 100%);
}

.heb-banner .container {
    position: relative;
    z-index: 3;
}

.heb-banner__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
    min-height: 520px;
}

.heb-banner__col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* animations d'entrée au premier chargement */

@keyframes heb-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heb-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.heb-banner__col--left {
    animation: heb-slide-in-left 0.8s ease-out both;
}

.heb-banner__photo {
    animation: heb-slide-in-right 0.8s ease-out 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
    .heb-banner__col--left,
    .heb-banner__photo {
        animation: none;
    }
}

/* ---------- colonne gauche ---------- */

.heb-banner__col--left {
    position: relative;
    z-index: 2;
    padding-right: 80px;
    width: 90%;
}

.heb-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--hubera-secondary);
    margin-bottom: 14px;
}

/* .heb-eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 3px;
    background: var(--hubera-secondary);
    flex-shrink: 0;
} */

.heb-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
}

.heb-tagline {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.6;
}

.heb-tagline p {
    margin: 0;
    text-align: justify;
}

/* ---------- colonne droite ---------- */

/* réservée vide dans la grille desktop : sert uniquement de repère de largeur pour
   la colonne gauche, la photo est posée en pleine largeur/hauteur (voir plus haut) */
.heb-banner__col--right {
    position: relative;
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
    /* comme sur l'accueil : la photo en fond pleine page, un dégradé bleu en
       superposition pour la lisibilité, et le texte posé par-dessus */
    .heb-banner {
        padding: 56px 24px;
        min-height: 460px;
        display: flex;
        align-items: center;
    }

    .heb-banner__diagonal {
        display: none;
    }

    .heb-banner__photo {
        position: absolute;
        inset: 0;
        height: auto;
    }

    /* toute la photo est visible (pas de coupe diagonale) : recadrage centré classique */
    .heb-banner__photo-img {
        object-position: center;
    }

    .heb-banner__photo::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(28, 145, 233, 0.80) 0%, rgba(39, 113, 217, 0.80) 30%, rgba(20, 43, 179, 0.83) 65%, rgba(26, 26, 90, 0.87) 100%);
    }

    .heb-banner__grid {
        display: block;
        min-height: 0;
        width: 100%;
    }

    .heb-banner__col--left {
        position: relative;
        z-index: 2;
        width: auto;
        padding: 0;
    }

    .heb-banner__col--right {
        display: none;
    }

    .heb-title {
        font-size: 32px;
    }
}

@media (max-width: 575px) {
    .heb-title {
        font-size: 26px;
    }
}

.image_background_circle_gray::after {
    top: -26px !important;
}