/* ==========================================================================
   BENIN ESCAPES - Widget Hero Architectural (Design Lumineux Charte Verte)
   Inspiré de la maquette moderne BTP avec ingénieur africain gilet & casque verts
   ========================================================================== */

.be-hero-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
}

.elementor-widget-be_hero_architectural,
.elementor-widget-be_hero_architectural .elementor-widget-container {
    width: 100% !important;
}

.be-hero {
    --be-hero-accent: #1b5e20;
    --be-hero-accent-hover: #2e7d32;
    --be-hero-glow: rgba(46, 125, 50, 0.14);

    position: relative;
    width: 100%;
    min-height: 680px;
    background: linear-gradient(
        110deg,
        #ffffff 0%,
        #f8fcf8 42%,
        #edf7ef 78%,
        #ffffff 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 0 64px 0;
    overflow: hidden;
    color: #141b2b;
}

/* Halo lumineux radial vert sauge derrière l'ingénieur */
.be-hero__bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(circle at 74% 46%, var(--be-hero-glow) 0%, rgba(232, 245, 233, 0.25) 36%, transparent 66%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 76%, #ffffff 100%);
}

/* Motif décoratif gauche (4 demi-cercles empilés) */
.be-hero__left-pattern {
    position: absolute;
    left: 26px;
    top: 52px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
    pointer-events: none;
}

@media (min-width: 1200px) {
    .be-hero__left-pattern {
        display: flex;
    }
}

.be-hero__left-pattern span {
    display: block;
    width: 24px;
    height: 12px;
    border-radius: 24px 24px 0 0;
    background-color: var(--be-hero-accent);
    opacity: 0.22;
}

/* Conteneur principal (1280px cohérent avec le site) */
.be-hero__container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.be-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: center;
}

@media (min-width: 1024px) {
    .be-hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 32px;
    }
}

/* ==========================================================================
   Colonne Gauche : Titre, Description, CTA, Partenaires
   ========================================================================== */

.be-hero__col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-top: 8px;
}

.be-hero__title {
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: clamp(36px, 4.8vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #141b2b;
    margin: 0;
}

.be-hero__title-line,
.be-hero__title-accent {
    display: block;
}

.be-hero__title-accent {
    color: var(--be-hero-accent);
}

.be-hero__description {
    font-family: var(--be-font-body, 'Manrope', system-ui, sans-serif);
    font-size: clamp(15px, 1.15vw, 16.5px);
    font-weight: 500;
    line-height: 1.7;
    color: #555d50;
    max-width: 500px;
    margin: 0;
}

/* Boutons CTA pilules */
.be-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 6px;
}

.be-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 9999px;
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.be-hero__btn .material-symbols-outlined {
    font-size: 19px;
}

.be-hero__btn--primary {
    background-color: var(--be-hero-accent);
    color: #ffffff !important;
    border: 1.5px solid var(--be-hero-accent);
    box-shadow: 0 10px 24px rgba(27, 94, 32, 0.24);
}

.be-hero__btn--primary:hover {
    background-color: var(--be-hero-accent-hover);
    border-color: var(--be-hero-accent-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(27, 94, 32, 0.34);
}

.be-hero__btn--secondary {
    background-color: #ffffff;
    color: #141b2b !important;
    border: 1.5px solid rgba(27, 94, 32, 0.28);
    box-shadow: 0 4px 14px rgba(20, 27, 43, 0.04);
}

.be-hero__btn--secondary .material-symbols-outlined {
    color: var(--be-hero-accent);
}

.be-hero__btn--secondary:hover {
    background-color: #f0fdf4;
    border-color: var(--be-hero-accent);
    color: var(--be-hero-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.12);
}

/* Section Partenaires & Agréments (bas gauche) */
.be-hero__partners {
    margin-top: 22px;
    padding-top: 10px;
    width: 100%;
    max-width: 500px;
}

.be-hero__partners-heading {
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #141b2b;
    margin: 0 0 20px 0;
}

.be-hero__partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
}

.be-hero__partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    color: #8c9690;
    transition: transform 0.22s ease, color 0.22s ease;
}

.be-hero__partner-item:hover {
    transform: translateY(-2px);
    color: #424940;
}

.be-hero__partner-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.be-hero__partner-mark .material-symbols-outlined {
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
}

.be-hero__partner-mark img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
    transition: filter 0.25s ease;
}

.be-hero__partner-item:hover .be-hero__partner-mark img,
.be-hero__partner-item.is-highlighted .be-hero__partner-mark img {
    filter: none;
}

