html {
  scroll-behavior: smooth;
  overflow: auto;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: auto;
  width: 100%;
  background: #002349;
  color: #f8f8f8;
}

a {
  text-decoration: none;
}

.block-information p{
  margin-top: 10px;
  font-size: 18px;
}
/*-------------------------------------------- HEADER ----------------------------------------------- */
#logo{
  margin-left: 20px;
  width: 48px;
  height: auto;
}

.topnav {
  /* background-color: #037e6b; */
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 7%;
  font-size: 1.2em;
  position: fixed;
  z-index: 2;
  border-bottom: solid 1.5px #002349;
}

#contact-margin {
  margin-right: 30px;
}

.topnav_link {
  color: black;
  padding: 12px;
  text-decoration: none;
}

/* hide responsive menu */
#topnav_hamburger_icon,
#topnav_responsive_menu {
  display: none;
}

.snip1135 * {
  box-sizing: border-box;
}
.snip1135 li {
  display: inline-block;
  list-style: outside none none;
  margin: 0 1.5em;
  padding: 0;
}
.snip1135 a {
  padding: 0.5em 0;
  position: relative;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 16px;
}
.snip1135 a:before,
.snip1135 a:after {
  position: absolute;
  -webkit-transition: all 0.35s ease;
  transition: all 0.35s ease;
}

.snip1135 a:before {
  bottom: 0;
  display: block;
  height: 3px;
  width: 0%;
  content: "";
  background-color: #002349;
}

.snip1135 a:after {
  left: 0;
  top: 0;
  padding: 0.5em 0;
  position: absolute;
  content: attr(data-hover);
  color: #fff;
  white-space: nowrap;
  max-width: 0%;
  overflow: hidden;
}
.snip1135 a:hover:before,
.snip1135 .current a:before {
  opacity: 1;
  width: 100%;
}
.snip1135 a:hover:after,
.snip1135 .current a:after {
  max-width: 100%;
}

@media (max-width: 1024px){
  .title-presentation{
    margin-top: 30px;
    font-size: 34px;
  }

  /* hide classic menu */
  #topnav_menu {
    display: none;
  }

  .topnav {
    font-size: 1em;
    position: relative fixed;
  }

  /* show responsive menu and position at the right of the screen */
  #topnav_responsive_menu {
    display: block;
    position: absolute;
    margin: 0;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    transform-origin: 0% 0%;
    transform: translate(200%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  #topnav_responsive_menu ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    margin: 0;
    right: 0;
    top: 0;
    min-width: 50vw;
    height: 35vh;
    padding: 56px 0 0;
    text-align: center;
    background: #fff;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
  }

  #topnav_responsive_menu li {
    padding: 12px 24px;
    font-size: 1.5em;
  }

  #topnav_responsive_menu a {
    white-space: nowrap;
    color: #333;
    text-decoration: none;
  }

  /* And let's slide it in from the right */
  #topnav_responsive_menu.open {
    transform: none;
    position: fixed;
  }

  /* ******************** HAMBURGER ICON ******************** */
  /* define size and position of the hamburger link */
  #topnav_hamburger_icon {
    display: block;
    position: relative;
    margin: 16px;
    width: 33px;
    height: 28px;
    z-index: 100;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
  }

  /* define the style (size, color, position, animation, ...) of the 3 spans */
  #topnav_hamburger_icon span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    margin-bottom: 5px;
    background: #000;
    border-radius: 3px;
  }

  /* set the 3 spans position to look like a hamburger */

  #topnav_hamburger_icon span:nth-child(2) {
    top: 12px;
  }
  #topnav_hamburger_icon span:nth-child(3) {
    top: 24px;
  }

}

/*-------------------------------------------- Présentation ----------------------------------------- */
.title-presentation{
  margin: 8px;
  font-size: 34px;
}

.block_presentation {
  display: flex;
  flex-direction: row;
}

.block-moi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 100%;
  font-size: 1.3em;
  margin-top: 12vh;
  margin-bottom: 8vh;
}

@media (max-width: 1024px){
  .block-moi {
    font-size: 1.4em;
    margin: auto;
    margin-top: 10vh;
    width: 80%;
  }
  #text-moi {
    text-align: justify;
    font-size: 1em;
    margin-bottom: 15%;
  }
}

/* ------------------ 3 blocks informations of me -------------------- */

#block-three-information{
  display: flex;
  justify-content: space-evenly;
}

.block-information{
  width: 30%;
  background-color: #294A95;
  box-shadow: 1px 1px 5px #72727271, -1px -1px 5px #7d7e7e71;
}

.title-block-information{
  background-color: #fff;
  color: black;
  margin: 0;
  padding: 1vh 0 1vh 3vh;
}

.text-block-information{
  text-align: justify;
  padding: 10vh 4vh 0 4vh;
  margin: 0;
  margin-top: 3vh;
}

.text-block-information, li{
  padding: 0 3vh 1vh 3vh;
}

@media (max-width: 1024px){
  #block-three-information{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 3vh;
  }

  .block-information{
    width: 80%;
    margin-bottom: 4vh;
  }

  .title-block-information{
    text-align: center;
    padding: 1vh 0 1vh 0;
  }
}

