body, html {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif; /* Apply the Open Sans font to the entire site */
}

#section1 {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 2rem;
    background-color: #7F1011;
    color: #fff;
    text-align: center;
}

#section1 h1 {
    font-size:40px; 
    text-transform: uppercase;
}

#section1 h2 {
    font-size: 25px; 
    font-weight: 400;
}

#section1 h2 a{
    text-decoration: none;
    color: #fff;
    font-size: 25px; 
    font-weight: 400;
    text-transform: uppercase;
}


.section {
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 2rem;
    background-color: #7F1011;
    color: #fff;
    text-align: center;
}

#section4{
    flex-direction: column !important;
}

#footer{
    background-color: #222222;
    flex-direction: column !important;
    text-align: left;
}

#footer h4{
    font-size: 20px;
    text-align: left;
}

#footer a{
    font-size: 20px;
    text-decoration: none;
    color: #fff;
}

.footer-section{
    width: 33%;
    padding-left: 50px;
    font-size: 20px;
}

.footer-bar{
    background-color: #000;
    position: relative;
    bottom: 0;
    width: 100%;
    color: #FFF;
    font-size: 15px;
}
.section-container{
    display: flex;
}

.button-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.button-primary{
    background-color: #7F1011;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    font-family: "Open Sans", sans-serif;
    margin-left: 5px;
    margin-right: 5px;
}

.button-secondary{
    background-color: #fff;
    color: #7F1011;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    font-family: "Open Sans", sans-serif;
    margin-left: 5px;
    margin-right: 5px;
}

.button-third{
    background-color: #ffffff00;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ffffff;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    font-family: "Open Sans", sans-serif;
    margin-left: 5px;
    margin-right: 5px;
}

.logo{
    width: 150px;
    background-color: transparent;
    border-radius: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    align-self: center;
    margin: 10px;
}

.contact-box {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: #7F1011;
    display: flex;
    justify-content: center;
}

.contact-box p{
    font-size: 18px;
    color: #fff;
}

.contact-box a{
    font-size: 18px;
    text-decoration: none;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222222;
    color: #fff;
    padding: 20px;
    width: 800px;
    max-height: 60%;
    overflow-y: auto;
}


/*Pour les écrans de taille inférieure à 1600px*/
@media screen and (max-width: 1700px){
    .container-left{
        text-align: left;
        width: 100%;
        margin: 20px;
    }

    .container-left p{
        font-size: 18px;
        height: 100%;
        margin: 0px;
        text-align: justify;
    }

    .container-right{
        text-align: left;
        width: 100%;
        margin: 20px;
    }

    .abbe-box{
        margin: 5px;
        width: 100%;
        display: flex;
        flex-direction: column;
        background-color: rgb(89, 13, 14);
        border-radius: 15px;
    }

    .abbe-box h4{
        width: 100%;
        text-align: center;
        font-size: 20px;
    }

    .abbe-box img{
        width: 100%;
        object-fit: cover;
        border-radius: 15px;
    }

    .help-box{
        margin: 5px;
        width: 100%;
        display: flex;
        flex-direction: column;
        background-color: rgb(89, 13, 14);
        border-radius: 15px;
    }
}

/*Pour les écrans de taille supérieure à 1600px*/
@media screen and (min-width: 1600px){
    .container-left{
        text-align: left;
        width: 100%;
        margin: 100px;
    }

    .container-left p{
        font-size: 18px;
        height: 100%;
        margin: 10px;
        text-align: justify;
    }

    .container-right{
        text-align: left;
        width: 100%;
        margin: 100px;
    }

    .abbe-box{
        margin: 5px;
        width: 100%;
        display: flex;
        flex-direction: column;
        background-color: rgb(89, 13, 14);
        border-radius: 15px;
    }

    .abbe-box h4{
        width: 100%;
        text-align: center;
        font-size: 20px;
    }

    .abbe-box img{
        width: 100%;
        object-fit: cover;
        border-radius: 15px;
    }

    .help-box{
        margin: 5px;
        width: 100%;
        display: flex;
        flex-direction: column;
        background-color: rgb(89, 13, 14);
        border-radius: 15px;
    }
}

/* CSS pour les écrans en orientation portrait */
@media screen and (orientation: portrait) {

    #section1 {
        /* Adapter la hauteur, la taille de la police, etc., pour l'orientation portrait */
        font-size: 1.9rem; /* Exemple : taille de police réduite */
        /* ... autres styles adaptés ... */
    }

    #section1 h1 {
        font-size:50px; 
        text-transform: uppercase;
    }
    
    #section1 h2 {
        font-size: 35px; 
        font-weight: 400;
    }

    #section1 h2 a{
        text-decoration: none;
        color: #fff;
        font-size: 35px; 
        font-weight: 400;
        text-transform: uppercase;
    }

    #section3{
        flex-direction: column !important;
    }

    #section3 p{
        font-size: 25px;
    }

    #section4 .box-container{
        flex-direction: column !important;
        align-items: center;
    }

    .section {
        /* Styles adaptés pour chaque section en orientation portrait */
        font-size: 1.5rem; /* Exemple : taille de police réduite */
        /* ... autres styles adaptés ... */
    }

    .button-container {
        /* Adapter l'affichage des boutons pour l'orientation portrait */
        flex-direction: column; /* Les boutons s'affichent en colonne plutôt qu'en ligne */
        margin-bottom: 10px; /* Ajouter une marge entre les boutons */
    }

    .button-primary, .button-secondary, .button-third {
        /* Adapter la taille et le style des boutons pour l'orientation portrait */
        font-size: 40px; /* Exemple : réduire la taille de la police */
        padding: 8px; /* Exemple : ajuster le padding */
        margin-bottom: 5px; /* Ajouter une marge en bas de chaque bouton */
    }

    .container-left{
        text-align: left;
        width: 95%;
    }

    .container-right{
        text-align: left;
        width: 95%;
    }

    .help-box{
        margin: 0px;
        width: 80vw;
        display: flex;
        flex-direction: column;
        background-color: rgb(89, 13, 14);
        border-radius: 15px;
        margin-bottom: 10px;
    }

    /* ... autres adaptations spécifiques pour l'orientation portrait ... */
}