*{
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
}

body{
    background-color: #171717;
    color: #f4f5ef;
}

/* MENU */

nav{
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    top: 5%;
}

.menu_{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.menu_ li{
    position: relative;
}

.menu_ > li > a, .sous-menu > ul > li > a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 15px 35px; 
    font-weight: 400;
}


.sous-menu > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ebebeb1c;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 200px;
    z-index: 999;
}

.sous-menu:hover > ul {
    display: block;
}


ul{
    display: flex;
    list-style: none; 
}

#logo_nav{
    width: 12%;
    filter: invert(1.0);
    padding: 0 55px;
}

/* VIDEO */

video{
    width: 100%;
    filter: blur(5px);
    margin: 0;
    position: relative;
} 


#img_temporaire{
    width: 100%;
    height: 100vh;
    margin: 0;
    position: relative;
    z-index: 0;
}

.underline-animation::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #F1465A;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.underline-animation:hover::after {
    transform: scaleX(1);
}




/* A PROPOS */

#a_propos{
    margin: 10vh 10vh; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#a_propos_text{
    display: grid;
    grid-column: 2/4;
    margin: 35px;
    text-align: justify;
}


h2{
    font-family: Poppins, sans-serif;
    font-size: 50px;
    width: 100%;
    text-align: center;
}

#a_propos img{
    width: 100%;
    border-radius: 50%;
}

/* TRAVAUX */

.filtres{
    display: flex;
    justify-content: center;
}

.filtres button, #cv, .voir_plus, .voir_moins{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 20%;
    padding: 1.5%;
    background-color: #F1465A;
    color: white;
    border-radius: 35px;
    border: none;
    height: 20px;
    margin: 15px;
    text-decoration: none;
}

.filtres button:hover, #cv:hover, .voir_plus:hover, .voir_moins:hover{
    background-color: #a60e1f;
    cursor: pointer;
}

#cv{
    margin: 2% auto;
}

.travaux_mockup{
    position: relative;
    z-index: 0;
    width: 60vh;
    height: 35vh;
    background-color: #95A3BB;
    border-radius: 35px;
}

.travaux_box{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid-gap: 10px;
    margin: 5vh 10vh;
}


h4, .travaux_mockup p{
    position: absolute;
    z-index: 99;
    color: #fff; 
}

h4{
    padding: 25px;
    font-size: 20px;
}

.travaux_mockup p{
    padding: 25px;
    margin-top: 7vh;
    font-size: 15px;
}

.travaux_box button{
    padding: 25px;
    margin-top: 10vh;
    font-size: 15px;
}


.affichage, .affichage2, .voir_moins{
    display: none;
} 

.en_savoir_plus {
    position: absolute;
    z-index: 99;
    bottom: 5%;
    right: 8%;
    width: 10%;
    height:12%;
    border: none;
    border-radius: 50px;
    background-color: #2B2D42;
    opacity: 0.5;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.en_savoir_plus:hover{
    width: 40%;
    height: 12%;
    opacity: 1;
    transition: ease-in 0.2s;
    cursor: pointer;
}

.en_savoir_plus div{
    position: absolute;
    transition: opacity 0.4s, transform 0.4s;
    color: white;
}

.en_savoir_plus .plus {
    opacity: 1;
    transform: translateX(0);
    transition: 0.5s;
}

.en_savoir_plus .visite {
    opacity: 0;
    transform: translateX(100%);
}

.en_savoir_plus:hover .plus {
    opacity: 0;
    transform: translateX(-100%);
    transition: 0.5s;
}

.en_savoir_plus:hover .visite {
    opacity: 1;
    transform: translateX(0);
    font-size: 10px;
}

.semestre{
    font-size: 25px;
    width: 100%;
    display: flex;
    margin-top: 5vh;
    margin-left: 11vh;
}

.voir_plus, .voir_moins{
    margin: 0 auto;
}

#travaux_universitaires {
    display: block;
}

#travaux_personnels {
    display: none;
}

.travaux_mockup span{
    font-style: italic;
    font-weight: bold;
    color: #2B2D42;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #171717;
    border-radius: 35px;
    width: 80%;
    height: auto;
    padding: 2%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    color: white;
}

.titre_zoom{
    display: flex;
    justify-content: center;
    width: 100%;
    font-weight: 600;
    padding-bottom: 2%;
}

.titre_zoom p{
    font-size: 32px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #f4f5ef;
}

.contenu_modal_G, .contenu_modal_D {
    width: 45%;
    height: auto;
}

.demarche, .avis, .outils, .competences, .rendu{
    margin-bottom: 6%;
}

h5 {
    font-size: 18px;
    color: #8D99AE;
    border-bottom: 1px solid #8D99AE;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-content p {
    text-align: justify;
    font-size: 14px;
    line-height: 1.6;
}

.languages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.competences{
    display: flex;
    flex-direction: column;
}

.languages img{
    width: 15%;
    margin-right: 5%;
}

.competences img{
    width: 8%;
    margin-right: 5%;
}

.languages li, .competences li{
    display: flex;
    align-items: center;
    font-size: 14px;
}

.languages li{
    padding: 3% 0;
}

.competences li{
    padding: 1% 0;
}

.modal-content span{
    color: #EF233C;
    font-weight: 800;
}

.rendu a{
    padding: 1% 3%;
    background-color: #EF233C;
    border-radius: 8px;
    color: #f4f5ef;
    text-decoration: none;
}





/* CONTACT */

#contact{
    margin: 10vh 5vh;

}

form{
    width: 80%;
    border-radius: 25px;
    box-shadow: rgba(17, 12, 46, 0.15) 0 48px 100px 0;
    padding: 50px;
    background-color: #f4f5ef;
}

label, form p{
    color: #171717;
}

.sous-groupe-rs a{
    color: #f4f5ef;
}

input{
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    border: 0;
    border-bottom: 1px solid black;
    height: 30px;
    background-color: transparent;
}

  
textarea{
    height: 100px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    margin-top: 5px;
    border: 1px solid black;
    border-radius: 5px;
    padding: 5px;
    background-color: transparent;

}

#contact button{
    width: 100%;
    border: 0;
    background-color: #EF233C;
    color: white;
    border-radius: 8px;
    height: 35px;
    margin-bottom: 15px;
}
  
#contact button:hover, .rendu a:hover{
    background-color: #a60e1f;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

span{
    color: red;
}

.logo-rs{
    width: 13%;
    padding: 15px;
    filter: invert(1);
}

.sous-groupe-rs{
    display: flex;
    align-items: center;
    width: 100%;
    padding-left: 10%;
}

.container {
    display: flex;
    align-items: center;
    margin: 10vh 10vh;
}


/*footer*/
footer{
    background-color: #000000;
    height: 30px;
    display: flex;
    justify-content: space-around;
}

footer p{
    color: white;
    font-size: 10px;
    padding: 10px ;
}



.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #F1465A;
    border: none;
    border-radius: 25px;
    font-size: 24px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: rotate(270deg);
}
.back-to-top:hover {
    background-color: #a60e1f;
}

.back-to-top a{
    text-decoration: none;
    color: white;
}




/* TELEPHONE */

@media screen and (max-width:480px){
    body{
        width: 100vh;
    }

    #a_propos{
        width: 90vh;
        display: flex;
        flex-wrap: wrap;
    }

    #a_propos img{
        width: 50%;
        margin: 0 auto;
    }

    .travaux_box{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: auto;
        justify-items: center;
    }

    .travaux_mockup, .container{
        width: 90vh;
    }

    .container{
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    form{
        margin-bottom: 15%;
    }
}






