@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Bogle&display=swap');
@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Bogle&family=Oswald:wght@200..700&display=swap');

body {
    font-family: Arial, Helvetica, sans-serif;
    background: url("./assets/Images/BackGround3.png") center/ cover;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    color: rgb(189, 154, 154);
    text-align: left;
}

#nav-menu a{
    color: aliceblue;
    background: rgba(255, 223, 128, 0.1); 
    border: 2px solid gold;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    padding: 0px 10px;
}

#nav-menu a:hover {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

#nav-menu-portfolio {
    position: absolute;
    left: 20px;
    top: 5px;
}

#nav-menu-portfolio a{
    color: aliceblue;
    background: rgba(255, 223, 128, 0.1); /* Doré transparent */
    border: 2px solid gold;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    padding: 0px 10px;
}

#nav-menu-portfolio a:hover {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

header ul {
    display: flex;
    padding: 0;
    gap: 50px;
}

header li {
    list-style: none;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
}

#Competences,
#Projets,
#CV {
  scroll-margin-top: 25vh;
}

.language {
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: absolute; 
    right: 50px;
    top: 0;
    z-index: 1001;
}

.language button {
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 3px 0;
}

.language button.active {
  outline: 2px solid gold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(5px);
  transform: scale(1.1);
}

.language button:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.lang-btn-fr {
    color: #2b3255;
    background: linear-gradient(to right, rgb(231, 160, 117), rgb(205, 109, 107));
    border-style: inset;
    border-color: rgb(41, 65, 45);
}

.lang-btn-us {
    color: #2b3255;
    background: linear-gradient(to right, rgb(231, 160, 117), rgb(205, 109, 107));
    border-style: inset;
    border-color: rgb(41, 65, 45);
}

.header-portfolio h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: -5px 5px 2px #00000052;
    color: #ffffff;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0 auto;
    width: fit-content;
} 

h1 {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: -5px 5px 2px #0000002c;
    color: #2b3255;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.presentation {
    box-shadow: -13px 16px 20px 0px rgba(46, 11, 11, 0.445);
    text-shadow: 4px 4px 7px #15074836;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 50% 20% / 10% 25%;
    margin: 10px 10px;
    padding: 25px;
    border: 2px solid gold;
}

.presentation:hover {
    transform: scale(1.007);
    transition: transform 0.2s ease;
}

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

p {
    text-align: center;
    color: #252f61;
}

.moi img {
    border-style: ridge;
    border-color: gold;
    border-radius: 100px;
    box-shadow: 0px 12px 10px 3px #03071160;
    width: 100%;
}

.moi img:hover {
    transform: scale(1.020);
    transition: transform 0.2s ease;
}

.Apropos {
    position: relative;
    padding: 10px 0px;
}

.Apropos p {
    text-align: left;
    text-transform: initial;
}

.Apropos a{
    position: absolute;
    right: 0px;
    color: aliceblue;
    font-size: 0.7rem;
    background: #2b3255;
    border: 2px solid gold;
    border-radius: 8px;
    padding: 5px 20px;
}

.Apropos a:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.Apropos li {
    list-style: none;        
    position: relative;
    padding-left: 30px;      
}

.Apropos li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;              
    width: 16px;            
    height: 16px;          
    background-image: url("./assets/Images/puce.png");
    background-size: contain; 
    background-repeat: no-repeat;
}

.Apropos h3 {
    color: aliceblue;
    background: #2b3255;
    padding: 5px;
    border-radius: 8px;
    box-shadow: -4px 0 0 0 gold;
}

.Images_Competences {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.Images_Competences img {
    height: 125px;
    width: 125px;
}

.Images_Competences img:hover {
    transform: scale(1.050);
    transition: transform 0.2s ease;
}

.Images_Competences a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 223, 128, 0.1); 
    border: 2px solid gold;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    width: fit-content;
}

.Images_Competences a:hover {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  transform: translateY(-3px);
}

