.language-menu {
    position: absolute;
    top: 50%;
    right: 4em;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1000;
}
.language-button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}
.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    background: rgb(0, 0, 0);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1001;
    right: 0;
}
.lang-option {
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
    color: rgb(255, 255, 255);
    transition: background 0.3s;
}
.language-menu.active .language-dropdown {
    display: block;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1d1d1d;
}

header {
    background-color: #1d1d1d;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    height: 10vh;
}

.bandeau {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background-color: #1d1d1d;
}

.nom {
    position: absolute;
    top: 50%;
    left: 1vw;
    transform: translateY(-50%);
    font-size: 24px;
    color: white;
    font-weight: bold;
}


.section-container {
    flex-direction: row;
    height: calc(100vh - 60px);
}

@media screen and (orientation: portrait) {
    .section-container {
        flex-direction: column;
    }
    .nom {
        position: absolute;
        top: 50%;
        left: 1vh;
        transform: translateY(-50%);
        font-size: 16px;
        color: white;
        font-weight: bold;
    }
    .profile {
        object-fit: cover !important;
        height: 70% !important;
        right: 0.5vw !important;
    }  
    .buttons {
        text-align: center;
    }
    .language-menu {
        position: absolute;
        top: 50%;
        right: 6vw;
        transform: translateY(-50%);
        font-size: 18px;
        z-index: 1000;
    }
}

.section-container {
    display: flex;
    gap: 5px;
    overflow: hidden;
}

.section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease-in-out;
    position: relative; 
}

.section:nth-child(1) {
    background-image: url('images/image1.jpg');
}
.section:nth-child(2) {
    background-image: url('images/image2.jpg');
}
.section:nth-child(3) {
    background-image: url('images/image3.jpg');
}

.section .button:hover {
    transform: none;
}
.section:hover {
    transform: scale(1.1);
    z-index: 10;
}
.button:hover {
    background-color: rgba(39, 39, 39, 0.9);
    scale: 1.1;
}

.buttons {
    text-align: center;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.8);
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 20px;
    object-fit: cover;
}
