/* =========================================================
   CONTENT HERO — BNI CÔTE D'IVOIRE
========================================================= */

.content-hero {

    /* =====================================================
       COULEURS BNI
    ===================================================== */

    --hero-primary: #00843D;
    --hero-primary-dark: #006B32;

    --hero-accent: #F5A623;
    --hero-accent-dark: #E68A00;

    --hero-orange: #F58220;

    --hero-text: #17352A;
    --hero-muted: #66756F;

    --hero-bg: #FFFFFF;
    --hero-card: #FFFFFF;

    --hero-light-green: #F1F8F4;
    --hero-light-orange: #FFF7EC;

    --hero-border: #E2ECE6;

    --hero-radius: 30px;


    /* =====================================================
       STRUCTURE
    ===================================================== */

    position: relative;

    overflow: hidden;

    padding: 10px 0;

    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(0, 132, 61, .08),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(245, 166, 35, .055),
            transparent 25%
        ),
        var(--hero-bg);
        margin: 70px 0px;
}


/* =========================================================
   BACKGROUND DECORATION
========================================================= */

.content-hero::before {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -270px;
    top: -270px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 132, 61, .055),
            rgba(0, 132, 61, 0)
        );

    pointer-events: none;
}


.content-hero::after {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    left: -220px;
    bottom: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245, 166, 35, .065),
            rgba(245, 166, 35, 0)
        );

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.content-hero__container {

    position: relative;

    z-index: 2;

    width: min(
        1240px,
        calc(100% - 48px)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 90px;

    align-items: center;
}


/* =========================================================
   IMAGE POSITION
========================================================= */

.content-hero--image-left
.content-hero__visual {

    order: 1;
}


.content-hero--image-left
.content-hero__content {

    order: 2;
}


.content-hero--image-right
.content-hero__visual {

    order: 2;
}


.content-hero--image-right
.content-hero__content {

    order: 1;
}


/* =========================================================
   VISUAL
========================================================= */

.content-hero__visual {

    position: relative;

    min-width: 0;
}


/* =========================================================
   IMAGE WRAPPER
========================================================= */

.content-hero__image-wrapper {

    position: relative;

    border-radius: var(--hero-radius);

    overflow: visible;

    isolation: isolate;

    transform: translateZ(0);
}


/* =========================================================
   IMAGE GLOW
========================================================= */

.content-hero__image-glow {

    position: absolute;

    inset:
        25px
        -25px
        -25px
        25px;

    border-radius: var(--hero-radius);

    background:
        linear-gradient(
            135deg,
            rgba(0, 132, 61, .22),
            rgba(245, 166, 35, .16)
        );

    filter: blur(30px);

    z-index: -1;
}


/* =========================================================
   IMAGE
========================================================= */

.content-hero__image {
    display: block;
    width: 70%;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .9);

    margin: auto;

}


.content-hero__image-wrapper:hover
.content-hero__image {
    transform: scale(1.015);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.content-hero__image-overlay {

    position: absolute;

    inset: 0;

    border-radius: var(--hero-radius);



    pointer-events: none;
}


/* =========================================================
   NUMBER
========================================================= */

.content-hero__number {

    position: absolute;

    top: 24px;
    left: 24px;

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #00843D,
            #006B32
        );

    border: 1px solid rgba(255, 255, 255, .25);

    backdrop-filter: blur(10px);

    font-size: 14px;

    font-weight: 700;


}


/* =========================================================
   BADGE
========================================================= */

.content-hero__badge {

    position: absolute;

    right: -28px;
    bottom: 30px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        13px
        18px
        13px
        13px;

    background: rgba(255, 255, 255, .97);

    border:
        1px solid
        rgba(0, 132, 61, .10);

    border-radius: 18px;


    color: var(--hero-text);

    font-size: 13px;

    font-weight: 700;

    backdrop-filter: blur(15px);

    z-index: 5;
}


/* =========================================================
   BADGE ICON
========================================================= */

.content-hero__badge-icon {

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #00843D,
            #006B32
        );


}


/* =========================================================
   CONTENT
========================================================= */

.content-hero__content {

    max-width: 590px;
}


/* =========================================================
   EYEBROW
========================================================= */

.content-hero__eyebrow {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    color: var(--hero-primary);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}


/* =========================================================
   EYEBROW LINE
========================================================= */

.content-hero__eyebrow-line {

    width: 38px;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--hero-primary),
            var(--hero-accent)
        );

    border-radius: 20px;
}


/* =========================================================
   TITLE
========================================================= */

.content-hero__title {

    margin: 0;

    color: var(--hero-text);

    font-size:
        clamp(
            26px,
            4vw,
            28px
        );

    line-height: 1.08;

    letter-spacing: -.045em;

    font-weight: 750;
}


/* =========================================================
   TITLE ACCENT
========================================================= */

