@import url("../assets/fonts/Montserrat-Regular.ttf");

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
}

.header {
  position: relative;
  height: 150px;
  overflow: hidden;
  z-index: 2;
  background-color: #1d1d1b;
}

.bg-header {
  position: fixed;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 150px;
  min-height: 100vh;
  object-fit: cover;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Filtre noir sur le header */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(29, 29, 27, 0.5);
  z-index: 1;
  pointer-events: none;
}

.header.no-bg-voile::before {
  background-color: transparent;
}

.logo-header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-height: 35px;
  z-index: 2;
}

.h1 {
  position: absolute;
  bottom: 20px;
  left: 140px;
  color: white;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  z-index: 2;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .logo-header {
    height: 40px;
  }

  .h1 {
    font-size: 25px;
    text-align: left;
    left: 20px;
  }

  .bg-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    min-height: 0 !important;
    max-height: 200px !important;
    height: 100% !important;
  }
}

@media screen and (max-width: 400px) {
  .h1 {
    max-width: 80%;
    white-space: normal;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
