/* ============================================================
   VARIABLES
============================================================ */

:root {
    --fond-green: #16834b;
    --fond-green-dark: #0f6b3c;
    --fond-green-light: #eaf6ef;

    --fond-text: #202b25;
    --fond-text-light: #6f7773;

    --fond-background: #f5f7f5;
    --fond-white: #ffffff;

    --fond-border: #e4e9e6;

    --fond-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06);

    --fond-shadow-hover:
        0 14px 35px rgba(0, 0, 0, 0.12);

    --fond-radius: 8px;
}


/* ============================================================
   PAGE
============================================================ */

.fond-detail {
    background: var(--fond-background);
    min-height: 100vh;
    padding: 35px 20px 80px;
    color: var(--fond-text);
}


.fond-detail-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* ============================================================
   RETOUR
============================================================ */

.fond-navigation {
    margin-bottom: 25px;
}


.fond-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--fond-green);
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.25s ease;
}


.fond-back-link:hover {
    color: var(--fond-green-dark);
    transform: translateX(-3px);
}


.back-arrow {
    font-size: 19px;
    line-height: 1;
}


/* ============================================================
   HEADER
============================================================ */

.fond-header {
    text-align: center;
    margin-bottom: 30px;
}


.fond-header-content {
    max-width: 800px;
    margin: 0 auto;
}


.fond-detail-type {
    display: inline-flex;
    align-items: center;

    padding: 7px 15px;

    border-radius: 30px;

    background: var(--fond-green-light);
    color: var(--fond-green);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}


.fond-main-title {
    margin: 15px 0 12px;

    color: var(--fond-text);

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 700;
}


.fond-title-line {
    width: 55px;
    height: 3px;

    margin: 0 auto;

    background: var(--fond-green);
    border-radius: 10px;
}


/* ============================================================
   IMAGE PRINCIPALE
============================================================ */

.fond-main-image {
    width: 100%;
    max-width: 1100px;

    height: 330px;

    margin: 0 auto 50px;

    overflow: hidden;

    border-radius: 10px;

    background: #ddd;

    box-shadow: var(--fond-shadow);
}


.fond-main-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.fond-main-image:hover img {
    transform: scale(1.02);
}


/* ============================================================
   SECTION
============================================================ */

.fonds-dynamiques-section {
    width: 100%;
}


.section-heading {
    text-align: center;
    max-width: 720px;

    margin: 0 auto 35px;
}


.section-kicker {
    display: block;

    margin-bottom: 8px;

    color: var(--fond-green);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.section-heading h2 {
    margin: 0 0 12px;

    color: var(--fond-text);

    font-size: 30px;
    line-height: 1.25;
}


.section-heading p {
    margin: 0;

    color: var(--fond-text-light);

    font-size: 15px;
    line-height: 1.7;
}


/* ============================================================
   GRID DES CARTES
============================================================ */

.fonds-dynamiques-list {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}


/* ============================================================
   CARTE
============================================================ */

.fond-dynamique-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: var(--fond-white);

    border: 1px solid var(--fond-border);

    border-radius: var(--fond-radius);

    box-shadow: var(--fond-shadow);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.fond-dynamique-card:hover {
    transform: translateY(-6px);

    border-color: #d4ded8;

    box-shadow: var(--fond-shadow-hover);
}


/* ============================================================
   IMAGE CARTE
============================================================ */

.fond-dynamique-image {
    position: relative;

    width: 100%;
    height: 195px;

    overflow: hidden;

    background: #e9ecea;
}


.fond-dynamique-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to bottom,
            transparent 65%,
            rgba(0, 0, 0, 0.10));

    pointer-events: none;
}


.fond-dynamique-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.45s ease;
}


.fond-dynamique-card:hover .fond-dynamique-image img {
    transform: scale(1.05);
}


/* ============================================================
   CORPS DE CARTE
============================================================ */

.fond-dynamique-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 23px 22px 24px;
}


/* ============================================================
   BADGE
============================================================ */

.fond-card-badge {
    align-self: flex-start;

    display: inline-flex;

    margin-bottom: 12px;

    padding: 5px 10px;

    border-radius: 4px;

    background: var(--fond-green-light);

    color: var(--fond-green);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}


/* ============================================================
   TITRE
============================================================ */

.fond-dynamique-title {
    margin: 0 0 7px;

    color: var(--fond-text);

    font-size: 20px;
    line-height: 1.3;

    font-weight: 700;
}


.fond-dynamique-subtitle {
    margin: 0 0 18px;

    color: #7a827e;

    font-size: 13px;
    line-height: 1.55;

    font-weight: 500;
}


/* ============================================================
   INFORMATIONS
============================================================ */

.fond-informations {
    display: grid;

    grid-template-columns: 1fr;

    gap: 0;

    margin: 8px 0 20px;

    border-top: 1px solid var(--fond-border);
    border-bottom: 1px solid var(--fond-border);
}


.fond-information {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid #edf0ee;
}


.fond-information:last-child {
    border-bottom: none;
}


.information-label {
    color: #858d89;

    font-size: 11px;
}


