/* Styles additionnels - Mariage Julie & Julien */

/* Loading state boutons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Champs conditionnels animation */
.form-group[style*="display:none"] {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.form-group.slide-down {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        margin-bottom: 1.5rem;
    }
}

/* Drag & drop hover */
.photos-upload-area.dragover {
    border-color: var(--sage-dark);
    background: rgba(156, 175, 136, 0.1);
    transform: scale(1.01);
}

/* Gallery video */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* File preview thumbnails */
.file-previews {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.file-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--sage-light);
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview .file-type-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.6rem;
    text-align: center;
    padding: 2px;
    text-transform: uppercase;
}
