@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Handjet:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: rgb(255, 245, 238);
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    transition: all 0.5s ease-in-out;
    width: 100%;
}

/* NAV */

nav{
    display: flex;
    justify-content: space-between;
    color: #0000ff;
    background-color: #fff;
    z-index: 100;
    position: relative;
}

nav .gauche{
    display: flex;
    align-items: center;
}

nav .gauche .button{
    margin: 15px 15px;
}

nav .droite{
    display: flex;
    align-items: center;
}

nav .droite a{
    text-decoration: none;
    color: #0000ff;
    margin-right: 15px;
}

.afficher_navigation{
    opacity: 0;
    position: fixed;
    left: 0;
    right: 0;
    animation: affichage_menu 0.5s ease-in-out;
    animation-fill-mode: forwards;
}

.ranger_navigation{
    animation: ranger_menu 0.5s ease-in-out;
    animation-fill-mode: forwards;
}

nav i{
    display: none !important;
    transition: 0.5s;
}

@keyframes affichage_menu {
    0%{
        top: -40px;
        opacity: 0;
    }
    100%{
        opacity: 1;
        top: 0;
    }
}

@keyframes ranger_menu {
    0%{
        opacity: 1;
        top: 0;
    }
    100%{
        top: -40px;
        opacity: 0;
    }
}

/* HEADER */

header{
    position: relative;
    height: 4600px;
    overflow: hidden;
    z-index: 10; /* Plus grand que les h1 */
    transition: 0.5s;
}

header h1{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 300px;
    line-height: 95px;
    font-weight: 900;
    color: #0000ff;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    white-space: nowrap;
    z-index: 40;
    
}

header #webdev{
    z-index: 20;
    top: 15%;
    transform: translateY(-50%) rotate(180deg);
    font-weight: 600;
}

header .web2{

    top: 85%;
    transform: translateY(-50%) rotate(180deg);
    font-weight: 600;
}

header .border{
    content: '';
    position: fixed;
    background: #0000ff; /* Couleur des bordures */
    z-index: 50; /* Passe au-dessus des h1 */
    /* transition: 0.3s; */
    opacity: 0;
}

/* Bordure gauche */
header .border-left {
    left: 0;
    top: 0;
    bottom: 0;
    width: 100px; /* Largeur des côtés */
    transform-origin: left;
}

/* Bordure droite */
header .border-right {
    right: 0;
    top: 0;
    bottom: 0;
    width: 100px; /* Largeur des côtés */
    transform-origin: right;
}

/* Bordure haut */
header .border-top {
    left: 0;
    top: 0;
    right: 0;
    height: 100px; /* Épaisseur du haut */
    transform-origin: top;
}

/* Bordure bas */
header .border-bottom {
    left: 0;
    bottom: 0;
    right: 0;
    height: 100px; /* Épaisseur du bas */
    transform-origin: bottom;
}

.noview{
    animation: noview 1s ease;
}

.view{
    animation: view 1s ease;
    animation-fill-mode: forwards;
}

.tobeige{
    animation: tobeige 1s ease-in-out;
    animation-fill-mode: forwards;
}

