/* ===== HERO 3 WIDGET ===== */

.indy-hero-3-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
}

.indy-hero-3-block .indy-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.indy-hero-3-block .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* Main title */
.indy-hero-3-block .indy-hero-title {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.64px;
}

/* Hero content */
.indy-hero-3-block .subtitle p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.indy-hero-3-block .btn-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: 16px;
}
.indy-hero-3-block .btn-wrapper .btn.fullwidth {
  width: 100%;
  max-width: 345px;
}

/* Overlay img */
.indy-hero-3-block .total-recettes,
.indy-hero-3-block .credit-card {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.indy-hero-3-block .total-recettes {
  filter: drop-shadow(0 16px 24px rgba(112, 65, 0, 0.07));
}
.indy-hero-3-block .credit-card {
  filter: drop-shadow(0 16px 24px rgba(112, 65, 0, 0.25));
}
.indy-hero-3-block .credit-card img,
.indy-hero-3-block .total-recettes img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 767px) {
  .indy-hero-3-block {
    flex-direction: column;
  }
  .indy-hero-3-block.layout-a .img-wrapper.right,
  .indy-hero-3-block .credit-card {
    display: none;
  }
  .indy-hero-3-block .total-recettes {
    bottom: 13.75px;
    left: 50%;
    width: 197px;
    transform: translateX(-50%);
    height: 100px;
  }
}

@media (min-width: 768px) {
  .indy-hero-3-block.layout-a div.img-wrapper {
    flex-shrink: 0;
    flex-grow: 0;
    width: auto;
    display: flex;
    overflow: visible;
    border-radius: 0;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .indy-hero-3-block {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .indy-hero-3-block.layout-a div.img-wrapper.left {
    justify-content: flex-end;
    transform: translateX(-18px);
  }
  .indy-hero-3-block.layout-a div.img-wrapper.right {
    justify-content: flex-start;
    transform: translateX(18px);
  }
  .indy-hero-3-block.layout-a .img-wrapper .indy-hero-image {
    width: 197px;
    height: 293px;
  }
  .indy-hero-3-block.layout-a .img-wrapper.left .total-recettes {
    width: 167px;
    bottom: 0;
    right: -30px;
  }
  .indy-hero-3-block.layout-a .img-wrapper.right .credit-card {
    width: 155px;
    bottom: 7px;
    left: -12px;
  }

  .indy-hero-3-block .content-wrapper {
    flex-basis: 362px;
    flex-shrink: 0;
    flex-grow: 1;
    gap: 24px;
  }

  .indy-hero-3-block .indy-hero-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -0.88px;
  }
  .indy-hero-3-block .indy-hero-title,
  .indy-hero-3-block .subtitle,
  .indy-hero-3-block .btn-wrapper {
    text-align: center;
    gap: 16px;
    width: fit-content;
    margin-inline: auto;
    justify-content: center;
  }

  .indy-hero-3-block .subtitle p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
  }

  .indy-hero-3-block .btn-wrapper .btn.fullwidth {
    max-width: 288px;
  }
}

@media (min-width: 1024px) {
  .indy-hero-3-block {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 55px;
  }

  .indy-hero-3-block.layout-a .img-wrapper {
    width: 260px;
    height: 470px;
    margin-top: 0;
  }
  .indy-hero-3-block.layout-a .img-wrapper .indy-hero-image {
    width: 323px;
    height: 479px;
  }
  .indy-hero-3-block.layout-a .img-wrapper.left .total-recettes {
    width: 276px;
    bottom: -17px;
    left: 32px;
  }
  .indy-hero-3-block.layout-a .img-wrapper.right .credit-card {
    width: 226px;
    bottom: -22px;
    left: 17%;
  }

  .indy-hero-3-block .content-wrapper {
    max-width: 579px;
    gap: 32px;
  }
  .indy-hero-3-block .indy-hero-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: -1.344px;
    text-align: center;
  }
  .indy-hero-3-block .subtitle {
    font-size: 16px;
    letter-spacing: -0.16px;
    line-height: 24px;
    text-align: center;
  }
  .indy-hero-3-block .btn-wrapper {
    flex-direction: row;
  }
}

/* Layout B : Structure 2 colonnes */
.indy-hero-3-block.layout-b {
  display: block;
  background-color: #fef8ed;
}
@media (max-width: 767px) {
  .indy-hero-3-block.layout-b {
    min-height: 500px;
  }
}

