@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: #f1e8de;
    margin: 0;
    padding-top: 20px;
    font-family: "Poppins","Calibri",sans-serif; 
    padding: 0;
     background-image:
        linear-gradient(to right, #beb7aa 1px, transparent 1px),
        linear-gradient(to bottom, #beb7aa 1px, transparent 1px);
    background-size: 40px 40px;
}
/*header et footer en quadriller*/
/*header, footer {
    background-image:
        linear-gradient(to right, #f1e8de 1px, transparent 1px),
        linear-gradient(to bottom, #f1e8de 1px, transparent 1px);
    background-size: 40px 40px;
}*/
                                                /*  Header  */
header{
    overflow: hidden;
    background-color: #beb7aa;
    width: 100%;
    height: 700px;
    position: relative;
    display: block ;
    text-align: center;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header nav ul {
    display: flex;
    justify-content: left;
    align-items: center;
    position: static;
}

header nav ul li {
    list-style: none;  
    margin: 0 20px;
    font-size: 1.2rem;
    font-family: "Poppins_medium","Calibri",sans-serif;
}

header nav ul li a {
    text-decoration: none;
    color : #080C7D;
}

header nav ul li a:hover {
    text-decoration: wavy underline #364534;
} 

#descendre {
    display: block;
    margin: 0 auto;
}
#descendre img {
    width: 5%;    
    height: auto;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-10px); }
    40%  { transform: translateY(0); }
    60%  { transform: translateY(-6px); }
    80%  { transform: translateY(0); }
    100% { transform: translateY(0); }
}

#descendre:hover img {
    animation: bounce 0.6s;
}
                                                /*burger menu*/
#burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
    position: absolute;
    top: 20px;
    right: 20px;
}
#burger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px 0;
    background: #080C7D;
    border-radius: 2px;
    transition: 0.3s;
}


                                                /*  Main  */

#accueil h1{
    font-family: "BarichDEMO","Calibri",sans-serif;
    text-align: center;
    font-size : 8rem;
    margin: 0;
    color: #080C7D;
    margin: 30px 10px 200px 10px;
}

#accueil h4{
    font-family: "BarichDEMO","Calibri",sans-serif;
    text-align: center;
    font-size : 2rem;
    margin: 0;
    color: #080C7D;
}

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

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

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-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: #282f6c;
    box-shadow: 0 5px 5px #282f6c;
    color: #f1e8de;
    box-shadow: none;
}

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

.reseaux a img {
    padding: 10px;
    border-radius: 50%;
    transition: 0.5s;
    width: 40px;
    height: auto;
    margin: 0 2px;
    text-align: center;
} 

.reseaux a img:hover {
    background-color: #beb7aa;
    box-shadow: 0 5px 5px #beb7aa;
    color: #f1e8de;
    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(400px, 1fr));
    gap: 20px;
    max-width: 1500px;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 50px;
}

.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: #080C7D;
    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: 1rem;
    text-align: center;
}

#scrollTopBtn{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}
#scrollTopBtn img{
    width: 60px;
    height: auto;
}

@keyframes vibrate {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

#scrollTopBtn img:hover {
    animation: vibrate 0.4s linear;
}

.behance{
    display:inline-block;
    padding: 10px;
    text-decoration: none;
    background-color: #beb7aa;
    color:#000000;
    border-radius: 40px;
    text-align: center;
    align-items: center;
}

.behance:hover {
    background-color: #282f6c;
    color: #f1e8de;
    box-shadow: none;
}


                                                /*  Footer  */


@media (max-width: 768px) {

                                                /*burger menu*/
    #burger {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 2000;
    }

    #burger span {
        display: block;
        width: 28px;
        height: 4px;
        margin: 5px 0;
        background: #080C7D;
        border-radius: 2px;
        transition: 0.3s;
        position: relative;
    }

    /* Animation croix */
    #burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }
    #burger.open span:nth-child(2) {
        opacity: 0;
    }
    #burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }

    header nav {
        position: static; /* ou relative */
        width: 100%;
        flex-direction: column;
        background: #beb7aa;
        background-color: #f1e8de;
        background-image:
        linear-gradient(to right, #beb7aa 1px, transparent 1px),
        linear-gradient(to bottom, #beb7aa 1px, transparent 1px);
        background-size: 40px 40px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    header nav.active {
        max-height: 500px; /* ou plus selon le contenu */
        overflow: visible;
    }
    header nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 0;
    }
    header nav ul li {
        margin: 15px 0;
        font-size: 1.5rem;
    }
    .reseaux {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
    }


                                                /*header*/
    header{
        position: relative;
        width: 100%;
        text-align: center;
        height: auto;
    }
    #descendre {
        margin-bottom: 100px;
    }

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

    #accueil h4{
        font-size : 1.5rem;
        padding-top: 20px;
    }

    #accueil h1{
        font-size : 6rem;
    }

    .photo {
        margin-top: -80px;
        position: relative;
        z-index: 10;
    }

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

    .about {
        width: 100%;
    }

    .about p {
        padding: 0 30px 40px 30px;
        text-align: justify;
    }

    .bouton {
        justify-content: center;
    }

    #contact p {
        font-size: 1rem;
    }
    #scrollTopBtn {
        display: none;
    }
    footer p{
        font-size: 0.5rem;
    }
}

@media (max-width: 500px) {
    #accueil{
        margin-top: 50px;
    }
    #accueil h1{
        font-size : 3rem;
    }
    .descendre{
        display: none;
    }
    h4{
        padding-top: 100px;
    }
    .projets {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 10px;
    }
    header{
        height: 320px;
    }
    header nav ul {
        padding: 5px 0;
    }
    header nav ul li {
        margin: 2px 0;
    }
    
}


@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;
    }
}





