@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');

*{
    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: bold;
}

ul li a:hover{
    text-decoration: underline;
}

.menu-burger{
    display: none;
}

/* header about */
.header-about{
    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;
}

.i-about{
    display: flex;
    margin-top: -75px;
    position: absolute;
	top: 50%;
	left: 45%;
}

.i-about i{
    margin: 7px;
    font-size: 20px;
    color: #ffffff;
}

.i-about i:hover{
    color: #666666;
}

/* about */
.about-me{
    display: flex;
}

.about-me-texte a{
    color: #000000;
}

.about-me-texte a:hover{
    color: #8a8a8a;
}

.about-me-header{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-me-header h2{
    font-size: 60px;
    font-weight: bold;
    color: #333333;
}

.about-me-texte{
    flex: 1;
    margin: 100px;
}

.about-me-texte p{
    margin-bottom: 20px;
    line-height: 1.7;
}

/* competences */
.competences{
    display: flex;
    justify-content: center;
    padding: 40px;
}

.gauche{
    flex: 1;
    text-align: center;
}

.gauche h2{
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about-btn{
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn{
    text-decoration: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    border: 2px solid #000000;
    cursor: pointer;
}

.btn:hover{
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

.contact-btn{
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
}

.contact-btn .fléche{
    margin-left: 5px;
    font-size: 20px;
    transition: margin-left 0.3s ease;
}

.contact-btn:hover .fléche{
    margin-left: 10px;
}

.droite{
    flex: 3;
    margin-left: 40px;
}

.competence{
    margin-bottom: 30px;
}

.competence h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
}

.competence p {
    line-height: 1.7;
    color: #666666;
}

/* contact */
.contact{
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.contact-contenu{
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.contact-item{
    text-align: center;
    flex: 1;
}

.contact-item i{
    margin-bottom: 10px;
    color: #000000;
}

.contact-item h3{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-item p{
    font-size: 15px;
    color: #666666;
    margin-bottom: 10px;
}

.contact-item a{
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

.contact-item a:hover{
    text-decoration: underline;
}

/* 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 about */
    .header-about{
        height: 30vh;
        background-position: center;
    }

    .titre h1{
        font-size: 30px;
        padding: 0 10px;
    }

    .i-about{
        position: relative;
        margin-top: 10px;
        top: auto;
        left: auto;
        justify-content: center;
    }

    .i-about i{
        font-size:20px;
        margin: 10px;
    }

    /* about */
    .about-me{
        display: block;
        padding: 20px;
    }

    .about-me-header h2{
        font-size: 35px;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-me-texte{
        margin: 0;
        padding: 10px;
    }

    /* competences */
    .competences{
        display: block;
        padding: 20px;
    }

    .gauche h2{
        font-size: 35px;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-btn{
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }

    .droite{
        margin: 20px 0;
    }

    .competence{
        padding: 10px;
    }

    /* contact */
    .contact-contenu {
        flex-direction: column;
        text-align: center;
        margin-bottom: -15px;
    }
    .contact-item {
        width: 100%;
        margin-bottom: 20px;
    }

    /* footer */
    footer{
        flex-direction: column;
    }

    .footer-gauche, .footer-droite{
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    footer p{
        order: 3;
    }
}