/* =========================================================
   NOS FONDS VEDETTES
   BNI CÔTE D'IVOIRE
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --fonds-green: #21834c;
    --fonds-green-dark: #176b3c;
    --fonds-green-light: #eaf6ef;

    --fonds-orange: #f58220;
    --fonds-orange-dark: #d96c0b;
    --fonds-orange-light: #fff3e8;

    --fonds-black: #151515;
    --fonds-text: #333333;
    --fonds-muted: #777777;

    --fonds-border: #e2e2e2;
    --fonds-background: #ffffff;
    --fonds-soft: #f7f9f8;

    --fonds-radius: 6px;

    --fonds-transition: 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

.fonds-section,
.fonds-section *,
.fonds-section *::before,
.fonds-section *::after {
    box-sizing: border-box;
}


/* =========================================================
   SECTION
   ========================================================= */

.fonds-section {
    width: 100%;

    padding: 70px 50px 85px;

    background: var(--fonds-background);
}


.fonds-container {
    width: 100%;

    max-width: 1480px;

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.fonds-header {
    max-width: 850px;

    margin: 0 auto 50px;

    text-align: center;
}


.fonds-subtitle {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    color: var(--fonds-green);

    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


.fonds-header h1 {
    margin: 0;

    color: var(--fonds-black);

    font-size: 42px;
    line-height: 1.14;
    font-weight: 700;

    letter-spacing: -0.7px;
}


.fonds-header h1 span {
    display: block;

    color: var(--fonds-green);
}


.fonds-intro {
    max-width: 680px;

    margin: 20px auto 0;

    color: var(--fonds-muted);

    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
}


/* =========================================================
   GRID
   ========================================================= */

.fonds-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.fonds-card {
    position: relative;
    cursor: pointer;
    min-width: 0;

    min-height: 315px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--fonds-border);

    border-radius: var(--fonds-radius);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.025);

    transition:
        transform var(--fonds-transition),
        box-shadow var(--fonds-transition),
        border-color var(--fonds-transition);
}


.fonds-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(33, 131, 76, 0.45);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.09);
}


/* =========================================================
   IMAGE
   ========================================================= */

.fonds-image {
    position: relative;

    width: calc(100% - 28px);

    height: 215px;

    margin: 14px 14px 0;

    overflow: hidden;

    border-radius: 5px;

    background: #f1f3f2;

    flex-shrink: 0;
}


.fonds-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.fonds-card:hover .fonds-image img {
    transform: scale(1.045);
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.fonds-image-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.03) 45%,
            rgba(0, 0, 0, 0.18) 70%,
            rgba(0, 0, 0, 0.60) 100%);

    pointer-events: none;
}


/* =========================================================
   BOUTON SUR L'IMAGE
   ========================================================= */

.fonds-card-footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 45px;
    padding: 0;
    margin: 0;
}


/* =========================================================
   LIEN "EN SAVOIR PLUS"
   ========================================================= */

.fonds-link {


    padding: 10px 15px;
    color: #ffffff;
    background: var(--fonds-green);
    border: 1px solid var(--fonds-green);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    transition:
        background-color var(--fonds-transition),
        border-color var(--fonds-transition),
        transform var(--fonds-transition),
        box-shadow var(--fonds-transition);

}


.fonds-link:hover {
    color: #ffffff;

    background: var(--fonds-green-dark);

    border-color: var(--fonds-green-dark);
    opacity: 1;
    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(0, 0, 0, 0.26);
}


.fonds-link:focus-visible {
    outline: 3px solid rgba(33, 131, 76, 0.35);

    outline-offset: 3px;
}


/* =========================================================
   ICÔNE DU LIEN
   ========================================================= */

.fonds-link-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    flex-shrink: 0;
}


.fonds-link svg {
    display: block;

    width: 18px;
    height: 18px;

    transition:
        transform var(--fonds-transition);
}


.fonds-link:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   CONTENU
   ========================================================= */

.fonds-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 25px 25px 27px;

    text-align: center;
}


/* =========================================================
   LABEL
   ========================================================= */