.fond-information strong {
    color: var(--fond-text);

    font-size: 12px;
    font-weight: 700;

    text-align: right;
}


/* ============================================================
   QUESTIONS
============================================================ */

.fond-questions {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 5px;
}


.fond-question {
    padding: 15px;

    border-radius: 6px;

    background: #f7f9f8;

    border-left: 3px solid var(--fond-green);
}


.fond-question h4 {
    margin: 0 0 7px;

    color: var(--fond-text);

    font-size: 13px;
    line-height: 1.45;
}


.fond-question p {
    margin: 0;

    color: var(--fond-text-light);

    font-size: 12px;
    line-height: 1.65;
}


/* ============================================================
   GRAPHE
============================================================ */

.fond-graphe {
    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px solid var(--fond-border);
}


.fond-graphe h3,
.fond-bas h3,
.fond-description h3,
.fond-graphe-center h3 {
    margin: 0 0 9px;

    color: var(--fond-text);

    font-size: 15px;
    line-height: 1.4;
}

.fond-description h3 {
    text-align: center;
    font-size: 21px;
    margin-top: -25px;
}

.fond-graphe p,
.fond-bas p,
.fond-description p {
    margin: 0;

    color: var(--fond-text-light);

    font-size: 13px;
    line-height: 1.7;
}


/* ============================================================
   VALEURS GRAPHE
============================================================ */

.fond-graphe-center {
    margin-top: 20px;

    padding: 18px;

    background: var(--fond-green-light);

    border-radius: 7px;
}


.fond-graphe-values {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 7px;

    margin-top: 14px;
}


.fond-graphe-values div {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 45px;

    background: #fff;

    border-radius: 5px;
}


.fond-graphe-values strong {
    color: var(--fond-green);

    font-size: 14px;
}


/* ============================================================
   BAS
============================================================ */

.fond-bas {
    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid var(--fond-border);
}


/* ============================================================
   DESCRIPTION
============================================================ */

.fond-description {
    margin-top: 20px;
}


/* ============================================================
   LIENS
============================================================ */

.fond-links {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: auto;
    padding-top: 25px;
}


.fond-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 38px;

    padding: 9px 15px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.fond-links a span {
    font-size: 15px;

    transition: transform 0.25s ease;
}


.fond-links a:hover span {
    transform: translateX(3px);
}


.fond-link-primary {
    flex: 1;

    background: var(--fond-green);
    color: #fff;
}


.fond-link-primary:hover {
    background: var(--fond-green-dark);
    color: #fff;
}


.fond-link-secondary {
    background: #f1f4f2;
    color: var(--fond-green);
}


.fond-link-secondary:hover {
    background: #e3ebe6;
}


/* ============================================================
   EMPTY
============================================================ */

.fond-empty {
    max-width: 600px;

    margin: 40px auto;

    padding: 50px 30px;

    text-align: center;

    background: #fff;

    border: 1px solid var(--fond-border);

    border-radius: 10px;

    box-shadow: var(--fond-shadow);
}


.fond-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--fond-green-light);

    color: var(--fond-green);

    font-size: 28px;
}


.fond-empty h2 {
    margin: 0 0 10px;

    color: var(--fond-text);

    font-size: 23px;
}


.fond-empty p {
    margin: 0 auto 25px;

    max-width: 450px;

    color: var(--fond-text-light);

    font-size: 14px;
    line-height: 1.7;
}


.fond-empty-button {
    display: inline-flex;

    padding: 11px 20px;

    border-radius: 4px;

    background: var(--fond-green);
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition: background 0.25s ease;
}


.fond-empty-button:hover {
    background: var(--fond-green-dark);
    color: #fff;
}


/* ============================================================
   RESPONSIVE - TABLETTE
============================================================ */

@media (max-width: 992px) {

    .fonds-dynamiques-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .fond-main-image {
        height: 280px;
    }

}


/* ============================================================
   RESPONSIVE - MOBILE
============================================================ */

@media (max-width: 680px) {

    .fond-detail {
        padding: 25px 15px 55px;
    }


    .fond-main-title {
        font-size: 29px;
    }


    .fond-main-image {
        height: 220px;

        margin-bottom: 40px;

        border-radius: 7px;
    }


    .section-heading {
        margin-bottom: 25px;
    }


    .section-heading h2 {
        font-size: 24px;
    }


    .fonds-dynamiques-list {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .fond-dynamique-image {
        height: 210px;
    }


    .fond-dynamique-body {
        padding: 20px;
    }


    .fond-dynamique-title {
        font-size: 19px;
    }


    .fond-graphe-values {
        grid-template-columns: repeat(2, 1fr);
    }


    .fond-links {
        flex-direction: column;
    }


    .fond-links a {
        width: 100%;
    }

}


/* ============================================================
   PETITS MOBILES
============================================================ */

@media (max-width: 400px) {

    .fond-detail {
        padding-left: 12px;
        padding-right: 12px;
    }


    .fond-dynamique-body {
        padding: 17px;
    }


    .fond-dynamique-image {
        height: 190px;
    }


    .fond-information {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }


    .fond-information strong {
        text-align: left;
    }

}