/* Pour très grands écrans */
@media screen and (min-width: 1600px) {
    body {
        max-width: 1600px; 
        margin: 0 auto; 
    }

    #profile {
        height: 90vh; 
    }

    .section-container, section {
        max-width: 1400px; 
        margin: 0 auto; 
    }

    .about-containers {
        justify-content: center; 
        gap: 2rem; 
    }

    #other_projects .projects-container {
        max-width: 300px; 
    }

    /* Optionnel : ajustement général du texte */
    article, .section__text__p2, .title {
        max-width: 1200px;
        margin: 0 auto;
    }
}


@media screen and (max-width: 1400px) {
    #profile {
        height: 83vh;
        margin-bottom: 6rem;
    }
    .about-containers {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
    }
    #experience, .experience-details-container {
        margin-top: 2rem;
    }
    #profile, .section-container {
        display: block;
    }
    .arrow {
        display: none;
    }
    section, .section-container {
        height: fit-content;
    }
    section {
        margin: 0 5%;
    }
    .section__pic-container {
        width: 275px;
        height: 275px;
        margin: 0 auto 2rem;
    }
    .about-containers {
        margin-top: 0;
    }
     .experience-slider {
    --width: 180px;
    --height: 130px;
    }
}

@media screen and (max-width: 600px) {
    #contact, footer {
        height: 40vh;
    }
    #profile {
        height: 83vh;
        margin-bottom: 0;
    }
    article {
        font-size: 1rem;
    }
    footer nav{
        height: fit-content;
        margin-bottom: 2rem;
    }
    .about-containers, .contact-info-upper-container, .btn-container {
        flex-wrap: wrap;
    }
    .about-containers {
        flex-direction: column;
    }
    .contact-info-container {
        margin: 0;
    }
    .contact-info-container p, .nav-links li a {
        font-size: 0.8rem;
    }
    .experience-sub-title {
        font-size: 1.25rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 0.1rem;
    }
    .section__pic-container {
        width: auto;
        height: 46vw;
        justify-content: center;
    }
    .section__text__p2 {
        font-size: 1.25rem;
    }
    .title {
        font-size: 2rem;
    }
    .text-container {
        text-align: justify;
    }
    #project-page {
        margin: 1rem;
    }
    /* Adjust project title */
    #project-page .project-title {
        font-size: 1.5rem;
    }

    /* Adjust project description text */
    #project-page .project-description {
        font-size: 1rem;
        max-width: 100%;
        margin: 0.5rem 0;
    }

    /* Adjust project images */
    #other_projects .project-img {
        max-width: 100%; /* Ensure all images are scaled correctly */
        height: auto;
        object-fit: cover; /* Maintain aspect ratio */
    }

    /* Ensure the text is responsive */
    .project-btn-container {
        flex-direction: column;
        gap: 1rem;
    }

    .project-steps {
        font-size: 1.6rem;
        text-align: center;
    }

    /* Adjust h3 for the project names */
    #other_projects h3 {
        font-size: 1rem;
        text-align: center;
        margin-top: 0.2rem;
    }

    /* Flex layout for the project containers */
    #other_projects .experience-details-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    #other_projects .projects-container {
        width: 100%;
        max-width: 250px; 
        text-align: center;
    }

    #other_projects .projects-container .article-container {
        display: flex;
        justify-content: center;
    }

    .experience-slider {
    --width: 100px;
    --height: 90px;
  }

  .experience-slider article {
    padding: 0.5rem;
    min-width: 120px;
  }
}
