/* =========================================================
   SECTION NOS ACTIVITÉS — grille 3 colonnes
   [intro] [carte] [carte]
   [carte] [carte] [carte]
========================================================= */

.activities-section {
    width: 100%;
    padding: 56px 0 64px;
    background-color: #f2f4f6;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: #1a1a1a;
}

.activities-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================================
   GRILLE
========================================================= */

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

/* =========================================================
   INTRO (1ère cellule)
========================================================= */

.activity-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px 8px 8px 0;
    min-height: 100%;
}

.activity-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.activity-orange-line {
    display: inline-block;
    width: 22px;
    height: 3px;
    background-color: #f06408;
    flex-shrink: 0;
}

.activity-intro-title {
    margin: 0;
    max-width: 320px;
    color: #1a1a1a;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

/* =========================================================
   CARTE
========================================================= */

.activity-card {
    min-width: 0;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.activity-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   IMAGE
========================================================= */

.activity-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #eeeeee;
    flex-shrink: 0;
}

.activity-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.activity-card:hover .activity-image {
    transform: scale(1.03);
}

/* =========================================================
   CORPS DE CARTE
========================================================= */

.activity-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 14px;
}

.activity-card-body > .activity-orange-line {
    margin-bottom: 12px;
}

.activity-title {
    margin: 0 0 8px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.activity-description {
    margin: 0;
    color: #5a5a5a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    color: #2a2a2a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease;
}

.activity-link:hover {
    color: #f06408;
}

.activity-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #f06408;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.activity-link:hover .activity-arrow {
    transform: translateX(2px);
}

/* =========================================================
   TABLETTE
========================================================= */

@media screen and (max-width: 980px) {

    .activities-container {
        width: calc(100% - 40px);
    }

    .activities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .activity-intro {
        grid-column: 1 / -1;
        padding: 0 0 4px;
    }

    .activity-intro-title {
        max-width: 520px;
    }

    .activity-image-wrapper {
        height: 170px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 640px) {

    .activities-section {
        padding: 40px 0 48px;
    }

    .activities-container {
        width: calc(100% - 32px);
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .activity-intro {
        grid-column: auto;
        margin-bottom: 4px;
    }

    .activity-intro-title {
        max-width: none;
        font-size: 22px;
    }

    .activity-image-wrapper {
        height: 190px;
    }

    .activity-card-body {
        padding: 14px;
    }

    .activity-title {
        font-size: 15px;
    }

    .activity-description {
        font-size: 12px;
    }
}

@media screen and (max-width: 400px) {

    .activities-container {
        width: calc(100% - 24px);
    }

    .activity-image-wrapper {
        height: 170px;
    }
}
