/* === RESPONSIVE.CSS - Media queries sans doublons === */

/* Mobile - 768px et moins */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: -100vh;
        left: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: top 0.4s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        padding-top: 80px;
        height: 100vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        top: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        color: #333 !important;
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .dropdown .nav-link i {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        background: #f8fafc;
        box-shadow: none;
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        margin-top: 0.5rem;
        border-radius: 0;
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 500px;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero responsive */
    .hero {
        padding-top: 90px;
        min-height: 80vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-img {
        width: 380px;
        height: 285px;
    }
    
    /* Sections responsive */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .presentation-content,
    .cours-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .presentation-content,
    .cours-content {
        text-align: center;
    }
    
    .presentation-image,
    .cours-image {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }
    
    .presentation-img,
    .cours-img {
        margin: 0 auto;
        display: block;
        width: 320px;
        height: 240px;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .niveaux-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* YouTube responsive */
    .youtube-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .youtube-image {
        order: -1;
        display: flex;
        justify-content: center;
        flex: none;
    }
    
    .youtube-profile-img {
        width: 150px !important;
        height: 150px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        margin: 0 auto;
    }
    
    /* Video iframe responsive */
    .video-iframe-container {
        width: 100% !important;
        aspect-ratio: 16/9 !important;
        height: auto !important;
        max-width: 100vw !important;
    }
    
    .video-iframe-container iframe {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        min-height: 180px;
        max-width: 100vw !important;
        display: block;
    }
}

/* Mobile small - 480px et moins */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-img {
        width: 280px;
        height: 210px;
    }
    
    .cours-img,
    .presentation-img {
        width: 260px;
        height: 195px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .section-card {
        padding: 1rem;
    }
    
    .niveau-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Mobile extra small - 320px et moins */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 8px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
}

/* Tablet - 769px à 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .niveaux-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large desktop - 1400px et plus */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

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

/* Dark mode désactivé - Le site utilise uniquement le mode clair */

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .image-placeholder {
        border: 1px solid #ccc;
        background: #f9f9f9;
        color: #333;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .btn {
        border: 1px solid #333;
        background: white;
        color: #333;
    }
}