/*
Theme Name: Blog Solarchoc
Description: Theme Solarchoc
Author: David - Kitacom
Author URI: https://www.kitacom.fr
Template: Divi 
Version: 1.0.0
*/


.boutons-en-ligne 
.et_pb_button_module_wrapper {
   display: inline-block;
margin: 0 2%;
	
}

.boutons-en-ligne {
    text-align: center!important;
}


/* header icones en ligne*/
.icone-en-ligne {
    display: inline-block;
    margin: 0 2%;
	position: relative;
	left: 1%;
	transform: translateX(-1%);
	vertical-align:top;
	
}

.icone-en-ligne {
    text-align: center!important;
}

.icone-en-ligne-droite {
    display: inline-block;
    float:right;
}
.icone-en-ligne-droite {
    text-align: center!important;
}

.icone-en-ligne-4 {
    display: inline-block;
    margin: 0 2%;
	position: relative;
	left: 1%;
	transform: translateX(-1%);
	vertical-align:top;
	width:24%;
	
}
.icone-en-ligne-5 {
    display: inline-block;
    margin: 0 2%;
	position: relative;
	left: 1%;
	transform: translateX(-1%);
	vertical-align:top;
	width:20%;
	
}

.icone-en-ligne-6 {
    display: inline-block;
    margin: 0 2%;
	position: relative;
	left: 1%;
	transform: translateX(-1%);
	vertical-align:top;
	width:16.5%;
	
}

.icone-en-ligne-7 {
    display: inline-block;
    margin: 0 2%;
	position: relative;
	left: 1%;
	transform: translateX(-1%);
	vertical-align:top;
	width:14.25%;
	
}
@media only screen and (max-width: 980px) {
    .two-columns .et_pb_column {
    width: 50%!important;
}
	
}
 
@media only screen and (max-width: 479px) {
    .two-columns .et_pb_column {
    width: 50%!important;
}

	.icone-en-ligne-droite {
    display: inherit;
	    float:right;
}
	.icone-en-ligne {
   display: inline-block;
    margin: 0 0.5%;
	position: relative;
	left: 1%;
	transform: translateX(-1%);
	vertical-align:top;
		float:left;
    
	
}
	.icone-en-ligne-7 {
    display: inline-block;
    margin: 0 2%;
	position: relative;
	left: 1%;
	transform: translateX(-1%);
	vertical-align:top;
	width:24%;
	
}
}

.h3 {
    font-size: 25px;
    margin-bottom: 20px;
  }

/* Bouton personnalisé blog et catégories d’installations */
.et_pb_post .more-link {
    display: inline-block;
    text-align: center;
    background-color: #FCCC00;
    color: #000 !important;
    padding: 10px 18px;
    border-radius: 25px;
    margin: 20px auto 0 auto;
    font-weight: 400;
    text-decoration: none !important;
}

/* Hover */
.et_pb_post .more-link:hover {
    background-color: #e6b800;
}

/* --- Grille BLOG en 4 colonnes --- */
.sc-blog-4-cols .et_pb_salvattore_content .column.size-1of3 {
    width: 25% !important;      /* 4 colonnes */
}

/* Ajustement du spacing */
.sc-blog-4-cols .et_pb_post {
    margin-bottom: 30px;
}


/* --- Responsive tablette (2 colonnes) --- */
@media (max-width: 980px) {
    .sc-blog-4-cols .et_pb_salvattore_content .column.size-1of3 {
        width: 50% !important;
    }
}

/* --- Responsive mobile (1 colonne) --- */
@media (max-width: 767px) {
    .sc-blog-4-cols .et_pb_salvattore_content .column.size-1of3 {
        width: 100% !important;
    }
}

