*{
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    background-image: url('images/fond1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 10rem;
}

/*Navigation et contacts*/
.navbar {
    background-color: rgba(249, 247, 232, 0.9);
    display: flex;
    flex-direction: row;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 11.8vh;
}

.navbar img {
    margin-left: 30px;
    margin-top: 0.7%;
    width: 75px;
    height: 60px;
    padding: 5px;
    transition: transform 1s ease-out;
    background-color: rgb(155, 131, 87);
    position: relative;
}

.navbar a {
    width: 30vh;
    text-decoration: none;
    color: rgb(155, 131, 87);
    padding-top: 35px;
    text-align: center;
    font-size: 30px;
    transition: transform 0.5s ease-out;
    margin-left: auto;
}

a:hover {
    text-decoration: underline;
    transform: scale(1.2);
    cursor: pointer;
}


.navbar img {
    position: relative;
    transition: transform 1s ease-out; 
}

.navbar img:hover {
    transform: rotate(360deg);
}

.contactMe {
    position: absolute;
    bottom: -10px; 
    left: 4%;
    transform: translateX(-51%);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    z-index: 5;
    background-color: black;
    color: red;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 1.6vh;
}


.listeContact {
    display: flex;
    text-align: center;
    flex-direction: column;
    position: fixed;
    width: 100px;
    background-color: transparent;
    border-radius: 5%;
    top: 15vh;
    margin-left: 3vh;
    z-index: 5;
}

.ContactBtn {
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    width: 100px; 
    height: 100px; 
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 1vh;
}

.ContactBtn img {
    width: 240px; 
    height: auto; 
    border-radius: 50%; 
}
#btnYoutube{
    width: 240px; 

}
#btnGithub{
    margin-top: 10px;
    width: 220px;
    height: auto; 

}
#Mail{
    text-decoration: none;
}

.ContactBtn:hover {
    animation: rebond 0.6s;
}

.scrollbar {
    position: sticky;
    top: 100px;
    left: 0;
    height: 5px;
    background-color: rgb(155, 131, 87);
    width: 0;
    transition: width 0.5s;
    z-index: 200;
}


.main {
    width:100%;
    background-color: transparent;
}
/*Footer&&Copyright*/
footer {
    background-color: rgb(155, 131, 87);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 2vh;
}
::-webkit-scrollbar { 
    display: none;
}
.copyright{
    --max-width: 75rem;
    height:3rem;
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
    
}

/*Section*/

.container {
    width: 100%;
}

#accueil {
    background-color: transparent;
    color: #F9F7E8;
    min-height: 88.2vh;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

#accueil .container {
    background-color: transparent;
    color: #F9F7E8;
    position: relative;
    min-height: 100vh;
    margin-top: -0px;
    margin-bottom: -210px;
}

#accueil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/fond2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#accueil h2,
#accueil p {
    color: #F9F7E8;
}

section{

    width: 95%;
    margin: auto;
}

#portfolio,
#projects,
#skills {
    background-color: rgba(249, 247, 232,0.9);
    color: rgb(155, 131, 87);
    border-radius: 0.5%;
    width: 85rem;
}
#skills{
    height: 100%;
    margin-bottom: 5vh;
    margin-top: 25vh;
}
#skills .container{
    height: 40rem;

}
#projects .container{
    height: 47rem;
    margin-top: 17vh;

}

#portfolio,
#projects{
    background-color: rgba(249, 247, 232,0.9);
    color: rgb(155, 131, 87);
    border-radius: 0.5%;
}

/*Css text*/

h2 {
    font-size: 5rem;
    font-weight: 900;
    margin-left: 5%;
    margin-top: 15.8vh;
    height: 11vh;
}
#accueil h2{
    margin-top: 36vh;
}

p {
    margin-left: 5%;
    font-size: 1.3rem;
}
h5{
    margin-left: 5%;
}







/*Buttons*/


