@import 'variables.css';



#ressources_tags_links {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-end: 2rem;
}

.ressources_tags_link {
    position: relative; /* Ajout de position relative */
    text-decoration: none;
    color: var(--dark-blue);
    transition: color 0.3s ease;
    display: inline-block; /* Assure que le lien prend la largeur du contenu */
    padding: 0 5px; /* Ajout d'un peu d'espace autour du texte */
}

.ressources_tags_link::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--main-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ressources_tags_link:hover::before {
    transform: scaleX(1);
}


section.ressources {
    box-shadow: none;
    border-radius: none;
}

section.ressources p {
    margin-block-end: 20px;
}

.ressource_card {
    padding: 20px;
    margin-block-end: 40px;
    border-radius: 25px;
    background-color: var(--light-blue);
    box-shadow: var(--main-shadow);
}

.ressource_card:nth-child(3n+1) {
    background-color: var(--light-red);
}

.ressource_card:nth-child(3n+2) {
    background-color: var(--light-orange);
}

.ressource_card:nth-child(3n+3) {
    background-color: var(--light-yellow);
}

.ressource_card h3 {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.ressource_card p {
    margin: 30px;
}

.ressource_card_link {
    display: block;
    background-color: var(--white);
    color: var(--black);
    text-align: center;
    margin: auto;
    padding: 10px;
    width: 150px;
    border-radius: 25px;
    text-decoration: none;
}

.ressource_card:nth-child(3n+1) .ressource_card_link:hover {
    /* background-color: var(--red); 
    color: var(--white); */
    outline: 3px solid var(--red);
    color: var(--red);
    font-weight: bold;
}

.ressource_card:nth-child(3n+2) .ressource_card_link:hover {
    /* background-color: var(--orange); */
    outline: 3px solid var(--orange);
    color: var(--orange);
    font-weight: bold;
}

.ressource_card:nth-child(3n+3) .ressource_card_link:hover {
    /* background-color: var(--yellow); */
    outline: 3px solid var(--yellow);
    color: var(--yellow);
    font-weight: bold;
}


@media screen and (max-width: 667px) {
    .ressource_card p {
        margin: 20px 0px;
    }
}