/* Form groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Form actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btnf {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btnf-primary {
    background-color: #007BFF;
    color: white;
}

.btnf-secondary {
    background-color: #6c757d;
    color: white;
}

.btnf:hover {
    opacity: 0.9;
}

.form-wrapper {
    max-width: 500px;
    margin: 2rem auto;
    /* Centre le contenu avec un espace autour */
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    /* Coins arrondis pour un effet moderne */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style pour la zone de dépose */
.drop-zone {
    border: 2px dashed #A22A2A;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone.dragover {
    border-color: #A22A2A;
    background-color: #f8f9fa;
}

.drop-zone-content {
    color: #666;
}

/* Style pour les aperçus */
.photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-card button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(162, 42, 42, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-card button:hover {
    background: #822222;
    transform: scale(1.1);
}

/* Style pour les boutons de suppression */
.btn-delete-preview {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete-preview:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Style pour les photos */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.end-0 {
    right: 0;
}

.m-2 {
    margin: 0.5rem;
}

.p-0 {
    padding: 0;
}

.rounded-circle {
    border-radius: 50%;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Style pour les photos existantes */
.existing-photos {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.existing-photos h6 {
    margin-bottom: 1.5rem;
}

.existing-photos .row {
    gap: 1rem;
}

.existing-photos .col-md-3 {
    position: relative;
}

.existing-photos img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .drop-zone {
        padding: 1.5rem;
    }
}