/*navigation pages blog*/
/*styles the wp-pagenavi pagination links*/
.wp-pagenavi{
	clear: both;
  text-align: center;
}
.wp-pagenavi a, .wp-pagenavi span {
  color: #f39b80;
  margin: 0 5px;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 400 !important;
  border: none !important;
}
.wp-pagenavi a, .wp-pagenavi span {padding: 0.3em 0.8em !important;border-radius:10px;color: #fff;
  line-height: 2em;background: #FCCC00;transition: all .5s}
/*styles the wp-pagenavi current page number*/
.wp-pagenavi span.current {color: #ffffff !important;background: #2F6600 !important}
/*styles the wp-pagenavi pagination links on hover*/
.wp-pagenavi a:hover {color: #fff !important;background: #2F6600 !important}
 /*styles the wp-pagenavi pages text*/
.wp-pagenavi .pages {background: none;color:#2F6600}
.wp-pagenavi .nextpostslink, .wp-pagenavi .previouspostslink {color:#fff !important}


/*Blog 4 colonnes*/
/* create css grid column template */
.et-blog-css-grid > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
/* style css grid item or blog post */
.et-blog-css-grid .et_pb_post {
  align-self: start;
  padding: 0 0px 15px 0px;
}
 
/* remove pagination from blog module grid with absolute position */
.et-blog-css-grid > div > div {
  width: 100%;
  position: absolute;
  bottom: 0;
  transform: translate(0%, 150%);
}
 
/* Resize Featured Image Thumbnails */
.et-blog-css-grid .entry-featured-image-url {
  
}
.et-blog-css-grid .entry-featured-image-url img {
  position: inherit;
  height: 100%;
  width: 100%;
  top: 0;
  object-fit: cover;
}

.et-menu-nav li.mega-menu li > a {
  width: auto !important;
}

/* Icônes jaunes dans le sous-menu du blog */
.sub-menu .fa,
.sub-menu .fa:before {
    color: #FCCC00 !important;
}

/* Alignement propre */
.sub-menu .fa {
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    position: relative;
    top: 2px;
}

/* Pour les sous-menus uniquement (si tu veux encapsuler) */
.sub-menu li li .fa {
    color: #FCCC00 !important;
}


/* Bandeau recherche */
#ajaxsearchlite1 .probox, div.asl_w .probox {
  margin: 0;
  padding: 8px;
  height: 28px;
  background-color: #fff;
  border: 2px solid #6ca937;
  border-radius: 0 0 0 0;
  box-shadow: 0 0 0 0 #b5b5b5 inset;
  border-radius: 30px;
}

div.asl_w .probox .promagnifier .innericon svg {
  fill: #6ca937;
}

div.asl_r .results .item .asl_content h3, div.asl_r .results .item .asl_content h3 a {
  margin: 0;
  padding: 0;
  line-height: inherit;
  font-weight: normal;
  font-family: Open Sans;
  color: #6ca937;
  font-size: 14px;
  line-height: 22px;
  text-shadow: 0 0 0 rgba(255,255,255,0);
}

div.asl_r .results .item .asl_content h3 a:hover {
  font-weight: normal;
  font-family: Open Sans;
  color: #6ca937;
  font-size: 14px;
  line-height: 20px;
  text-shadow: 0 0 0 rgba(255,255,255,0);
}


/* Étendre le menu mobile Divi sur toute la largeur de l'écran */
@media (max-width: 980px) {
  /* Cible le menu mobile généré par Divi dans ton module */
  .menu-mobile-fullwidth .et_mobile_menu {
    position: fixed;          /* on sort du flux et de la colonne */
    top: 60px;                /* adapte à la hauteur de ton header */
    left: 0;
    right: 0;
    width: 100vw;             /* pleine largeur écran */
    max-width: 100vw;
    z-index: 9999;            /* au-dessus du reste */
    box-sizing: border-box;
  }

  /* Optionnel : si le parent limite la largeur, on enlève la contrainte */
  .menu-mobile-fullwidth {
    position: static;
    width: auto;
  }
}

/* Full-width mobile dropdown for bottom fixed menu */
@media (max-width: 980px) {
	
	  .et_pb_menu .et_pb_mobile_menu_upwards .et_mobile_menu {
    top: auto;
    bottom: 60px;
  }

  /* Liste déroulante du menu mobile */
  .menu-bottom-fullwidth .et_mobile_menu {
    position: fixed;          /* sort du flux et se détache de la colonne */
    bottom: 60px;             /* hauteur approximative du menu fixe en bas */
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    z-index: 99999;
    background: #fff;         /* fais ressortir le menu */
    box-sizing: border-box;
    border-top: 1px solid #eee; /* optionnel */
  }

  /* Empêche le parent de limiter la largeur */
  .menu-bottom-fullwidth {
    position: static;
    width: auto;
  }
	

  /* Pour éviter les débordements internes */
  .menu-bottom-fullwidth .et_mobile_menu li a {
    width: 100%;
    display: block;
  }
}
