* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #222222;

    background-color: #ffffff;
}


a {
    color: inherit;

    text-decoration: none;
}


.page-container {
    width: min(1180px, calc(100% - 40px));

    margin: auto;
}


/* HEADER */

.site-header {
    position: sticky;

    top: 0;

    z-index: 100;

    background-color:
        rgba(255, 255, 255, 0.95);

    border-bottom:
        1px solid #e8e8e8;

    backdrop-filter: blur(10px);
}


.header-container {
    width:
        min(1180px, calc(100% - 40px));

    min-height: 78px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.logo {
    font-size: 30px;

    font-weight: 800;
}


.main-nav {
    display: flex;

    align-items: center;

    gap: 28px;
}


.main-nav a {
    font-weight: 600;

    color: #555555;

    transition:
        color 0.2s ease;
}


.main-nav a:hover {
    color: #000000;
}


/* HERO */

.hero {
    padding:
        110px
        0
        120px;

    background:
        linear-gradient(
            135deg,
            #f7f7ff,
            #ffffff
        );
}


.hero-label,
.section-label {
    margin:
        0
        0
        12px;

    color: #7379a3;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.hero h1 {
    max-width: 800px;

    margin: 0;

    font-size:
        clamp(44px, 7vw, 78px);

    line-height: 1;

    letter-spacing: -3px;
}


.hero-description {
    max-width: 650px;

    margin-top: 28px;

    font-size: 21px;

    line-height: 1.6;

    color: #666666;
}


/* SECTIONS */

.section {
    padding:
        90px
        0;
}


.section-grey {
    background-color: #f7f7f5;
}


.section h2 {
    margin:
        0
        0
        15px;

    font-size: 38px;

    letter-spacing: -1px;
}


.section-description {
    max-width: 680px;

    color: #6c6c6c;

    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 40px;
}


/* DERNIERS AJOUTS */

.latest-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;

    margin-top: 35px;
}


.latest-card {
    border:
        1px solid #e5e5e5;

    border-radius: 18px;

    overflow: hidden;

    background-color: white;
}


.latest-image {
    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;
}


.latest-content {
    padding: 22px;
}


.latest-type {
    display: inline-block;

    margin-bottom: 12px;

    padding:
        6px
        10px;

    border-radius: 999px;

    background-color: #bfc7ff;

    font-size: 12px;

    font-weight: 700;
}


.latest-card h3 {
    margin:
        0
        0
        8px;

    font-size: 22px;
}


.latest-meta {
    color: #747474;

    margin: 0;
}


/* PORTAIL */

.portal-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;

    margin-top: 40px;
}


.portal-card {
    min-height: 160px;

    padding: 28px;

    background-color: white;

    border:
        1px solid #dfdfdf;

    border-radius: 18px;

    display: flex;

    gap: 22px;

    align-items: flex-start;
}


.portal-card:hover {
    border-color: #bfc7ff;
}


.portal-icon {
    flex:
        0
        0
        52px;

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background-color: #bfc7ff;

    font-size: 22px;

    font-weight: bold;
}


.portal-card h3 {
    margin:
        3px
        0
        8px;

    font-size: 22px;
}


.portal-card p {
    margin: 0;

    color: #707070;

    line-height: 1.5;
}


/* FILTRES */

.filters {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 35px;
}


.filter-button {
    border:
        1px solid #dddddd;

    padding:
        11px
        18px;

    border-radius: 10px;

    background-color: white;

    font-size: 15px;

    cursor: pointer;
}


.filter-button.active {
    background-color: #222222;

    color: white;

    border-color: #222222;
}


/* ACTIVITÉ */

.activity-preview {
    max-width: 800px;

    display: grid;

    grid-template-columns:
        300px
        1fr;

    background-color: white;

    border:
        1px solid #dddddd;

    border-radius: 20px;

    overflow: hidden;
}


.activity-preview img {
    width: 100%;

    height: 100%;

    min-height: 280px;

    object-fit: cover;
}


.activity-preview-content {
    padding: 35px;
}