.indy-hero-3-block.layout-b .hero-container {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.indy-hero-3-block.layout-b .hero-left {
  text-align: center;
  padding: 0;
  margin-top: 20px;
  order: 2;
}

.indy-hero-3-block.layout-b .hero-left .indy-hero-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.64px;
  margin-bottom: 16px;
}

.indy-hero-3-block.layout-b .hero-left .hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.16px;
  margin-bottom: 16px;
}

.indy-hero-3-block.layout-b .hero-left .btn-wrapper {
  justify-content: flex-start;
}

.indy-hero-3-block.layout-b .hero-right {
  display: block;
  position: relative;
  order: 1;
}

.indy-hero-3-block.layout-a .img-wrapper,
.indy-hero-3-block.layout-b .hero-right .hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  width: 258px;
  height: 318px;
  max-width: 100%;
  margin-inline: auto;
}

@media (max-width: 1023px) {
  .indy-hero-3-block.layout-b .hero-left {
    position: relative;
    z-index: 3;
  }

  .indy-hero-3-block.layout-b .hero-right {
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .indy-hero-3-block.layout-b .hero-container {
    min-height: 400px;
    padding: 0 20px 0 41px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-direction: row;
  }

  .indy-hero-3-block.layout-b .hero-left {
    order: 1;
  }
  .indy-hero-3-block.layout-b .hero-left .indy-hero-title,
  .indy-hero-3-block.layout-b .hero-left .subtitle,
  .indy-hero-3-block.layout-b .hero-left .btn-wrapper {
    text-align: left;
  }
  .indy-hero-3-block.layout-b .hero-left .indy-hero-title {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.88px;
    line-height: 40px;
  }
  .indy-hero-3-block.layout-b .hero-left .hero-subtitle {
    margin-bottom: 32px;
  }
  .indy-hero-3-block.layout-b .hero-left .btn-wrapper {
    margin-inline: unset;
    width: 100%;
  }

  .indy-hero-3-block.layout-b .hero-right {
    order: 2;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    width: 330px;
    height: 320px;
  }
  .indy-hero-3-block.layout-b .hero-right .hero-image-container {
    border-radius: unset;
    height: 100%;
    width: 100%;
  }
  .indy-hero-3-block.layout-b
    .hero-right
    .hero-image-container
    .indy-hero-image {
    max-width: 100%;
    width: 215px;
    height: 281px;
    border-radius: 10.043px;
    margin-left: 45px;
  }
  .indy-hero-3-block.layout-b .total-recettes {
    bottom: 104px;
    right: 0;
    width: 169px;
  }
  .indy-hero-3-block.layout-b .credit-card {
    width: 124px;
    bottom: 0;
    left: 0;
  }
}

@media (min-width: 1024px) {
  .indy-hero-3-block.layout-b .hero-container {
    gap: 122px;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: row;
    display: flex;
  }

  .indy-hero-3-block.layout-b .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    order: 1;
    gap: 32px;
    flex-basis: 515px;
    flex-grow: 1;
    flex-shrink: 0;
  }

  .indy-hero-3-block.layout-b .hero-right {
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .indy-hero-3-block.layout-b .hero-left .indy-hero-title {
    font-family: "Martina Plantijn", Sans-serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: -1.344px;
    text-align: left;
  }

  .indy-hero-3-block.layout-b .hero-left .hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.16px;
    max-width: 450px;
    text-align: left;
  }

  .indy-hero-3-block.layout-b .hero-left .indy-hero-title,
  .indy-hero-3-block.layout-b .hero-left .hero-subtitle {
    margin: 0;
    padding: 0;
  }

  .indy-hero-3-block.layout-b .hero-right .hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 378px;
    height: auto;
    margin-top: 0;
  }

  .indy-hero-3-block.layout-b
    .hero-right
    .hero-image-container
    .indy-hero-image {
    width: auto;
    height: 525px;
    max-width: 100%;
  }

  .indy-hero-3-block.layout-b .total-recettes {
    top: 45%;
    right: -56%;
    width: 348px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  }

  .indy-hero-3-block.layout-b .credit-card {
    width: 220px;
    bottom: -69px;
    left: -60px;
  }
  .indy-hero-3-block.layout-b .credit-card img {
    width: auto;
  }
}
