/* === VARIABLES === */
:root {
  --sng-primary: #33100C;
  --sng-secondary: #B2392C;
  --sng-accent: #2CA7B3;
  --sng-neutral: #8C2D23;
  --sng-light: #CCCCCC;
  --sng-body: #666666;
}

.elementor-widget-icon .elementor-icon svg * {
  fill: inherit !important;
  stroke: inherit !important;
}

.elementor-heading-title span {
  font-size: 0.3em;
  font-weight: 400;
  line-height: 1.3em;
  display: block;
} 

.hero-heading h1 small {
  display: block;
  font-size: 0.3em;
  line-height: 1.2em;
}


/** MENU **/
.elementor-nav-menu--main .elementor-nav-menu a.elementor-sub-item {
  padding-left: 10px!important;
}


/** ACCUEIL **/
.home #header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.svc-card .svc-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height .4s ease, opacity .4s ease, transform .4s ease;
}

/* Apparition au hover */
.svc-card:hover .svc-desc {
  max-height: 300px;
  /* assez grand pour ton texte */
  opacity: 1;
  transform: translateY(0);
  transition: max-height 1s ease, opacity .4s ease, transform 1s ease;
}

#refListFeatured .ui-e-post-content .elementor-button-link {
  position: absolute;
  right: 0;
  top: 40px;
}

#refFeatured .ui-e-post-content {
  background-color: #FFF;
  width: 50%;
  height: 50%;
  position: absolute;
  right: 15px;
  bottom: 15px;
  top: auto;
  padding: 50px;
}

#refFeatured .ui-e-post-content .elementor-button-content-wrapper {
  align-items: center;
}

#refFeatured .ui-e-post-content .elementor-button-icon {
  border: 2px solid;
  border-color: var(--sng-neutral);
  border-radius: 100px;
  padding: 0px;
  font-size: 35px;
}

/* Responsive */
@media (max-width: 1024px) {
  #listRefFeatured .elementor-button-link {
    display: none;
  }
}

@media (max-width: 768px) {
  .home #header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
  }

  .svc-card {
    background: none !important;
    padding: 0;
    border-bottom: 1px dashed var(--sng-light);
  }

  .svc-card::before {
    background: none !important;
  }

  .svc-card .svc-desc {
    max-height: none;
    opacity: 1;
    overflow: auto;
    transform: translateY(0px);
    transition: none;
    padding-bottom: 10px !important;
  }

  .svc-card .elementor-icon svg {
    fill: var(--sng-neutral) !important;
  }

  .svc-card .elementor-heading-title {
    color: var(--sng-primary) !important;
  }

  .svc-card p {
    color: var(--sng-body) !important;
  }

  #listRefFeatured .ui-e-post-top {
    --ui-e-img-size: 55;
  }

  #listRefFeatured .ui-e-post-content {
    margin-top: 0;
  }

  #listRefFeatured .ui-e-post-title {
    margin-top: 10px !important;
  }

  #listRefFeatured .elementor-button-link {
    display: none;
  }

  #listNewsFeatured article {
    padding: 0 10px 20px;
  }

  #listNewsFeatured .ui-e-post-title {
    margin-top: 10px !important;
  }

  #listNewsFeatured .elementor-button-link {
    display: none;
  }
}


/** ARCHI **/

#stepProjectCarrousel .elementor-icon-list-item .st0 { fill: #FFF; }

#comparatifMetier { overflow-x: scroll; }

.numberStepProject {
  width: 40px !important;
  height: 40px !important;
  text-align: center;
  display: flex!important;
  justify-content: center!important;
  align-items: center!important;
}

/* Styles de base Swiper */
.step-project-carousel {
    width: 100%;
    height: auto;
    padding: 20px 0;
}

.step-project-carousel .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
}

.step-project-carousel .slide-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px; /* Hauteur minimum */
}

.step-project-carousel .slide-content .e-con.e-child {
    height: 100%;
}

/* Responsive hauteurs */
@media (max-width: 768px) {
    .step-project-carousel .slide-content {
        min-height: 300px;
    }
    .step-project-carousel .e-con-inner {
      flex-wrap: nowrap!important;
      flex-direction: column;
    }
}

/* Navigation buttons */
.step-project-carousel .swiper-button-next,
.step-project-carousel .swiper-button-prev {
    color: var(--primary-color, #333);
}

/* Pagination */
.step-project-carousel .swiper-pagination-bullet {
    display: none;
}
.step-project-carousel .swiper-pagination-bullet-active {
    background: var(--primary-color, #333);
}


/** PERMIS **/
#sectionEtudePrice .elementor-heading-title small {
  font-size: 0.5em; display: block; font-weight: 300;
}