body {
  position: relative;
  font-family: "Old Standard TT", serif;
  margin: 0 auto;
  background-image: url("https://johnkooks.fr/wp-content/themes/Johnkooks-dj/assets/images/zUL.gif") !important;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.4;
}

h1,
h2,
h3 {
  font-family: "Old Standard TT", serif !important;
  font-weight: bold !important;
  color: white !important;
}

h2 {
  margin-bottom: 50px !important;
  font-size: clamp(30px, 10vw, 48px) !important;
}

p {
  font-style: italic;
  color: white;
}

.display-none {
  display: none;
}

/** Header **/

header {
  position: relative;
  padding: 5px;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  padding: 0;
}

.logo-img {
  width: 200px;
  height: 150px;
}

.menu-container {
  display: flex;
  align-items: center;
}

.nav-menu {
  padding: 0 50px;
  margin: 0;
}

.nav li {
  display: flex;
}

.nav-menu a {
  font-family: "Old Standard TT", serif;
  font-weight: 600;
  color: white;
  text-decoration: none;
  text-transform: capitalize;
  font-size: 25px;
  transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
  position: relative;
}

.nav-menu a:hover {
  color: rgb(14, 207, 14);
  transform: scale(1.4);
}

/* Page d'accueil */

.page-content {
  position: relative;
  max-width: 1148px;
  width: 100%;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
  z-index: 10;
}

.page-content h2 {
  position: relative;
  color: rgb(14, 207, 14) !important;
  -webkit-text-stroke: 1px black;
  display: inline-block;
  line-height: 1;
}

.page-content h2::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: white;
  filter: blur(8px); /* Contrôle l'intensité du flou */
  z-index: -1; /* Place l'effet derrière le texte */
}

.hero-header {
  position: relative;
  background-image: url("https://johnkooks.fr/wp-content/themes/Johnkooks-dj/assets/images/Screen_2.png.webp");
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}

.hero-header::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.3;
}

.hero-header h1 {
  font-size: clamp(18px, 8vw, 96px);
  z-index: 10;
}

#about-me {
  margin-top: 100px;
  margin-bottom: 100px;
}

.about-me-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#about-me h2 {
  margin-bottom: 30px;
}

#about-me p {
  font-size: 28px;
  text-align: justify;
}

.images-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: black;
  height: 500px;
  border: 1px solid white;
  outline: 2px solid rgb(14, 207, 14);
  outline-offset: 4px;
}

.photo-profil {
  width: 250px;
  height: 400px;
  object-fit: cover;
  border: 1px solid white;

  transition: transform 0.3s ease-in-out, outline 0.3s ease-in-out;
}

.photo-profil:hover {
  transform: scale(1.1);
}

.photo-speaker {
  height: 200px;
  object-fit: contain;
}

#my-skills {
  margin-top: 50px;
  margin-bottom: 100px;
}

.audio-player-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
}

.audio-player {
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid white;
}

/* Popup */

.contact-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

.contact-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.popup-wrapper {
  background: #fff;
  border: 5px solid black;
  outline: 5px solid rgb(14, 207, 14);
  outline-offset: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  position: relative;
}

.popup-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  background-color: black;
  margin-bottom: 20px;
}

.popup-img {
  width: 200px;
  height: 150px;
}

.popup-wrapper form {
  display: flex;
  flex-direction: column;
  width: 265px;
  margin: 0 auto;
}

.popup-wrapper form p {
  padding-bottom: 10px;
}

.popup-wrapper form label {
  color: black;
  font-size: 18px;
  font-weight: 500;
}

.popup-wrapper form input,
textarea {
  border: 1px solid #b8bbc2;
  border-radius: 8px;
}

.popup-wrapper form .btn-form {
  width: 100%;
  font-family: "Old Standard TT", serif;
  font-size: 20px;
  font-weight: 400;
  border-radius: 4px;
  background-color: black !important;
  color: white !important;
  border: none;
}

.popup-wrapper form .btn-form:hover {
  background-color: rgb(14, 207, 14) !important;
  color: black !important;
}

/* Footer */

footer {
  position: relative;
  padding: 10px;
  border-top: 1px solid white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.instagram-logo {
  width: 55px;
  height: 55px;
  transition: transform 0.4s ease-in-out;
}

.mixcloud-logo {
  width: 50px;
  height: 50px;
  transition: transform 0.4s ease-in-out;
  background-color: white;
}

.instagram-logo:hover,
.mixcloud-logo:hover,
.logo-footer {
  transform: scale(1.2);
}

.footer-name {
  color: white;
}

.footer-name span {
  display: flex;
  justify-content: center;
}

.logo-footer {
  width: 50px;
  height: 50px;
}

.to-the-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.to-the-top a {
  text-decoration: none;
  transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
}

.to-the-top a:hover {
  transform: scale(1.2);
}

.to-the-top a img {
  width: 80px;
  height: 80px;
}

/* Media queries */

@media (max-width: 1024px) {
  /* Header */
  .header-container {
    display: flex;
    align-items: center;
  }

  #about-me h2 {
    margin-bottom: 70px !important;
  }

  .about-me-description {
    flex-direction: column !important;
    
  }

  .about-me-description p {
    text-align: center !important;
  }

  .block-logos {
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #contactPopup {
    transform: translateY(100%);
    transition: opacity 1s ease, transform 1s ease;
  }

  #contactPopup.show {
    transform: translateY(0);
  }
}

@media (max-width: 790px) {
  .page-content h2 {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .page-content {
    padding: 0 20px;
  }

  #about-me {
    margin-top: 70px;
    margin-bottom: 50px;
  }

  .images-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  .popup-wrapper {
    width: 80vw;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 0 0;
  }

  .footer-name {
    text-align: center;
    padding: 0 5px;
  }
}

@media (max-width: 600px) {
  .popup-img {
    display: none;
  }
}

@media (max-width: 425px) {
  .logo-container .logo-img {
    width: 46vw;
    height: auto;
  }

  .nav-menu {
    padding-right: 8vw;
  }

  .popup-head {
    padding-left: 5px;
    padding-right: 5px;
  }

  .popup-head p {
    text-align: center;
  }
}

@media (max-width: 375px) {
  .popup-wrapper form {
    padding: 0 5px;
    width: 72vw;
  }
}

@media (max-width: 360px) {
  .logo-container p {
    display: none;
  }
}