.toblue{
    animation: toblue 1s ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes noview{
    0%{
        opacity: 1;
    }

    100%{
        margin-top: -10px;
        opacity: 0;
    }
}

@keyframes view{
    0%{
        margin-top: -10px;
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

#chevron-down{
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 90;
    color: #fff;
    font-size: 25px;
    background: #0000ff;
    opacity: 0.5;
    padding: 10px;
    border-radius: 50%;
    transition: 0.5s;
    animation: bougeotte 2s ease-in-out infinite;
}

.chevron2{

    background: rgb(255, 245 , 238) !important;
    color: #0000ff !important;
}

#chevron-down:hover{

    opacity: 0.7;
    font-size: 30px;
}

@keyframes bougeotte {
    0%{
        margin-top: 0;
    }
    50%{
        margin-top: 10px;
    }
    100%{
        margin-top: 0;
    }
}

/* TITRE */
.titre_sect h2{
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 55;
    color: rgb(255, 245, 238);
    font-weight: 900;
    opacity: 0;
    font-size: 50px;
    text-align: center;
}

.afficher_titre{
    animation: affichage_titre 1s ease-in-out ;
    animation-fill-mode: forwards;
}

@keyframes affichage_titre {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.gotitreleft{
    animation: gotitreleft 1s ease-in-out ;
    animation-fill-mode: forwards;
}

.gotitrecentre{
    animation: gotitrecentre 1s ease-in-out ;
    animation-fill-mode: forwards;
}

@keyframes gotitreleft {
    0%{
        top: 45%;
        left: 50%;
        opacity: 1;
    }
    100%{
        top: 3%;
        left: 6%;
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes gotitrecentre {
    0%{
        top: 10%;
        left: 15%;
        opacity: 1;
    }
    100%{
        top: 45%;
        left: 50%;
        opacity: 1;
    }

}

/* ABOUT */
.about{
    position: fixed;
    display: flex;
    z-index: 55;
    color: rgb(255, 245, 238);

    margin: 7% 6% 0px 6%;
}

.about .content-about{
    opacity: 0;
    transition: 0.5s;
}

.about img{
    margin-top: 10%;
    opacity: 0;
    width: 40%;
    border-top-left-radius: 80%;
    border-top-right-radius: 80%;
    transition: 0.5s;
    height: auto; /* Garde le ratio hauteur/largeur */
    object-fit: cover;
}

.affiche_about .content-about{
    opacity: 1;
}

.affiche_about img{
    margin: 0;
    opacity: 1;
}

.content-about h3{
    font-size: 25px;
    margin: 10px 0;
}

.content-about h4{
    margin: 0;
    font-size: 20px;
}

.content-about h6{
    margin: 0;
    font-size: 17px;
    font-weight: 200;
}

.content-about .desc{
    margin: 0;
}

.content-about ul{
    margin-bottom: 30px;

}

.content-about a{
    background-color: rgb(255, 245, 238);
    padding: 10px 20px;
    border-radius: 25px;
    color: #0000ff;
    text-decoration: none;
    border: 1.5px solid white;
    transition: 0.5s;
}

.content-about a:hover{
    color: rgb(255, 245 , 238);
    background-color: #0000ff;
}
/* PROJET */

.titre_de_section_projet{
    transition: 0.5s;
}

.projet{
    width: 100%;
    position: initial;
    top: 15%;
    transition: 1s;
    background-color: rgb(255, 245, 238);
    z-index: 70;
}

.card{
    position: absolute; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0px 0px 29px 4px rgba(142,142,142,0.15);
    cursor: pointer;
    transition: 0.5s;
}

.card:hover{
    zoom: 102%;
}

.card .img{
    width: 100%;
    height: 50%;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-position: center;
    border-radius: 20px;
}

.card h2{
    text-align: center;
    font-size: 40px;
    line-height: 45px;
}

.card .content-attribut{
    display: flex;
}

.card .content-attribut p{
    margin: 0 4px;
    padding: 2px 4px;
    color: rgb(255, 245 , 238);
    border-radius: 5px;
}

.trans{
    animation: goright 1s ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes goright {
    0%{
        left: 50%;
    }
    10%{
        left: 52%;
        
    }
    100%{
        left: -150%;
        transform: perspective(700px) rotateY(-10deg);
    }
}

.notrans{
    animation: goleft 1s ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes goleft {
    0%{
        left: -150%;
    }
    100%{
        left: 50%;
    }
}

/* TITRE CONTACT */

.Titre_contact{
    position: relative;
    left: -5%;
    width: 110%;
    height: 300px;
    background-color: #0000ff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: rgb(255, 245 , 238);
    transform: rotate(3deg);
    z-index: 80;
}

.Titre_contact h2{
    transform: rotate(-3deg);
}

/* CONTACT */


.contact{
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 6%;
    column-gap: 3%;
    padding: 80px 13% 50px 13%;
    margin-top: -30px;
    width: 74%;
    z-index: 70;
    background-color: rgb(255, 245 , 238);
}
  
.box{  
    transition: 0.5s; /* regle les effets de transition à 0.2s */
    border-radius: 20px;
    max-height: 15vw;
    background-color: #fff;
    box-shadow: 0px 0px 29px 4px rgba(142,142,142,0.15);
    transition: 0.5s;
    overflow: hidden;
    cursor: pointer;
}

.box1 { grid-area: 1 / 1 / 2 / 2; }
.box2 { 
    grid-area: 1 / 2 / 2 / 4; 
    width: 100%;
}
.box3 { grid-area: 1 / 4 / 2 / 5; }
.box4 { grid-area: 2 / 1 / 3 / 3; }
.box5 { grid-area: 2 / 3 / 3 / 4; }
.box6 { grid-area: 2 / 4 / 3 / 5; }

.box .img{
    background: url("../img/photo\ dossier.JPG") no-repeat;
    width: 20vw;
    height: 20vw;
    background-size: cover;
    background-position: 50% 30%;
}

.box i{
    margin: 20px 10px 10px 20px;
    font-size: 30px;
}

.box h3{
    margin: 0;
    padding-left: 20px;
}

.box p{
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.box a{
    padding: 10px 20px;
    border-radius: 20px;
    border: 0.5px #f1f1f1 solid;
    color: black;
    text-decoration: none;
    margin: 10px;
    top: 20px;
    transition: 0.5s;
}
  
/* .dragged{
    opacity: 1;
}

.onvalue{
    opacity: 1;
    border: none;
} */
  
/* .dropHover{
    transform: scale(1.3);
    border: solid 5px orange;
} */
  
/* FOOTER */
footer{
    bottom: 0;
    position: relative;
    width: 100%;
    padding: 10px 0;
    background-color: #0000ff;
    text-align: center;
    color: rgb(255, 245 , 238);
    z-index: 80;
}