/* TODO */
/* - modifier share.webp avec du bleu ou print screen portfolio */
/* - fonts  */
/* - icones svg ? */
/* - comment mettre un caractere awesome debut ligne puis un <p> avec la deuxième ligne qui s'aligne sur la première
     enn sautant l'image horizontalement */

/* --------------------------------------------------------------------------------------------------------------------- */

/* #region FONTS */
/* @font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/static/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/static/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/static/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  } */
/* #endregion */

/* #region GENERAL */
* {
  box-sizing: border-box;
  /* border: 1px red solid; */
}

html {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  margin: 0 auto;
  max-width: 2000px;
  background-image: url("../images/header-background-binary.webp");
  background-size: contain;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  color: white;
}

p {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
}

audio {
  display: none;
}

h1 {
  text-align: center;
}

.svg-header img {
  width: 25px;
  height: 25px;
  /* background-color: transparent; */
}

header a,
footer a,
footer a:visited,
header a:visited {
  color: #ffffff;
  text-decoration: none;
}

#presentation,
#objectifs,
#details,
#experiences-pro,
#formations,
#skills,
#realisations,
#divers {
  scroll-margin-top: 90px;
}

#objectifs p,
#presentation p,
#realisations p,
#divers p {
  text-align: justify;
  width: 100%;
}
/* #endregion */

/* #region HEADER */
header {
  position: fixed;
  z-index: 9999;
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(9, 9, 121, 1) 70%,
    rgba(0, 212, 255, 1) 100%
  );
  color: rgb(255, 255, 255);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 20px 10px;
  max-width: 2000px;
}

#photo {
  display: block;
}

#photo-small {
  display: none;
}

#name-speaker {
  display: flex;
  min-width: 230px;
  /* justify-content: space-between; */
  align-items: center;
}

header h1 {
  color: rgb(255, 255, 255);
  font-size: clamp(15px, 18px, 26px);
  font-weight: bold;
  text-transform: capitalize;
}

#in-flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-right: 40px;
}

#linkedin,
#img-cv,
#showMessageBox {
  padding: 5px;
}

#img-cv {
  font-weight: 700;
}

.img-cv {
  width: 25px;
  height: 25px;
  border: 2px rgb(255, 255, 255) solid;
  display: grid;
  place-content: center;
  font-weight: 700;
}

.img-flag {
  visibility: hidden;
  width: 25px;
  height: 15px;
  object-fit: cover;
  border: 2px rgb(255, 255, 255) solid;
}

#showMessageBox {
  background-color: transparent;
  font-weight: bold;
  color: white;
  height: 25px;
  border: none;
  width: 25px;
}

#linkedin:hover,
#img-cv:hover,
#showMessageBox:hover {
  background-color: yellow;
  color: black;
  font-weight: bold;
}

nav {
  height: 100%;
}

nav ul.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style-type: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-left: 0;
}

nav ul.nav-links li {
  transition: all 0.3s ease-in-out;
}
nav ul.nav-links li a {
  box-shadow: inset 2px 4px 8px rgba(0, 0, 0, 0.6);
  padding: 10px;
  background-color: rgb(211, 211, 211);
  border-radius: 15px;
}
nav ul.nav-links li:hover a {
  background-color: #ffff00;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
  color: rgb(0, 0, 0);
}

nav ul.nav-links li:hover > a {
  color: rgb(0, 0, 0);
}

nav ul.nav-links li a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: bold;
  font-size: 1em;
}

.burger-menu {
  display: none;
  width: 30px;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: rgb(255, 255, 255);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.1s ease, background-color 0.2s ease;
}
/* #ENDREGION */

/* #region TITLE */
.content-title-txt h2 {
  font-size: clamp(15px, 20px, 25px);
}

.content-title-txt h3 {
  font-size: clamp(12px, 18px, 23px);
}

.content-title-txt h4 {
  padding: 5px;
  background-color: #ffff00;
  color: rgb(6, 6, 6);
  font-size: clamp(10px, 12px, 15px);
  font-weight: bold;
}

.header-img-title {
  color: rgb(245, 242, 242);
  font-weight: bold;
  /* top: 85px; */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* position: relative; */
  padding: 95px 10px 15px 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
  gap: 2%;
}