.fonds-card-label {
    display: none;
    position: relative;
    margin-bottom: 12px;

    color: var(--fonds-green);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* =========================================================
   TITRE
   ========================================================= */

.fonds-content h2 {
    width: 100%;

    margin: 0 0 8px;

    color: var(--fonds-black);

    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: -0.2px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.fonds-description {
    max-width: 320px;

    margin: 0;
    padding: 0;

    color: var(--fonds-muted);

    font-size: 15px;

    line-height: 1.58;

    font-weight: 400;
}


.fonds-description-empty {
    color: #999999;

    font-style: italic;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.fonds-empty {
    width: 100%;

    max-width: 700px;

    margin: 0 auto;

    padding: 60px 30px;

    text-align: center;

    background: var(--fonds-soft);

    border: 1px solid var(--fonds-border);

    border-radius: var(--fonds-radius);
}


.fonds-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin: 0 auto 20px;

    color: var(--fonds-green);

    background: var(--fonds-green-light);

    border-radius: 50%;
}


.fonds-empty-icon svg {
    width: 28px;
    height: 28px;
}


.fonds-empty h2 {
    margin: 0 0 10px;

    color: var(--fonds-black);

    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}


.fonds-empty p {
    max-width: 500px;

    margin: 0 auto;

    color: var(--fonds-muted);

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   FOOTER
   ========================================================= */

.fonds-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 50px;
}


/* =========================================================
   BOUTON VOIR TOUS LES FONDS
   ========================================================= */

.fonds-main-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 210px;

    min-height: 58px;

    padding: 0 25px;

    color: #ffffff;

    background: var(--fonds-green);

    border: 1px solid var(--fonds-green);

    text-decoration: none;

    font-size: 16px;
    line-height: 1;
    font-weight: 700;

    transition:
        background-color var(--fonds-transition),
        border-color var(--fonds-transition),
        transform var(--fonds-transition),
        box-shadow var(--fonds-transition);
}


.fonds-main-button:hover {
    color: #ffffff;

    background: var(--fonds-green-dark);

    border-color: var(--fonds-green-dark);

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(33, 131, 76, 0.20);
}


.fonds-main-button:focus-visible {
    outline: 3px solid rgba(33, 131, 76, 0.25);

    outline-offset: 4px;
}


.fonds-main-button svg {
    width: 19px;
    height: 19px;

    transition:
        transform var(--fonds-transition);
}


.fonds-main-button:hover svg {
    transform: translateX(4px);
}


/* =========================================================
   TABLETTE LARGE
   ========================================================= */

@media (max-width: 1200px) {

    .fonds-section {
        padding-left: 25px;
        padding-right: 25px;
    }


    .fonds-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .fonds-card {
        min-height: 500px;
    }


    .fonds-image {
        height: 230px;
    }


    .fonds-header h1 {
        font-size: 38px;
    }
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 768px) {

    .fonds-section {
        padding: 55px 20px 65px;
    }


    .fonds-header {
        margin-bottom: 38px;
    }


    .fonds-subtitle {
        margin-bottom: 14px;

        font-size: 13px;

        letter-spacing: 1.5px;
    }


    .fonds-header h1 {
        font-size: 34px;

        line-height: 1.18;
    }


    .fonds-intro {
        margin-top: 16px;

        font-size: 16px;

        line-height: 1.55;
    }


    .fonds-grid {
        gap: 16px;
    }


    .fonds-card {
        min-height: 485px;
    }


    .fonds-image {
        height: 205px;

        margin: 12px 12px 0;

        width: calc(100% - 24px);
    }


    .fonds-card-footer {
        padding: 0 12px 12px;
    }


    .fonds-content {
        padding: 23px 20px 25px;
    }


    .fonds-content h2 {
        font-size: 22px;
    }


    .fonds-description {
        font-size: 15px;
    }


    .fonds-main-button {
        min-height: 55px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .fonds-section {
        padding: 45px 15px 55px;
    }


    .fonds-header {
        margin-bottom: 32px;
    }


    .fonds-subtitle {
        font-size: 12px;

        letter-spacing: 1.3px;
    }


    .fonds-header h1 {
        font-size: 29px;

        letter-spacing: -0.3px;
    }


    .fonds-header h1 span {
        display: inline;
    }


    .fonds-intro {
        font-size: 15px;

        line-height: 1.55;
    }


    .fonds-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .fonds-card {
        min-height: 0;
    }


    .fonds-image {
        height: 215px;
    }


    .fonds-card-footer {
        padding: 0 15px 15px;
    }


    .fonds-content {
        padding: 25px 22px 28px;
    }


    .fonds-card-label {
        margin-bottom: 10px;

        font-size: 10px;
    }


    .fonds-content h2 {
        margin-bottom: 13px;

        font-size: 22px;
    }


    .fonds-description {
        max-width: 500px;

        font-size: 15.5px;

        line-height: 1.55;
    }





    .fonds-footer {
        margin-top: 38px;
    }


    .fonds-main-button {
        width: 100%;

        max-width: 250px;

        min-height: 56px;
    }


    .fonds-empty {
        padding: 45px 20px;
    }


    .fonds-empty h2 {
        font-size: 21px;
    }


    .fonds-empty p {
        font-size: 15px;
    }
}


/* =========================================================
   PETITS MOBILES
   ========================================================= */

@media (max-width: 400px) {

    .fonds-section {
        padding-left: 12px;
        padding-right: 12px;
    }


    .fonds-header h1 {
        font-size: 26px;
    }


    .fonds-intro {
        font-size: 14px;
    }


    .fonds-image {
        height: 190px;
    }


    .fonds-card-footer {
        padding: 0 12px 12px;
    }


    .fonds-content {
        padding: 22px 18px 25px;
    }


    .fonds-content h2 {
        font-size: 20px;
    }


    .fonds-description {
        font-size: 14.5px;
    }



}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .fonds-card,
    .fonds-image img,
    .fonds-link,
    .fonds-link svg,
    .fonds-main-button,
    .fonds-main-button svg {
        transition: none;
    }


    .fonds-card:hover {
        transform: none;
    }


    .fonds-card:hover .fonds-image img {
        transform: none;
    }
}