/**
 * STYLE FRONT — HERO DYNAMIQUE

/* ------------------------------
   STRUCTURE GLOBALE
------------------------------ */
.elt-card-link {
  overflow: hidden;
}

.andegave-hero-dyn {
  position: relative;
  width: 100%;
  min-height: fit-content;
  /*max-height: 900px;*/
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #01529a;
  font-family: inherit;
}

.andegave-hero-dyn.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.andegave-hero-dyn__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right top;
  opacity: 1;
  transition:
    opacity 0.4s,
    background-image 0.4s ease-in-out;
  /*margin-bottom: 8vh;*/
}

.andegave-hero-dyn.is-fading .andegave-hero-dyn__background {
  opacity: 0;
}

.andegave-hero-dyn__overlay {
  position: relative;
  z-index: 2;
}

.andegave-hero-dyn__content {
  max-width: 33vw;
  text-align: left;
}

/* ------------------------------
   BANNIÈRE : ICÔNE + TITRE + TEXTE + CTA
------------------------------ */

.andegave-hero-dyn__dynamic-icon img {
  /*width: 4vw;
  height: 4vw;*/
  object-fit: contain;
  background-color: #ffffff;
}

.andegave-hero-dyn__dynamic-icon img.is-default-icon {
  background-color: transparent !important;
}

.andegave-hero-dyn__dynamic-title {
  margin: 0 0 12px;
  font-size: 5rem;
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
}

.andegave-hero-dyn__dynamic-text {
  margin: 0 0 18px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.andegave-hero-dyn__dynamic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: #01529a;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  transition:
    background 0.2s,
    transform 0.15s;
}

.andegave-hero-dyn__dynamic-cta:hover {
  background: #ffffff;
  color: #01529a;
  transform: translateY(-3px);
}

/* ------------------------------
   TABS DES BOUTONS
------------------------------ */

.andegave-hero-dyn__tabs {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  width: 90vw;
  margin: 0 auto;
}

.andegave-hero-dyn__tab {
  border: 1px solid #d9d9d9;
  padding: 24px 28px;
  background: #ffffff;
  cursor: pointer;
  /*width: 13vw;
  height: 13vw;*/
  min-width: 140px;
  min-height: 140px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition:
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.andegave-hero-dyn__tab-icon img {
  /*width: 3vw;
  height: 3vw;
  min-width: 40px;
  min-height: 40px;*/
  object-fit: contain;
}

.andegave-hero-dyn__tab-title {
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 2%;
  margin-top: 10%;
}

.andegave-hero-dyn__tab-text {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 1%;
  margin-bottom: 1%;
  line-height: 1 !important;
}

.andegave-hero-dyn__tab-cta a {
  margin-top: 8px;
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: underline;
  color: #01529a;
}

.andegave-hero-dyn__tab.is-active {
  background-color: #01529a;
  color: #ffffff;
}

.andegave-hero-dyn__tab.is-active img {
  filter: brightness(1000);
}

.andegave-hero-dyn__tab.is-active .andegave-hero-dyn__tab-text,
.andegave-hero-dyn__tab.is-active .andegave-hero-dyn__tab-cta a {
  opacity: 0.9;
  color: #ffffff;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

/*GRAND ÉCRAN (≥1600px) */
@media (min-width: 1600px) {
  .andegave-hero-dyn__dynamic-title {
    font-size: 6rem;
  }
}

/*DESKTOP STANDARD (1024–1599px) */
@media (max-width: 1400px) {
  .andegave-hero-dyn__content {
    max-width: 40vw;
  }

  .andegave-hero-dyn__dynamic-title {
    font-size: 4rem;
  }

  .andegave-hero-dyn__dynamic-icon img {
    /*width: 5vw;
    height: 5vw;*/
  }

  .andegave-hero-dyn__tab {
    /*width: 16vw;
    height: 16vw;*/
  }
}

/*TABLETTE (768–1023px) */
@media (max-width: 1023px) {
  .andegave-hero-dyn {
    height: 75vh;
  }

  .andegave-hero-dyn__overlay {
    /*padding: 6vh 6vw;*/
  }

  .andegave-hero-dyn__content {
    max-width: 60vw;
  }

  .andegave-hero-dyn__dynamic-title {
    font-size: 3rem;
  }

  .andegave-hero-dyn__dynamic-icon img {
    /*width: 8vw;
    height: 8vw;*/
  }

  .andegave-hero-dyn__tabs {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .andegave-hero-dyn__tab {
    /*width: 28vw;
    height: 28vw;*/
    min-width: 180px;
  }
}

@media (max-width: 767px) {
  .andegave-hero-dyn {
    height: 75vh;
    padding-bottom: 40px;
  }

  /* Image plus visible */
  .andegave-hero-dyn__background {
    height: 100%;
  }

  /* Bloc blanc */
  .andegave-hero-dyn__overlay {
    position: relative;
    height: 50%;
    /*margin-top: -60px;*/
    padding: 30px 20px;
    background: #ffffff;
    width: calc(100% - 40px);
    /*border-radius: 8px;*/
    margin-left: auto;
    margin-right: auto;
  }

  .andegave-hero-dyn__content {
    max-width: 100%;
  }

  .andegave-hero-dyn__dynamic-icon img {
    /*width: 8vw;
    height: 8vw;*/
    margin-bottom: 10px;
  }

  /* Titre */
  .andegave-hero-dyn__dynamic-title {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 5px;
  }

  /* Texte */
  .andegave-hero-dyn__dynamic-text {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  /* CTA centré */
  .andegave-hero-dyn__dynamic-cta {
    display: flex;
    margin: auto;
    padding: 8px 15px;
    font-size: 0.8rem;
    /*border-radius: 4px;*/
  }

  .andegave-hero-dyn__tabs {
    display: none !important;
  }

  /* Grille des tabs 
  .andegave-hero-dyn__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 14px;
    padding: 0 20px;
    margin-top: 20px;
  }

  .andegave-hero-dyn__tab {
    width: 100%;
    padding: 18px;
    height: auto;
  }

  .andegave-hero-dyn__tab-icon img {
    width: 14vw;
    height: 14vw;
    margin-bottom: 10px;
  }

  .andegave-hero-dyn__tab-title {
    font-size: 1rem;
  }

  .andegave-hero-dyn__tab-text {
    font-size: 0.9rem;
  }*/
}

/* ------ ARROWS STYLE ------ */
.andegave-hero-dyn__arrows {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  z-index: 20;
  display: flex;
  justify-content: right;
  padding: 0 0px;
  pointer-events: none;
  transform: translateY(-50%);
  height: 50px;
}

.andegave-hero-dyn__arrow {
  pointer-events: auto;
  background: #0093d0;
  color: white;
  width: 50px;
  height: 100%;
  border: none;
  /*border-radius: 4px;*/
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 20px;
}

/* Sur desktop → pas de flèches */
@media (min-width: 768px) {
  .andegave-hero-dyn__arrows {
    display: none !important;
  }
}
