/* Empêcher le défilement horizontal sur toute la page */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* S'assurer que tous les éléments respectent les limites de la page */
#pent, .content, .right, .left {
    max-width: 100%;
    box-sizing: border-box;
}

#logoOpera {
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    width: 40px;
    height: 40px;
}

#opera {
    font-size: 30px;
}

.entrepise {
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    background-color: black;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

#pent {
    background-color: #1a1a1a;
    border: 2px solid #efb810;
    border-radius: 10px;
    width: 90%;
    padding: 15px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.content {
    display: flex;
    flex-direction: column;
}

.left {
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
}

.left ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.left li {
    margin-bottom: 15px;
}

.right {
    width: 100%;
    padding-left: 0;
    text-align: center;
}

.right a {
    text-decoration: none;
    display: inline-block;
    margin: 5px 0;
}

.right a:hover {
    text-decoration: underline;
}

#titrestructure {
    font-size: 24px;
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

.structure {
    width: 100%;
    min-height: 100vh;
    padding: 60px 0 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    background-color: black;
}

#ensemble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95%;
    height: auto;
    min-height: auto;
    margin: 10px auto;
}

.text-content {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
}

.right img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

#RH {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95%;
    height: auto;
    min-height: auto;
    margin: 10px auto;
}

#SI {
    margin-bottom: 30px;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center; 
}

#moi ul {
    list-style-type: disc;
    padding-left: 20px;
    line-height: 1.6;
    text-align: left;
}

.right iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-top: 10px;
    max-width: 100%;
}

#sirh {
    margin-bottom: 60px;
    width: 95%;
}

#password-form {
    background-color: #1a1a1a;
    border: 2px solid #efb810;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

#password-input {
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 300px;
}

#password-form button {
    background-color: #efb810;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

#password-form button:hover {
    background-color: #d9a50d;
}

#protected-image {
    height: auto;
    max-height: 50vh;
    width: auto;
    max-width: 100%;
    text-align: center;
    margin: 25px auto;
}


/* Media queries pour différentes tailles d'écran */
@media screen and (min-width: 768px) {
    #logoOpera {
        width: 50px;
        height: 50px;
    }
    
    #opera {
        font-size: 50px;
    }
    
    #pent {
        width: 80%;
    }
    
    .content {
        flex-direction: row;
    }
    
    .left {
        flex: 1;
        padding-right: 20px;
        margin-bottom: 0;
    }
    
    .right {
        flex: 1;
        padding-left: 10px;
    }
    
    #titrestructure {
        font-size: 35px;
    }
    
    #ensemble {
        flex-direction: row;
        justify-content: space-between;
        max-width: 90%;
        height: calc(100vh - 20vh);
    }
    
    .text-content {
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    #RH {
        flex-direction: row;
        justify-content: space-between;
        max-width: 90%;
        height: calc(100vh - 20vh);
    }
    
    #SI img {
        height: calc(100vh - 30vh);
        max-height: none;
    }
    
    #moi ul {
        padding-left: 40px;
        line-height: 2;
    }

    .right iframe {
        height: 450px;
    }

    #protected-image {
        height: calc(100vh - 30vh);
        max-height: none;
        margin: 25px auto;
    }
}

@media screen and (max-width: 480px) {
    #logoOpera {
        width: 35px;
        height: 35px;
    }
    
    #opera {
        font-size: 24px;
    }
    
    #pent {
        width: 95%;
        padding: 10px;
    }
    
    #titrestructure {
        font-size: 20px;
    }
    
    .left li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    #moi ul {
        padding-left: 15px;
        line-height: 1.5;
        font-size: 0.9rem;
    }

    .right iframe {
        height: 250px;
    }
    
}


@media screen and (max-height: 600px) and (max-width: 767px) {
    .entrepise, .structure {
        height: auto;
        min-height: auto;
        padding: 80px 0;
    }
    
    #ensemble, #RH {
        height: auto;
    }
}


@media screen and (max-width: 768px) {
    #entreprise {
        display: flex;
        flex-direction: column;
    }
    
    #opera {
        order: 1;
        margin-bottom: 20px;
    }
    
    #pent {
        order: 2;
    }
}