/* ------------------ Social Networks -------------------- */

#block-social-network{
  margin-top: 4vh;
  margin-bottom: 2vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-social-network{
  display: flex;
  flex-direction: column;
}

.link-resume{
  margin: auto;
}

.button-CV{
  width:200px;
  font-size: 1em;
	height:40px;
  cursor: pointer;
	background: white;
	transform: skew(-30deg);
}

.button-CV:hover{
  background-color: #294A95;
  color: white;
}

/*-------------------------------------------- FORMATION ----------------------------------------------- */

.block-formation{
  background: url("./static/images/Formation/backgroundFormation.png") center center;
  color: black;
  padding-top: 5vh;
  margin: auto;
  padding-bottom: 10vh;
}

.title-formation{
  font-size: 2.5em;
  color: #0A1828;
  margin: auto;
  padding-top: 15px;
  margin-bottom: 5vh;
  text-align: center;
}

.block-etude{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
.block-etude h3{
  margin: 7px 0;
}
.block-etude p{
  margin: 7px 0;
}
.block-etude img{
  width: 45px;
}
.block-etude-gauche{
  display: flex;
  width: 43%;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.block-etude-milieu{
  width: 4px;
  background-color: #0A1828;
}
.block-etude-droite{
  display: flex;
  width: 43%;
  flex-direction: column;
  align-items: center;
  padding-top: 10vh;
  gap: 80px;
}

.block-diplomes{
  text-align: center;
  background-color: #002349;
  color: white;
  width: 80%;
  padding-left: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.paragraphe-diplome{
  font-size: 1.2em;
}
@media (max-width:1024px){
  .block-etude{
    font-size: 1em;
    text-align: center;
    flex-direction: column;
  }
  .block-formation{
    padding-bottom: 4vh;
  }
  .block-diplomes{
    width: 100%;
    margin-bottom: 3vh;
    padding: 0;
  }
  .block-etude-milieu{
    display: none;
  }
  .block-etude{
    flex-direction: column;
  }
  .block-etude-gauche, .block-etude-droite{
    width: 90%;
    margin: auto;
  }
  .block-etude-gauche{
    gap: 0px;
  }

  .block-etude-droite{
    padding: 0;
    gap: 0px;
  }
}

/*-------------------------------------------- SKILLS ----------------------------------------------- */

.block-skills{
  padding-top: 5vh;
  margin: auto;
  padding-bottom: 10vh;
}

.title-white{
  font-size: 2.5em;
  color: white;
  margin: auto;
  margin-bottom: 5vh;
  text-align: center;
  padding-top: 15px;
}

.block-langage-outil{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.jpp img{
  padding: 0 15px;
  width: 65px;
}
.title-comp{
  background-color: #fff;
  color: black;
  margin: 0;
  padding: 1vh 0 1vh 3vh;
}

.block-logo{
  padding: 0px 10px;
}

.block-comp{
  width: 37%;
  background-color: #294A95;
  box-shadow: 1px 1px 5px #72727271, -1px -1px 5px #7d7e7e71;
}

.last-line{
  padding-bottom: 8px;
}

#elephant{
  height: 50px;
  width: 70px;
}

#logo-cobol{
  height: 60px;
  width: 90px;
}

#SQLWorkbench{
  height: 60px;
  width: 90px;
}

#logo-windev{
  height: 60px;
  width: 90px;
}

@media (max-width: 1024px){
  .block-langage-outil{
    flex-direction: column;
    gap: 20px;
  }
  .block-comp{
    width: 90%;
    padding: 0px;
    margin: auto;
  }
  .jpp{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
  }
  .jpp img{
    padding: 0 5px;
    width: 60px;
  }
  #elephant{
    width: 60px;
  }
  
  #logo-cobol{
    width: 60px;
  }
  
  #SQLWorkbench{
    width: 60px;
  }
}

/*-------------------------------------------- PROJECTS ----------------------------------------------- */
.block-project{
  background: url("./static/images/Formation/backgroundFormation.png") center center;
  color: black;
  padding-top: 5vh;
  margin: auto;
  padding-bottom: 5vh;
}

.title-black{
  font-size: 2.5em;
  color: #0A1828;
  margin: auto;
  margin-bottom: 5vh;
  text-align: center;
  padding-top: 15px;
}

.block-line-project{
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 60px;
}

.block-project-left{
  width: 40%;
  max-height: 350px;
  box-shadow: 0px 1px 8px 0.5px rgb(81, 81, 82);
  overflow: hidden;
  cursor: pointer;
}

.block-project-right{
  width: 40%;
  max-height: 350px;
  box-shadow: 0px 1px 8px 0.5px rgb(81, 81, 82);
  overflow: hidden;
  cursor: pointer;
}

.block-project-left img{
  width: 100%;
  height: 350px;
}

.block-project-right img{
  width: 100%;
  height: 350px;
}

