/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* TABLETS (1200px and below) */
@media (max-width: 1200px) {
    .univers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* TABLETS (992px and below) */
@media (max-width: 992px) {
    .univers-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .decorative-heart {
        max-width: 150px;
    }

    .univers-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


    .dynamic-section .section-content {
        flex-direction: column;
    }

    .section-left,
    .section-right {
        flex: 0 0 100%;
    }
}

/* TABLETS (768px and below) */
@media (max-width: 768px) {

    .decorative-heart {
        max-width: 150px;
    }
    .navbar {
        padding: 0.75rem 0;
    }

    .section-org {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 20px;
        gap: 10px;
    }


    .univers-card-content {
        width: 100%;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #b9b3aceb;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links li {
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem var(--spacing-unit);
        border-bottom: 1px solid #eee;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .univers-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .carousel-wrapper iframe {
        height: 300px;
    }

    .contact-form {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .btn-discover {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .reassurance {
        flex-direction: column;
    }
}

/* MOBILES (480px and below) */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .hero {
        height: 100vh;
    }

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

    .hero p {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }

    .carousel-img {
        max-height: 300px;
    }

    .contact-form {
        margin: 1.5rem 0.5rem;
        padding: 1rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .dynamic-section {
        padding: 2rem var(--spacing-unit);
        width: 100%;
        padding-bottom: 18rem;
    }
}

@media (max-width: 992px) {
    .univers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dynamic-section .section-content {
        flex-direction: column;
    }

    .section-left,
    .section-right {
        flex: 0 0 100%;
    }

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

    .contact-map-wrapper {
        order: 2;
    }

    .contact-content {
        order: 1;
    }
}

@media (max-width: 768px) {

    .nav-container {
        padding: 0 25px;
    }

    .img-section {
        max-width: 100%;
    }

    .dynamic-section {
        padding: 2rem var(--spacing-unit);
        width: 100%;
        padding-bottom: 18rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(245, 241, 237, 0.98);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links li {
        padding: 0;
    }

    .nav-links a {
        color: #87847f;
        display: block;
        padding: 1rem var(--spacing-unit);
        border-bottom: 1px solid #eee;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        height: 100vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .univers-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .carousel-wrapper iframe {
        height: 300px;
    }

    .contact-form {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .btn-discover {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .contact-wrapper {
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.6rem;
        font-size: 16px;
    }

    #contact {
        padding: 3rem 10px;
    }

    .carousel-img {
        img {
            max-width: 100%;
            max-height: 300px !important;
        }
    }
}
