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

.activities-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(15, 44, 89, 0.96), rgba(30, 68, 123, 0.84)),
        url("../images/activites/section-scories.jpg") center 55% / cover;
}

.activities-hero::after {
    position: absolute;
    right: -110px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    content: "";
    border: 1px solid rgba(191, 161, 95, 0.34);
    border-radius: 50%;
}

.activities-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(62px, 8vw, 104px) 0;
}

.activities-eyebrow,
.activities-label,
.experiment-card__type {
    margin: 0 0 10px;
    color: #bfa15f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.activities-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
}

.activities-hero p:last-child {
    max-width: 720px;
    margin: 22px 0 0;
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
}

.activities-intro,
.research-section,
.laboratory-section,
.experiments-section {
    padding: clamp(64px, 8vw, 100px) 0;
}

.activities-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 7vw, 90px);
    align-items: start;
}

.activities-intro h2,
.activities-heading h2 {
    margin: 0;
    color: #0f2c59;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.activities-intro__copy {
    padding-left: 30px;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.8;
    border-left: 3px solid #bfa15f;
}

.activities-intro__copy p {
    margin: 0;
}

.activities-intro__copy p + p {
    margin-top: 18px;
}

.research-section {
    background: #f1f5f9;
}

.activities-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

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

.research-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dfe6ef;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 44, 89, 0.06);
}

.research-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #0f2c59;
    font-size: 1.2rem;
    background: rgba(191, 161, 95, 0.18);
    border-radius: 50%;
}

.research-card h3 {
    margin: 22px 0 10px;
    color: #0f2c59;
    font-size: 1.14rem;
}

.research-card p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.research-card__list {
    margin: 0;
    padding-left: 20px;
    color: #475569;
    line-height: 1.7;
}

.research-card__list li + li {
    margin-top: 8px;
}

.laboratory-section {
    background: #ffffff;
}

.laboratory-section .activities-heading > p:last-child {
    margin: 18px 0 0;
    color: #475569;
    line-height: 1.75;
}

.laboratory-filters {
    margin-bottom: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.laboratory-filter {
    padding: 10px 16px;
    color: #0f2c59;
    font-size: 0.82rem;
    font-weight: 700;
    background: #f1f5f9;
    border: 1px solid #d5dee9;
    border-radius: 999px;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.laboratory-filter:hover,
.laboratory-filter:focus-visible,
.laboratory-filter.is-active {
    color: #ffffff;
    background: #0f2c59;
    border-color: #0f2c59;
}

.laboratory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.laboratory-card {
    overflow: hidden;
    min-width: 0;
    padding: 0;
    color: inherit;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dfe6ef;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 44, 89, 0.08);
    cursor: zoom-in;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.laboratory-card:hover,
.laboratory-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 44, 89, 0.15);
}

.laboratory-card[hidden] {
    display: none;
}

.laboratory-card img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
}

.laboratory-card span {
    min-height: 98px;
    padding: 18px 20px 20px;
    display: block;
    color: #0f2c59;
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.45;
}

.laboratory-card small {
    margin-bottom: 7px;
    display: block;
    color: #9b7e40;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.laboratory-modal[hidden] {
    display: none;
}

.laboratory-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 24px;
    display: grid;
    place-items: center;
}

.laboratory-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(4, 15, 33, 0.86);
    border: 0;
    cursor: zoom-out;
}

.laboratory-modal__content {
    position: relative;
    z-index: 1;
    width: min(100%, 1050px);
    max-height: calc(100vh - 48px);
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.laboratory-modal__content img {
    width: 100%;
    max-height: calc(100vh - 135px);
    display: block;
    object-fit: contain;
    background: #0b1930;
}

.laboratory-modal__content figcaption {
    padding: 18px 64px 20px 22px;
    color: #0f2c59;
    font-weight: 750;
}

.laboratory-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1.2rem;
    background: rgba(15, 44, 89, 0.9);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.experiments-section {
    color: #e2e8f0;
    background: #0f2c59;
}

.activities-heading--light h2 {
    color: #ffffff;
}

.activities-heading--light > p:last-child {
    margin: 18px 0 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.experiment-list {
    display: grid;
    gap: 28px;
}

.experiment-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 67% 33%;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
}

.experiment-card:nth-child(even) {
    grid-template-columns: 33% 67%;
}

.experiment-card:nth-child(even) img {
    grid-column: 2;
}

.experiment-card:nth-child(even) div {
    grid-column: 1;
    grid-row: 1;
}

.experiment-card img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.experiment-card div {
    padding: clamp(24px, 3vw, 40px);
    align-self: center;
}

.experiment-card h3 {
    margin: 0 0 14px;
    color: #0f2c59;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.experiment-card div > p:last-child {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .experiment-card img {
        width: 100%;
        height: 280px;
        min-height: 0;
        object-fit: cover;
        object-position: center;
    }
    .activities-intro__grid,
    .experiment-card,
    .experiment-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .experiment-card:nth-child(even) img,
    .experiment-card:nth-child(even) div {
        grid-column: 1;
    }

    .experiment-card:nth-child(even) img {
        grid-row: 1;
    }

    .laboratory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .activities-container {
        width: min(100% - 28px, 1120px);
    }

    .activities-intro__copy {
        padding-left: 20px;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .laboratory-grid {
        grid-template-columns: 1fr;
    }

    .laboratory-card img {
        height: 240px;
    }

    .research-card {
        padding: 24px;
    }

    .experiment-card img {
        height: 230px;
    }
}

.experiment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.experiment-card,
.experiment-card:nth-child(even) {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.experiment-card img,
.experiment-card:nth-child(even) img {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.experiment-card div,
.experiment-card:nth-child(even) div {
    padding: 30px;
    flex: 1;
}

@media (max-width: 800px) {
    .experiment-list {
        grid-template-columns: 1fr;
    }

    .experiment-card img,
    .experiment-card:nth-child(even) img {
        height: 250px;
    }
}
.experiment-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.experiment-card,
.experiment-card:nth-child(even) {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
}

.experiment-card img,
.experiment-card:nth-child(even) img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}

.experiment-card div,
.experiment-card:nth-child(even) div {
    width: 100%;
    padding: clamp(26px, 4vw, 44px);
}
/* Liens vers les fiches détaillées, sans modifier la mise en page existante */
.experiment-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #0f2c59;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}
.experiment-card__link:hover,
.experiment-card__link:focus-visible { color: #9b7e40; }

.experiment-card div > p:not(.experiment-card__type) {
    color: #475569;
    line-height: 1.75;
}
