/* Style des cases à cocher */
.selection-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 50;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 1 !important;
    visibility: visible !important;
}

.selection-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
}

.selection-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Animation de clignotement pour attirer l'attention */
@keyframes blink {
    0% { background-color: #000000; }
    50% { background-color: #222222; }
    100% { background-color: #000000; }
}

/* Barre d'actions groupées */
.bulk-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: white;
    display: none; /* On utilise display au lieu de transform pour plus de fiabilité */
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    height: 70px;
    opacity: 1;
    border-top: 2px solid #444;
}

.bulk-actions.visible {
    display: flex !important;
}

.bulk-actions .count {
    margin-right: 20px;
    font-weight: bold;
}

.bulk-actions button {
    margin: 0 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 130px;
}

.bulk-actions button i {
    margin-right: 8px;
    font-size: 18px;
}

.bulk-actions .count {
    margin-right: 25px;
    font-weight: bold;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.bulk-actions .btn.primary {
    background-color: #4CAF50;
    border: none;
    color: white;
}

.bulk-actions .btn.danger {
    background-color: #f44336;
    border: none;
    color: white;
}

.bulk-actions .btn.secondary {
    background-color: #555;
    border: none;
    color: white;
}

/* Modal pour afficher les images en grand */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

/* Styles pour la sélection multiple */
.image-card {
    position: relative;
}

.image-card.selected {
    outline: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5);
}

.selection-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    height: 24px;
    width: 24px;
    cursor: pointer;
    opacity: 0.8;
}

.bulk-actions {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 90;
    align-items: center;
    gap: 15px;
}

.bulk-actions.visible {
    display: flex;
}

.bulk-actions .count {
    font-weight: bold;
    margin-right: 10px;
}
