/* Tablettes et petits écrans (jusqu'à 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    .navbar-brand img {
        max-width: 180px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .hero .carousel-caption {
        width: 80%;
        left: 10%;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .content-bouton-rond {
        gap: 1.5rem;
    }

    .round-button {
        min-width: 200px;
    }
}

/* Tablettes en mode portrait et grands mobiles (jusqu'à 768px) */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        max-width: 150px;
    }

    .navbar-toggler {
        margin-right: 15px;
    }

    .navbar-collapse {
        background: var(--navbar-bg);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero {
        height: 60vh;
    }

    .hero .carousel-item {
        height: 60vh;
    }

    .hero .carousel-caption {
        width: 90%;
        left: 5%;
        padding: 1.5rem;
    }

    .hero .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-us {
        padding: 3rem 0;
    }

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

    .about-image {
        margin-top: 2rem;
    }

    .content-bouton-rond {
        flex-direction: column;
        align-items: center;
    }

    .round-button {
        width: 100%;
        max-width: 250px;
        margin-bottom: 2rem;
    }

    .footer {
        text-align: center;
    }

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

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Mobiles (jusqu'à 480px) */
@media screen and (max-width: 480px) {
    .navbar-brand img {
        max-width: 120px;
    }

    .hero {
        height: 50vh;
    }

    .hero .carousel-item {
        height: 50vh;
    }

    .hero .carousel-caption {
        padding: 1rem;
    }

    .hero .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .para-activite {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .round-button-circle {
        width: 120px;
        height: 120px;
    }

    .footer h3 {
        font-size: 1.2rem;
    }
}

/* Très petits écrans (jusqu'à 320px) */
@media screen and (max-width: 320px) {
    .navbar-brand img {
        max-width: 100px;
    }

    .hero .carousel-caption h1 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .round-button-circle {
        width: 100px;
        height: 100px;
    }
}

/* Ajustements pour les hauteurs d'écran */
@media screen and (max-height: 600px) {
    .hero {
        height: 400px;
    }

    .hero .carousel-item {
        height: 400px;
    }
}

/* Ajustements pour l'orientation paysage sur mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero .carousel-item {
        height: 100vh;
    }

    .hero .carousel-caption {
        bottom: 20%;
    }
}