.content-img {
  max-width: 170px;
  max-height: 210px;
  min-width: 120px;
  min-height: 120px;
  width: calc(15vw + 50px);
  height: calc(15vw + 100px);
  margin-top: 20px;
  animation: rotateInDownRight 3s ease;
  overflow: hidden;
}

.content-img-small {
  width: calc(15vw + 50px);
  margin: 0 auto;
}

.content-img > img,
.content-img-small > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px rgb(255, 255, 255) solid;
}

.content-title-txt {
  margin-top: 20px;
  padding: 5px;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(9, 9, 121, 1) 70%,
    rgba(0, 212, 255, 1) 100%
  );
  animation: rotateInDownLeft 3s ease;
}

.content-title-txt h1 {
  margin: 10px 0;
  padding: 0 20px;
}

.content-title-txt p {
  margin: 0;
  font-size: 1.2em;
}

.line-separator {
  height: 5px;
  background-color: rgb(255, 255, 255);
}
/* #endregion */

/* #region MAIN CONTAINER / COLONNES */
.container {
  margin: 10px 10px 0px 10px;
  display: flex;
  min-height: 80vh;
  gap: 10px;
}

.section-title p {
  color: rgb(0, 0, 0);
  width: 100%;
  padding: 0 10px;
}

.section-title h2 {
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(9, 9, 121, 1) 70%,
    rgba(0, 212, 255, 1) 100%
  );
  color: rgb(255, 255, 255);
  text-align: center;
  margin: 10px;
  border-radius: 8px;
}

.section-title h3 {
  color: rgb(0, 0, 0);
  width: calc(100% - 10px);
  text-decoration: none;
  margin-left: 10px;
  margin-bottom: 0;
  font-weight: bold;
}

#column-left,
#column-right {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
  padding: 0 10px;
  border-radius: 15px;
}

#column-right {
  width: 65vw;
  background-color: lightgrey;
}

#column-left {
  width: 35vw;
  background-color: darkgrey;
}
/* #endregion */

/* #region PRESENTATION */
#presentation {
  animation: zoomInUp 2s ease;
}

#presentation li {
  margin-bottom: 10px;
  width: calc(100% - 10px);
}
/* #endregion */

/* #region INFOS GENERALES */
#details a,
#details a:visited {
  color: rgb(0, 0, 0);
  text-decoration: none;
}
#details ul {
  list-style-type: none;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#details li {
  padding: 0 10px;
  line-height: 2em;
}
address {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
#li-details-website,
#li-details-linkedin {
  display: flex;
  align-items: center;
  gap: 0.53rem;
  flex-wrap: wrap;
}
#details {
  animation: zoomInUp 2s ease;
}
/* #endregion */

/* #region SKILLS / SOFT SKILLS */
#skills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#skills ul {
  list-style-type: none;
}

#skills li {
  padding: 5px;
  line-height: 1.5em;
}
#soft-skills {
  margin-top: 20px;
}

#skills h3,
#soft-skills h3 {
  margin-top: 0;
  width: calc(100% - 20px);
  font-size: clamp(15px, 20px, 25px);
  text-align: center;
  text-decoration: underline;
}

#skills ul,
#soft-skills ul {
  margin: 0 10px;
}

#skills ul {
  padding: 0px;
}

#soft-skills ul {
  padding: 20px 25px;
}

#skills li,
#soft-skills li {
  margin-bottom: 10px;
}
/* #endregion */

/* #region FORMATIONS / EXPERIENCES PRO */
#formations p,
#experiences-pro p {
  margin-bottom: 5px;
  width: calc(100% - 10px);
  text-align: justify;
}

#experiences-pro h3,
#formations h3 {
  font-weight: normal;
  width: calc(100% - 10px);
  text-align: justify;
}

#experiences-pro li {
  margin-bottom: 20px;
  text-align: justify;
}

#formations ul,
#experiences-pro ul {
  margin: 0;
  width: calc(100% - 20px);
  padding: 0;
  padding-left: 40px;
}

#experiences-pro a,
#experiences-pro a.visited {
  color: blue;
  font-weight: bold;
}

#experiences-pro p:last-child {
  margin-bottom: 10px;
}

.content-bar {
  display: flex;
  justify-content: left;
  width: calc(100% - 10px);
}

.container-bar {
  position: relative;
  margin: 20px 0 10px 10px;
  width: calc(100% - 10px);
}

