

/*
Theme Name: Enfold Child
Theme URI: https://surlaroutedesaintroustan.com
Description: Thème enfant pour Enfold
Author: Hypolite de Guémenez
Template: enfold
Version: 1.0.0
*/

#header_meta {
    background: #ff9f40 !important;
    padding: 10px 0 0 0 !important;
    margin: 0 !important;
}

#header_meta .sub_menu a {
    font-size: 0.8rem;
    color: #ffffff !important;
    text-decoration: none;
}

.logo > a {
    pointer-events: none !important;
}
/*
.um-button, .um-alt {
    background: #fff16e !important;
    color: #000000 !important;
    font-size: 1.7rem !important;
    border: 2px solid #000000 !important;
}
*/

#mega-menu-wrap-avia .mega-menu-toggle + #mega-menu-avia {
    flex-direction: column;
    flex-wrap: nowrap;
    background-color: #fff16e;
    padding: 0;
    position: absolute;
    right: 0 !important;
    left: auto !important;
    width: 300px !important;
    min-width: 300px !important;
    z-index: 9999999;
    width: 300px !important;
    min-width: 300px !important;
}

#mega-menu-wrap-avia, .mega-menu-wrap {
    margin-top: 13px !important;
    border: 2px solid #000000 !important;
}

#mega-menu-wrap-avia #mega-menu-avia > li.mega-menu-item > a.mega-menu-link, #mega-menu-max_mega_menu_1 a.mega-menu-link {
    line-height: 20px !important;
    padding: 13px 10px !important;
    border-bottom: 2px solid #000000 !important;
}

.avia_iconbox_title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.7rem !important;
}

/* Forcer la couleur de fond du footer */
#footer {
 background-color: #ffffff !important;
 border-top: 3px solid #000 !important;
}

/* Liens du footer */
#menu-menu-footer a {
    color: #42d800 !important;
    font-size: 1.2rem;
}
#menu-menu-footer a:hover {
        color: #fa4f2d !important;
        font-size: 1.2rem;
}

/* Forcer la couleur des champs de formulaire */
textarea, input {
    background: #fff16e !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
} 

#inscription textarea {
    background: #fff16e !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

#top .main_color .input-text, #top .main_color input[type="text"], #top .main_color input[type="input"], #top .main_color input[type="password"], #top .main_color input[type="email"], #top .main_color input[type="number"], #top .main_color input[type="url"], #top .main_color input[type="tel"], #top .main_color input[type="search"], #top .main_color textarea, #top .main_color select {
    color: #000000 !important;
    font-weight: 500 !important;
    border: 2px solid #000000 !important;
}

/* Forcer la couleur du bouton d'envoi de formulaire */
#submit {
    background: #ff9f40 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 2px solid #000000 !important;
}
/*
a.um-button, input[type="submit"].um-button, .um .um-button.um-alt, .um input[type="submit"].um-button.um-alt {
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    background: #ff9f40 !important;
}
*/
.single-evenement .content,
.single-evenement .content .sidebar {
    padding-top: 0 !important;
}

/* ==== ACCESSIBLE WP ==== */

#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: #fff16e !important;
 border: 2px solid #000000 !important;
  border-radius: 50% !important;
  height: 58px !important;
  width: 58px !important;
  margin: 0 !important;
 padding: 0 !important;
color: #000 !important;
 box-shadow: none !important;
}

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

/* ==== COULEUR DES LIENS ==== */

.main_color,
.entry-content,
.single-evenement {
        /* rien ici : on cible les <a> plus bas */
}

body:not(.page-id-3419) .main_color a:not(.custom-register-button):not(.post-title a):not(.entry-title a),
body:not(.page-id-3419) .entry-content a:not(.custom-register-button):not(.post-title a):not(.entry-title a),
body:not(.page-id-3419) .single-evenement a:not(.custom-register-button):not(.post-title a):not(.entry-title a) {
        color: #fa4f2d !important;
}

/* Exclusions */
body:not(.page-id-3419) .main_color a.avia-menu-link,
body:not(.page-id-3419) .main_color .main_menu a,
body:not(.page-id-3419) .main_color h1 a,
body:not(.page-id-3419) .main_color h2 a,
body:not(.page-id-3419) .main_color h3 a,
body:not(.page-id-3419) .main_color .page-numbers,

body:not(.page-id-3419) .entry-content a.avia-menu-link,
body:not(.page-id-3419) .entry-content .main_menu a,
body:not(.page-id-3419) .entry-content h1 a,
body:not(.page-id-3419) .entry-content h2 a,
body:not(.page-id-3419) .entry-content h3 a,
body:not(.page-id-3419) .entry-content .page-numbers,

