*,
*::before,
*::after{
    box-sizing: border-box;
}


body {
    margin: 0;
    padding-top: 80px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

nav {
    background-color: #354A63;
    height: 80px;
    display: flex;    
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000; 
}



.nav-item {
    font-size: 1.4rem;
    margin-right: 30px;
    display: inline;
    text-transform: uppercase;
}

.nav-item a {
    color: white;
    text-decoration: none;
}

.nav-item a:hover {
    color: #d1d7d1;
}

nav img{
    margin-left: 30px;
    height: 50px;
}

.accueil{
    background-image: url(img/background-img.png);
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: center;
    background-attachment: fixed;
}


.name {
    font-size: 5rem;
    color: white;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    margin-left: 260px;
  }


.description{
    text-transform: uppercase;    
    font-size: 2rem;
    color: white;
    margin-left: 260px;
    margin-top: 10px;
}


.titres{
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
    margin: 0;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.projets {
    background-color: #354A63;
    padding: 40px 60px;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
}

.content {
    width: 60%;
    height: 300px; 
    background-size: cover;
    background-position: center;
}

.content img{
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.textes {
    background-color: #317da6;
    width: 40%;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.textes h2{
    margin-bottom: 0;
}

.textes p {
    margin-top: 0;
}

.textes a {
    text-align: right;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.textes a:hover {
    text-decoration: underline;
}

hr{
    border: none;
    border-top: 3px solid #d1d7d1;
    overflow: visible;
    text-align: center;
    height: 3px;
    max-width: 1000px;
    margin-top: 50px;
    margin-bottom: 0;
}


.biographie{
    background-color: #354A63;
    padding: 40px 60px;
}

.bio{
    display: flex;
    justify-content: center;
}

.desc-bio {
    width: 35%;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
}


.photo-profil{
    width: 300px; 
    height: 250px; 
    object-fit: cover;
}

.bio h1{
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
    margin: 0;
    text-align: left;
}

.bio p{
    margin-bottom: 20px;
}

.logo-opquast{
    width: 70px;
    height: 70px;
}

.opquast{
    display: flex;
    align-items: center;
}


.avis{
    background-color: #354A63;
}


.bio h1{
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
    margin: 0;
    text-align: left;
}

.div-avis{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-avis {
    display: flex;
    justify-content: space-between;
    background-color: #317da6;
    margin-top: 20px;
    max-width: 900px;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.container-avis h2{
    margin-top: 0;
}

.content-avis {
    width: 40%;
    position: relative;
}

.content-avis img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; 
}


.textes-avis {
    width: 60%;
    padding: 20px;
    color: white;
}


.titre-avis{
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
    margin: 0;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}


.projets-caches{
    display: none;
}

.voir-plus{
    height: 44px;
    background-color: #d1d7d1;
    border: solid black;
    width: 200px;
    cursor: pointer;
}

.voir-plus:hover{
    background-color: #317da6;
}

.bouton{
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.contact {
    background-color: #354A63;
    padding: 40px 60px;
}

form{
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
    color: white;
}


.titre-contact{
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
    margin: 0;
    text-align: center;
    margin-bottom: 20px;
}

.input, textarea{
    margin-bottom: 20px;
}

.input{
    width:200px;
}

footer{
    background-color: black;
    color: white;
    text-align: center;
    height: 50px;
}

footer p{
    margin: 0;
    padding: 15px;
}


.logo i{
    font-size: 2.4rem;
    color: #317da6 ;
    margin: 10px;
}

.logo{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.paragraphe{
    max-width: 700px;
    color: white;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.paragraphe span{
    color: #317da6;
    font-weight: bold;
    background-color: #fff;
}

.home{
    position: fixed;
    background-color: #317da6;
    bottom: 30px;
    right: 30px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home i{
    color: white;
    font-size: 1.5rem;
}


.container-gallery{
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 1000px;
    flex-wrap: wrap;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 20px;
}

.container-gallery img{
    width: 300px;
}

.container-gallery img:hover{
    filter: brightness(0.2);
}



.paragraphe-projets{
    max-width: 1000px;
    color: white;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 0;
}


.sr-only {
    background-color: #ffffff;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.detail, .img{
    background-color: #317da6;
}


.titre-projet{
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
    margin: 0;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0px;
    padding-top: 20px;
}



@media (max-width: 768px) {
   

    .nav-item {
        font-size: 1.2rem;
        display: flex;
        justify-content: center;
    }

    .accueil {
        height: 50vh;
        text-align: center;
        margin-left: 0;
        padding: 0 20px;
    }
    .name {
        font-size: 2.5rem;
        margin: 0 auto;
    }
    .description {
        font-size: 1.2rem;
        margin: 10px auto;
    }

    .container {
        flex-direction: column;
        text-align: center;
    }
    .content, .textes {
        width: 100%;
    }
    .textes {
        padding: 10px;
    }

    .bio {
        flex-direction: column;
        align-items: center;
    }
    .desc-bio {
        width: 100%;
        padding: 10px;
    }

    .container-avis {
        flex-direction: column;
        height: auto;
        margin: 10px;
    }
    .content-avis {
        width: 100%;
        height: 200px;
    }
    .textes-avis {
        width: 100%;
        padding: 10px;
    }

    .logo i {
        font-size: 2rem;
        margin: 5px;
    }

}

@media (max-width: 1024px) {
    .accueil {
        height: 60vh;
        padding: 0 40px;
    }
    .name {
        font-size: 3.5rem;
        margin-left: 0;
        text-align: center;
    }
    .description {
        font-size: 1.5rem;
        margin-left: 0;
        text-align: center;
    }

    .container {
        flex-direction: column;
    }

    .content, .textes {
        width: 100%;
    }

    .desc-bio {
        width: 100%;
        text-align: center;
        padding: 20px;
    }
    .container-avis {
        max-width: 80%;
        height: auto;
    }
    .textes-avis {
        padding: 10px;
    }
    .titre-avis{
        padding-left: 40px;
    }
    hr{
        max-width: 700px;
    }
}