.be-hero__partner-name {
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.be-hero__partner-item.is-highlighted {
    color: var(--be-hero-accent);
}

.be-hero__partner-item.is-highlighted:hover {
    color: var(--be-hero-accent-hover);
}

/* ==========================================================================
   Colonne Droite : Cercles Concentriques + Portrait Ingénieur + Badge KPI
   ========================================================================== */

.be-hero__col-right {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.be-hero__visual-stage {
    position: relative;
    width: 100%;
    max-width: 540px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 12px;
}

/* Cercles concentriques fins en arrière-plan */
.be-hero__rings {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: 460px;
    pointer-events: none;
    z-index: 1;
}

.be-hero__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(27, 94, 32, 0.14);
}

.be-hero__ring--1 {
    width: 270px;
    height: 270px;
    border-color: rgba(27, 94, 32, 0.16);
}

.be-hero__ring--2 {
    width: 365px;
    height: 365px;
    border-color: rgba(27, 94, 32, 0.11);
}

.be-hero__ring--3 {
    width: 460px;
    height: 460px;
    border-color: rgba(27, 94, 32, 0.07);
}

/* Portrait de l'ingénieur avec fondu doux vers le bas */
.be-hero__engineer-frame {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
}

.be-hero__engineer-img {
    width: auto;
    max-width: 100%;
    max-height: 590px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 34px rgba(20, 27, 43, 0.10));
    /* Fondu progressif élégant en bas du buste comme sur la maquette */
    -webkit-mask-image: linear-gradient(to bottom, #000000 0%, #000000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000000 0%, #000000 80%, transparent 100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.be-hero__visual-stage:hover .be-hero__engineer-img {
    transform: translateY(-3px);
}

/* Badge KPI Pilule Flottant (à droite de l'ingénieur) */
.be-hero__kpi-pill {
    position: absolute;
    right: 0;
    bottom: 24%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background-color: #ffffff;
    padding: 13px 22px 13px 14px;
    border-radius: 9999px;
    box-shadow: 0 18px 42px rgba(20, 27, 43, 0.11), 0 2px 8px rgba(27, 94, 32, 0.06);
    border: 1px solid rgba(27, 94, 32, 0.08);
    animation: be-kpi-float 4.5s ease-in-out infinite;
}

@keyframes be-kpi-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.be-hero__kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--be-hero-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(27, 94, 32, 0.28);
}

.be-hero__kpi-icon .material-symbols-outlined {
    font-size: 23px;
}

.be-hero__kpi-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.be-hero__kpi-number {
    font-family: var(--be-font-headline, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #141b2b;
    letter-spacing: -0.02em;
}

.be-hero__kpi-label {
    font-family: var(--be-font-body, 'Manrope', system-ui, sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7268;
    margin-top: 2px;
    white-space: nowrap;
}

/* ==========================================================================
   Biseau / Ruban Diagonal en bas de Hero (identique à la maquette)
   ========================================================================== */

.be-hero__bottom-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    z-index: 12;
    pointer-events: none;
    line-height: 0;
}

.be-hero__bottom-strip svg {
    width: 100%;
    height: 100%;
    display: block;
}

.be-hero__diagonal-accent {
    fill: var(--be-hero-accent);
}

/* ==========================================================================
   Responsive Mobile & Tablette
   ========================================================================== */

@media (max-width: 1023px) {
    .be-hero {
        min-height: auto;
        padding: 44px 0 60px 0;
    }

    .be-hero__col-left {
        align-items: center;
        text-align: center;
    }

    .be-hero__description {
        max-width: 560px;
    }

    .be-hero__actions {
        justify-content: center;
    }

    .be-hero__partners {
        max-width: 480px;
        margin-top: 14px;
    }

    .be-hero__visual-stage {
        max-width: 420px;
    }

    .be-hero__rings {
        width: 340px;
        height: 340px;
    }

    .be-hero__ring--1 { width: 200px; height: 200px; }
    .be-hero__ring--2 { width: 270px; height: 270px; }
    .be-hero__ring--3 { width: 340px; height: 340px; }

    .be-hero__engineer-img {
        max-height: 440px;
    }

    .be-hero__kpi-pill {
        right: 6px;
        bottom: 14%;
        padding: 10px 16px 10px 10px;
    }

    .be-hero__kpi-icon {
        width: 40px;
        height: 40px;
    }

    .be-hero__kpi-number {
        font-size: 17px;
    }

    .be-hero__kpi-label {
        font-size: 11.5px;
    }

    .be-hero__bottom-strip {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .be-hero__partners-grid {
        gap: 10px;
    }

    .be-hero__partner-mark .material-symbols-outlined {
        font-size: 32px;
    }

    .be-hero__partner-name {
        font-size: 10px;
    }

    .be-hero__kpi-pill {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -28px;
    }

    .be-hero__visual-stage {
        flex-direction: column;
        align-items: center;
    }
}
