.card-container {
    width: 100%;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.card {
    width: 300px;
    height: 350px;
    margin: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    align-items: start;
    justify-content: space-between;
    border-radius: 20px;
}

.card h3 {
    margin: 10px 10px 0 10px;
    padding: 5px 10px;
}

.card h6 {
    margin: 0 10px 0 10px;
    padding: 5px 10px;
    font-weight: 500;
    font-size: 14px;
    font-style: italic;
}

.card .description {
    font-size: 14px;
    color: #333;
    margin: 10px 10px 0 10px;
    padding: 5px 10px;
    font-style: italic;
    text-align: left;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 150px;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.links {
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.links .link-group {

}

.links a {
    text-decoration: none;
    color: #B8B8B8;
    margin: 10px;
    font-size: 24px;
    position: relative;
}

.links .voir-plus {
    text-align: right;
    font-size: 16px;
    background-color: #B8B8B8;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
}

.links .voir-plus:hover {
    background-color: black;
    color: white;
}

.links a:hover {
    color: #6C6C6C;
}

.links a:hover::after{
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    white-space: nowrap;
    z-index: 1;
}

@media screen and (max-width: 600px) {
    .card {
        width: 100%; /* Les cartes prendront toute la largeur sur les petits écrans */
        height: auto; /* Hauteur automatique pour éviter les problèmes de débordement */
    }
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 25px;
    border: 1px solid #888;
    width: 30%; 
    border-radius: 20px;
}

@media (max-width: 600px) {
    .modal-content {
        width: 80%; /* Largeur augmentée pour les petits écrans */
    }
}

.modal-content form {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

.modal-content form input::placeholder {
    font-size: 16px;
    color: #999;
}

.modal-content form input {
    font-size: 16px;
}

.modal-content form button {
    cursor: pointer;
    font-size: 16px;
}

.modal-content form input,
.modal-content form button {
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid black;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.chips {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    width: 100%;
    flex-wrap: wrap;
}

.chip {
    background-color: white;
    border: 3px solid black;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
}

.chip:hover, .chip-selected {
    background-color: #ddd;
    color: black;
}

.chip-logo {
    display: flex;
    align-items: center;
    gap: 7px;
}

.alertMessage {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    padding-left: 25px;
    padding-right: 25px;
}