/* =========================
   MOBILE VERSION
========================= */
.agenda {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 2rem;
    margin-bottom:4rem;
}

.agenda h2 {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    line-height: 3rem;
}

.agenda > .portee {
    margin-left: 0;
    margin-right: auto;
    font-size: 1.4rem;
    padding: 1.2rem 1rem;
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.agenda .cards {
    margin: 2rem 0 0 0;
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    
}

.agenda .cards article {
    min-width:14rem;
    width:100%;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid #e8e8e8;
    min-height: 100%;
}

.agenda .cards article img {
    width:auto;
    height: 6rem;
}

.agenda .cards article a {
    margin-top: auto !important; 
    align-self: flex-end;
    padding: 0.8rem 1.5rem;
    background-color: rgba(11, 130, 147, 0.25);
    border: 2px solid rgba(11, 130, 147, 0);
    border-radius: 6px;
    margin-top: 1rem;
}

.agenda button {
    background-color:rgba(11, 130, 147, 0.25);
    border: 2px solid rgba(11, 130, 147, 0);
    border-radius: 6px;
    font-family: "Josefin Sans", sans-serif;
    color: #0B8293;
    padding: 0.8rem 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem auto 0 auto;
    width: fit-content;
}

.agenda .cards article a:hover {
    background-color:#f8f8f8;
    border: 2px solid rgba(11, 130, 147, 0.25);
    color: #0B8293;
}

.agenda .cards article div {
    display:flex;
    justify-content: space-between;
}

.agenda .cards article ul {
    list-style-type: disc;
    list-style-position: outside;
    margin: 1rem 0;
    padding-left: 2rem;
}

.agenda button:hover {
    background-color:#ffffff;
    border: 2px solid rgba(11, 130, 147, 0.25);
    cursor: pointer;
}

.agenda .cards .item {
    display: none;
}

.agenda .item:nth-child(-n+8) {
    display: flex;
}

.agenda .cards.show-all .item {
    display: flex;
}

.cards > button.hidden {
    display: none;
}


/* =========================
   TABLET VERSION
========================= */

@media(min-width: 768px) {
    .agenda .cards article {
        width: 40%;
    }

    .agenda .cards article img {
        width:auto;
        height: 6rem;
    }
}


/* =========================
   DESKTOP VERSION
========================= */

@media(min-width: 1024px) {
    .agenda {
        width: 70%;
    }

    .agenda .cards {
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: stretch;
    }

    .agenda .cards article img {
        width:auto;
        height: 6rem;
        align-self: center;
    }

    .agenda .cards article {
        width: 21%;
    }

    .agenda .cards article div {
        flex-wrap: wrap;
    }
}   


/* =========================
   BIG DESKTOP VERSION
========================= */
@media (min-width: 1440px) {
    .agenda {
        width: 60vw;
    }
}