/**
 * Composants réutilisables - Boîtes d'information et conteneurs
 */

/* Boîtes colorées pour différentes catégories d'informations */
.info-box {
    border-left: 5px solid #3b82f6;
    background-color: #eff6ff;
}

.success-box {
    border-left: 5px solid #10b981;
    background-color: #ecfdf5;
}

.warning-box {
    border-left: 5px solid #f59e0b;
    background-color: #fffbeb;
}

.error-box {
    border-left: 5px solid #ef4444;
    background-color: #fee2e2;
}

/**
 * Composants pour les cartes de tarifs
 */
.pricing-card {
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* Badge populaire pour la carte mise en avant */
.popular-badge {
    display: inline-block;
    letter-spacing: 0.5px;
}

/* Style pour les éléments de fonctionnalité dans les cartes de tarifs */
.feature-item {
    display: flex;
    align-items: center;
    color: #374151;
}

/**
 * Menu déroulant utilisateur amélioré
 */
#userDropdownMenu {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#userDropdownMenu.show {
    transform: scale(1);
    opacity: 1;
}

#userDropdownMenu a {
    position: relative;
    transition: all 0.15s ease-in-out;
}

#userDropdownMenu a:hover {
    transform: translateX(2px);
}

#userDropdownMenu a:focus {
    outline: none;
    background-color: #dbeafe;
    color: #1e40af;
}

#userDropdownMenu a:focus i {
    color: #2563eb;
}

/* Animation pour la flèche du menu utilisateur */
#userMenuChevron {
    transition: transform 0.2s ease-in-out;
}

/* Amélioration responsive du menu utilisateur */
@media (max-width: 640px) {
    #userDropdownMenu {
        right: -1rem;
        width: 14rem;
    }
    
    .max-w-40 {
        max-width: 8rem;
    }
}

/* États de focus améliorés pour l'accessibilité */
#userMenuButton:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #f3f4f6;
}

/* Animation de pulse subtile pour attirer l'attention */
@keyframes subtle-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.user-menu-highlight {
    animation: subtle-pulse 2s ease-in-out infinite;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.popular-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.feature-item {
    position: relative;
    padding-left: 1.75rem;
}

.feature-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* Animations pour l'upload de fichiers */
.upload-progress-enhanced {
    transition: all 0.3s ease;
}

.upload-success-animation {
    animation: uploadSuccess 0.6s ease-out;
}

@keyframes uploadSuccess {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.file-icon-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone-success {
    animation: dropzoneSuccess 0.8s ease-out;
}

@keyframes dropzoneSuccess {
    0% {
        border-color: #3b82f6;
        background-color: rgba(59, 130, 246, 0.1);
    }
    50% {
        border-color: #10b981;
        background-color: rgba(16, 185, 129, 0.2);
        transform: scale(1.02);
    }
    100% {
        border-color: #10b981;
        background-color: rgba(16, 185, 129, 0.1);
        transform: scale(1);
    }
}

.upload-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-bar-gradient {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    background-size: 200% 100%;
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.server-ready-indicator {
    animation: serverReady 0.5s ease-out;
}

@keyframes serverReady {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
