body,
html {
    background: var(--bg-color) !important;

}



main {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin-bottom: var(--gap);


}

body main article {
    margin: 1em 0
}


main:has(article:hover) {}

main:has(article:hover) article>* {}

article {

    transition: all 0.3s var(--animation-easing);
}

article:hover>* {}

div.menu_button {
    background-color: var(--grey);
}

main>article {
    display: block;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: var(--bm);
    width: calc(100% - var(--bm) * 2);
    height: calc(100vh - var(--bm));
    /* Couvrir toute la hauteur de la fenêtre */
    pointer-events: none;
    /* Empêcher l'interaction avec l'overlay */
    background: var(--gradient-homepage);
    /* Dégradé de haut en bas */
    z-index: 3;
    /* Assurez-vous que l'overlay est au-dessus du contenu */
    mix-blend-mode: lighten;

}

main a {
    text-decoration: none;
    color: inherit;

}



div.search {

    width: calc(100% - var(--bm) * 2);
    max-width: var(--max-width-big);

    z-index: 1000;
    display: flex;
    justify-content: left;
    align-items: left;
    margin: auto;
    position: relative;

    form {
        width: 100%;
    }

    input {
        width: 100%;

        padding: var(--bm);
        font-size: var(--font-size);
        background-color: transparent;
        color: rgb(0, 0, 0);
        border: none;
        outline: none;
    }


    ul.suggestions-results#suggestions {
        position: absolute;
        top: 100%;


        li {
            list-style: none;

            cursor: pointer;

            &:hover {}
        }
    }
}


main article.title-element {
    margin: auto;
    position: relative;
    color: white;
    background-color: black;
    border-radius: var(--border-radius);
    width: 100%;
    font-size: var(--font-away);
    aspect-ratio: 4/2;
    text-decoration: none;
    scroll-snap-align: center;
    padding: 1em;
    transition: all calc(var(--animation-duration) /2) var(--animation-easing);
    margin-bottom: calc(var(--bm) * 1);


}

main article.title-element:has(.inside:hover) {
    scale: 0.99;
}

main article.title-element>section.inside {

    padding-bottom: 3rem;

    a {
        text-wrap: balance;



    }
}



.quicklinks {}

ul.quicklinks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    width: calc(100% - var(--bm) * 2);
    margin-top: 1em;
    padding: 0;
    /* width: 960px; */
    flex-direction: row;
    flex-wrap: wrap;

    z-index: 5000;
    top: calc(var(--bm) * 3);
}








/* main article.title-element sup.tag .button:hover, */
main article.title-element>.sky.hover {
    background-repeat: repeat-x;
    animation: animatedBackground 90s linear infinite alternate;

    color: white;
    background-size: 100%;
    background-clip: text;
}

main article.title-element>.sky:hover {

    color: transparent;
}






article.title-element span.date {


    display: flex;
    justify-content: center;


}





.main-content h2 .wrapper {
    margin: var(--bm);
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0 1em;
    transition: visibility var(--animation-duration) var(--animation-easing), opacity var(--animation-duration) var(--animation-easing);

    line-height: 1;
    opacity: 1;

}


.content {
    grid-column: 1/8;
    text-align: justify;
    text-justify: distribute;

    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    hyphens: auto;
}

dialog {
    width: 90vw;
    height: 90vh;
    background-color: white;
    outline: none;
    border: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    animation: popIn 0.3s ease forwards;

}


section.home.card,
section.spaces.card {
    aspect-ratio: unset;
    max-width: var(--max-width-big);
    margin: auto;
    background-color: var(--far-away);
    padding: var(--bm);
    margin-block: var(--gap);





    .button {
        vertical-align: middle;

    }

    figure:nth-of-type(2n) {

        img:hover {
            transform: rotate(-2deg);
        }
    }

    figure {
        width: 100%;
        height: auto;
        pointer-events: auto;
        display: inline-block;
        width: 1000px;
        vertical-align: middle;
        height: 0.8lh;
        width: auto;
        scale: 1;
        border: none;



        img {
            border-radius: 0 !important;
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: all 0.3s var(--animation-easing);

            &:hover {
                scale: 5;
                border-radius: .4px !important;
                transform: rotate(2deg);


            }
        }



        &:nth-child(2n):hover {
            transform: rotate(-5deg);
        }
    }

    @media (width < 968px) {
        figure {
            display: none;
        }

    }
}




.featured.cards-group>.title {
    max-width: var(--max-width);
    margin-inline: auto;

}

article,
.featured.cards-group>.title {

    max-width: var(--max-width-big);

    .news-title {
        font-size: var(--huge-fs);
    }
}





.cards.learning {


    .discrete p,
    li {
        font-size: 60% !important;
        width: 50%;
    }


    h3 {
        text-align: center;
    }

    .card {
        aspect-ratio: auto;
    }

    a {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        min-height: 10lh;

    }



    .discrete {
        overflow: clip;
        height: auto;

        opacity: 1;
        transition: all 0.3s ease;

    }



}



sup.tag .button {
    background-color: transparent;
    color: white;
    font-family: "Futura Stencil";
    text-transform: uppercase;
    vertical-align: middle;
    border: none;

    transition: all .0s ease;

    &:hover {
        text-decoration: none !important;
    }

}




.cards.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    .card {
        width: 100% !important;
    }
}



@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


@media (width < 960px) {




    main {
        gap: calc(var(--gap) *5);
    }



    .related-graduates {
        width: 100%;

        .cards {
            scroll-snap-type: x mandatory;
        }

        .card {
            scroll-snap-align: center;

        }
    }


    article.title-element span.date {

        text-align: center;
        text-wrap: balance;
    }


    .cards.learning {

        .card {
            aspect-ratio: auto;


            a {

                h3 {
                    text-align: left !important;

                    &.center {
                        text-align: center !important;
                    }
                }

                gap: 1lh;
            }
        }
    }
}