.level-badge {
    display: inline-block;

    padding:
        6px
        12px;

    border-radius: 999px;

    background-color: #bfc7ff;

    font-size: 13px;

    font-weight: bold;
}


.activity-preview h3 {
    margin:
        18px
        0
        8px;

    font-size: 28px;
}


.activity-preview-content p {
    color: #737373;

    margin-bottom: 28px;
}


.primary-button {
    display: inline-block;

    padding:
        12px
        18px;

    border-radius: 10px;

    background-color: #222222;

    color: white;

    font-weight: 700;
}


/* PLACEHOLDER */

.coming-soon {
    padding: 35px;

    border:
        2px dashed #dddddd;

    border-radius: 16px;

    color: #888888;

    background-color:
        rgba(255, 255, 255, 0.5);
}


/* FOOTER */

.footer {
    padding:
        60px
        0;

    background-color: #222222;

    color: white;
}


.footer strong {
    font-size: 25px;
}


.footer p {
    color: #aaaaaa;
}


/* MOBILE */

@media (max-width: 800px) {

    .header-container {
        flex-direction: column;

        align-items: flex-start;

        padding:
            20px
            0;
    }


    .main-nav {
        width: 100%;

        overflow-x: auto;

        gap: 18px;

        padding-bottom: 5px;
    }


    .main-nav a {
        white-space: nowrap;
    }


    .hero {
        padding:
            70px
            0;
    }


    .hero h1 {
        letter-spacing: -2px;
    }


    .latest-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }


    .activity-preview {
        grid-template-columns: 1fr;
    }


    .activity-preview img {
        height: 250px;

        min-height: 0;
    }

}

/* VIDEO FILTERS */

.video-filters {
    margin-top: 35px;

    margin-bottom: 40px;
}


.filter-group {
    margin-bottom: 22px;
}


.filter-title {
    margin:
        0
        0
        10px;

    font-size: 14px;

    font-weight: 700;

    color: #555555;
}


/* VIDEO GRID */

.video-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 24px;
}


.video-card {
    overflow: hidden;

    border:
        1px solid #e2e2e2;

    border-radius: 18px;

    background-color: white;
}


.video-player {
    width: 100%;

    aspect-ratio: 16 / 9;

    background-color: #111111;
}


.video-player iframe {
    display: block;

    width: 100%;

    height: 100%;

    border: none;
}


.video-card-content {
    padding: 20px;
}


.video-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 14px;
}


.theme-badge {
    display: inline-block;

    padding:
        6px
        12px;

    border-radius: 999px;

    background-color: #eeeeee;

    font-size: 13px;

    font-weight: 600;

    color: #555555;
}


.video-card h3 {
    margin: 0;

    font-size: 21px;
}


/* MOBILE */

@media (max-width: 800px) {

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

}

/* FICHES DE COURS */

.sheet-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;
}


.sheet-card {
    overflow: hidden;

    background-color: white;

    border:
        1px solid #e2e2e2;

    border-radius: 18px;
}


.sheet-image {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    background-color: #eeeeee;
}


.sheet-content {
    padding: 20px;
}


.sheet-content h3 {
    margin:
        0
        0
        20px;

    font-size: 21px;
}


@media (max-width: 800px) {

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

}

/* IMAGE CLIQUABLE */

.sheet-image {
    cursor: zoom-in;
}


/* MODALE */

.image-modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 1000;

    background-color: rgba(0, 0, 0, 0.85);

    padding: 30px;

    align-items: center;

    justify-content: center;
}

.image-modal.open {
    display: flex;
}

.image-modal-content {
    position: relative;

    width: min(1000px, 100%);

    max-height: 90vh;

    background-color: white;

    border-radius: 16px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 20px;
}

.image-modal-content img {
    max-width: 100%;

    max-height: 75vh;

    object-fit: contain;

    display: block;
}

.image-modal-close {
    position: absolute;

    top: 10px;

    right: 15px;

    border: none;

    background: none;

    font-size: 34px;

    line-height: 1;

    cursor: pointer;
}