@font-face{
	font-family:"BarichDEMO";
	src:url("fonts/BarichDEMO-Bold.ttf");
}
@font-face {
    font-family:"Poppins_medium";
	src:url("fonts/Poppins-Medium.ttf");
}
@font-face {
    font-family:"Poppins";
	src:url("fonts/Poppins_Regular.ttf");
}
                                                /*  Body  */
body{
    margin: 0;
    background-color: #DAD1C2;
    margin: 0;
    padding-top: 20px;
    font-family: "Poppins","Calibri",sans-serif; 
    padding: 0;
}
                                                /*  Header  */
header{
    overflow: hidden;
    background-color: #beb7aa;
    opacity: 0.7;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
header nav ul {
    display: flex;
    justify-content: right;
    align-items: center;
    position: static;
}

header nav ul li {
    list-style: none;  
    margin: 0 20px;
}

header nav ul li a {
    text-decoration: none;
    color : black;
}

header nav ul li a:hover {
    text-decoration: wavy underline #546f50;
} 
                                                /*  Main  */

main #accueil h1{
    font-family: "BarichDEMO","Calibri",sans-serif;
    text-align: center;
    font-size : 12rem;
    margin: 0;
}

h2{
    font-family: "Poppins_medium","Calibri",sans-serif;
    padding-top: 20px;
    font-size : 2rem;
    color:#656057;
    text-align: center;
}

strong{
    font-family: "Poppins_medium","Calibri",sans-serif;
    color: #546f50;
}

main{
    display: flex;
    align-items: center;
    flex-direction: column;
}

main #presentation {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 70vh;
    width: 150vh;
}

.bouton {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
}

.cv {
    display:inline-block;
    padding: 10px 20px;
    text-decoration: none;
    background-color: #beb7aa;
    color:#000000;
    border: 2px solid #beb7aa;
    border-radius: 40px;
    box-shadow: 0 5px 5px #beb7aa;
    transition: 0.5s;
    margin-right: 20px;
}

.cv:hover,main article section .bouton .reseaux a img:hover {
    background-color: #DAD1C2;
    box-shadow: none;
}

main #presentation #description .bouton .reseaux a img {
    padding: 4px;
    border: 2px solid #beb7aa;
    background-color: #beb7aa;
    border-radius: 50%;
    box-shadow: 0 5px 5px #beb7aa;
    transition: 0.5s;
    width: 35px;
    height: auto;
    margin: 0 5px;
} 

main #presentation #description .bouton .reseaux a img:hover {
    background-color: #DAD1C2;  
    box-shadow: none;
}

                                            /*  skilss  */

#skills div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 16px;
    margin: 0 auto;
    align-items: center;
    place-items: center;
    padding: 0 20px;
}

#skills div img {
    width: 90px;
    object-fit: contain;
}

                                                /*  Projets  */
#projets {
    display: flex;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.projets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.carte {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.carte:hover {
    transform: scale(1.05);
}

.carte img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.carte:hover img {
    opacity: 0.3;
}

/* Contenu */
.details {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carte:hover .details {
    opacity: 1;
}

.details h3 {
    font-size: 22px;
    color: #000000;
    font-family: "Poppins_medium","Calibri",sans-serif;
}

.details p {
    font-size: 14px;
    color: #000000;
    margin: 10px 0;
}

.details a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #beb7aa;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    border: 2px solid #beb7aa;
}

#contact {
    background-color: #beb7aa;
    color: #000000;
    padding: 20px 0;
    width: 100%;
    margin : 200px 0 0 0;
    justify-content: center;
}

.reseaux {
    display: flex;
    justify-content: center;
}

.reseaux a img{
    width: 50px;
}

#contact p {
    font-size: 1.2rem;
    text-align: center;
}

@media (max-width: 768px) {
    

    main{
        margin: auto;
        align-items: normal;
    }
    main #presentation {
        display: flex;
        flex-direction: column-reverse;
        height: auto;
        width: 100%;
    }

    main #accueil h1{
        font-size : 8rem;
        margin-top: 50px;
    }

    .photo {
        margin-top: -50px
    }

    .photo img{
        width: 300px;
        height: auto;
    }

    .about {
        width: 100%;
        text-align: justify;
    }

    .about p {
        padding: 0 30px 40px 30px;
    }

    .bouton {
        justify-content: center;
    }

    #contact p {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    main #accueil h1{
        font-size : 5rem;
    }
}


@media (max-width: 320px) {
    /*header nav ul {
        align-items: center;
    }
    header nav ul li {
        margin: 0 5px;
    }
    header nav ul li a {
        font-size: 0.9rem;
        text-align: center;
    }

    main #accueil h1{
        font-size : 4rem;
    }

    .photo img{
        width: 300px;
    }*/


    /* Projets */
    .projets {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .container {
        grid-template-columns: 1fr;
    }

    .details h3 {
        font-size: 16px;
    }
    .details p {
        font-size: 12px;
    }

    #contact {
        font-size: 0.5rem;
    }
}




@media (max-width: 768px) {
    header nav ul {
        display: none;
    }
}





