/*
Theme Name: Enfold Child
Theme URI: https://desbatonsdanslesroues.fr
Description: Thème enfant pour Enfold
Author: Des bâtons dans les roues
Template: enfold
Version: 1.0.0
*/


/* Forcer la couleur de l'icône burger dans Enfold */
#advanced_menu_toggle, #advanced_menu_hide {
    color: #000 !important;
    fill: #000 !important;
}

/* Forcer la couleur de fond du footer */
#footer {
    background-color: #1e1e1e !important;
    border-top: 2px solid #fff !important;
}

html body #top #main .sidebar {
  
}

.single-evenement .content,
.single-evenement .content .sidebar {
    padding-top: 0 !important;
}

#acwp-toolbar-btn-wrap {
  bottom: 70px !important;
  border: none !important;
  z-index: 10002 !important; /* plus haut que la barre */
}


#acwp-toolbar-btn-wrap.acwp-right {
  right: 40px !important;
}

#acwp-toolbar-btn {
  background: #1980ff !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  height: 58px !important;
  width: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

H4 {
  margin: 40px 0px 20px 0px !important;
}
p, ul {
  line-height: 1.5em !important;
}
H6 {
  margin: 0px 0px 35px 0px !important;
}
p, ul {
  line-height: 1.3em !important;
}

/* Zones dans lesquelles on veut appliquer la couleur des liens */
.main_color,
.entry-content,
.single-evenement {
    /* rien ici : on cible les <a> plus bas */
}

/* Liens normaux (hors menu, boutons persos et pagination) */
.main_color a:not(.avia-menu-link):not(.main_menu a):not(.boutons-global a:first-child):not(.boutons-global a:last-child):not(.btn-adherer):not(.btn-don):not(h1 a):not(h2 a):not(h3 a):not(.page-numbers),
.entry-content a:not(.avia-menu-link):not(.main_menu a):not(.boutons-global a:first-child):not(.boutons-global a:last-child):not(.btn-adherer):not(.btn-don):not(h1 a):not(h2 a):not(h3 a):not(.page-numbers),
.single-evenement a:not(.avia-menu-link):not(.main_menu a):not(.boutons-global a:first-child):not(.boutons-global a:last-child):not(.btn-adherer):not(.btn-don):not(h1 a):not(h2 a):not(h3 a):not(.page-numbers) {
    color: #ffd904 !important;
}

/* Liens hover (hors pagination) */
.main_color a:not(.avia-menu-link):not(.main_menu a):hover:not(.boutons-global a:first-child):hover:not(.boutons-global a:last-child):hover:not(h1 a):hover:not(h2 a):hover:not(h3 a):hover:not(.page-numbers),
.entry-content a:not(.avia-menu-link):not(.main_menu a):hover:not(.boutons-global a:first-child):hover:not(.boutons-global a:last-child):hover:not(h1 a):hover:not(h2 a):hover:not(h3 a):hover:not(.page-numbers),
.single-evenement a:not(.avia-menu-link):not(.main_menu a):hover:not(.boutons-global a:first-child):hover:not(.boutons-global a:last-child):hover:not(h1 a):hover:not(h2 a):hover:not(h3 a):hover:not(.page-numbers) {
    color: #42d800 !important;
}


ul {
    list-style-type: disc;
    color: white !important;
}

ul li::marker {
    color: white !important;
}

body .column-top-margin {
  margin-top: 0px !important;
}

.content {
  padding-top: 20px !important;
}

.sidebar {
  padding: 10px 0px !important;
    background: #1e1e1e !important;
    border: 2px solid #fff !important;
    margin: 40px 0 !important;
    text-align: center !important;
}

.inner_sidebar, .inner_sidebar .widgettitle {
  margin-left: 0px !important;
  margin-right: 0px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  text-align: center !important;
}

#glossaire-modal button {
  background-color: #000000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
}

#glossaire-modal button:hover {
  background-color: #000;
}

.glossaire-terme {
  color: #42d800;
  cursor: help;
}

#glossaire-modal h2 {
  margin-top: 4px;
}

#glossaire-modal p {
  font-size: 0.9em !important;
  color: #000000 !important;
}

#glossaire-modal ul li {
color: #000000 !important;
} 

blockquote {
  font-size: 1.03em !important;
}

/* Correction : exclure les boutons du widget de la règle qui colore les liens en jaune */
.main_color a.bouton-widget,
.entry-content a.bouton-widget,
.single-evenement a.bouton-widget {
    color: inherit !important;
}

.main_color a.bouton-widget.btn-adherer,
.entry-content a.bouton-widget.btn-adherer,
.single-evenement a.bouton-widget.btn-adherer {
    color: #ff3b3b !important;
}

.main_color a.bouton-widget.btn-don,
.entry-content a.bouton-widget.btn-don,
.single-evenement a.bouton-widget.btn-don {
    color: #ffd904 !important;
}

.widget {
padding: 15px 0 15px 0 !important;
}


/* Barre fixe en bas */
#custom-fixed-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1980ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center; /* centre le menu */
  padding: 0.5rem 1rem;
  z-index: 10001;
  height: 75px;
}

.custom-bar-left {
  position: absolute;
  left: 34px;
  display: flex;
  align-items: center;
  height: 75px;
}

#custom-fixed-bar img {
  height: 60px;
  display: block;
}

