/* <!--CSS pour les cartes--> */
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;500;600;700&display=swap");
body{
    overflow: hidden;
}
html {
    box-sizing: border-box;
    font-size: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}


.container {
    max-width: 80vw; 
    max-height: 100vh;
    padding: 1rem 0;
    display: grid;
    place-content: center;
    justify-content: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    pointer-events: none;
    max-width: 100%;
    max-height: 50%;
}

.card {
    max-width: 20rem;
    color: #ffffffda;
    padding: 1.5rem;
    background-color: #202022 !important;
    pointer-events: auto;
    transform: scale(1);
    opacity: 1;
    transition: all 150ms ease-in-out;
    display: flex;
    flex-direction: column;
}

.card-title {
    position: relative;
}

/* Petits ronds */
.card-title::before {
    content: "";
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    box-shadow: inset 0 0 3px #bb86fc;
    background-color: transparent;
    position: absolute;
    right: 0;
}

/* Petits ronds */

.date {
    color: #bb86fc;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.lien {
    color: white;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.lien>a:hover {
    color: #bb86fc;
}

.lien>a {
    color: white;
    text-decoration: none;
}

.description {
    font-size: 0.9rem;
    color: #818181;
}

.description:nth-child(n) {
    transform: rotate(-0deg);
}

.cards:hover>.card:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.cards:hover>.card:not(:hover) {
    opacity: 0.5;
}

/* <!--CSS pour les cartes--> */

/* Responsive */
@media screen and (max-width: 1180px) {
    .container{
        overflow: scroll;
        height: fit-content;
        display: block;
        position: relative;
        padding: 5rem; /* Pour éviter d'avoir la dernière card coupé */
    }
    .cards {
        grid-template-columns: 1fr;
    }
}

/* Responsive */