/* Styles personnalisés pour La Barrique des Siècles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom styles for form elements */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Plateau selection interactivity */
.plateau-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.plateau-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plateau-option.selected {
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

/* Video styling */
video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .text-4xl.lg\:text-6xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .aspect-square {
        aspect-ratio: 4/3;
    }
}

/* Button hover effects */
.bg-amber-700:hover {
    background-color: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(12deg); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Glassmorphism effect */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Custom gradient backgrounds */
.bg-gradient-custom {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

/* Form validation styles */
.error-field {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
}

.success-field {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d97706;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Image hover effects */
.group:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Testimonial cards enhancement */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Stats counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Process steps connector */
.process-connector {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
    height: 2px;
}

/* Mobile menu animation */
.mobile-menu-enter {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu-enter-active {
    max-height: 300px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b45309;
}

/* Animation classes */
.animate-fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card, .process-step, .value-card {
    opacity: 0;
    transform: translateY(20px);
}

img {
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Form specific styles */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: #d97706;
    ring-color: #d97706;
}

/* Success message animation */
#success-message {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced button interactions */
button:active,
a:active {
    transform: translateY(1px);
}

/* Header backdrop blur enhancement */
header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .padding-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Improved contrast for accessibility */
.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

/* Enhanced focus states for better accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}