.content-hero__title strong {

    color: var(--hero-primary);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.content-hero__description {

    margin-top: 25px;

    color: var(--hero-muted);

    font-size: 16px;

    line-height: 1.8;

    max-width: 570px;
}


/* =========================================================
   LIST
========================================================= */

.content-hero__list {

    display: flex;

    flex-direction: column;

    gap: 15px;

    margin: 30px 0 0;

    padding: 0;

    list-style: none;
}


/* =========================================================
   LIST ITEM
========================================================= */

.content-hero__list-item {

    display: flex;

    align-items: flex-start;

    gap: 13px;

    color: #40584E;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   CHECK
========================================================= */

.content-hero__check {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    flex-shrink: 0;

    margin-top: 1px;

    border-radius: 50%;

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #00843D,
            #006B32
        );

    font-size: 10px;

}


/* =========================================================
   ACTIONS
========================================================= */

.content-hero__actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 13px;

    margin-top: 36px;
}


/* =========================================================
   BUTTON
========================================================= */

.content-hero__button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    min-height: 52px;

    padding: 0 20px;

    border-radius: 14px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.content-hero__button--primary {

    color: #FFFFFF;

    background:
        linear-gradient(
            135deg,
            #00843D,
            #006B32
        );


}


.content-hero__button--primary:hover {

    color: #FFFFFF;

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #009947,
            #007437
        );

}


/* =========================================================
   BUTTON ICON
========================================================= */

.content-hero__button-icon {

    width: 29px;
    height: 29px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .15);

    transition:
        transform .25s ease;
}


.content-hero__button:hover
.content-hero__button-icon {

    transform: translateX(3px);
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.content-hero__button--secondary {

    color: var(--hero-primary);

    background: #FFFFFF;

    border:
        1px solid
        rgba(0, 132, 61, .20);
}


.content-hero__button--secondary:hover {

    color: var(--hero-primary);

    background:
        var(--hero-light-green);

    border-color:
        rgba(0, 132, 61, .30);

    transform: translateY(-2px);
}


/* =========================================================
   EXTRA
========================================================= */

.content-hero__extra {

    margin-top: 30px;
}


/* =========================================================
   ALIGNMENT
========================================================= */

.content-hero--align-center
.content-hero__content {

    text-align: center;
}


.content-hero--align-center
.content-hero__description {

    margin-left: auto;

    margin-right: auto;
}


.content-hero--align-center
.content-hero__eyebrow,

.content-hero--align-center
.content-hero__actions {

    justify-content: center;
}


/* =========================================================
   DARK THEME
========================================================= */

.content-hero--dark {

    --hero-bg: #006B32;

    --hero-text: #FFFFFF;

    --hero-muted: #D9EEE2;

    --hero-card: #00843D;

    --hero-light-green: rgba(255, 255, 255, .08);
}


.content-hero--dark .content-hero__list-item {

    color: #E4F2E9;
}


.content-hero--dark .content-hero__eyebrow {

    color: #F5B942;
}


.content-hero--dark .content-hero__eyebrow-line {

    background:
        linear-gradient(
            90deg,
            #F5B942,
            #F58220
        );
}


.content-hero--dark
.content-hero__button--secondary {

    color: #FFFFFF;

    border-color:
        rgba(255, 255, 255, .25);

    background:
        rgba(255, 255, 255, .05);
}


.content-hero--dark
.content-hero__button--secondary:hover {

    color: #FFFFFF;

    background:
        rgba(255, 255, 255, .12);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {
    .content-hero__image {
        width: 100%;
        aspect-ratio: 1.35 / 1;
    }

    .content-hero {

        padding: 85px 0;
    }


    .content-hero__container {

        gap: 55px;
    }


    .content-hero__title {

        font-size:
            clamp(
                34px,
                4vw,
                48px
            );
    }


    .content-hero__badge {

        right: -15px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 800px) {

    .content-hero {

        padding: 70px 0;
    }


    .content-hero__container {

        grid-template-columns: 1fr;

        gap: 45px;

        width:
            min(
                calc(100% - 36px),
                650px
            );
    }


    /* Image toujours en premier */

    .content-hero--image-left
    .content-hero__visual,

    .content-hero--image-right
    .content-hero__visual {

        order: 1;
    }


    .content-hero--image-left
    .content-hero__content,

    .content-hero--image-right
    .content-hero__content {

        order: 2;
    }


    .content-hero__content {

        max-width: none;
    }


    .content-hero__image {
        aspect-ratio: 1.35 / 1;
    }


    .content-hero__badge {

        right: 15px;

        bottom: 15px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .content-hero {

        padding: 55px 0;
    }


    .content-hero__container {

        width:
            min(
                calc(100% - 28px),
                650px
            );
    }


    .content-hero__title {

        font-size: 34px;

        letter-spacing: -.035em;
    }


    .content-hero__description {

        font-size: 15px;

        line-height: 1.7;
    }


    .content-hero__list {

        gap: 13px;
    }


    .content-hero__list-item {

        font-size: 13px;
    }


    .content-hero__actions {

        align-items: stretch;

        flex-direction: column;
    }


    .content-hero__button {

        width: 100%;
    }


    .content-hero__badge {

        padding:
            10px
            13px
            10px
            10px;

        font-size: 11px;
    }


    .content-hero__badge-icon {

        width: 32px;
        height: 32px;
    }


    .content-hero__number {

        width: 45px;
        height: 45px;

        top: 15px;
        left: 15px;
    }
}


/* =========================================================
   ACCESSIBILITÉ — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .content-hero__image,
    .content-hero__button,
    .content-hero__button-icon {

        transition: none;
    }
}
