
body{
    padding: 0%;
    margin: 0%;
}

header{
    position: fixed;
    width: 100%;
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 2%;
    padding-right: 4%;
    border-bottom: 1px black solid;
    z-index: 11111111111111;
}

header ul{
    display: flex;
    flex-direction: row;
    padding-right: 50px;
    width: max-content;
    margin: 0%;

}
header a{
    font-family: 'Roboto', sans-serif;;
    font-size: large;
    display: block;
    padding: 5px;
    text-decoration: none;
    color: black;
    margin: 6px;
    margin-top: 17px;
    text-align: center;
    opacity: 0.5;
    padding-bottom: 0%;
}
header a:hover{
    opacity: 1;
    transition: 1s;
}
.pp{
    padding: 12px;
    margin: 0%;
}
@keyframes rotate-logo {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(25deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

.pp {
    animation: rotate-logo 5s infinite;
}

body{
    background-color: #ffe4c4;
}


/*information generale//////////////////////////////////// */
.photo img{
    margin: 50px;
    margin-right: 70px;
    border-radius: 10%;
    border: 2px black solid;
    width: 30vh;
    height: 40vh;

}
.logo img{
    width: 30vh;
}
.nom h1, .nom h3{
    padding: 1px;
    margin-top: 70px;
    
}

.general {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 50px;
}

.logo {
    margin: 50px;
    margin-left: 120px;
}
.logo img{
    border-radius: 70%;
}


/* a propos        /////////////////////////////// */


.apropos{
    border-radius: 0% 100% 0% 100% / 69% 31% 100% 0% ; 
    border: 1px black solid;
    background-color: rgb(136, 107, 51);
    padding-top: 50px;
    min-height: 70vh;
}

.apropos h1{
    width: 100%;
    text-align: center;
}

.button-container {
    display: flex;
    justify-content: center;
    margin: 40px;
}

.btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
    opacity: 0.6;
    width: 180px;
    margin-left: 30px;
    margin-right: 30px;
    border: 2px black solid;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

.btn.active {
    opacity: 1;
}

.content-container {
    display: flex;
    justify-content: space-around;
    margin: 20px;
    padding: 30px;
    
}

.content {
    display: none;
    padding: 10px;
    border: 2px solid #ffffff;
    transition: opacity 0.3s;
    font-size: large;
    border-radius: 20px;
    background: rgb(255,228,196);
    background: linear-gradient(90deg, rgba(255,228,196,1) 6%, rgba(101,101,101,0.8548553210346639) 50%, rgba(255,228,196,1) 94%); 
}

.content.show {
    display: block;
    opacity: 1;
}



.langue {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.langue *{
    padding: 5px;
}


span{
    font-weight: bold;
    font-family: "MeriendaOne-Regular";
}







/*competences /////////////////////////// */


.competences {
    margin: 50px;
    text-align: center;
}

.container {
    display: flex;
    justify-content: space-around;
    margin: 20px;
}

.column1 {
    width: 25%;
    background-color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
}

.column2 {
    width: 25%;
    background-color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
}
.column3 {
    width: 25%;
    background-color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
}

.skill {
    margin: 10px 0;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.7s;
}

.skill:hover {
    background-color: #e0e0e0;
}

.skill::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    background-color: #007bff;
    width: 0;
    transition: width 1s;
    z-index: 0;
}

.skill:hover::before {
    width: var(--percentage);
}

.skill::after {
    content: attr(data-percentage);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.skill:hover::after {
    opacity: 1;
}




/*diplome /////////////////////////// */

.diplome {
    width: 100%;
    margin-top: 40px;
    display:flex;
    flex-direction: column;
    align-items: center;
    border-radius: 50% 50% 0% 0% / 15% 15% 0% 0% ;
    background-color: #9c6d007a;
}

.TS a{
    text-decoration: none;
    color: black;
    background-color: rgb(47, 164, 0);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 2px 2px 2px;
    margin: 20px;
}

.TS {
    background-color: white;
    min-width: 70vh;
    padding: 20px;
    margin: 15px;
    height: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    border: 1px black solid;
    box-shadow: 2px 2px 10px;
    
}



/*porfolio /////////////////////////// */

.portfolio h1{
    width: 100%;
    text-align: center;
}
.portfolio{
    min-height: 90vh;
}
.porfo {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 2px black solid;
    border-radius: 10px;
    margin: 20px;
    transition: 0.5s;
    
}
.porfo:hover{
    box-shadow: 3px 3px 8px;
    transform: scale(1.05);
}

.porfo img{
    border-radius: 10px;
    margin-left: 10px;
    border: 1px black solid;
}


.porfo div{
    margin: 25px;
    padding: 0px;
}



/*references /////////////////////////// */


.reftit{
    width: 100%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.549);
    padding-top: 20px;
}
.references {
    display: flex;
    flex-direction: row;
    justify-items: center; 
    align-items: center; 
    justify-content: center; 
    align-content: center; 
    background-color: rgba(255, 255, 255, 0.434);
    border-top: 1px black solid;
    width: 100%;
    padding-top: 30px;
    padding-bottom: 30px;
}

.references h2{
    width: 100%;
    text-align: center;
    margin-top: 70px;

}
/* Add the flip card styles */
.references .flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    margin: 30px;
    perspective: 1000px; 
  }
  
  .references .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .references .flip-card-inner.flipped {
    transform: rotateY(180deg);
  }
  
  .references .flip-card-front, .references .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
  }
  
  .references .flip-card-front {
    background-color: transparent;
    color: black;
  }
  
  .references .flip-card-back {
    border-radius: 20px;
    background-color: #cbb43a;
    color: white;
    transform: rotateY(180deg);
  }


