/* Styles responsives pour Complexe Scolaire LA ROCHELLE - Inspiré par iambamako.com */

/* Grand écran (1200px et moins) */
@media screen and (max-width: 1200px) {
    .categories-grid {
        max-width: 95%;
    }

    .about-grid,
    .contact-grid {
        gap: 2rem;
    }

    .feature-cards,
    .levels-grid {
        gap: 1.8rem;
    }

    .hero-carousel {
        height: 550px;
    }

    .slide-content h1 {
        font-size: 2.8rem;
    }
}

/* Tablette (992px et moins) */
@media screen and (max-width: 992px) {
    html, body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-carousel {
        height: 500px;
    }

    .slide-content h1 {
        font-size: 2.6rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .banner strong {
        font-size: 2.8rem;
    }

    /* Grids */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-image img {
        height: 400px;
    }

    .about-content {
        padding-right: 0;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .buttons-container {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ajustements spécifiques */
    .about-content {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 1rem;
    }

    .about-content h2,
    .about-content h2:after {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .buttons-container {
        justify-content: center;
    }

    .contact-info {
        order: 1;
        margin-bottom: 2rem;
    }

    .contact-form {
        order: 2;
    }
}

/* Tablette (768px et moins) */
@media screen and (max-width: 768px) {
    /* Ajustements des sections */
    section {
        padding: 4rem 0;
    }

    .hero-carousel {
        height: 450px;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-nav {
        bottom: 20px;
    }

    .categories {
        margin-top: -30px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }

    .levels-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .level-card {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .banner {
        padding: 4rem 0;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form .btn-primary {
        width: 100%;
    }

    .about {
        padding: 5rem 0;
    }

    .about-image img {
        height: 350px;
    }
}

/* Mobile (576px et moins) */
@media screen and (max-width: 576px) {
    html, body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero-carousel {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    .carousel-nav {
        bottom: 15px;
        gap: 8px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .categories {
        margin-top: -20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card,
    .level-card {
        padding: 1.5rem;
    }

    .level-icon {
        width: 70px;
        height: 70px;
    }

    .level-icon i {
        font-size: 2rem;
    }

    .contact-grid {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links h3:after,
    .footer-social h3:after,
    .footer-contact h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social .social-links,
    .footer-contact p {
        justify-content: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }

    .about-image img {
        height: 300px;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }
}

/* Mobile petit écran (375px et moins) */
@media screen and (max-width: 375px) {
    .hero-carousel {
        height: 350px;
    }

    .slide-content {
        padding: 0 15px;
    }

    .slide-content h1 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    .carousel-arrow {
        display: none;
    }

    .btn-primary,
    .btn-outline {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .feature-card,
    .level-card,
    .activity-card {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}
