/**
Theme Name: astra-child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
  max-height: 80px;
}

.ast-below-header-wrap {
  position: relative;
  z-index: 100;
}

aside.header-widget-area.widget-area.site-header-focus-item.header-widget-area-inner {
  display: none;
}

/* Widgets d'en-tête utilisés : téléphone, connexion/déconnexion, mode sombre */
.header-widget-area[data-section="sidebar-widgets-header-widget-1"],
.header-widget-area[data-section="sidebar-widgets-header-widget-3"],
.header-widget-area[data-section="sidebar-widgets-header-widget-4"],
.header-widget-area[data-section="sidebar-widgets-header-widget-5"] {
  display: block !important;
}

/* Widget 1 : ne garder que l'icône téléphone (masquer recherche dupliquée, témoignage, etc.) */
.header-widget-area[data-section="sidebar-widgets-header-widget-1"] .wp-block-search,
.header-widget-area[data-section="sidebar-widgets-header-widget-1"] .uagb-block-17fb8559,
.header-widget-area[data-section="sidebar-widgets-header-widget-1"] .uagb-block-a271483a {
  display: none !important;
}

/* Empêcher les blocs parasites de déborder sur la bannière */
.ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap,
.site-header-primary-section-right {
  overflow: hidden;
}

.site-header-primary-section-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

/* Bouton Accueil — carré rouge + maison verte */
.main-header-menu > .menu-item.wf-home-menu {
  margin-right: 0.35rem;
}

/* Astra masque tout le lien si le titre est désactivé : on le réaffiche pour l'icône */
.ast-desktop .main-header-menu > .menu-item.wf-home-menu > .menu-link.ast-hide-menu-item {
  display: inline-flex !important;
}
.ast-desktop .main-header-menu > .menu-item.wf-home-menu > .menu-link.ast-hide-menu-item > span {
  height: 100%;
}
.main-header-menu > .menu-item.wf-home-menu > .menu-link {
  padding: 0 !important;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Masquer flèche / libellé inutiles */
.main-header-menu > .menu-item.wf-home-menu > .menu-link > .ast-icon.icon-arrow,
.main-header-menu > .menu-item.wf-home-menu > .menu-link > .menu-text,
.main-header-menu > .menu-item.wf-home-menu .dropdown-menu-toggle {
  display: none !important;
}

.main-header-menu > .menu-item.wf-home-menu .astra-mm-icon-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 8px !important;
  background-color: #eb1e4e !important;
  border-radius: 2px !important;
  line-height: 0;
}

.main-header-menu > .menu-item.wf-home-menu .astra-mm-icon-label svg {
  width: 18px !important;
  height: 18px !important;
  fill: #1bae70 !important;
  color: #1bae70 !important;
}

.main-header-menu > .menu-item.wf-home-menu > .menu-link:hover .astra-mm-icon-label,
.main-header-menu > .menu-item.wf-home-menu > .menu-link:focus-visible .astra-mm-icon-label {
  filter: brightness(0.92);
}

/* Bannière accueil — shortcode [banniere] */
.acf-banniere {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  margin-bottom: 2rem;
  background-color: #1a1a1a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.acf-banniere__link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}


.acf-banniere__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  text-align: center;
  line-height: 3rem;
  font-weight: 600;
}

.acf-banniere__contenu {
  max-width: 42rem;
  color: #fff;
}

.acf-banniere__contenu h1,
.acf-banniere__contenu h2,
.acf-banniere__contenu h3,
.acf-banniere__contenu p {
  color: inherit;
}

@media (max-width: 768px) {
  .acf-banniere {
    min-height: 240px;
  }

  .acf-banniere__inner {
    padding: 1.5rem 0;
  }
}

body .uagb-block-d4a3a7ea .uagb-post__inner-wrap,
body .uagb-block-660593db .uagb-post__inner-wrap {
  text-align: left;
}

@media screen and (min-width: 1024px) {
  body .uagb-block-6aa8ca4d.wp-block-uagb-post-grid.is-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ast-below-header-bar {
    border-top: 1px solid #eb1e4e;
    border-bottom: 2px solid #eb1e4e;
  }
}

@media (max-width: 1023px) {
  .acf-banniere {
    background-size: cover !important;
  }

}

#masthead {
  position: fixed;
  width: 100%;
}

#content {
  padding-top: 130px;
}

#bibliothèque article {
  background-color: #fff;
}

aside .widget {
  margin: 0;
}

/* Mode Dark : cadenas du menu lisibles (noir → blanc) */
html.wp-dark-mode-active .main-header-menu .astra-mm-icon-label svg,
html[data-wp-dark-mode-active] .main-header-menu .astra-mm-icon-label svg {
  fill: currentColor !important;
  color: #fff !important;
}

html.wp-dark-mode-active .main-header-menu .astra-mm-icon-label,
html[data-wp-dark-mode-active] .main-header-menu .astra-mm-icon-label {
  border-color: currentColor !important;
  color: #fff;
}

/* Garder la maison verte sur fond rouge en dark mode */
html.wp-dark-mode-active .main-header-menu > .menu-item.wf-home-menu .astra-mm-icon-label svg,
html[data-wp-dark-mode-active] .main-header-menu > .menu-item.wf-home-menu .astra-mm-icon-label svg {
  fill: #1bae70 !important;
  color: #1bae70 !important;
}

/* Mode Dark : flèches des boutons (Spectra / UAG) */
html.wp-dark-mode-active .uagb-button__icon > svg,
html[data-wp-dark-mode-active] .uagb-button__icon > svg {
  fill: currentColor !important;
  color: #fff !important;
}


.uagb-infobox-cta-link.wp-block-button__link{
  border:1px solid #333;
}