.block-project-card {
  position: relative;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  background: rgb(2,0,36);
  background: linear-gradient(0deg, rgba(2,0,36,0.8) 40%, rgba(0,18,21,0.3) 77%, rgba(0,0,0,0.05) 100%);
  color: white;
  width: 100%;
  height: 100%;
  opacity: 0; /* Masquer le contenu par défaut */
  padding: 20px;
  transition: opacity 0.4s ease; /* Ajouter une transition pour l'effet de fondu */
}

.title-card{
  padding-top: 24%;
}

.langage-project span{
  background: rgb(105, 104, 105);
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: capitalize;
  font-size: 13px;
  margin-right: 6px;
  color: rgb(255, 255, 255);
  font-weight: 500;
}

.block-project-card:hover .content {
  opacity: 1; /* Afficher le contenu au survol */
}

@media (max-width:1024px){
  .block-line-project{
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .block-project-left{
    width: 90%;
    margin: auto;
    max-height: fit-content;
  }

  .block-project-right{
    width: 90%;
    margin: auto;
    max-height:fit-content;
  }

  .block-project-left img{
    width: 100%;
    height: 250px;
  }
  
  .block-project-right img{
    width: 100%;
    height: 250px;
  }

  .content p{
    font-size: 12px;
  }
  .langage-project span{
    text-transform: capitalize;
    font-size: 11px;
  }

  .title-card{
    padding-top: 20%;
  }
}

/* -------------------- MODALE ---------------------- */
/* The Modal (background) */
.modal{
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  margin: auto;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  border: solid 1px #294A95;
}

/* Modal Content/Box */
.modal-content{
  background-color: #fefefe;
  color: black;
  width: 60%; /* Could be more or less, depending on screen size */
  margin: 5% auto; /* 15% from the top and centered */
  border: 1px solid #888;
}

.info-modal{
  padding: 5px 5px 20px 10px;
  color: #294A95;
  background-color: white;
}

.title-modal{
  margin: 0;
  padding: 10px 20px 10px 20px;
  background-color: white;
  color: #294A95;
}

/* The Close Button */
.close{
  color: #294A95;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-right: 20px;
  margin-top: 4px;
}

.close:hover,
.close:focus{
  text-decoration: none;
  cursor: pointer;
}
/* ------------- ANNIMATION ---------------- */

.animate-projects {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-projects.show {
  opacity: 1;
  transform: translateY(0);
}

/* ------------- CAROUSEL ---------------- */
/* CSS pour le slider */
.slideshow-container {
  display: block;
  overflow: hidden;
  max-width: 100%;
  position: relative;
}

.slideshow-container img {
  width: 100%;
  max-height: 450px;
  display: none; /* Pour cacher toutes les images par défaut */
}

.slideshow-container img:first-child {
  display: block; /* Afficher uniquement la première image */
}

/*-------------------------------------------- CONTACT ----------------------------------------------- */
.block-contact{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-bottom: 30px;
  margin-left: 10vh;
}

#contact{
  margin-bottom: 10px;
}

.block-reseau{
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-around;
}

.form{
  width: 40%;
}

.reseau{
  display: flex;
  flex-direction: row;
}

.block-reseau a{
  font-size: 1.1em;
  color: white;
}

#paragraphe-mail{
  color: white;
  padding-left: 1vh;
}

.font-reseau{
  width: 60%;
}

.font-reseau p{
  display: flex;
  align-items: center;
  padding-left: 2vh;
}

/* ------------- FORMULAIRE ---------------- */

#formulaire{
  width: 50%;
  display: flex;
  text-align: center;
}
form{
  max-width: 80%;
  padding-top: 20px;
}
.feedback-input::placeholder{
  color: white;
}

.rgpd{
  display: flex;
  justify-content: flex-start;
  text-align: justify;
  gap: 10px;
}

.rgpd input{
  width: 50px;
  display: block;
  margin-top: -20px;
}

.rgpd p{
  margin: 0;
  margin-bottom: 10px;
}

.feedback-input {
  color:white;
  font-weight:500;
  font-size: 18px;
  border-radius: 5px;
  background-color: transparent;
  border:2px solid white;
  transition: all 0.3s;
  padding: 13px;
  margin-bottom: 15px;
  width:100%;
  box-sizing: border-box;
  outline:0;
}


.feedback-input:focus { border:2px solid #294A95; }

textarea {
  height: 150px;
  line-height: 150%;
  resize:vertical;
  font-size: 18px;
}

[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  width: 100%;
  border-radius:5px;
  border:0;
  cursor:pointer;
  color:white;
  font-size:20px;
  padding-top:10px;
  padding-bottom:10px;
  transition: all 0.3s;
  margin-top:-4px;
  font-weight:700;
  background:#294A95;
}
[type="submit"]:hover{ background: white; color: #002349; }

/* CSS pour la pop-up */
.popup{
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  color: black;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.popup p{
  margin: 0;
  text-align: center;
  color: green;
}

.popup.show{
  display: block;
}

.pop-content{
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 22px;
}

@media (max-width:1024px){

  .block-contact{
    flex-direction: column;
    width: 90%;
    margin-left: 0;
    margin: auto;
    margin-bottom: 250px;
  }
  
  #formulaire{
    width: 100%;
  }
  form{
    max-width: 100%;
    padding-top: 20px;
  }

  .pop-content{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2px;
  }
}
