/* Styles responsives pour le site AOTL Cyclisme */

/* Tablettes et petits écrans (max 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Tablettes et mobiles (max 968px) */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-wrapper {
        justify-content: flex-end;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        width: 100%;
        text-align: left;
    }
    
    nav ul li ul {
        position: static;
        display: none;
        background: #f3f4f6;
        box-shadow: none;
        padding: 0;
        margin-top: 5px;
    }
    
    nav ul li ul li a {
        padding-left: 40px;
    }
    
    nav ul li:hover > ul {
        display: none;
    }
    
    nav ul li.active > ul {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .auth-section {
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid #e5e7eb;
    }
    
    .login-btn {
        width: 100%;
        text-align: center;
    }
    
    .user-info {
        text-align: center;
    }
    
    .cart-link {
        justify-content: center;
        margin: 10px 0;
    }
}

/* Tablettes (max 768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-container {
        text-align: center;
    }
    
    .form-group {
        margin: 0 auto;
    }
    
    .event-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Petits écrans et mobiles (max 576px) */
@media (max-width: 576px) {
    .header-container {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .news-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .event-icon {
        margin: 0 auto;
    }
    
    .testimonial-content {
        padding: 20px 15px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-form .btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Très petits écrans (max 360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .event-details {
        font-size: 0.85rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-role {
        font-size: 0.8rem;
    }
}