@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@font-face {
    font-family: 'ubuntu';
    src: url('fonts/Ubuntu/Ubuntu-Light.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

/* Section des événements */
.home_event{
    font-family: 'ubuntu', "Times New Roman", Times, serif;
    color: rgb(25, 219, 253);
    font-weight: bold;
    font-size: 300%;
    margin-bottom: 50px;
}


.events-section {
    text-align: center;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Grille des cartes */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 20px;
    margin-top: 20px;

    display: flex;
    /* grid-template-columns: repeat(3, 1fr); */
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Style de la carte d'événement */
.event-card {
    background-color: white;
    border-radius: 0px 0px 20px 20px;
    box-shadow: 1px 1px 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
    text-align: left;
    padding-bottom: 15px;
    max-width: 300px;
    min-width: 200px;
    width: fit-content;
    margin: 5px 15px;
    
}

.event_img {
    width: 100%;
    height: auto;
}

.event_option_img{
    width: 30px;
    height: auto;
}

.div_option{
    width: fit-content;
    display: block;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.event-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.event-card p {
    font-size: 14px;
    line-height: 1.4em;
    text-align: justify;
    margin-top: 10px;
}

.event-card a {
    display: inline-block;
    margin-top: 10px;
    color: #1583D6;;
    text-decoration: none;
    font-family: 'ubuntu', "Times New Roman", Times, serif;
}

.event-card a:hover {
    text-decoration: underline;
}

/* Hover sur la carte */
.event-card:hover {
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    padding: 3px 10px;
    margin: 0 5px;
    background-color: #f1f1f1;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-family: 'ubuntu', "Times New Roman", Times, serif;
}

.pagination a:hover {
    background-color: #0e44f5;
    color: white;
}

.pagination span {
    cursor: default;
    background-color: #f1f1f1;
    color: #999;
}



/* Petits écrans (jusqu'à 480px) */
@media (max-width: 480px) {

    /* Style de la carte d'événement */
    .event-card {
        
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        
    }

}

@media (min-width: 821px) {
    /* Style de la carte d'événement */
    .event-card {
        
        max-width: 400px;
        min-width: 300px;
        width: min-content;
        
    }

}