.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;
  height: 25%;
}

.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 {
  position: relative;
  z-index: 1;
}
.header__nav-li:first-child:hover::after {
  width: 100% !important;
}

.header__nav-li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0; /* Empêche l'affichage immédiat */
  height: 3px;
  background-color: black;
  transition: width 0.3s ease-in-out;
  transform: translateX(-50%);
}

.header__nav-li:hover::after {
  width: 100%;
}

.header__nav-li:nth-child(4):hover::after,
.header__nav-li:nth-child(5):hover::after {
  width: 100%;
}

.header__button {
  padding-left: 1rem;
  padding-right: 1rem;
  height: 2.5rem;
  word-spacing: 0.1rem;
  position: relative;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  visibility: hidden;
}

.header__button a {
  color: var(--colorv4);
}

.header__partie-basse {
  display: flex;
  position: relative;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 75%;
}

.header__partie-basse-gauche {
  margin-top: 5rem;
  margin-left: 8rem;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
}

.header__partie-basse-gauche h2 {
  color: var(--colorv1);
  margin-bottom: 2rem;
}

.header__partie-basse-gauche h1 {
  margin-bottom: 2rem;
}

.h1-underline {
  position: relative; /* Permet de placer l'image en absolu */
  display: inline-block;
}

.h1-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;
}

.header__partie-basse-gauche p {
  line-height: 2rem;
  font-size: 1.5rem;
  text-align: left;
}

.header__partie-basse-gauche 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: 22.5%;
  font-weight: 400;
  transition: background-color 0.4s ease-in-out, transform 0.3s ease-in-out;
}

.header__partie-basse-gauche button a {
  color: var(--colorv4);
}

.header__partie-basse-gauche button:hover {
  background-color: var(--colorv3);
  border: blue solid 1px;
}

.header__partie-basse-droite {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 40%; /* ou 50% si tu veux + large */
  max-height: 90vh;
  overflow: hidden;
  margin-right: 5rem;
  transition: transform 0.3s ease-in-out;
}

.header__partie-basse-droite img {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  width: auto;
  object-fit: contain;
  position: relative;
  bottom: 0;
  right: 1rem;
}

/* ----- 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;
}

/*RESPONSIVE*/

@media screen and (min-width: 1600px) {
  .header__nav-li {
    font-size: 1.75rem;
  }

  .header__partie-basse-gauche h1 {
    font-size: 4rem;
  }

  .header__partie-basse-gauche h2 {
    font-size: 3rem;
  }

  .h1-underline {
    font-size: 4rem;
  }

  .header__partie-basse-gauche p {
    line-height: 1.5rem;
    font-size: 2rem;
  }

  .header__partie-basse-droite {
    transform: scale(1.05);
    transform-origin: bottom right;
  }
}

@media screen and (min-width: 1280px) {
  .hommetel {
    max-width: 60%;
    max-height: 60vh;
    height: auto;
    width: auto;
    object-fit: contain;
    position: relative;
    bottom: 0;
    right: 1rem;
  }
}

/* Écrans standards desktop */
@media screen and (min-width: 1280px) and (max-width: 1599px) {
  .header__partie-basse-gauche {
    margin-top: 5rem;
    margin-left: 8rem;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .header__partie-basse-gauche h1 {
    font-size: 3rem;
  }

  .header__partie-basse-gauche h2 {
    font-size: 2rem;
  }

  .header__partie-basse-gauche p {
    font-size: 1.4rem;
  }

  .header__partie-basse-gauche button {
    width: 25%;
  }
}

/* Tablette paysage */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .header__nav-ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header__partie-basse {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header__partie-basse-gauche {
    margin: 2rem;
    align-items: center;
  }

  .header__partie-basse-droite {
    display: none;
  }

  .header__partie-basse-gauche h1 {
    font-size: 2.5rem;
  }

  .header__partie-basse-gauche p {
    font-size: 1.2rem;
  }

  .h1-underline {
    font-size: 2.5rem;
  }

  .header__partie-basse-gauche button {
    width: 30%;
  }
  .hommetel {
    display: none;
  }
  .hommetel {
    display: none;
  }
  .header__button {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 2rem;
    height: 2.5rem;
    word-spacing: 0.1rem;
    font-size: 0.85rem;
    position: relative;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }
  .burger-menu {
    padding: 2.75rem 1.75rem;
  }
}

@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;
  }
  .header__button {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 2rem;
    height: 2.5rem;
    word-spacing: 0.1rem;
    font-size: 0.85rem;
    position: relative;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }
  .burger-menu {
    padding: 2.5rem 1.5rem;
  }
}

/* Tablette portrait */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .header__partie-haute {
    display: flex;
    gap: 1rem;
    margin: 1rem 2rem;
  }

  .header__nav-ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header__partie-basse {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .header__partie-basse-gauche {
    margin: 2rem 1rem;
    align-items: center;
  }

  .header__partie-basse-droite {
    display: none;
  }

  .header__partie-basse-gauche button {
    width: 30%;
  }
  .hommetel {
    display: none;
  }
  .header__button {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 2rem;
    height: 2.5rem;
    word-spacing: 0.1rem;
    font-size: 0.85rem;
    position: relative;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }
  .burger-menu {
    padding: 2.25rem 1.25rem;
  }
}

/* Mobile large */
@media screen and (max-width: 767px) {
  .header__container {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .header__partie-haute {
    flex-direction: column;
    align-items: center;
    margin: 1rem;
  }

  .header__nav-ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .header__partie-basse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .header__partie-basse-gauche {
    margin: 1rem 0;
    align-items: center;
  }

  .header__partie-basse-gauche h1 {
    font-size: 2.5rem;
  }

  .header__partie-basse-gauche p {
    font-size: 1.2rem;
  }

  .h1-underline {
    font-size: 2.5rem;
  }

  .header__partie-basse-gauche button {
    width: 30%;
  }

  .header__partie-basse-droite {
    display: none;
  }

  .h1-underline::after {
    bottom: -1.2rem;
    height: 2.5rem;
  }
  .hommetel {
    display: none;
  }
  .header__button {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 2rem;
    height: 2.5rem;
    word-spacing: 0.1rem;
    font-size: 0.85rem;
    position: relative;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }
  .burger-menu {
    padding: 2rem 1rem;
  }
}

@media screen and (max-width: 570px) {
  .header__partie-basse-gauche button {
    font-size: 0.95rem;
  }
}

/* Mobile petit */
@media screen and (max-width: 480px) {
  .header__partie-basse-gauche h1 {
    font-size: 1.25rem;
  }

  .header__partie-basse-gauche p {
    font-size: 1rem;
  }

  .h1-underline {
    font-size: 1.25rem;
  }

  .header__partie-basse-gauche button {
    font-size: 0.85rem;
  }

  .header__nav-li {
    font-size: 1rem;
  }

  .header__partie-basse-droite {
    display: none;
  }
  .hommetel {
    display: none;
  }
  .header__button {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 2rem;
    height: 2.5rem;
    word-spacing: 0.1rem;
    font-size: 0.85rem;
    position: relative;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }

  .burger-nav li a {
    font-size: 1rem;
  }
}

@media screen and (max-width: 420px) {
  .burger-nav li a {
    font-size: 0.75rem;
  }
}
