/* ==========================================================================
   Hero - Mobile first
   ========================================================================== */

.hero {
  overflow: hidden;
  background: linear-gradient(135deg, #f2efec 0%, #e9e6e2 100%);
  color: #1b1b1d;
  padding: 5rem 0 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-inline: 1.25rem;
}

.hero-text {
  width: 100%;
  text-align: center;
}

/* Badges */

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;

  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(27, 27, 29, 0.18);
  border-radius: 999px;

  color: #1b1b1d;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badges span:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;

  border-radius: 50%;
  background-color: #f4c900;
}

/* Kicker */

.hero-kicker {
  margin: 0 0 0.75rem;

  color: #a63a2d;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Title */

.hero-title {
  margin: 0;

  color: #1b1b1d;
  font-size: clamp(2.7rem, 13vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
}

/* Subtitle */

.hero-subtitle {
  max-width: 35rem;
  margin: 1.5rem auto 0;

  color: #5f5d5b;
  font-size: 1rem;
  line-height: 1.6;
}

/* Actions */

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-actions .button {
  width: 100%;
  text-align: center;
}

.hero .button-primary {
  background-color: #a63a2d;
  border-color: #a63a2d;
  color: #ffffff;
}

.hero .button-secondary {
  background-color: transparent;
  border: 1px solid #1b1b1d;
  color: #1b1b1d;
}

.hero .button-primary,
.hero .button-secondary {
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Visual */

.hero-visual {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
}

/* Halo derrière le camion */

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;

  top: calc(50% + 10px);
  left: 50%;
  transform: translate(-50%, -50%);

  width: clamp(270px, 82vw, 340px);
  height: clamp(270px, 82vw, 340px);

  background-color: rgba(166, 58, 45, 0.08);
  border-radius: 50%;
}

.hero-logo {
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;

  object-fit: contain;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-content {
    padding-inline: 2rem;
  }

  .hero-badges {
    gap: 0.75rem;
  }

  .hero-badges span {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 8vw, 5rem);
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .hero-actions .button {
    width: auto;
  }

  .hero-logo {
    max-width: 400px;
  }

  .hero-visual {
    margin-top: 1.5rem;
  }

  .hero-visual::before {
    top: 50%;
    width: 460px;
    height: 460px;
  }
}

/* ==========================================================================
   Small desktop
   ========================================================================== */

@media (min-width: 1025px) and (max-width: 1170px) {
  .hero-visual {
    transform: translateX(0);
  }

  .hero-visual::before {
    left: calc(50% - 45px);
  }

  .hero-logo {
    width: 105%;
    max-width: 470px;
    transform: translate(-45px, -25px);
  }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 580px;
    padding: 3.5rem 0;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    padding-inline: 0;
  }

  .hero-text {
    width: 100%;
    max-width: 720px;
    text-align: left;
  }

  .hero-badges {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
  }

  .hero-kicker {
    text-align: left;
  }

  .hero-title {
    font-size: clamp(3.2rem, 4vw, 4rem);
    line-height: 1.05;
    text-align: left;
  }

  .hero-title span {
    white-space: nowrap;
  }

  .hero-subtitle {
    max-width: 650px;
    margin: 1.5rem 0 0;
    font-size: 1.15rem;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    margin-top: 0;
    transform: translateX(85px);
  }

  .hero-visual::before {
    top: 55%;
    width: 470px;
    height: 470px;
  }

  .hero-logo {
    width: 170%;
    max-width: 500px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero .button-primary:hover {
    background-color: #bd4737;
    border-color: #bd4737;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(166, 58, 45, 0.25);
  }

  .hero .button-secondary:hover {
    background-color: #1b1b1d;
    border-color: #1b1b1d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(27, 27, 29, 0.15);
  }
}
