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

    h2 {
        font-size: 24px !important;
        text-align: center;
        margin: 40px 0 !important;
    }
    
    .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);
        }
        
        .grid {
            display: flex;
            flex-direction: column;
            justify-content: center;
            
            .galerie {

                div.part {
                    img {
                        object-fit: cover;
                        width: 50%;
                        height: 50%;
                    }  

                    h2 {
                        font-size: small !important;
                        margin-top: 0 !important;
                        
                    }

                    p {
                        margin-top: 0%;
                    }
                }
                
            }
        }

        footer {
            margin-top: 15%;
        }
        
        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;
            }
        }
    }