/*cantact /////////////////////////// */

.cantacte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr ;
    align-items: center;
    justify-items: center;
}

.annon {
    width: 90%;
    text-align: center;
    font-size: large;
    padding: 10px;
    margin: 0px;
}

.fomu {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
}

h1 {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #28a745;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

.separation {
    margin-bottom: 20px;
}

.corps-formulaire {
    display: flex;
    justify-content: space-between;
}

.gauche, .droite {
    width: 48%;
}

.pied-formulaire {
    text-align: center;
}



.lien {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px;
    margin: 10px;
    border: 1px black solid;
    border-radius: 30px;
    width: max-content;
}
.lien a{
    padding: 15px;
    margin: 5px;
}


.menu-hamburger {
    width: 50px;
    position: absolute;
    top: 7px;
    right: 7px;
    display: none;
}

footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: white;
    margin-top: 70px;
}
footer p{
    margin-left: 30px;
    margin-right: 30px;
}



/* Media query pour les écrans de tablette */
@media screen and (max-width: 800px) {
    header{
        padding: 0;
        backdrop-filter: none;
    }

    

    header .menu-hamburger{
        display: block;
        position: fixed;
        z-index: 9999999999999;
    }

    .nav-links{
        top: 0;
        left: 0;
        position: fixed;
        background-color: rgba(232, 226, 226, 0.152);
        backdrop-filter: blur(15px);
        z-index: 999999999; 
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -102%;
        transition: all 1s ease;
    }

    .nav-links.mobile-menu{
        margin-left: 0;
    }

    .nav-links .mobile-menu ul{
        max-height: 90vh;
    }

    header ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 70vh;
        padding: 10px;
        margin: 0%;
        
    }


    header .nav-links a{
        margin: 10px 20px;
        font-size: 1.6em;
        opacity: 1;
        text-decoration: underline;
    }
    
    header .logo{
        position: absolute;
        top: 37px;
        left: 40px;
    }

    .general {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .logo img{
        display: none;
    }
    .photo img{
        grid-area: 1 / 1 / 2 / 2;
        width: 65%;
        justify-content: center;
        height: auto;
        margin-right: 0%;
        margin: 40px;
    }
    .nom h3{
        grid-area: 2 / 1 / 3 / 3;
        text-align: left;
        font-size: medium;
        font-weight: 300;
    }

    .nom h1 {
        grid-area: 2 / 1 / 3 / 3;
        text-align: left;
        font-size: larger;
    }
    .button-container{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        justify-content: space-between;
    }
    .btn {
        width: 100%;
        margin: 5px;
    }
    .content-container{
        padding: 5px;
        margin: 10px;
    }
    
    .competences{
        margin: 0%;
    }
    .container{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
    .column1 {
        grid-area: 1 / 1 / 2 / 3;
        width: 80%;
    }
    .column2 {
        grid-area: 2 / 1 / 3 / 2;
        width: 80%;
    }
    .column3 {
        grid-area: 3 / 1 / 4 / 2;
        width: 80%;
    }
    .porfo {
        display: flex;
        flex-direction: column;
        text-align: left;
        margin: 8px;
    }

.porfo img{
    display: none;
}

.porfo div{
    grid-area: 1 / 2 / 2 / 4;
}

.references{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 21px;
}

.references .flip-card{
    background-color: transparent;
    width: 240px;
    height: 240px;
    margin: 0px;
    perspective: 1000px; 
}



.cantacte{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.rs {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}


.lien{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: max-content;
    border: none;
    padding: 2px;
    margin: 5px;
}

.lien a{
    padding: 2px;
    margin: 4px;
}

.TS {
    min-width: 80%;
    margin: 5px;
    margin-bottom: 20px;
    padding: 5px;
}

}