.projets,
.Projects-3D {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.projet_space_invaders {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.Projet_Platformer_2d {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.projet_ShootEm_Up {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.projet_groupe_NSI {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.projet_groupe_EnJam {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.projet_groupe_Mars2 {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.projet_groupe_editeur_perso {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.projet_groupe_Village_fortifie {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.projet_Assets_House {
    display: flex;
    color: #252f61;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 3%;
    margin: 10px 10px;
    padding: 25px;
    box-shadow: -13px 16px 20px 0px rgb(46, 11, 11);
}

.imagesVillage {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.imagesHouse {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.buttonImage {
    display: flex;
    justify-content: space-between;
}

.imagesVillage button {
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.imagesHouse button {
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.imagesVillage button:hover {
  color: orange;
}

.imagesHouse button:hover {
  color: orange;
}

.projets h2,
.Projects-3D h2 {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: -5px 5px 7px #00000052;
    color: #2b3255;
    font-family: "Oswald", sans-serif;
    font-weight: 250;
    font-style: normal;
}

.projets video {
    border-style: ridge;
    border-color: rgb(192, 153, 0);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 5%;
    width: 50%;
    object-fit: cover;
}

.Projects-3D video {
    border-style: ridge;
    border-color: rgb(192, 153, 0);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 5%;
    width: 100%;
}

.projets img {
    border-style: ridge;
    border-color: rgb(192, 153, 0);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 5%;
    width: 50%;
}

.Projects-3D img {
    border-style: ridge;
    border-color: rgb(192, 153, 0);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 5%;
    width: 100%;
}

.projets ul,
.Projects-3D ul {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 50%;
}

.Game_links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1em;
}

h2 {
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: -5px 5px 7px #00000052;
    color: #2b3255;
    font-family: "Oswald", sans-serif;
    font-weight: 250;
    font-style: normal;
}

.Titre-Portfolio-Sections {
    background: #1f284f;
    color: #ffffff;
    border: 2px solid gold;
}

.CV {
    display: flex;
    gap: 50px;
}

.CV img {
    width: 25%;
    border: 2px solid gold;
    border-radius: 5%;
}

.CV img:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    transform: translateY(-3px);
}

.link a{
    color: aliceblue;
    font-size: 1.5rem;
    background: #2b3255;
    border: 2px solid gold;
    border-radius: 8px;
    padding: 5px 50px;
}

.link a.active {
  outline: 2px solid gold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(5px);
  transform: scale(1.1);
}

.link a:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.CV h2 {
    margin: 0 0;
}

.link {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 40%;
}

.contact form {
    display: grid;
    grid-template-rows: 17% 25% 55% 5%;
    align-items: center;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 5%;
    margin: 25px 10px;
    padding: 35px;
    box-shadow: 0px 0px 100px 10px rgba(46, 11, 11, 0.703);
    border: 2px solid gold;
}

.contact form:hover {
    transform: scale(1.020);
    transition: transform 0.2s ease;
}

.contact label {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.contact textarea {
    resize: vertical;
    padding: 50px;
    border-radius: 8px;
}

.contact input {
    padding: 5px 125px;
    border-radius: 8px;
}

#btn-submit {
    color: #1e39c1;
}

#btn-submit:hover {
    color: #c31212;
    transform: scale(1.020);
    transition: transform 0.2s ease;
}

.contact .tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 25px;
  margin-top: 20px;
  background: rgba(255, 223, 128, 0.1); 
  border: 2px solid gold;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  width: fit-content;
}

.contact .tel:hover {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  transform: translateY(-3px);
}

.contact .tel img {
  height: 50px;
  filter: drop-shadow(0 0 5px gold);
}

.contact .tel p {
  list-style: none;
  color: gold;
  font-family: "Oswald", sans-serif;
}

section {
    padding: 25px;
    margin: 25px 150px;
    background: linear-gradient(to right, rgb(231, 160, 117), rgb(205, 109, 107));
    border-radius: 20px;
    border-style: inset;
    border-color: rgb(194, 157, 12);
    box-shadow: -5px 5px 0px #00000052;
}

.footer_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: "Oswald", sans-serif;
}

.footer_content p {
    color: aliceblue;
}

.mentions-button {
  background: none;
  border: none;
  color: aliceblue;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s;
}

.mentions-button:hover {
  color: #ffd966;
}

.legal-modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.legal-content {
  background: linear-gradient(to right, rgb(231, 160, 117), rgb(205, 109, 107));
  border: 2px solid gold;
  border-radius: 20px;
  margin: 10% auto;
  padding: 30px;
  width: 80%;
  max-width: 700px;
  color: #252f61;
  font-family: "Oswald", sans-serif;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
  position: relative;
  text-align: center;
}

.legal-content h2 {
  margin-bottom: 15px;
  color: #2b3255;
  text-shadow: -4px 4px 6px #00000052;
}

.legal-content p {
  line-height: 1.6;
  color: #252f61;
}

.legal-content a {
  color: gold;
  text-decoration: none;
  font-weight: bold;
}

.legal-content a:hover {
  text-decoration: underline;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: gold;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ffd966;
}

/*RESPONSIVE*/

@media screen and (max-width: 800px) {
    .projet_space_invaders {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

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

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

    .projets ul {
        display: flex;
        margin: auto 100px auto auto;
    }
}

@media screen and (max-width: 1300px) {
    .Link {
    width: 50%;
    overflow-wrap: break-word;
    }
}

@media screen and (max-width: 1050px) {
    .Apropos a{
        position: absolute;
        bottom: 0px;
        color: aliceblue;
        font-size: 0.7rem;
        background: #2b3255;
        border: 2px solid gold;
        border-radius: 8px;
        padding: 5px 20px;
    }

    .Game_links {
    display: flex;
    flex-direction: column;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background: linear-gradient(to right, #25293e, rgb(36, 27, 58));
    z-index: 1000; 
    transition: top 0.3s;
}

.menu-toggle {
    display: none; 
    font-size: 2rem;
    cursor: pointer;
    color: #f4f4f4;
    z-index: 1002; 
}

#nav-menu {
    display: flex;
    gap: 50px;
}

/* Mobile */
@media screen and (max-width: 950px) {
    header {
        justify-content: flex-start; 
        padding: 20px 0px;
    }

    .header-portfolio {
        display: flex;
        justify-content: flex-start; 
        padding: 5px 0px;
    }

    .menu-toggle {
        display: block; 
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 20px; 
        background: rgba(36, 27, 58, 0.95);
        border-radius: 10px;
        padding: 10px;
        z-index: 1001;
        min-width: 150px;
    }

    #nav-menu-portfolio {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 20px; 
        background: rgba(36, 27, 58, 0.95);
        border-radius: 10px;
        padding: 10px;
        z-index: 1001; 
        min-width: 150px;
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu-portfolio.active {
        display: flex;
    }

    #nav-menu ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #nav-menu-portfolio ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #header-portfolio h1 {
        font-size: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;         
        width: 75vw;      
    }



    .language {
        display: flex;
        flex-direction: column;
        padding: 10px;
        position: absolute; 
        right: 0;
        top: 0;
        z-index: 1001;
    }

  .projets,
  .Projects-3D {
    gap: 2em;
  }

  .projets video,
  .projets img,
  .imagesVillage {
    width: 95%;
    max-width: 100%;
    height: auto;
    border-radius: 50px;
    box-sizing: border-box;
  }

  .projet_space_invaders,
  .Projet_Platformer_2d,
  .projet_ShootEm_Up,
  .projet_groupe_NSI,
  .projet_groupe_EnJam,
  .projet_groupe_Mars2,
  .projet_groupe_editeur_perso,
  .projet_groupe_Village_fortifie {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    margin: 10px;
    border-radius: 10% 10% / 10% 10%;
    gap: 10px;
  }

  .projets ul,
  .Projects-3D ul {
    align-items: flex-start; 
    width: 80%;
    margin: 0 auto;
    font-size: 0.85rem;     
    line-height: 1.2;       
    gap: 0.4em;             
  }

  .projets li,
  .Projects-3D li {
    margin-bottom: 0.2em;  
  }

  .CV {
    display: flex;
    flex-direction: column-reverse;
    gap: 50px;
  }
  
  .CV img {
    width: 100%;
  }

  .contact .tel {
    width: 100%;
    gap: 0px;
    font-size: 0.68rem;
  }

  .contact form {
    display: grid;
    grid-template-rows: 17% 25% 55% 5%;
    align-items: center;
    background: rgba(255, 216, 157, 0.103);
    border-radius: 5%;
    margin: 25px 10px;
    padding: 35px 25px;
    box-shadow: 0px 0px 100px 10px rgb(46, 11, 11);
    border: 2px solid gold;
    gap: 5px;
    }

    .contact label {
        display: flex;
        flex-direction: column;
        padding: 0px;
    }

    .contact textarea {
        resize: vertical;
        padding: 25px;
        border-radius: 8px;
    }

    .contact input {
        padding: 0px;
        border-radius: 8px;
    }


  section {
    padding: 25px;
    background: linear-gradient(to right, rgb(231, 160, 117), rgb(205, 109, 107));
    border-radius: 20px;
    border-style: inset;
    border-color: rgb(194, 157, 12);
    box-shadow: -5px 5px 0px #00000052;
    width: 100%; 
    box-sizing: border-box; 
    margin: 150px 0;
    box-sizing: border-box;
  }
}