.container-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: radial-gradient(circle, #00008b 30%, #87cefa 100%);
}

.content-bar h3 {
  margin-top: 0;
  width: calc(100% - 20px);
  font-weight: bold;
  font-size: clamp(12px, 17px, 23px);
}

.point {
  min-width: 25px;
  max-width: 25px;
  width: 100%;
  height: 25px;
  border-radius: 50%;
  margin-left: -2px;
  box-shadow: 0 0 1px 5px #ffffff;
  background-color: black;
  z-index: 5;
}

.content-text-experience-pro p {
  margin: 0;
  padding: 10px 5px 10px 5px;
  width: calc(100% - 20px);
}

.content-text-formation p {
  margin: 0;
  padding: 10px 5px 10px 5px;
  width: calc(100% - 20px);
  font-style: italic;
}
/* #endregion */

/* #region REALISATIONS */
.container-img-realisation {
  margin: 0 auto;
  margin-bottom: 30px;
  width: 250px;
  display: flex;
  flex-direction: column;
}

.img-realisation {
  width: 250px;
  height: 130px;
  overflow: hidden;
  position: relative;
  border-radius: 5%;
  background-color: darkgrey;
  margin-top: 15px;
}

.container-img-realisation img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.container-img-realisation a,
.container-img-realisation a.visited {
  display: block;
  background-color: white;
  color: darkblue;
  font-weight: bold;
  width: 100%;
  text-align: center;
  z-index: 15;
  margin-top: 10px;
  margin-bottom: 10px;
  text-decoration: underline;
  background-color: darkgrey;
}

#realisations p {
  padding: 0 10px;
}
/* #endregion */

/* #region DIVERS */
#divers li {
  text-align: justify;
  margin-bottom: 10px;
}

#divers ul {
  margin: 20px 0;
}

#divers a {
  color: darkblue;
}

#divers p {
  padding: 0 20px;
}
/* #endregion*/

/* #region FOOTER */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(9, 9, 121, 1) 70%,
    rgba(0, 212, 255, 1) 100%
  );
  color: rgb(255, 255, 255);
  gap: 10px;
  margin-top: 20px;
}

#footer h2 {
  font-size: 0.7em;
}
/* #endregion */

/* #region MODALE MUSIQUE */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#messageBox {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#messageBox p {
  margin: 20px 0;
}

#messageBox .buttons {
  display: flex;
  justify-content: space-around;
}

#messageBox button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#messageBox button.button-yes {
  background-color: #28a745;
  color: white;
}

#messageBox button.button-yes:hover {
  background-color: #218838;
}

#messageBox button.button-no {
  background-color: #dc3545;
  color: white;
}

#messageBox button.button-no:hover {
  background-color: #c82333;
}

#linkedin-gaetan {
  color: blue;
}
/* #endregion*/

/* #region MEDIA QUERY 1450px */
@media (max-width: 1450px) {
  header {
    padding: 0 20px 0 10px;
  }

  .burger-menu {
    display: block;
    position: absolute;
    top: 7px;
    right: 20px;
  }

  .burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #ff0000;
  }

  .burger-menu.open span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: red;
  }

  nav ul.nav-links {
    display: none;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(
      90deg,
      rgba(2, 0, 36, 1) 0%,
      rgba(9, 9, 121, 1) 70%,
      rgba(0, 212, 255, 1) 100%
    );
    padding: 40px 10px;
    border-radius: 0 0 0 10px;
    min-width: 220px;
    min-height: 85vh;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0;
    box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.6);
  }

  nav ul.nav-links {
    padding: 70px 40px 70px 40px;
    gap: 40px;
  }

  nav ul.nav-links.active {
    display: flex;
    justify-content: space-around;
  }

  .header-img-title {
    top: 60px;
  }

  .content-title-txt h1 {
    font-size: 1.2em;
  }

  .content-title-txt p {
    font-size: 1em;
  }

  .header-img-title {
    padding: 50px 10px 15px 10px;
  }

  .container {
    padding: 5px;
    flex-direction: column-reverse;
  }

  #column-left,
  #column-right {
    min-height: 0;
    width: 100%;
    border-radius: 10px;
    background-color: lightgrey;
  }

  .container-img-realisation a,
  .container-img-realisation a.visited {
    background-color: lightgrey;
  }

  .img-realisation {
    background-color: lightgrey;
  }

  #presentation,
  #objectifs,
  #details,
  #experiences-pro,
  #formations,
  #skills,
  #realisations,
  #divers {
    scroll-margin-top: 50px;
  }
}
/* #endregion */

