@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Montserrat:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: var(--color-text);
  font-family: var(--font-sans);
}

.hero-container {
  position: relative;
  width: 100%;
  height: 150vh;
  display: flex;
  overflow: visible;
  margin-bottom: 30px;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  animation: glissementFond 20s ease-in-out infinite alternate;
}

@keyframes glissementFond {
  0%   { transform: scale(1.1) translateX(-2%); }
  100% { transform: scale(1.1) translateX(2%); }
}

.hero-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5% 0 10%;
  z-index: 10;
  margin-top: -80px;
}

.logo-container {
  width: 500px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  position: relative;
  left: 19.8%;
  transform: translateX(-50%);
  margin-top: 40px;
  margin-bottom: -10px;
  background: var(--logo-url) no-repeat center bottom / contain;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.agency-title {
  position: relative;
  left: 19.99%;
  transform: translateX(-50%);
  font-family: var(--font-agency);
  font-size: var(--title-size);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: 2px;
  text-align: center;
  display: block;
  width: fit-content;
  max-width: 50vw;
  word-wrap: break-word;
}

.hex-button {
  display: inline-flex;
  width: 124px;
  height: 124px;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  text-decoration: none;
  position: relative;
  margin: 0 35px;
  transition: all 0.3s ease-in-out;
  z-index: 20;
}

.hex-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
  filter: drop-shadow(0 0 10px var(--color-accent));
  transform: translateY(-5px) scale(1.05);
}

.hex-button-container {
  display: flex;
  justify-content: flex-start;
  position: relative;
  left: 20%;
  transform: translateX(-50%);
  width: fit-content;
  margin-top: 2rem;
  padding: 15px;
}

.agency-slogan {
  display: block;
  width: fit-content;
  margin-left: 20%;
  transform: translateX(-50%);
  margin-top: 5px;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--color-accent);
  text-align: center;
  white-space: nowrap;
  opacity: 0.9;
}

.hero-right-content {
  position: absolute;
  right: 0;
  bottom: calc((30px * -1) + 30px);
  width: 55%;
  height: 100%;
  max-height: calc(100% - 95px);
  z-index: 15;
}

#hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: no-repeat right bottom / contain;
  background-color: transparent;
}


/* =========================================
   7. RESPONSIVE
========================================= */
@media screen and (max-width: 970px) {
  .hero-container {
    height: auto;
    min-height: 0vh;
    flex-direction: column;
    padding-bottom: 30px !important;
  }

  .hero-left-content {
    padding: 0 5%;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transform: none;
    margin-top: 0;
  }

  .logo-container {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 40px !important;
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .agency-title {
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 70vw !important;
    font-size: 2.5rem !important;
    margin-top: 10px !important;
  }

  .hex-button-container {
    left: 50% !important;
    transform: translateX(-50%) !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 !important;
    margin-top: 10px !important;
    margin-bottom: -40px !important;
    width: 100%;
  }

  .hex-button {
    margin: 25px !important;
  }

  .agency-slogan {
    position: static !important;
    transform: none !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 5px !important;
    font-size: 0.85rem !important;
    letter-spacing: 2px !important;
    white-space: normal !important;
  }

  .hex-button {
    width: 100px;
    height: 100px;
    margin: 0;
    font-size: 12px;
    
  }

  .hero-right-content {
    position: relative !important;
    margin-top: auto !important;
    margin-bottom: calc(30px * -2.5) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    height: 400px !important;
    z-index: 50;
  }

  #hero-image-placeholder {
    background-position: center bottom !important;
    background-size: contain;
    background-repeat: no-repeat;
  }
}