/* Responsive Design */

/* Tablettes */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .title-sub {
        font-size: 2.5rem;
    }
    
    .programs-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-header {
        flex-direction: column;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Mobiles */
@media screen and (max-width: 768px) {
    /* Navigation mobile */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero mobile */
    .hero {
        height: 100vh;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Sections mobile */
    .about,
    .programs,
    .videos,
    .partners {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-header {
        margin-bottom: 2rem;
    }
    
    .about-title h2 {
        font-size: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .programs-features {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Petits mobiles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-title h2 {
        font-size: 1.3rem;
    }
    
    .about-card,
    .video-item {
        margin: 0 10px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logo {
        max-width: 100px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Landscape mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f4f4f4;
        --accent-color: #2a2a2a;
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-link {
        color: var(--text-color);
    }
    
    .about {
        background: var(--secondary-color);
    }
    
    .about-card,
    .video-item {
        background: var(--accent-color);
        color: var(--text-color);
    }
    
    .feature-item,
    .stat-item,
    .partner-item {
        background: var(--accent-color);
    }
    
    .videos {
        background: var(--secondary-color);
    }
    
    .partners-cta {
        background: var(--accent-color);
        color: var(--text-color);
    }
}

/* Impression */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .videos,
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
    
    .about,
    .programs,
    .partners {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
    }
}