@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Plus+Jakarta+Sans:wght@200..800&family=Red+Hat+Text:wght@300..700&display=swap');

* {
    box-sizing: border-box;
}

.grid-container {
    display: grid;
    grid-template-columns: 345px auto 300px auto;
    grid-template-rows: auto;
    gap: 2px;
    color: white;
    text-align: center;
    font-family: "Open Sans", serif;
    min-height: 90vh;
    overflow: hidden;
}

.item1,
.item6,
.item8 {
    background-color: #f3992e;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.item2,
.item4,
.item5,
.item7 {
    background-color: #1b559e;
    border-radius: 20px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.item1,
.item2,
.item3,
.item4,
.item8 {
    padding: 20px;
}

.item5,
.item6,
.item7 {
    padding: 20px 0;
}

.item1:hover,
.item2:hover,
.item3:hover,
.item4:hover,
.item5:hover,
.item6:hover,
.item7:hover,
.item8:hover {
    transform: scale(1.08);
}

h5 {
    font-size: 20px !important;
    font-weight: 600 !important;
}

.item1 {
    display: flex;
    flex-direction: column;
    align-items: center;


    h6 {
        margin: 10px 0;
        font-weight: 800;
        color: white;
    }

    .annonce {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        width: 250px;
        text-align: start;
        color: white;
    }

    .editeur {
        font-size: 12px;
        font-weight: 600;
    }

    .text_annonce {
        margin: 20px 0;
        height: 230px;
        font-size: 14px;
        font-family: "Open Sans", serif;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .date {
        text-align: end;
        font-size: 15px;
    }
}


.item2 {
    text-align: center;

    h5 {
        line-height: 35px !important;
    }

}

.item3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: space-between;
    background-image: url('/images/imageCommunaute.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f3992e;
    border-radius: 15px;
    transition: transform 0.3s ease;

    .communaute {
        padding-bottom: 20px;

        .button {

            padding: 10px 20px;
            width: 100px;
            height: 40px;
            border: 2px solid white;
            border-radius: 10px;
            background-color: transparent;
            color: white;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            font-family: "Open Sans", serif;
            text-decoration: none;
        }

        .button:hover {
            background-color: white;
            color: #f3992e;
        }
    }
}

.item4 {
    .conference {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 10px;
        }

        .pagination a {
            text-decoration: none;
            padding: 5px 10px;
            border-radius: 5px;
            background-color: #007bff;
            color: white;
            font-weight: bold;
            margin: 0 5px;
            transition: 0.3s;
        }

        .pagination a:hover {
            background-color: #0056b3;
        }


    }

    table,
    th,
    td {
        width: 100%;
        border: 0.5px solid black;
        table-layout: fixed;
    }

    table {
        border-collapse: collapse;
        margin: 10px 0;
    }

    th {
        background-color: #08058b;
        color: #ffffff;
        font-size: 12px;
    }

    td {
        font-size: 12px !important;
    }

    td a {
        padding: 5px;
        color: white !important;
        background-color: transparent;
        border: none;
        /* border-radius: 5px; */
        cursor: pointer;
        font-family: "Open Sans", serif;
        text-decoration: none;
    }

    td a:hover {
        font-weight: 700;
        ;
    }

}

.item5 {

    display: flex;
    justify-content: center;
    align-items: center;

    h6 {
        font-size: 17px;
    }

    iframe {
        margin: 20px 0;
    }
}

.item6 {

    .conseil {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    h5 {
        margin-top: 10px;
        font-size: 22px !important;
    }

    iframe {
        margin: 20px 0;
    }
}

.item7 {
    display: flex;
    justify-content: center;
    align-items: center;

    h6 {
        font-size: 17px;
    }

    iframe {
        margin: 20px 0;
    }
}

.item8 {

    .lien {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    a {
        width: auto;
        margin: 10px 0;
        text-decoration: none;
        color: white;
        font-size: 15px;
    }

    a:hover {
        font-weight: 700;
    }

    .pagination {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}


@media screen and (max-width: 1300px) {
    .grid-container {
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(4, max-content);
        gap: 0;
        min-height: 100%;
        overflow-y: scroll;
    }

    .border-color {
        border: 2px solid #ffffff;
    }

    .item1,
    .item2,
    .item3,
    .item4,
    .item5,
    .item6,
    .item7,
    .item8 {
        transition: none;
    }

    .item1:hover,
    .item2:hover,
    .item3:hover,
    .item4:hover,
    .item5:hover,
    .item6:hover,
    .item7:hover,
    .item8:hover {
        transform: none;
    }

    .item4 .conference th {
        font-size: 11px;
    }

    .item4 .conference td {
        font-size: 10px;
    }

    iframe {
        height: 250px;
    }
}


@media screen and (max-width: 992px) {
    .grid-container {
        grid-template-columns: 100%;
        grid-template-rows: repeat(8, max-content);
        overflow-y: hidden;
    }

    .item4 .conference th {
        font-size: 12px;
    }

    .item4 .conference td {
        font-size: 13px;
    }

    .item3 h5 {
        margin-bottom: 20px;
        color: black;
    }

    .item3 .communaute .button {
        background-color: white;
        color: #f3992e;
    }
}