/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.elementor-element.fadeInDown {
  animation-name: fadeDown;
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.elementor-element.fadeInLeft {
  animation-name: fadeLeft;
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.elementor-element.fadeInRight {
  animation-name: fadeRight;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.elementor-element.fadeInUp {
  animation-name: fadeUp;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.elementor-element.slideInUp {
  animation-name: slideUp;
}


/*----------------------Stroke surtitle --------------------*/


.surtitle{
	-webkit-text-stroke-width: 0.5px;
	-webkit-text-stroke-color: #FFF;
}
.surtitle-reverse{
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: #000E17;
}



/*------------------------     Fond grid   --------------------------------*/
body {
  margin: 0;
  padding: 0;
  
  width: 100%;
  height: 100vh;
 
  background: white;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.05) 0.1em, transparent 0.1em),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0.1em, transparent 0.1em);
  background-size: 7em 7em !important;
}







/*------------------------     Carousel Accueil phone   --------------------------------*/






.carousel-homepage .card_carousel_title {
    position:relative;
    background-color: var(--e-global-color-secondary);
    width: fit-content;
    padding:2px 20px 2px 40px;
    border-radius:3px;
}

.carousel-homepage .card_carousel_title::before {
    content: "";
    background-color: var(--e-global-color-primary);
    width: 28px;
    height: 28px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translate(-50%, -50%);
    background-size: contain !important;
}

/*-------  Couverture  -------*/
.carousel-homepage .owl-item:nth-child(1) .card_carousel_title::before {
background: url("https://logia.rctoiture.com/wp-content/uploads/2025/04/Courveture-circle.svg")
  no-repeat center center;
}

/*-------  Zinguerie  -------*/
.carousel-homepage .owl-item:nth-child(2) .card_carousel_title::before {
background: url("https://logia.rctoiture.com/wp-content/uploads/2025/04/Zinguerie-circle.svg")
  no-repeat center center;
}

/*-------  Charpente  -------*/
.carousel-homepage .owl-item:nth-child(3) .card_carousel_title::before {
background: url("https://logia.rctoiture.com/wp-content/uploads/2025/04/Charpente-circle.svg")
  no-repeat center center;
}

/*-------  Fenêtre  -------*/
.carousel-homepage .owl-item:nth-child(4) .card_carousel_title::before {
background: url("https://logia.rctoiture.com/wp-content/uploads/2025/04/Fenetre-circle.svg")
  no-repeat center center;
}

/*-------  DEVIS DEVIS DEVIS  -------*/
.carousel-homepage .owl-item:nth-child(6) .card_carousel_title {
	display:none;
}

/*-------  Entretient  -------*/
.carousel-homepage .owl-item:nth-child(5) .card_carousel_title::before {
background: url("https://logia.rctoiture.com/wp-content/uploads/2025/04/Entretient-circle.svg")
  no-repeat center center;
}





 .strongest-p strong {
     font-weight: 700;
}











/*----------------------------   Carousel réalisation  ---------------------------------*/

.carousel-realisations .elementor-swiper-button.elementor-swiper-button-next,
.carousel-realisations .elementor-swiper-button.elementor-swiper-button-prev{
    background: black;
    padding: 12px;
    border-radius: 50px;
}
.carousel-realisations .elementor-swiper-button.elementor-swiper-button-next:hover,
.carousel-realisations .elementor-swiper-button.elementor-swiper-button-prev:hover{
    background: var(--e-global-color-secondary);
    padding: 12px;
    border-radius: 50px;
}


@media (min-width: 767px) {
    .swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
        display: none;
    }
}




/* MULTI GALLERY */

