@media screen and (max-width: 1400px) {


    .headerdiv {
        a {
            img {
                width: 25% !important;
            }
        }
    }

    .headerdiv2 {
        a {
            display: none;
        }
        }
          
        .button {
            display: flex;
            justify-content: center;
        }
        
        button.projet {
            width: 75%;
        }
    
        .tanguysourain {
            font-size: 40px !important;
            margin-top: 70px !important;
        }
    
        h2 {
            font-size: 20px !important;
        }
        
        .mobile-menu {
            width: 250px;
    
            .mobile-menu-social {
            
                img {
                    object-fit: contain;
                    width: 50px !important;
                }
            }
        }
    
        .hamburger {
            position: relative;
            width: 40px;
            height: 40px;
            cursor: pointer;
            padding: 5px;
            z-index: 1001;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    
        .hamburger .menu-icon, .hamburger .close-icon {
            width: 30px;
            height: 30px;
            transition: all 0.3s ease-in-out;
            position: absolute;
            top: 50%;
        
            transform: translate(-50%, -50%);
        }
    
        /* Icône de menu visible par défaut */
        .hamburger .menu-icon {
            opacity: 1;
            visibility: visible;
        }
    
        /* Icône de fermeture cachée par défaut */
        .hamburger .close-icon {
            opacity: 0;
            visibility: hidden;
        }
    
        /* Quand le menu est actif */
        .hamburger.active .menu-icon {
            opacity: 0;
            visibility: hidden;
            transform: translate(-50%, -50%) rotate(180deg);
        }
    
        .hamburger.active .close-icon {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) rotate(0deg);
        }
    
        .part {
            margin: 0;
            margin-top: 20px;
          
            p {
                font-size: 13px;
                text-align: left;
                width: 50%;
            }

            img {
                width: 40%;
                height: 600%;
                object-fit: cover; 
            }
        }

        .part2 {
            margin: 0;
            margin-top: 30px;
            
            p {
                font-size: 13px;
                text-align: left;
                width: 50%;
            }

            img {
                width: 40%;
                
            }
        }   

        h3 {
            margin-top: 10%;
            font-size: 100%;
        }

        .skills {
            margin-bottom: 14%;
            img {
                width: 10%;
            }
        }

        footer {
            display: flex;
            flex-direction: column;
            justify-content: center;
            div {
                text-align: center; /* Centre les éléments inline comme les liens */
            }
            p {
                font-size: 15px;
                text-align: center;
            }
        }

        .gridcontainer .griditem {
            display: none;
        }

        .container1 {
            display: flex;
            flex-direction: column;
           
            p {
                color: white;
                font-family: 'Montserrat';
                width: 90%;
                text-align: justify;
                margin-top: 20px;
                margin: auto;
                
            }
        
            img {
                width: 100%;
            }
        }
        
        .container2 {
            display: flex;
            flex-direction: column;
            text-align: right;
            justify-content: flex-start; /* Changé de center à flex-end */
            gap: 20px;
            margin-top: 10%;
            p {
                color: white;
                font-family: 'Montserrat';
                width: 90%;
                text-align: justify;
                margin-top: 15px;
                margin: auto;
            }
        
            img {
                width: 100%;
            }
        }

    }
    
    