/* Général */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Styles des boutons */
button, .btn {
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: red;
    border: none;
}

.btn-danger:hover {
    background-color: darkred;
}

/* Bouton de suppression multiple */
.delete-selected-btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Image Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

/* Miniatures */
.thumbnail {
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* Checkbox et bouton de suppression */
.image-checkbox, .delete-btn {
    position: absolute;
    z-index: 10;
    transition: transform 0.2s ease-in-out;
}

.image-checkbox {
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
}

.delete-btn {
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    font-size: 14px;
    border-radius: 50%;
}

.image-wrapper:hover .image-checkbox,
.image-wrapper:hover .delete-btn {
    transform: scale(1.1);
}

/* Fenêtre modale */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 5px;
}

.close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.close {
    top: 10px; right: 10px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.fixed-bottom {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.btn-outline-danger {
    border: 2px solid red;
    transition: all 0.2s ease-in-out;
}

.btn-outline-danger:hover {
    background-color: red;
    color: white;
}