body:not(.page-id-3419) .single-evenement a.avia-menu-link,
body:not(.page-id-3419) .single-evenement .main_menu a,
body:not(.page-id-3419) .single-evenement h1 a,
body:not(.page-id-3419) .single-evenement h2 a,
body:not(.page-id-3419) .single-evenement h3 a,
body:not(.page-id-3419) .single-evenement .page-numbers {
        color: inherit !important;
}
}
}
}

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

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

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

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

.sidebar {
  padding: 10px 0px !important;
 background: #fff16e !important;
 border: 2px solid #000 !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 ==== */

#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.02em !important;
}

.main_color blockquote {
    border-left: 10px solid #42d800 !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: #ff9f40;
  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;
}

#mega-menu-wrap-max_mega_menu_1 {
    margin-bottom: 12px !important;
}

/* Conteneur de pagination */

.navigation.pagination {
    padding: 30px 12px 0 12px !important; /* marge intérieure gauche/droite */
    display: flex;
    justify-content: center;
    overflow-x: visible; /* ne coupe plus le premier bouton */
    white-space: nowrap;
    box-sizing: border-box;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    padding-left: 4px;  /* évite que le « colle au bord */
    padding-right: 4px;
}

/* Wrapper externe */
.pagination {
    width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
    overflow: visible !important;
}

/* Navigation interne */
.navigation.pagination {
    margin: 0 !important;
    padding-top: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
}

/* Petit décalage vers la droite */
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    transform: translateX(6px);
}

.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: #ff9f40;
    color: #fff !important;
    border: 1px solid #000000 !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: #000000 !important;
    border: none !important;
}

.post-media-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 0.8rem auto;
}

/* =========================
   IMAGES (naturelles)
========================= */
.post-media-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   VIDÉOS / IFRAME (ratio propre)
========================= */
.post-media-wrapper iframe,
.post-media-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
}

.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: #fff16e !important;
 border: 2px solid #000 !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: #000000;
}

/* SECTIONS DÉPLIABLES */

.section-depliable summary {
    cursor: pointer;
    list-style: none;
    display: block;
    width: 100%;
    border-bottom: 0.62px solid #000;
    padding-bottom: 6px;
}

.section-depliable summary h3 {
    display: inline-block;
    font-size: 1.4rem !important;
}

.section-depliable summary {
    margin: 15px 0 0 0 !important;
}

.section-depliable summary::-webkit-details-marker {
    display: none;
}

.section-depliable summary::before {
    content: "";
    display: inline-block;

    width: 0.9em;
    height: 0.9em;
    margin-right: 6px;

    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'><path d='M1 1l4 4 4-4' stroke='currentColor' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;

    vertical-align: middle;
    transform: translateY(3px); /* ajuste fin vertical */

    transition: transform 0.2s ease;
}

.section-depliable[open] summary::before {
    transform: rotate(180deg) translateY(1px);
}

.page-id-3419 .post-entry, .page-id-5760 .post-entry {
    font-family: "Libertinus Serif", "Linux Libertine", Georgia, serif !important;
}

.page-id-3419 .post-entry p, .page-id-5760 .post-entry p {
    font-size: 0.8em !important;
    margin: 6px 0 4px 0 !important;
}

.page-id-3419 .avia_textblock br, .page-id-5760 .avia_textblock br {
    display: none !important;
}

.page-id-5760, .page-id-5760 p, .page-id-5760 h2, .page-id-5760  h3, .page-id-5760 h4 {
    color: green !important;
}

.page-id-3419 a, .page-id-5760 a {
    color: #0000ee !important;
    opacity: 1 !important;
    filter: none !important;
}

.contenu-section h4 {
    margin: 15px 0 4px 0 !important;
    font-size: 20px !important;
}

.section-depliable:last-of-type {
    margin-bottom: 40px !important;
}

/* Corrige la couleur des menus sur les pages 3419 et 5760 */

/* Pages 3419 et 5760 : liens de contenu bleus */
body.page-id-3419 .entry-content a,
body.page-id-5760 .entry-content a {
    color: #0000ee !important;
}

/* Mais menus noirs */
body.page-id-3419 #mega-menu-wrap-avia a,
body.page-id-3419 #mega-menu-wrap-max_mega_menu_1 a, 
body.page-id-5760 #mega-menu-wrap-avia a,
body.page-id-5760 #mega-menu-wrap-max_mega_menu_1 a {
    color: #000000 !important;
}