.mg-tab-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin-bottom: 1em;
  flex-wrap: wrap;
  gap: 1rem;
}
.mg-tab-nav li {
  cursor: pointer;
  padding: 0.5em 1em;
  background: var(--e-global-color-primary);
  color: white!important;
  margin-right: 0.5em;
  font-family: 'Poppins', Sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  --space-between: -5px;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.mg-tab-nav li:hover {
  background: var(--e-global-color-secondary);
}


.mg-tab-nav li.active {
  background: var(--e-global-color-secondary);
  color: #fff;
}
.mg-tab-content {
  display: none;
}
.mg-tab-content.active {
  display: block;
  margin-top: 50px !important;
}
.mg-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.mg-gallery a {
  display: block;
  overflow: hidden;
}
.mg-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.mg-item.hidden {
  display: none;
}
.mg-load-more {
  display: block;
  margin: 5rem auto 0 auto;
  padding: 0.5em 1em;
  border-radius: 5px;
  background: var(--e-global-color-secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  padding-right: 40px !important;
  font-family: "Fjalla One";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%; /* 20px */
  text-transform: uppercase;
}

.mg-load-more::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("https://logia.rctoiture.com/wp-content/uploads/2025/05/plus-1.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.mg-load-more:hover {
  
  background: #0072A3;
}

a.mg-item {
  animation: animate 0.3s ease-in-out;
}

@keyframes animate {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media all and (max-width: 1024px) {
  .mg-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media all and (max-width: 767px) {
  .mg-gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media all and (max-width: 550px) {
  .mg-tab-nav {
    flex-wrap: nowrap;
    overflow-x: scroll;
    padding: 0px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .mg-tab-nav li {
    text-wrap: nowrap;
  }

  .mg-tab-nav::-webkit-scrollbar {
    display: none;
  }

  .mg-tab-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}



/*----------------------------- Onglet ----------------------------*/

.content-tab .e-n-tab-title {
  flex: none !important;
  width: 25% !important;
  text-align: center;
  position: relative;
  background-color: transparent;
  border: none;
  outline: none;
  transition: background-color 0.3s ease-in-out;
}


.content-tab.three .e-n-tab-title {
  flex: none !important;
  width: 33% !important;
  text-align: center;
  position: relative;
  background-color: transparent;
  border: none;
  outline: none;
  transition: background-color 0.3s ease-in-out;
}

/* Barre blanche animée */
.content-tab [aria-selected="true"].e-n-tab-title::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 4px;
  height: 6px;
  width: calc(100% - 8px);
  background-color: white;
/*   transform: scaleX(0); */
/*   transform-origin: left; */
/*   transition: transform 0.3s ease-in-out; */
}

/* Affichage de la barre au survol ou si actif */
/* .content-tab .e-n-tab-title:hover::after,
.content-tab .e-n-tab-title[aria-selected="true"]::after {
  transform: scaleX(1);
  bottom: 4px;
}

.content-tab .e-n-tab-title:hover,
.content-tab .e-n-tab-title[aria-selected="true"] {
  transform: scaleY(1);
} */

/* Couleurs des onglets */
.content-tab .e-n-tab-title:nth-of-type(1) {
  background-color: var(--e-global-color-primary) !important;
}
.content-tab .e-n-tab-title:nth-of-type(1):hover {
  background-color: #001c2f !important;
}

.content-tab .e-n-tab-title:nth-of-type(2) {
  background-color: #00253d !important;
}
.content-tab .e-n-tab-title:nth-of-type(2):hover {
  background-color: #001c2f !important;
}

.content-tab .e-n-tab-title:nth-of-type(3) {
  background-color: #003c63 !important;
}
.content-tab .e-n-tab-title:nth-of-type(3):hover {
  background-color: #002d4b !important;
}

.content-tab .e-n-tab-title:nth-of-type(4) {
  background-color: var(--e-global-color-secondary) !important;
}
.content-tab .e-n-tab-title:nth-of-type(4):hover {
  background-color: #0084bd !important;
}



@media (max-width: 768px) {
  .content-tab .e-n-tabs-heading,
  .content-tab.three .e-n-tabs-heading {
    flex-direction: column;
  }

  .content-tab .e-n-tab-title,
  .content-tab.three .e-n-tab-title{
    width: 100% !important;
    text-align: left;
    justify-content: space-between;
    padding: 1em 1.5em;
    display: flex;
    align-items: center;
    position: relative;
  }

  /* Supprimer la barre ::after sur mobile */
  .content-tab .e-n-tab-title::after {
    display: none;
  }

  /* Ajouter le chevron en pseudo-élément */
  .content-tab .e-n-tab-title::before {
    content: "▼";
    font-size: 1rem;
    color: white;
    position: absolute;
    right: 1.5em;
    transition: transform 0.3s ease;
  }

  /* Rotation possible si actif */
  .content-tab .e-n-tab-title[aria-selected="true"]::before {
    transform: rotate(180deg);
  }
}

a:focus{
	background-color:transparent!important;
}