.banner_page {
    background-image: url("../images/acteurs.jpg");
}
.nav {
    background-color: white;
}
.nav ul {
    background-color: white;
}
a {
    color: black;
}
.main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Espace entre les cartes */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.card {
    width: 22%; /* Largeur pour afficher 4 éléments par ligne */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: #5fc33800 0px 0px 0px 0px, #5fc33800 0px 0px 0px 0px, #5fc33844 0px 4px 6px -1px, #5fc33846 0px 2px 4px -1px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
}

/* Assurer que les images sont bien placées */
.card-image img {
    width: 100%;
    height: auto;
}

/* Contenu de la carte */
.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: green;
}

.card-content p {
    font-size: 14px;
    color: #555;
}

/* Footer de la carte */
.card-footer {
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
}

.btn-poursuivre {
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    color: #fff;
    background-color: #004aad;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 10px;
    transition: all 0.2s ease-out;
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
}

.btn-poursuivre i {
    margin-left: 5px;
    transition: transform 0.5s ease;
}

.btn-poursuivre:hover i {
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 1200px) {
    .card {
        width: 30%; /* 3 cartes par ligne sur des écrans moyens */
    }
}

@media (max-width: 992px) {
    .card {
        width: 45%; /* 2 cartes par ligne sur des écrans plus petits */
    }
}

@media (max-width: 768px) {
    .card {
        width: 90%; /* 1 carte par ligne sur mobile */
    }
}
