/* =========================================================
   HISTORIQUE DU STAFF — CIME
========================================================= */


/* =========================================================
   CONTENEUR
========================================================= */

.history-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   EN-TÊTE DE PAGE
========================================================= */

.history-page-header {
    background: #f5f8fc;
    border-bottom: 1px solid #e1e7ed;
    padding: 90px 20px 85px;
}

.history-page-header-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.history-page-label {
    margin: 0 0 16px;

    color: #a84a43;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.history-page-header h1 {
    max-width: 1000px;

    margin: 0;

    color: #122c4c;

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 700;

    letter-spacing: -1.8px;
}

.history-page-description {
    max-width: 760px;

    margin: 24px 0 0;

    color: #657180;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   SECTIONS
========================================================= */

.history-section {
    padding: 90px 0 100px;

    background: #ffffff;
}

.history-cime {
    background: #f5f8fc;
    border-top: 1px solid #e4eaf0;
}


/* =========================================================
   TITRES DE SECTION
========================================================= */

.history-section-heading {
    margin-bottom: 50px;
}

.history-section-label {
    margin: 0 0 14px;

    color: #a84a43;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.history-section-heading h2 {
    max-width: 1000px;

    margin: 0;

    color: #122c4c;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 700;

    letter-spacing: -1px;
}


/* =========================================================
   GRILLE
========================================================= */

.history-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 38px 42px;
}


/* =========================================================
   CARTE RESPONSABLE
========================================================= */

.leader-card {
    background: #ffffff;

    border: 1px solid #e1e6eb;

    border-radius: 4px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.leader-card:hover {
    transform: translateY(-4px);

    border-color: #d5dde5;

    box-shadow:
        0 16px 38px rgba(18, 44, 76, 0.08);
}


/* =========================================================
   IMAGE
========================================================= */

.leader-image {
    width: 100%;

    aspect-ratio: 4 / 3;

    background: #eef2f5;

    overflow: hidden;
}

.leader-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.leader-card:hover .leader-image img {
    transform: scale(1.025);
}


/* =========================================================
   INFORMATIONS
========================================================= */

.leader-info {
    padding: 22px 22px 24px;
}

.leader-info h3 {
    margin: 0 0 8px;

    color: #122c4c;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.leader-position {
    margin: 0;

    color: #a84a43;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.5;
}


/* =========================================================
   CIME — 3 CARTES
========================================================= */

.history-cime-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   BOUTON RETOUR
========================================================= */

.history-back {
    display: flex;

    justify-content: center;

    margin-top: 65px;
}

.history-back-link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 22px;

    color: #122c4c;

    background: #ffffff;

    border: 1px solid #d7dfe7;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.history-back-link span {
    font-size: 18px;
    line-height: 1;
}

.history-back-link:hover {
    color: #a84a43;

    border-color: #cbd5df;

    transform: translateY(-2px);
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 950px) {

    .history-page-header {
        padding: 75px 20px 70px;
    }

    .history-section {
        padding: 75px 0 80px;
    }

    .history-grid,
    .history-cime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 28px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .history-page-header {
        padding: 60px 20px 55px;
    }

    .history-page-label {
        font-size: 12px;
    }

    .history-page-header h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .history-page-description {
        margin-top: 18px;

        font-size: 15px;
        line-height: 1.65;
    }

    .history-section {
        padding: 60px 0 65px;
    }

    .history-section-heading {
        margin-bottom: 35px;
    }

    .history-section-label {
        font-size: 12px;
    }

    .history-section-heading h2 {
        font-size: 34px;
    }

    .history-grid,
    .history-cime-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .leader-info {
        padding: 20px;
    }

    .leader-info h3 {
        font-size: 19px;
    }

    .history-back {
        margin-top: 45px;
    }

}


/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 420px) {

    .history-page-header h1 {
        font-size: 34px;
    }

    .history-section-heading h2 {
        font-size: 30px;
    }
}