.inclined-button {
    transform: rotate(45deg);
}
.dlButton {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    color: rgb(155, 131, 87);
    cursor: pointer;
    position: relative;
    padding: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    transition: all .15s ease;
    width: 20%;
    left: 50vh;
    margin-top: 10%;
  }
  
  .dlButton::before,
  .dlButton::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    height: calc(50% - 5px);
    border: 1px solid #7D8082;
    transition: all .15s ease;
  }
  
  .dlButton::before {
    top: 0;
    border-bottom-width: 0;
  }
  
  .dlButton::after {
    bottom: 0;
    border-top-width: 0;
  }
  
  .dlButton:active,
  .dlButton:focus {
    outline: none;
  }
  
  .dlButton:active::before,
  .dlButton:active::after {
    right: 3px;
    left: 3px;
  }
  
  .dlButton:active::before {
    top: 3px;
  }
  
  .dlButton:active::after {
    bottom: 3px;
  }
  
  .dlButton_lg {
    position: relative;
    display: block;
    padding: 10px 20px;
    color: rgb(155, 131, 87);
    
    background-color: #F9F7E8;
    overflow: hidden;
    box-shadow: inset 0px 0px 0px 1px transparent;
  }
  
  .dlButton_lg::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background-color: #0f1923;
  }
  
  .dlButton_lg::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 4px;
    height: 4px;
    background-color: #0f1923;
    transition: all .2s ease;
  }
  
  .dlButton_sl {
    display: block;
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -8px;
    width: 0;
    background-color: #0f1923;
    transform: skew(-15deg);
    transition: all .2s ease;
  }
  
  .dlButton_text {
    position: relative;
  }
  
  .dlButton:hover {
    color: #0f1923;
  }
  
  .dlButton:hover .dlButton_sl {
    width: calc(100% + 15px);
  }
  
  .dlButton:hover .dlButton_lg::after {
    background-color: #fff;
  }
  
.button-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    gap: 20px;
}
#btnjava {
    background-image: url('images/btnJava.png');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#btnjavafx {
    background-image: url('images/btnJavaFX.png');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#btnweb {
    background-image: url('images/btnWeb.png');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#btnhtml{
    background-image: url('images/btnHtml.png');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#btncss{
    background-image: url('images/btnCss2.png');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#btnjs{
    background-image: url('images/btnJs.png');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#btnphp{
    background-image: url('images/btnPhp.jpg');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#btnmysql{
    background-image: url('images/btnMySql.png');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#btndbBrowser{
    background-image: url('images/btnDbBrowser.jpg');
    width: 90%;
    height: 15vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.container-button{
    display: flex;
    justify-content: center;
    gap: 20px;
}

#java{
    background-image: url('images/btnJava.png');
    background-size: cover;
}
#javafx{
    background-image: url('images/btnJavaFX.png');
    background-size: cover;
}
#web{
    background-image: url('images/btnWeb.png');
    background-size: cover;
        
}

.button-card {
    width: 20vh;
    height: 10vh;
    margin: 20px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    
}

.button-card:hover {
    transform: scale(1.1);
}
.button-card:focus {
    border: solid 4px black;
}

.button-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.button-card:hover::before {
    opacity: 0.7;
}


.button-card::after {
    content: attr(data-title);
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 18px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.button-card:hover::after {
    opacity: 1;
}
.initial-focus {
    outline: solid 4px black;
}


/*Project Cards*/

.cocard:hover > .card {
    cursor: pointer;
    transform: rotateY(180deg);
}

.cocard {
    width: 33%;
    height: 200px;
    perspective: 500px;
    transition: transform 0.5s;
    margin-left: 2px;
    margin-right: 2px;
    display: flex;
    flex-direction: row;
    background-color: #F9F7E8;
}

.cocard .back {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Pour cacher tout contenu dépassant de la carte */
}

.cocard .back a {
    display: block;
    width: 100%;
    height: 100%;
}

.cocard .back img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pour ajuster la taille de l'image tout en conservant les proportions */
    border-radius: 2rem;
}


.card {
    height: 100%;
    width: 98%;
    position: relative;
    transition: transform 1500ms;
    transform-style: preserve-3d;
}

.front,
.back {
    height: 100%;
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 0 5px 2px rgba(50, 50, 50, 0.25);
    position: absolute;
    backface-visibility: hidden;
}

