/* =========================================================
  SECTION HEADER    
========================================================= */

.logo-img {
  position: absolute;
  top: 40px;
  left: 40px;
  width: auto;
  height: 20px;
  z-index: 2;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.main-header {
  overflow: visible;
  z-index: 10;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  height: 650px;
  overflow: hidden;
}

/* ——— IMAGE DE FOND ——— */
.header-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: -1;
}

/* ——— LOGO EN HAUT GAUCHE ——— */
.logo {
  position: absolute;
  top: 40px;
  left: 40px;
  font: 400 40px/1 "Anton", sans-serif;
  letter-spacing: 1px;
  z-index: 2;
}

.dot {
  color: #fff;
}

/* ——— CONTENU CENTRÉ ——— */
.header-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  margin-top: 50px;
  text-align: center;
}

/* sous-titre */
.subtitle {
  font: 700 44px/1.4 "Anton", sans-serif;
  color: #ffd15b;
  margin-bottom: 40px;
}

/* barre de recherche */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 20;
}

/* INPUT avec espace à droite pour la loupe */
.search-bar input {
  width: 100%;
  padding: 25px 60px 25px 20px;
  border-radius: 12px;
  font: 16px "Manrope", sans-serif;
}

/* BOUTON positionné en absolu dans le champ */
.search-bar button {
  position: absolute;
  background: #000;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s ease, filter 0.3s ease;
}

.search-bar button:hover {
  background: #ffd15b;
}

/* Image de loupe */
.search-bar button img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.search-bar button:hover img {
  filter: none;
}

@media (max-width: 1439px) and (min-width: 1024px) {
  .main-header {
    max-width: 1024px;
    margin: 0 auto;
  }

  .header-content {
    margin-top: -30px;
  }

  .subtitle {
    font: 700 35px/1.4 "Anton", sans-serif;
    margin-bottom: 40px;
  }

  .search-bar {
    max-width: 750px;
  }

  .search-bar input {
    width: 100%;
    padding: 20px 60px 20px 20px;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .main-header {
    max-width: 768px;
    margin: 0 auto;
  }

  .logo-img {
    height: 15px;
  }

  .header-content {
    margin-top: -100px;
  }

  .subtitle {
    font: 700 25px/1.4 "Anton", sans-serif;
    margin-bottom: 40px;
  }

  .search-bar {
    max-width: 600px;
  }

  .search-bar input {
    padding: 10px 60px 10px 20px;
  }

  .search-bar button {
    width: 30px;
    height: 30px;
  }

  .search-bar button img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 767px) and (min-width: 425px) {
  .main-header {
    max-width: 425px;
    margin: 0 auto;
  }

  .logo-img {
    height: 10px;
  }

  .header-content {
    margin-top: -200px;
  }

  .subtitle {
    font: 700 18px/1.4 "Anton", sans-serif;
    margin-bottom: 10px;
  }

  .search-bar {
    max-width: 350px;
  }

  .search-bar input {
    padding: 5px 60px 5px 20px;
    font-size: 14px;
  }

  .search-bar button {
    width: 25px;
    height: 25px;
    border-radius: 7px;
  }

  .search-bar button img {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 424px) and (min-width: 375px) {
  .main-header {
    max-width: 375px;
    margin: 0 auto;
  }

  .logo-img {
    height: 10px;
  }

  .header-content {
    margin-top: -225px;
  }

  .subtitle {
    font: 700 18px/1.4 "Anton", sans-serif;
    margin-bottom: 5px;
  }

  .search-bar {
    max-width: 350px;
  }

  .search-bar input {
    padding: 5px 60px 5px 20px;
    font-size: 12px;
  }

  .search-bar button {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .search-bar button img {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 374px) and (min-width: 320px) {
  .main-header {
    max-width: 320px;
    margin: 0 auto;
  }

  .logo-img {
    height: 10px;
  }

  .header-content {
    margin-top: -230px;
  }

  .subtitle {
    font: 400 14px/1.4 "Anton", sans-serif;
    margin-bottom: 10px;
  }

  .search-bar {
    max-width: 350px;
  }

  .search-bar input {
    padding: 5px 60px 5px 20px;
    font-size: 8px;
  }

  .search-bar button {
    width: 20px;
    height: 20px;
    border-radius: 7px;
  }

  .search-bar button img {
    width: 10px;
    height: 10px;
  }
}
