/*MODE PORTABLE*/
@media screen and (max-width: 480px) {
    * {
        overflow-x: hidden;
    }
    h2 {
        margin-top: 6rem;
        margin-bottom: 2rem;
        text-align: center;
        font-size: 6vw;
    }
    #nav {
        display: none;
    }
    .coolvetica {
        font-size : 4.167vw;
    }
    body>h1 {
        padding-top: 10rem;
        padding-bottom: 7rem;
        font-size: 11vw;
    }
    /*header*/
    header h1 {
        font-size: 20vw;
        text-align: center;
    }
    header p {
        font-size: 13vw;
        text-align: center;
    }
    header {
        height: 65vh;
    }

    /*section qui suis-je*/
    #moi {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
    }
    #moi>div:first-child {
        max-width: 35rem;
        margin: auto;
    }
    #moi>div:nth-child(2) {
        display: none;
    }
    #moi>div:nth-child(3) {
        margin-top: 5rem;
    }

    /*competences*/
    #competence {
        flex-direction: column;
        align-items: center;
    }
    #competence h2 {
        margin-bottom: 2rem;
    }
    .comp {
        max-width : 83.333vw;
        max-height: 88.4vw;
    }
    .taille {
        max-width: 14.583vw;
        height: auto;
    }
    #un>img:nth-child(2) {
        max-width: 12.917vw;
        height: auto;
    }
    #un>img:nth-child(3) {
        max-width: 12.917vw;
        height: auto;
    }
    #un>img:nth-child(4) {
        max-width: 18.75vw;
        height: auto;
    }
    #competence p {
        margin-top: 2rem;
    }

    /*creation*/
    #creation {
        display: none;
    }
    #creationPort {
        display: block;
    }
    .carousel-container 
    {
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        overflow-x: scroll;
        width: 100%;
        white-space: nowrap;
        margin-top: 0.7rem;
    }
    .carousel-image 
    {
        scroll-snap-align: center;
        display: inline-block;
        height: 100%;
        width: 100%;
        position: relative;
        text-align: center;
        transition: transform 0.3s ease-in-out;
    }
    .vertical
    {
        width: 60%;
        height: auto;
        border-radius: 2rem;
    }
    .m {
        width: 40%;
    }
    .horizontal
    {
        width: 90%;
        border-radius: 2rem;
    }
    #creationPort p {
        margin-top: 1.5rem;
    }
    .overlays {
        display: none;
        position: fixed;
        z-index: 999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
        justify-content: center;
        align-items: center;
      }
      /* Style de l'image agrandie */
      .expanded-img {
        max-width: 90%;
        max-height: 90%;
      }
      
      /* Style de la croix pour fermer */
      .close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 2rem;
        cursor: pointer;
      }


      /*contact*/
    #contact {
        display: block;
    }
    #contact>div:nth-child(2) {
        display: none;
    }
    /*coordonnés*/
    #contact>div:first-child {
        width: 90%;
    }
    #contact img {
        width: 20vw;
        margin-bottom: 2rem;
    }
    .contCoord {
        flex-direction: column;
    }
    #contact>div:first-child p {
        font-size: 6.25vw;
    }
    .coolveticaInput {
        width: 62.5vw;
        font-size:3.333vw ;
    }
    #contact form>div>div input {
        width: 20.833vw;
    }
    /*formulaire*/
    footer img {
        width: 8.333vw;
    }
    footer a {
        font-size: 3.8vw;
    }
    footer nav {
        width: 100%;
    }
    footer>div a {
        font-size: 3.333vw;
    }
    footer p {
        font-size: 3.125vw;
    }




/* Styles du bouton burger */
.menu-icon {
    display: flex;
    margin-left: 1rem;
    margin-top: 1rem;
    position: fixed;
    z-index: 999;
}

.navbar {
    background-color: #4d0085;
    position: fixed;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1s ease-in-out;
    transform: translateX(-100%);
    display: flex;
    z-index: 998;
}
.navbar.active {
    transform: translateX(0);
}
.navbar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
}
.navbar img {
    width: 15vw;
}
.navbar a {
    text-decoration: none;
    color: #fff;
    font-size: 4rem;
}
.menu-icon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.bar {
    width: 4.7rem;
    height: 0.7rem;
    background-color: #ffffff;
    margin: 0.3rem 0;
}
}