.resources {
    padding: 32px 20px;
}

@media screen and (min-width: 768px) {
    .resources {
        padding: 64px 20px;
    }
}

.resources--container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

@media screen and (min-width: 768px) {
    .resources--container {
        gap: 32px;
    }
}

.th-dark .resources {
    --color-titre: var(--neutre-100);
    --bg-color: var(--ocre-20);
    --color: var(--neutre-100);
    --border: var(--neutre-80);
}

.th-dore .resources {
    --color-titre: var(--ocre-100);
    --bg-color: var(--ocre-20);
    --color: var(--neutre-60);
    --border: var(--ocre-80);
}

.th-light .resources {
    --color-titre: var(--neutre-100);
    --bg-color: var(--ocre-40);
    --color: var(--neutre-100);
    --border: var(--neutre-60);
}

.resources--item {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

@media screen and (min-width: 768px) {
    .resources--item {
        display: flex;
    }
}

.resources--item-info {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    border-radius: 20px;
    padding: 16px;
    background-color: var(--bg-color);
}

.resources--item-info .cat {
    font-family: var(--robotoSlab);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    color: var(--color);
    width: 100%;
}

.resources--item-info h6 {
    font-size: 18px;
    line-height: 24px;
    color: var(--color-titre);
    width: 100%;
    margin-bottom: 16px;
}

.resources--item-info .info-tag {
    font-family: var(--robotoSlab);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--color);
}

.resources--item-info .info-tag::before {
    content: "";
    display: block;
    mask: var(--mask-before);
    mask-size: contain;
    background-color: var(--color);
    height: 16px;
    width: 16px;
}

.resources--item-info .info-tag.school {
    --mask-before: url(../../../../../../themes/apo/resources/images/icons/ecole.svg) no-repeat center;
}

.resources--item-info .info-tag.calendar {
    --mask-before: url(../../../../../../themes/apo/resources/images/icons/calendrier.svg) no-repeat center;
}

@media screen and (min-width: 500px) {
    .resources--item .btn {
        width: 100%;
    }
}

.resources .pagination {
    display: none;
}

@media screen and (min-width: 768px) {
    .resources .pagination {
        display: flex;
    }
}

.resources--btn {
    margin-top: 16px;
    grid-column: 1/-1;
    justify-self: center;
}

@media screen and (min-width: 768px) {
    .resources--btn {
        display: none;
    }
}