/* Barre d'admin : toujours blanche */
body.page-id-3419 #wpadminbar a,
body.page-id-3419 #wpadminbar .ab-item,
body.page-id-3419 #wpadminbar .ab-icon,
body.page-id-3419 #wpadminbar .ab-label,
body.page-id-5760 #wpadminbar a,
body.page-id-5760 #wpadminbar .ab-item,
body.page-id-5760 #wpadminbar .ab-icon,
body.page-id-5760 #wpadminbar .ab-label {
    color: #ffffff !important;
}

/* Customisation Communauté Fluent Community */

body.fluent-community #header {
    display: block !important;
}

body.fluent-community {
    padding-top: 80px;
}

/* Customisation légende des images */

div .wp-caption {
    border: none !important;
}

.wp-caption img {
    padding: 0 !important;
}

#top .main_color strong,
#top .main_color b,
.entry-content strong,
.entry-content b {
    color: inherit !important;
}

/* CUSTOMISATION PROFIL WP USER MANAGER */

#wpum-profile,
#wpum-profile * {
    box-sizing: border-box;
}

/* Champs formulaire */
#wpum-profile input[type="text"],
#wpum-profile input[type="email"],
#wpum-profile input[type="password"],
#wpum-profile select,
#wpum-profile textarea {
    width: 100% !important;
    max-width: 100% !important;
}

/* Conteneurs de champs */
#wpum-profile .wpum-field,
#wpum-profile .field,
#wpum-profile .wpum-form-row {
    width: 100% !important;
    max-width: 100% !important;
}

/* Sécurité anti débordement global */
#wpum-profile {
    overflow-x: hidden;
}

#header-cover-image {
    background: transparent !important;
    background-image: none !important;
    min-height: 0 !important;
    height: auto !important;
}

#header-avatar-container {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    margin-top: 40px !important;
}

#wpum-profile-header,
#wpum-profile,
#header-cover-image,
#header-avatar-container {
    overflow: visible !important;
}

/* CUSTOMISATION BOUTONS LOGIN/REGISTER */

#wp-submit, .custom-register-form input[type="submit"][name="register_submit"] {
    background: #ff9f40 !important;
    border: 2px solid #000000 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 600 !important;
}

a.custom-register-button,
a.custom-register-button:link,
a.custom-register-button:visited,
a.custom-register-button:hover,
a.custom-register-button:active,
a.custom-register-button:focus {
    color: #ffffff !important;
    display: inline-block !important;
    background: #ff9f40 !important;
    border: 2px solid #000000 !important;
    border-radius: 6px !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    line-height: 1.2 !important;
}

a.custom-register-button,
a.custom-register-button * {
    color: #ffffff !important;
}

/* CUSTOMISATION PARTAGES SOCIAUX */

.addtoany_share_save_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#wpum-profile, #wpum-profile * {
    border: none !important;
}

#profile-content-about .profile-fields-table td.label, .profile-content-settings .profile-fields-table td.label {
    line-height: 1em !important;
}

/* MASQUER LE MENU NATIF WORDPRESS */

#avia-menu,
.av-burger-menu-main,
#header .menu-item-avia-burger,
.av-main-nav-wrap .av-burger-menu,
#top .av-burger-menu {
    display: none !important;
}

/* INDICATEUR DU NOMBRE DE COMMENTAIRES */

.comment-count {
    background-color: #42d800 !important;
}

/* SÉLECTION DE TEXTE */

::selection {
    background: rgba(255, 159, 64, 0.25) !important;
    color: #000000 !important;
}

::-moz-selection {
    background: rgba(255, 159, 64, 0.25) !important;
    color: #000000 !important;
}

/* WIDGETS IMAGE */

.widget_media_image {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ordinateur */
#footer .flex_column {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Mobile */
@media only screen and (max-width: 767px) {

    #footer .flex_column,
    #footer .av_one_third {
        margin: 0 !important;
        padding: 0 !important;
    }

}

/* ACCUEIL MENU BOXES */

.iconbox {
    border: 2px solid #000000 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    background: #ffffff !important;
    line-height: 0.5rem !important;
}

.iconbox_content {
    border-radius: 8px !important;
    background: #ffffff !important;
    padding: 10px !important;
    line-height: 0.5rem !important;
}

.iconbox_content_title {
    line-height: 2rem !important;
    padding-bottom: 15px !important;
    font-size: 27px !important;
}

.iconbox_content_container h3 {
    line-height: 1.8rem !important;
    font-size: 22px !important;
}