/* ---------- En-tête ---------- */
#sp-header {
  background-color: #fff;
  box-shadow: 0px 0px 0px #fff;
  height: 110px;
  vertical-align: middle;
  border-top: 1px solid #ef8311;
  border-bottom: 1px solid #171717;
  margin-top: 3px;
  margin-bottom: 1px;
}
#sp-header.header-sticky {
  background-color: #fff;
  box-shadow: 0px 10px 50px #a7a5a5;
  margin-top: 0px;
}
#sp-header .logo {
  height: 110px;
}

/* (Optionnel) On neutralise la classe .test si elle existe */
.test {
  /* width: 110%; margin-right: 10px; */
  /* Laisser vide ou commenter si plus nécessaire */
}

/* -------- Méga-menu principal (niveau 1) -------- */
.sp-megamenu-parent {
  /* Bordure droite éventuelle du conteneur global */
  border-right: 1px solid #595959;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Chaque item de premier niveau <li> */
.sp-megamenu-parent > li {
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #171717;
  /* Bordure à gauche pour séparer les onglets */
  border-left: 1px solid #595959;
}

/* Retirer la bordure du tout premier <li> pour éviter un trait à l'extrême gauche */
.sp-megamenu-parent > li:first-child {
  border-left: none;
}

/* Forcer UNIQUEMENT le lien de niveau 1 à prendre 100% de la largeur de son <li> */
.sp-megamenu-parent > li.sp-menu-item > a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  /* On ajoute du padding horizontal pour que le texte ne colle pas à la bordure */
  padding: 0 15px;
  color: #171717;
  background-color: transparent;
  text-align: left; /* ou center, selon ton design */
}

/* Hover / actif sur le premier niveau */
.sp-megamenu-parent > li.sp-menu-item:hover > a,
.sp-megamenu-parent > li.sp-menu-item.active > a,
.sp-megamenu-parent > li.sp-menu-item.active:hover > a {
  color: #FFF;
  background-color: #171717;
}

/* -------- Sous-menus (niveau 2+) -------- */

/* Conteneur du dropdown */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 0.3em solid #171717;
}

/* Liens du sous-menu */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge) {
  /* On remet ici la présentation "comme avant" */
  font-size: 9px;
  line-height: 1;
  display: block;
  width: auto;          /* Pas de 100% pour laisser la taille "auto" */
  padding: 10px 4px;    /* Espacement comme avant */
  border-bottom: 1px solid #171717;
  cursor: pointer;
  position: relative;
  z-index: 4;
    color: #171717;
}

/* Hover / focus sur le sous-menu */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge):hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge):focus {
 color: #fff;
 background-color: #171717;
}

/* Séparateur (si tu en utilises) */
.sp-menu-separator > li:hover > a {
 color: #FFF;
 background-color: #171717;
 
}

/* Séparateur (si tu en utilises) */
.offcanvas-menu .offcanvas-inner ul.menu > li > ul li a {
  font-size: 16px;
  line-height: 28px;

}

/* Enleve la bordure autour de la croix */
.close-offcanvas:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* realisation / bg opacity page accueil */
.igui-overlay-primary {
  background: rgba(34, 34, 34, 0.6) !important;
}

/* realisation / info page accueil */
.ig-menu-grid-item .igui-overlay div {
  font-size: 15px;
  line-height: 22px;
  color: #fff;
}


.article-details .article-header h1 {
    font-family: "Poppins", sans-serif !important;
    font-weight: 700 !important;
    text-align: center !important;
    font-size: calc(1.375rem + 1.5vw) !important;
}

.titre-gauche .article-details .article-header h1 {
    text-align: left !important;
	padding-left:10px;
}

@media (min-width: 1200px) {
    .article-details .article-header h1 {
        font-size: 2.5rem !important;
    }
}


#sp-main-body {
  padding: 30px 0;
}

/* Centrage et espacement de la pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

/* Style de base des boutons de pagination */
.pagination li {
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #171717;
    background: #f0f0f0;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
    position: relative;
}

/* Hover des boutons */
.pagination li a:hover {
    background: #171717;
    color: #fff;
    border: 1px solid #171717;
}

/* Correction du hover des flèches */
.pagination li:first-child a,
.pagination li:last-child a {
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Empêcher l'ovale et assurer un hover bien rond */
.pagination li:first-child a:hover,
.pagination li:last-child a:hover {
    background: #171717;
    color: #fff;
    border: 1px solid #171717;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2); /* Effet léger pour corriger le visuel */
}

/* Bouton actif */
.pagination .active span {
    background: #171717;
    color: #fff;
    border: 1px solid #171717;
    cursor: default;
}

/* Désactivation des boutons inutilisables */
.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

#sp-bottom {
  padding: 30px 0 0px;
 }

#sp-footer, #sp-bottom {
  text-align: center;
}
/* BLOG image On cible directement l’image dans le layout editorial */
.sppb-addon-article-layout-editorial-content > a > img {
  aspect-ratio: 16 / 9;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* BLOG image Et on limite la hauteur max si besoin */
@media (min-width: 768px) {
  .sppb-addon-article-layout-editorial-content > a > img {
    max-height: 250px;
  }
}

/* Effet de base : ratio et style */
.sppb-addon-article-layout-editorial-content > a {
  display: block;
  position: relative;
  overflow: hidden;
 
}

/* Image avec zoom fluide */
.sppb-addon-article-layout-editorial-content > a > img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}


/* Blog Image Hover = zoom + assombrissement */
.sppb-addon-article-layout-editorial-content > a:hover > img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* Bouton Cookie CK */
#cookiesck_accept {
  background: #000;
  border: 2px solid #000;
  color: #f5f5f5;
}
