/* Hero Image Widget Styles - Based on archive-actus-featured-image */

/* Desktop Styles */
.hero-image-widget {
  margin-bottom: 40px;
  position: relative;
  margin-top: -93px;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image-widget .featured-image {
  width: 100%;
  height: 416px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center center;
}

.hero-image-widget-overlay {
  position: absolute;
  top: 0;
  left: 138px;
  width: 524px;
  height: 301px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px 20px 0;
  box-sizing: border-box;
}

/* Styles pour les balises avec la classe hero-image-widget-title */
.hero-image-widget-title,
h1.hero-image-widget-title {
  font-size: 40px !important;
  font-weight: 400 !important;
  line-height: 44px !important;
  color: var(--white) !important;
  margin: 0 0 15px 0 !important;
}

/* Styles pour les balises avec la classe subtitle */
.subtitle,
p.subtitle {
  font-size: 16px !important;
  line-height: 24px !important;
  color: var(--white) !important;
  margin: 0 !important;
}

.hero-image-widget-white-box {
  position: absolute;
  left: 0;
  bottom: -22px;
  width: 577px;
  background-color: var(--white);
  border-radius: 0 20px 0 20px;
  z-index: 10;
  padding: 45px 60px;
  box-sizing: border-box;
  text-decoration: none;
  display: block;
}

.hero-image-widget-white-box .white-box-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.hero-image-widget-white-box .white-box-icon {
  flex-shrink: 0;
}

.hero-image-widget-white-box .white-box-text {
  flex: 1;
}

.hero-image-widget-white-box .white-box-text .text-line-1 {
  font-weight: bold;
  font-size: 20px;
  line-height: 23px;
  color: var(--black);
  margin: 0 0 5px 0;
}

.hero-image-widget-white-box .white-box-text .text-line-2 {
  font-size: 20px;
  line-height: 23px;
  color: var(--black);
  margin: 0;
}

/* Responsive Styles */

/* Medium screens (1124px and below) */
@media (max-width: 1124px) {
  .hero-image-widget {
    margin-top: 0;
  }
}

/* Mobile screens (768px and below) */
@media (max-width: 768px) {
  .hero-image-widget {
    margin-bottom: 30px;
  }

  .hero-image-widget .featured-image {
    height: 360px;
    border-radius: 15px;
  }

  .hero-image-widget-overlay {
    left: 23px;
    width: calc(100% - 46px);
    height: 370px;
    padding: 15px 15px 15px 0;
  }

  /* Styles mobile pour les balises avec la classe hero-image-widget-title */
  .hero-image-widget-title,
  h1.hero-image-widget-title {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 32px !important;
    margin-bottom: 15px !important;
  }

  /* Styles mobile pour les balises avec la classe subtitle */
  .subtitle,
  p.subtitle {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .hero-image-widget-white-box {
    bottom: -18px;
    width: 90%;
    padding: 13px 6px;
  }

  .hero-image-widget-white-box .white-box-content {
    gap: 11px;
  }

  .hero-image-widget-white-box .white-box-icon svg {
    width: 17px;
    height: 17px;
  }

  .hero-image-widget-white-box .white-box-text .text-line-1 {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
  }

  .hero-image-widget-white-box .white-box-text .text-line-2 {
    font-size: 14px;
    line-height: 20px;
  }
}
