/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.devis-container .bg-white {
    animation: fadeIn 0.6s ease-out;
}

/* Form input focus states */
.devis-container input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Button hover effects */
.devis-container button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.devis-container button:active:not(:disabled) {
    transform: translateY(0);
}

/* Cart item hover effect */
.devis-container .bg-white.rounded-lg.p-4:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Error state animations */
.devis-container .border-red-500 {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Success/Error message animations */
.devis-container [x-show] {
    transition: all 0.3s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .devis-container {
        padding: 1rem;
    }
    
    .devis-container .grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .devis-container .text-3xl {
        font-size: 1.875rem;
    }
}

/* Print styles */
@media print {
    .devis-container button,
    .devis-container form {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .devis-container .bg-gray-50 {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
    }
    
    .devis-container .text-gray-600 {
        color: #495057;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .devis-container * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
