/* ==========================================================================
   AUTO-ÉCOLE AWORA - STYLES OPTIMISÉS
   ========================================================================== */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
#navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#navbar.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.nav-link.active {
    color: #60a5fa;
    background-color: #1f2937;
}

/* Mobile Menu Animations */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Styles */
.carousel-item {
    transition: opacity 700ms ease-in-out;
}

.carousel-indicator {
    transition: all 300ms ease;
}

.carousel-indicator:hover {
    transform: scale(1.3);
}

#prevBtn:hover,
#nextBtn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Gallery Styles */
.gallery-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-content.hidden {
    opacity: 0;
    pointer-events: none;
}

.tab-btn {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
.group:hover img {
    transform: scale(1.05);
}

.group img {
    transition: transform 0.5s ease;
}

/* Card Hover Effects */
.group:hover {
    transform: translateY(-8px);
}

.group {
    transition: all 0.5s ease;
}

/* Button Animations */
button:active {
    transform: scale(0.98);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-\[1\.02\]:hover {
    transform: scale(1.02);
}

/* Form Styles */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Contact Card Border Animation */
.hover\:border-blue-300:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Shadow Enhancements */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Scroll Indicator Animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Backgrounds */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.bg-gradient-to-tr {
    background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .carousel-item {
        padding: 1rem;
    }

    #prevBtn, #nextBtn {
        width: 40px;
        height: 40px;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    footer {
        display: none;
    }
}
