@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');

/* style du site */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Sofia Sans", sans-serif;
}

html, body{
    overflow-x: hidden;
}

/* header */
header{
    border-bottom: 1px solid #dcdcdc;
}

.header{
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.logo img{
    width: 100px;
}

ul{
    list-style: none;
    display: flex;
}

ul li a{
    margin-right: 40px;
    text-decoration: none;
    color: #000000;
    font-size: 18px;
    font-weight: 700;
}

ul li a:hover{
    text-decoration: underline;
}

.menu-burger{
    display: none;
}

/* header portfolio */
.header-portfolio{
    height: 50vh;
    background-image: url('../img/portfolio-acceuil.jpg');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.titre{
    text-align: center;
    color: #ffffff;
}

.titre h1{
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 15px;
}

p{
    font-size: 20px;
}

/* projets */
.projets {
    padding: 80px 0;
    text-align: center;
}

.projets-ligne {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* alignement sur 1-2-3 lignes */
.projets-ligne:nth-child(1) .projet-content,
.projets-ligne:nth-child(4) .projet-content {
    flex: 1;
}

.projets-ligne:nth-child(2) .projet-content,
.projets-ligne:nth-child(5) .projet-content {
    flex: 1 1 30%;
    max-width: 30%;
}

.projets-ligne:nth-child(3) .projet-content {
    flex: 1 1 46%;
    max-width: 46%;
}

.projet-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.projet-description {
    text-align: left;
    width: 90%;
    padding-top: 10px;
}

.projets-ligne:nth-child(2) .projet-content .projet-image,
.projets-ligne:nth-child(3) .projet-content .projet-image,
.projets-ligne:nth-child(5) .projet-content .projet-image {
    margin: 0 auto;
}

.projet-image{
    position: relative;
}

.projet-image img{
    width: 90%;
}

.projet-image:hover img{
    filter: brightness(50%);
}

.voir-projet{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    color: #000000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;

}

.voir-projet:hover{
    background-color: #000000;
    color: #ffffff;
}

.projet-image:hover .voir-projet{
    opacity: 1;
}

.projet-description h4{
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
}

.projet-description p{
    font-size: 15px;
    margin-bottom: 20px;
}

.compétences{
    display: flex;
    gap: 10px;
}

.compétences-carré{
    background-color: #f0f0f0;
    padding: 5px 10px;
    font-size: 15px;
}

/* footer */
footer{
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    border-top: 1px solid #e0e0e0;
}

.footer-gauche{
    display: flex;
    gap: 15px;
}

.footer-gauche a{
    font-size: 15px;
    color: #666666;
    text-decoration: none;
}

.footer-gauche a:hover{
    text-decoration: underline;
    color: #000000;
}

footer p{
    font-size: 15px;
    color: #666666;
    text-align: center;
}

.footer-droite{
    display: flex;
    gap: 15px;
}

.footer-droite i{
    font-size: 20px;
    color: #666666;
}

.footer-droite i:hover{
    color: #000000;
}



/* ----------------------------------------------------------------------------------------------------------------------------- */



/* version mobile */
@media (max-width: 768px){
    /* header */
    .menu-burger{
        display: block;
        font-size: 30px;
        color: #000;
    }

    ul{
        display: none;
    }

    .menu-ouvert ul{
        display: block;
        background-color: #fff;
        padding: 20px;
        text-align: center;
        width: 100vw;
    }

    .menu-ouvert ul li{
        margin: 20px 0;
    }

    header .header{
        width: 100%;
        padding: 0 10px;
    }

    /* header du portfolio */
    .header-portfolio{
        height: 30vh;
        background-position: center;
    }

    .titre h1{
        font-size: 30px;
    }

    p{
        font-size: 15px;
    }

    /* projets */
    .projet-content{
        display: flex;
        flex-direction: column;
    }

    .projet-description{
        margin-left: 0;
        text-align: center;
    }

    .compétences{
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .compétences-carré{
        padding: 5px 10px;
        font-size: 12px;
        max-width: 100px;
        text-align: center;
    }

    .projets-ligne {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .projet-content {
        width: 90%;
        max-width: none;
    }

    .projet-description {
        text-align: center;
        width: 100%;
        margin-left: 0;
    }

    .projets-ligne:nth-child(2) .projet-content,
    .projets-ligne:nth-child(5) .projet-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .projets-ligne:nth-child(3) .projet-content {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* footer */
    footer{
        flex-direction: column;
    }

    .footer-gauche, .footer-droite{
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    footer p{
        order: 3;
    }
}


/* ajouter 1-2 notes pour le rendu */