/* #region MEDIA QUERY 480px */
/* ---------------------------------------------------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .burger-menu {
    display: block;
    position: absolute;
    top: 7px;
    right: 5px;
  }

  .burger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #ff0000;
  }

  .burger-menu.open span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: red;
  }

  /* #divers-loisirs { %lalal
        background-color: red;
    } */

  .header-img-title {
    top: 40px;
  }

  .content-title-txt h1 {
    font-size: 1.2em;
  }

  .content-title-txt p {
    font-size: 1em;
  }

  .content-title-txt {
    margin-top: 70px;
  }

  .header-img-title {
    padding: 0px 10px 15px 10px;
  }

  #photo {
    display: none;
  }

  #photo-small {
    display: block;
  }

  #details ul {
    padding: 0;
  }

  #divers li {
    text-align: left;
  }

  #divers p {
    padding: 0 10px;
    text-align: left;
  }

  #experiences-pro h3,
  #formations h3 {
    text-align: left;
  }

  #formations p,
  #experiences-pro p {
    text-align: left;
  }

  #experiences-pro h3,
  #formations h3 {
    text-align: left;
  }

  #experiences-pro li,
  #formations li {
    text-align: left;
  }

  #footer h2 {
    font-size: 0.5em;
  }
}
/* #endregion*/

/* #region ANIMATIONS */
.zoomInUp-scroll {
  opacity: 0; /* Caché par défaut */
  transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0); /* Départ en dehors de l'écran */
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1); /* Transition pour une animation fluide */
}

.zoomInUp-scroll.visible {
  opacity: 1; /* Complètement visible */
  transform: scale3d(1, 1, 1) translate3d(0, 0, 0); /* Position finale */
}

.rotateInDownLeft {
  -webkit-animation-name: rotateInDownLeft;
  animation-name: rotateInDownLeft;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes rotateInDownLeft {
  0% {
    -webkit-transform-origin: left bottom;
    transform-origin: left bottom;
    -webkit-transform: rotate3d(0, 0, 1, -45deg);
    transform: rotate3d(0, 0, 1, -45deg);
    opacity: 0;
  }
  100% {
    -webkit-transform-origin: left bottom;
    transform-origin: left bottom;
    -webkit-transform: none;
    transform: none;
    opacity: 1;
  }
}

@keyframes rotateInDownLeft {
  0% {
    -webkit-transform-origin: left bottom;
    transform-origin: left bottom;
    -webkit-transform: rotate3d(0, 0, 1, -45deg);
    transform: rotate3d(0, 0, 1, -45deg);
    opacity: 0;
  }
  100% {
    -webkit-transform-origin: left bottom;
    transform-origin: left bottom;
    -webkit-transform: none;
    transform: none;
    opacity: 1;
  }
}

.rotateInDownRight {
  -webkit-animation-name: rotateInDownRight;
  animation-name: rotateInDownRight;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes rotateInDownRight {
  0% {
    -webkit-transform-origin: right bottom;
    transform-origin: right bottom;
    -webkit-transform: rotate3d(0, 0, 1, 45deg);
    transform: rotate3d(0, 0, 1, 45deg);
    opacity: 0;
  }
  100% {
    -webkit-transform-origin: right bottom;
    transform-origin: right bottom;
    -webkit-transform: none;
    transform: none;
    opacity: 1;
  }
}

@keyframes rotateInDownRight {
  0% {
    -webkit-transform-origin: right bottom;
    transform-origin: right bottom;
    -webkit-transform: rotate3d(0, 0, 1, 45deg);
    transform: rotate3d(0, 0, 1, 45deg);
    opacity: 0;
  }
  100% {
    -webkit-transform-origin: right bottom;
    transform-origin: right bottom;
    -webkit-transform: none;
    transform: none;
    opacity: 1;
  }
}

@-webkit-keyframes zoomInUp {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
  }
}

@keyframes zoomInUp {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
    -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
  }
}
/* #endregion */
