.presentation {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.header__container {
  background: linear-gradient(
    45deg,
    var(--colorv4) 0%,
    var(--colorv4) 20%,
    var(--colorv5) 60%,
    var(--colorv6) 100%
  );
  border-radius: 1rem;
  width: 95%;
  height: 95%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header__partie-haute {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 4rem;
  margin-right: 4rem;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}

.header__logo {
  transition: transform 0.3s ease;
}

.header__logo:hover {
  transform: scale(1.1);
}

.header__nav-ul {
  display: flex;
  position: relative;
}

.header__nav-li {
  position: relative;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-top: 1.5rem;
  cursor: pointer;
  padding-bottom: 0.75rem;
  transition: transform 0.3s ease-in-out;
  font-size: 1.1rem;
}

.header__nav-li:hover {
  transform: scale(1.2);
}

.header__nav-li:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: black;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.header__nav-ul:hover .header__nav-li:first-child::after {
  width: 0;
}

.header__nav-li:first-child:hover::after {
  width: 100% !important;
}

.header__nav-li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: black;
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.header__nav-li:hover::after {
  width: 100%;
}

.header__button {
  padding-left: 1rem;
  padding-right: 1rem;
  height: 2.5rem;
  word-spacing: 0.1rem;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  visibility: hidden;
}

/* ----- BURGER BASE ----- */
.burger-toggle {
  display: none;
}

.burger-label {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.burger-label span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ----- BURGER NAV MENU ----- */
.burger-menu {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  z-index: 1000;
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 4px solid var(--colorv9);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.burger-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.burger-nav li a {
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--colorv3);
  font-weight: bold;
}

/* ----- OVERLAY ----- */
.burger-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.burger-close {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 1003; /* doit être supérieur à .burger-overlay (z-index: 999) */
  background: none;
  border: none;
  line-height: 1;
  transition: transform 0.3s ease;
}

.burger-close:hover {
  transform: scale(1.5);
}

.burger-toggle:checked ~ .burger-close {
  display: block;
}

.burger-overlay {
  z-index: 999;
}

.mission__title-h3 {
  margin-bottom: 2rem;
  font-size: 3.5rem;
}

.mission__h-underline {
  margin-bottom: 2rem;
  font-size: 3.5rem;
  font-weight: 400;
  position: relative;
  display: inline-block;
}

.mission__h-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2.25rem; /* Ajuste la hauteur de l'image */
  width: 100%; /* Largeur du soulignement */
  height: 4rem; /* Hauteur du soulignement */
  background-image: url("../../Images/Images/h1_soulignév1-Photoroom.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.mission__partie-basse-gauche {
  margin-top: 2.5rem;
  margin-bottom: 12rem;
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: left;
  align-items: start;
  align-content: flex-start;
  text-align: justify;
}

.mission__p-header {
  line-height: 2rem;
  font-size: 1.5rem;
  text-align: left;
}

.mission__partie-basse button {
  margin-top: 4rem;
  height: 2.5rem;
  word-spacing: 0.1rem;
  background-color: var(--colorv1);
  border-radius: 0.5rem;
  font-size: 1.4rem;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  width: 30%;
  font-weight: 400;
  transition: background-color 0.4s ease-in-out, transform 0.3s ease-in-out;
}

.mission__partie-basse button:hover {
  background-color: var(--colorv3);
}

@media screen and (min-width: 1600px) {
  .header__nav-li {
    font-size: 1.75rem;
  }

  .mission__title-h3 {
    font-size: 4.5rem;
  }
  .mission__h-underline {
    font-size: 4.5rem;
  }
  .mission__p-header {
    line-height: 2rem;
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .burger-menu {
    padding: 2.75rem 1.75rem;
  }

  .mission__partie-basse button {
    width: 25%;
  }
}

@media screen and (max-width: 830px) {
  .burger-label {
    display: flex;
  }

  .header__nav {
    display: none;
  }

  /* Affichage menu si coché */
  .burger-toggle:checked ~ .burger-menu {
    display: block;
  }

  .burger-toggle:checked ~ .burger-overlay {
    display: block;
  }

  .burger-menu {
    padding: 2.5rem 1.5rem;
  }
}
@media screen and (max-width: 830px) {
  .header__partie-haute {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin: 1rem auto;
    padding: 0 1rem;
  }
  .header__nav {
    display: none;
  }
  .burger-label {
    display: flex;
  }
  .burger-toggle:checked ~ .burger-menu {
    display: block;
  }
  .burger-toggle:checked ~ .burger-overlay {
    display: block;
  }
  .burger-toggle:checked ~ .burger-close {
    display: block;
  }

  .mission__partie-basse button {
    width: 40%;
  }
}

@media screen and (max-width: 524px) {
  .mission__title-h3 {
    font-size: 2.5rem;
  }
  .mission__h-underline {
    font-size: 2.5rem;
  }

  .mission__p-header {
    font-size: 1.25rem;
  }

  .mission__h-underline::after {
    visibility: hidden;
  }
  .mission__partie-basse button {
    width: 60%;
  }

  .burger-nav li a {
    font-size: 1rem;
  }
}

@media screen and (max-width: 420px) {
  .burger-nav li a {
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 368px) {
  .mission__title-h3 {
    font-size: 1.5rem;
  }
  .mission__h-underline {
    font-size: 1.5rem;
  }

  .mission__p-header {
    font-size: 1rem;
  }
  .mission__partie-basse button {
    width: 68%;
  }
}