.front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px rgb(155, 131, 87);
}
.back video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}
.video-container {
    overflow: hidden;
    border-radius: 2rem;
}


.back {
    background-color: #3a3a3a;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}
.frontContent{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px;
}
 
.containerTest {
    position: relative;
    --max-width: 75rem;
    height:33rem;
    width: min(100% - 2rem, var(--max-width));
    display: flex;
    flex-direction: row;
    height: 400px;
    margin: auto;
    
  }

  .divCommune {
    position: absolute;
    width: 100%;
    height: 38%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: row;
  }

/*Modal*/ 
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
  }
  
  .modal-content {
    width: 50%; /* Ajustez la largeur de la fenêtre modale selon vos préférences */
    height: 50%; /* Ajustez la hauteur de la fenêtre modale selon vos préférences */
    margin: 20%;
    margin-left: 25%;
    border-radius: 5%;
    overflow: hidden;
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
}

.modal-content video {
    width: 100%;
    height: auto;
    max-height: 100%;
    margin: auto;
    display: block;
}

.hidden {
    display: none;
}  
  
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



/* Responsive/Adaptive*/

/*2100px*/
    @media screen and (max-width: 2100px) {
        
    }
/*1500px*/  
    @media screen and (max-width: 1500px) {
        h2 {
            font-size: 4rem !important;
            font-weight: 900;
        }
        .navbar a {
            width: 100vh;
            text-decoration: none;
            color: rgb(155, 131, 87);
            padding: 25px;
            text-align: center;
            font-size: 25px;
            transition: transform 0.5s ease-out;
        }
        #portfolio,
        #projects,
        #skills {
            width: 90%;
        }
        .cocard#Portfolio,
        .cocard[data-video-id="luffy2"],
        .cocard[data-video-id="futurProject"] {
        display: none;
        }
        .divCommune {
            justify-content: space-around;
        }

        .divCommune .cocard {
            width: calc(50% - 40px);
            margin: 20px;
        }
        
        .button-container {
            grid-template-columns: repeat(3, 1fr);
            justify-content: center;
            align-items: center;
        }
        #skills .container{
            height: 48rem;
            margin-bottom: 2vh;
        
        }
        .contactMe {
            margin-left: 2.6vh;
        }
        .listeContact {
            margin-left: 5vh;
        }
    }

/*1000px*/ 
@media screen and (max-width: 1000px) {
    .button-container {
        grid-template-columns: repeat(2, 1fr);
    }
    #skills .container{
        height: 60rem;
        margin-bottom: 2vh;
    }
    .contactMe {
        margin-left: 4vh;
    }
}

/*800px*/ 
  @media screen and (max-width: 800px) {
    .navbar a {
        width: 90%;
        font-size: 20px;
    }
    .dlButton_text {
        font-size: 10px;
        font-weight: 700;
      }
  }

  /*660px*/ 
  @media screen and (max-width: 660px) {
    .navbar a {
        width: 90%;
        font-size: 15px;
    }
  }
  


  /*Animations*/
@keyframes rebond {
    40% {
        transform: scale(1.4);
    }

    60% {
        transform: scale(0.8);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes animeBack {
    0% {
      transform: translateY(-120px)  translateX(-50%);
      z-index: 3;
    }
    50% {
      transform: translateY(0px)  translateX(-50%);
      z-index: 0;
    }
    100% {
      transform: translateY(-120px) translateX(-50%);
      z-index: 0;
      
    }
  }


  @keyframes animeFront {
    0% {
      transform: translateY(-120px)  translateX(-50%);
      z-index: 0;

    }
    50% {
      transform: translateY(-240px)  translateX(-50%);
      z-index: 0;
    }
    60%{
        z-index: 4;
    }
    100% {
      transform: translateY(-120px)  translateX(-50%);
      z-index: 4;
    }
  }

  .animationStartedFront {
    animation: animeFront 2.5s ease-out forwards;
    

  }

  .animationStartedBack {
    animation: animeBack 2.5s ease-out forwards;
    display: none;

  }


  
  
  
  