/* Animations personnalisées pour les notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Styles pour les notifications */
.notification {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #F9C349, #e6b041) !important;
    color: #1e1810 !important;
    border-color: #1e1810;
}

.notification-error {
    background: linear-gradient(135deg, #8B2635, #7A1F2B) !important;
    color: #F8F7F3 !important;
    border-color: #F9C349;
}

/* Effet de survol amélioré pour les boutons */
.btn-ecolux {
    background: linear-gradient(135deg, #F9C349, #e6b041);
    color: #1e1810;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(249, 195, 73, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-ecolux:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 195, 73, 0.4);
}

.btn-ecolux:active {
    transform: translateY(0);
}

.btn-ecolux:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-ecolux::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-ecolux:hover::before {
    left: 100%;
}

/* Styles pour le modal amélioré */
.modal-backdrop {
    background: rgba(30, 24, 16, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #F8F7F3, rgba(249, 195, 73, 0.1));
    border: 3px solid #F9C349;
    box-shadow: 0 20px 40px rgba(30, 24, 16, 0.3);
}

/* Animation de chargement personnalisée */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #F8F7F3;
    border-top: 2px solid #F9C349;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour les cartes de résultats améliorées */
.result-card {
    background: linear-gradient(135deg, rgba(248, 247, 243, 0.95), rgba(249, 195, 73, 0.1));
    border: 2px solid #F9C349;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 195, 73, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover::before {
    opacity: 1;
}

.result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 24, 16, 0.2);
    border-color: #1e1810;
}

/* Effet de pulsation pour les montants */
.pulse-amount {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Styles pour les formulaires améliorés */
.form-input-ecolux {
    background: #F8F7F3;
    border: 2px solid #F9C349;
    border-radius: 12px;
    padding: 12px 16px;
    color: #1e1810;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input-ecolux:focus {
    outline: none;
    border-color: #1e1810;
    box-shadow: 0 0 0 3px rgba(249, 195, 73, 0.2);
    background: #ffffff;
}

.form-input-ecolux:hover {
    border-color: #e6b041;
}

/* Indicateur de statut */
.status-indicator {
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-completed {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.status-quote-requested {
    background: linear-gradient(135deg, #F9C349, #e6b041);
    color: #1e1810;
}

.status-processing {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Styles pour les tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1810;
    color: #F8F7F3;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    border: 1px solid #F9C349;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 117%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e1810;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
}

/* Styles pour l'indicateur de calcul automatique */
.auto-calc-badge {
    background: linear-gradient(135deg, #F9C349, #e6b041);
    color: #1e1810;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    border: 2px solid #1e1810;
    box-shadow: 0 4px 15px rgba(249, 195, 73, 0.3);
}

/* Animation de balancement pour les icônes */
@keyframes sway {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.sway-animation {
    animation: sway 3s ease-in-out infinite;
    transform-origin: center top;
}

/* Styles pour les alertes personnalisées */
.alert-ecolux {
    background: linear-gradient(135deg, rgba(249, 195, 73, 0.1), rgba(248, 247, 243, 0.9));
    border-left: 5px solid #F9C349;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 8px;
    color: #1e1810;
}

.alert-warning {
    border-left-color: #e6b041;
    background: linear-gradient(135deg, rgba(230, 176, 65, 0.1), rgba(248, 247, 243, 0.9));
}

.alert-success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(248, 247, 243, 0.9));
}

/* Effet de survol pour les liens */
.link-ecolux {
    color: #F9C349;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.link-ecolux::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #F9C349;
    transition: width 0.3s ease;
}

.link-ecolux:hover {
    color: #1e1810;
}

.link-ecolux:hover::after {
    width: 100%;
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .result-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .btn-ecolux {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .form-input-ecolux {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        width: auto;
    }
}
