.home-main,
.home-main * {
    margin: 0;
    padding: 0;
}

.home-page {
    justify-content: center;
    font-size: 1.1rem;
}

img {
    width: 100%;
    height: auto;
}

.home-page picture {
    display: block;
}

.home-main {
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.home-main section {
    width: calc(95% - 2 * 20px);
    padding: 15px 20px;
    background-color: var(--color-white);
    border: 1px solid var(--color-sky-200);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgb(8 47 73 / 7%);
}

.home-main section h2 {
    color: var(--color-ocean-950);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(420px, 72svh, 680px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: clamp(24px, 7vw, 72px);
    border: 0;
    background-color: var(--color-ocean-950);
    color: var(--color-white);
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(8 47 73 / 92%) 0%, rgb(8 47 73 / 76%) 48%, rgb(8 47 73 / 25%) 100%),
        linear-gradient(0deg, rgb(8 47 73 / 35%), transparent 55%);
    content: "";
}

.hero .hero-image {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.hero .page-heading {
    width: min(100%, 720px);
    padding: 0;
    border: 0;
    text-align: left;
}

.hero .title {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero .title span {
    color: var(--color-sky-200);
    font-weight: 600;
}

.hero .title h1 {
    color: var(--color-white);
    font-size: clamp(1rem, 6.1vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.08;
    text-transform: uppercase;
}

.hero .links {
    width: min(100%, 560px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.hero .links .link {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--color-ocean-800);
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero .links .link:last-child {
    border: 1px solid rgb(255 255 255 / 75%);
    background-color: rgb(8 47 73 / 45%);
}

.hero .links .link:last-child:hover {
    background-color: var(--color-ocean-950);
}

.actualites .list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actualites .list .actu {
    box-shadow: 0 4px 14px rgb(8 47 73 / 7%);
    border-radius: 5px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    border-bottom: solid 2px var(--color-ocean-700);
}

.actualites .list .actu picture {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px;
}

.actualites .list .actu img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.planning {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#scroll-planning {
    scroll-margin-top: 6rem;
}

.planning .top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.planning-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-sky-200);
    border-radius: 8px;
    background-color: var(--color-sky-50);
    color: var(--color-ocean-800);
    cursor: pointer;
}

.planning-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.planning iframe[hidden] {
    display: none;
}

.moniteurs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.moniteurs .list {
    display: flex;
    align-items: center;
    overflow-x: scroll;
    gap: 10px;
    padding: 10px 0;
}

.moniteurs .list .moniteur {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.moniteurs .list .moniteur img {
    max-width: none;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 999px;
}

.moniteurs .list .moniteur h3 {
    letter-spacing: 1px;
    font-weight: 700;
}

@media (min-width: 601px) {
    .home-main {
        width: min(calc(100% - 48px), var(--content-max-width));
        align-items: stretch;
        gap: 24px;
    }

    .home-main > section {
        width: 100%;
        padding: clamp(20px, 2.5vw, 32px);
    }

    .hero {
        min-height: 0;
        min-height: clamp(460px, 68svh, 640px);
        gap: 28px;
    }

    .hero .links {
        flex-direction: row;
        align-items: center;
    }

    .hero .links .link {
        flex: 1 1 0;
        width: auto;
        padding-inline: 12px;
    }

    .actualites .list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 16px;
    }

    .actualites .list > span {
        display: none;
    }

    .actualites .list .actu {
        min-width: 0;
        padding: 12px;
    }

    .moniteurs .list {
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: center;
    }

    .moniteurs .list .moniteur {
        flex: 1 1 130px;
    }
}

@media (min-width: 900px) {
    .hero::before {
        background:
            linear-gradient(90deg, rgb(8 47 73 / 94%) 0%, rgb(8 47 73 / 78%) 42%, rgb(8 47 73 / 12%) 100%),
            linear-gradient(0deg, rgb(8 47 73 / 30%), transparent 60%);
    }

    .home-main {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
        align-items: start;
    }

    .home-main > .hero {
        grid-column: 1 / -1;
    }

    .home-main > .actualites {
        grid-column: 1;
    }

    .home-main > .planning {
        grid-column: 2;
        align-self: stretch;
        justify-content: flex-start;
    }

    .planning iframe {
        display: block;
        flex: 1 1 auto;
        min-height: 420px;
    }

    .planning iframe[hidden] {
        display: block;
    }

    .planning-toggle {
        display: none;
    }

    .home-main > .moniteurs {
        grid-column: 1 / -1;
    }

    .actualites .list {
        grid-template-columns: 1fr;
    }

    .moniteurs .list .moniteur {
        flex-basis: 110px;
    }
}

@media (min-width: 1200px) {
    .home-main {
        grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
        gap: 32px;
    }

    .home-main > section {
        padding: 30px;
    }
}