.custom-bar-center {
  position: relative;
  display: flex;
  align-items: center;
}
#custom-menu-toggle {
  width: 55px;
  height: 55px;
  background: none;
  border: 2px solid #fff;
  color: white;
  font-size: 2.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#custom-menu-toggle.menu-open {
  font-size: 4.4rem; /* plus grand que le hamburger */
  line-height: 1;
  padding-bottom: 8px;
}

#custom-menu {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  max-height: 60vh;
  overflow-y: auto;  /* ← Ajouté pour le scroll vertical */
  background: #1980ff;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 99999;
}

/* Pour Chrome et autres navigateurs WebKit */
#custom-menu::-webkit-scrollbar {
  width: 8px;
}

#custom-menu::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 4px;
}

#custom-menu::-webkit-scrollbar-track {
  background-color: #1980ff;
}

.custom-menu-hidden {
  display: none;
}

#custom-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cacher les sous-menus de niveau 3 uniquement */
#custom-menu ul ul ul {
  display: none;
}

/* Afficher les sous-menus de niveau 3 si parent ouvert */
#custom-menu li.menu-open > ul {
  display: block;
}

/* styliser la nouvelle flèche */
.submenu-toggle {
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 0.8em;
  user-select: none;
}

/* Supprime toutes les fausses flèches du thème sur mobile */
@media only screen and (max-width: 768px) {
  #custom-menu ul ul > li.menu-item-has-children > a::after {
    content: none !important;
  }

  #custom-menu ul ul > li.menu-item-has-children > a:before {
    display: none !important;
  }
}

#custom-menu ul li {
  margin: 0;
  padding: 0;
}

#custom-menu ul li a {
  color: white !important;
  text-decoration: none;
  display: block;
  padding: 0.9rem 0;
  font-size: 1.4rem;
  font-weight: bold;
  border-bottom: 2px solid white;
}

#custom-menu ul.sub-menu {
  padding-left: 1.8rem;
}

#custom-menu ul.sub-menu li a {
  font-size: 1.1rem;
  color: white !important;
}

/* Cacher complètement le menu natif d'Enfold sur tous les écrans */
#header_main_alternate,
#advanced_menu_toggle,
.av-main-nav-wrap,
.av-burger-menu-main,
#avia-menu,
#menu-item-search {
  display: none !important;
}

/* Pagination : style des liens */

/* Conteneur de pagination */
.navigation.pagination {
    padding-top: 30px !important;
    display: flex;
    justify-content: center;
    overflow-x: hidden; /* Cache ce qui dépasse horizontalement */
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
}


.navigation.pagination .nav-links .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px !important;
    height: 30px !important;
    margin: 0 3px;
    border-radius: 0 !important; /* Plus de coins arrondis → carrés */
    background-color: #1980ff;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem; /* Taille par défaut : chevrons (< >) */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation.pagination .nav-links .prev, .navigation.pagination .nav-links .next {
    padding: 0 6px !important;
} 

/* Page active */
.navigation.pagination .nav-links .page-numbers.current {
    background-color: #42d800 !important;
    color: #fff !important;
}

/* Survol */
.navigation.pagination .nav-links .page-numbers:hover {
    background-color: #42d800;
    color: #fff;
}

/* Forcer couleur blanche même dans <span> */
.navigation.pagination .nav-links .page-numbers span {
    color: inherit !important;
}

/* Grossir uniquement les chiffres (liens ou span), sans toucher aux chevrons */
.navigation.pagination .nav-links a.page-numbers:not(.next):not(.prev),
.navigation.pagination .nav-links span.page-numbers.current {
    font-size: 1.1rem !important;
}

/* Grossir aussi le span interne contenant le chiffre */
.navigation.pagination .nav-links a.page-numbers:not(.next):not(.prev) span,
.navigation.pagination .nav-links span.page-numbers.current span {
    font-size: 1.1rem !important;
}

/* Cibler les points de suspension "…" de la pagination */
.navigation.pagination .nav-links .page-numbers.dots {
    background: none !important;
    margin: 0 !important;
    font-size: 1.1rem;
    line-height: 1.1;
    display: inline;
    vertical-align: middle;
    color: #ffffff;
}






/* Modifier taille polices pour titres h1, h2, h3 */
h1 {
  font-size: 3rem !important;
  font-weight: 700 !important;
}
h2 {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
}
h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}

/* ---- AJOUT pour limiter la taille des vidéos et images dans les extraits d’articles ---- */

.archive .post-media iframe, .archive .post-media video, .home .post-media iframe, .home .post-media video { 
  max-width: 100%; 
  height: auto !important;
  max-height: none;
  display: block;
  margin: 0 auto 0.8rem auto;
} 

.archive .post-media img, .home .post-media img { 
  max-width: 100%; 
  height: auto !important;
  max-height: none;
  display: block;
  margin: 0 auto 0.3rem auto !important;
}

.archive p, .home p { 
  padding: 0 !important;
  margin: 0 0 0.8rem 0 !important;
}

/* ---- TEXTE WIDGET BLOGS ---- */

.sider-blogs {
    width: 100%;
    text-decoration: none;
    background: #000 !important;
    border: 2px solid #ffffff !important;
    border-radius: 0;
    padding: 20px !important;
    margin: 18px 0 0 0 !important;
    font-weight: bold;
    font-size: 26px !important;
    text-align: center;
    line-height: 1.1;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #1980ff;
}


