/* 1. La zone widgets de bas de page prend 100% de la largeur */
.site-footer .footer-widgets-container,
.site-footer .inside-footer-widgets,
.site-footer .footer-widgets,
.site-footer .grid-container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2. Ton bloc footer interne (footer-top / footer-seo / footer-bottom)
      peut lui-même contrôler sa largeur interne */
.footer-top-inner,
.footer-seo-inner,
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* 3. S'assurer que les widgets n'ajoutent pas de boîte blanche centrée */
.site-footer .widget,
.site-footer .widget_block,
.site-footer .widget_text {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* FOOTER PLEINE LARGEUR SUR GENERATEPRESS */

/* Étendre les conteneurs du footer sur tout l'écran */
.site-footer,
.site-footer .footer-widgets,
.site-footer .footer-widgets-container,
.site-footer .inside-footer-widgets,
.site-footer .footer-bar,
.site-footer .inside-site-info,
.site-footer .grid-container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Les widgets eux-mêmes ne recentrent pas le contenu */
.site-footer .widget,
.site-footer .widget_block,
.site-footer .widget_text {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Contenu interne de TON footer (tes classes) :
   si tu veux bord à bord, laisse max-width:100%. 
   Si tu préfères centré, remets 1200px. */
.footer-top-inner,
.footer-seo-inner,
.footer-bottom-inner {
  max-width: 100%;
  margin: 0;
  padding-left: 28px;
  padding-right: 28px;
}
/* BOUTON REMONTER EN HAUT */
.back-to-top{
  position:fixed;
  right:18px;
  bottom:22px;
  width:40px;
  height:40px;
  border-radius:999px;
  background:linear-gradient(135deg,#e8671a,#f59e0b);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 10px 26px rgba(0,0,0,0.45);
  z-index:999;
  opacity:0.9;
  transition:all 0.2s ease;
}
.back-to-top:hover{
  transform:translateY(-3px);
  opacity:1;
  box-shadow:0 14px 32px rgba(0,0,0,0.6);
}
@media(max-width:700px){
  .back-to-top{
    right:12px;
    bottom:16px;
    width:36px;
    height:36px;
    font-size:1rem;
  }
}
/* --- Mega-menu : images bien visibles sur mobile --- */
@media (max-width: 768px) {

  /* La grille du mega-menu passe en une seule colonne
     et l'image devient un bloc à part entière */
  .sp-inner{
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto;
    height: auto !important;
  }

  /* Panneau visuel : occupe toute la largeur, hauteur confortable */
  .sp-visu,
  .sp-visu-wrap {
    width: 100% !important;
    min-height: 260px !important;  /* augmente à 320px si tu veux encore plus grand */
    height: auto !important;
  }

  .sp-visu-img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 14px;
  }

  /* On évite que le texte prenne trop de place au-dessus */
  .sp-sb{
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Hero card – stats labels trop sombres sur fond sombre */
.hero-card .hero-stat .lbl,
.hero-card .hero-stat .val,
.hero-card .hero-rating-sub,
.hero-card-title,
.hero-card .hero-cta-phone {
    color: #ffffff !important;
}

/* Hero card fond – forcer le texte enfant en blanc */
.hero-card * {
    color: #ffffff !important;
}

/* Exception : bouton dans la card garde sa couleur */
.hero-card .hero-cta-btn {
    color: inherit !important;
}
.single-featured-image-header,
.page-header__bg-image,
.elementor-page-title,
.entry-header .post-thumbnail {
  display: none !important;
}
.page-header-image,
.featured-image,
.generate-columns-container .page-header-image-single {
  display: none !important;
}