* {
    position: relative;
}

body {
    font-family: 'Roboto', sans-serif;
    position: relative;
    width: 100%;
    margin-left: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

/*declaration des variaables*/
:root {
    --text-color: #e8dc86;
    --text-fond: yellow;
    --text-hover: #f8eb8f69;
    --button-hover: #7a6a01;
}

img {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

nav {
    border: none;
    display: flex;
    align-items: center;
    width: 100%;
    background: black;
    justify-content: space-around;
    transform: translateZ(0);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    width: 170px;
    height: 150px;
}

.btm-logo {
    text-align: center;
    display: flex;
    height: 110px;
    width: auto;
}
/*personalisation du logo*/

.navLinks {
    display: flex;
    place-items: center;
    list-style: none;
    gap: 50px;
    color: white;
    font-size: 18px;
}

li {
    transition: all 0.5s ease;
    transform: translateY(0);
    list-style: none;
    cursor: pointer;
}

li:hover {
    transition: all 0.5s ease;
    transform: translateY(-4px);
    color: var(--text-color);
}

.li-primaire {
    color: var(--text-color);
}

.btm-nav-contact {
    font-size: 14px;
    padding: 7px;
    border-radius: 5px;
    border: none;
    background: var(--text-color);
    transition: all 0.5s ease;
    cursor: pointer;
}

.btm-nav-contact:hover {
    transition: all 0.5s ease;
    background: var(--button-hover);
    transform: scale(0.98);
}

.lien-contact {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.5s ease;
}

.lien-contact:hover {
    color: rgba(175, 175, 5, 0.959);
    transition: all 0.5s ease;
    margin: 0;
    transform: scale(1.04)translateY(-4px);
}

/*personalisation de la navbar sur petit ecran*/

.hamburger {
    display: none;
    cursor: pointer;
    transition: all 0.8s ease;
}

.hamburger:hover {
    transition: all 0.8s ease;
    transform: scale(1.1);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px;
    background: var(--text-color);
}

/*blog hero*/

.projects-hero{
    height: 60vh;
    background-image: url(../images/annexe\ \(8\).jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    text-align: center;
}

.hero-content{
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 40px;
    border-radius: 10px;
}

.hero-content h1{
    font-size: 40px;
}

/*blog introduction*/

.projects-intro{
    padding: 80px 10%;
    text-align: center;
}

.projects-intro p{
    max-width: 700px;
    margin: auto;
    color: #555;
}


/*galerie*/

.projects-gallery{
    padding: 80px 10%;
    background: var(--text-hover);
    text-align: center;
}

.gallery-container{
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
}

.project-card{
    background: var(--text-color);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.5s;
}

.project-card:hover{
    transform: translateY(-8px);
}

.project-card-img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
}

img {
    width: 110%;
    height: 120%;
    transition: all 0.8s ease;
}

img:hover {
    transition: all 0.8s ease;
    transform: rotate(5deg)scale(1.08);
}

.project-card h3{
    margin: 15px 0 5px 0;
}

.project-card p{
    padding: 10px 5px 20px;
    color: #555;
}

/*type de projet*/

.project-types{
    padding: 80px 10%;
    text-align: center;
}

.types-container{
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.type-box{
    background: var(--text-color);
    padding: 15px 25px;
    border-radius: 5px;
}

i {
    color: var(--text-fond);
    filter: drop-shadow(1px 1px 1px black);
}

/*statistiques*/

.projects-stats{
    padding: 80px 10%;
    background: #111;
    color: white;
}

.stats-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    text-align: center;
}

.stat h3{
    font-size: 40px;
    color: var(--text-fond);
}

/*call to action*/

.projects-cta{
    padding: 80px 10%;
    text-align: center;
}

.projects-cta p{
    max-width: 600px;
    margin: 20px auto;
}

.cta-btn{
    background: var(--text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    border:  none;
    cursor: pointer;
    transition: all 0.5s ease;
}

.cta-btn:hover {
    transition: all 0.5s ease;
    transform: scale(0.97);
    background: var(--button-hover);
    color: white;
}


/*responsive de la navbar*/
@media (max-width: 900px) {

    .navLinks {
        flex-direction: column;
        display: none;
        place-items: initial;
        gap: 20px;
        top: 5dvh;
        right: 0;
        height: 100dvh;
        width: 20vh;
        position: fixed;
        background: #2d2b1a;
        border-radius: 15px 0 0 15px;
        padding: 15px;
        transition: all 1s ease;
        transform: translateX(110px);
        opacity: 0;
        z-index: 999;
        border: none;
        border-left: 3px solid var(--text-color);
        border-top: 3px solid var(--text-color);
        box-shadow: -1px -1px 5px var(--text-fond);
    }

    .navLinks.open {
        display: flex;
        opacity: 1;
        transition: all 1s ease;
        transform: translateX(0);
        z-index: 10;
    }

    .hamburger {
        display: block;
    }

    .logo {
        width: 100px;
        height: 90px;
    }

    .btm-logo {
        height: 60px;
    }

/*Description de la navbar*/
}

/*programme d'apparution des elements a l'ecran*/

.haut {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s ease;
}

.haut.active {
    opacity: 1;
    transform: translateY(0);
}

.bas {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.bas.active {
    opacity: 1;
    transform: translateY(0);
}
