/* ... vos styles existants ... */

/* Styles pour les boutons d'action (Ajoutez-les à la fin de ce fichier) */
.action-button {
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.edit-button {
    background-color: #ffc107; /* Jaune/Orange */
}

.edit-button:hover {
    background-color: #e0a800;
}

.delete-button {
    background-color: #dc3545; /* Rouge */
}

.delete-button:hover {
    background-color: #c82333;
}
.article-card img {
    width: 100%;             /* L'image prend toute la largeur de la carte */
    height: 400px;           /* Nous fixons une hauteur de 200 pixels */
    object-fit: cover;       /* L'image remplit cet espace sans être déformée */
    background-color: #f0f0f0; /* Une couleur de fond pendant le chargement */
}
/* =============================================== */
/* == STYLES POUR LA MODALE D'AFFICHAGE D'IMAGE == */
/* =============================================== */

.modal {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place même si on scrolle */
    z-index: 1000; /* Se place par-dessus tout le reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permet de scroller si l'image est immense */
    background-color: rgba(0,0,0,0.9); /* Fond noir semi-transparent */

    /* Centrage de l'image */
    
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

/* Le bouton pour fermer (la croix '×') */
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
}