/*
Theme Name: Astra Child
Theme URI: https://ong-adli.org
Description: Thème enfant d'Astra pour ONG ADLI
Author: ONG ADLI
Author URI: https://ong-adli.org
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ===== VARIABLES ===== */
:root {
  --green-dark: #0d4a28;
  --green-main: #1a6b3c;
  --green-mid: #2e7d32;
  --green-light: #e8f5e9;
  --gold: #f9a825;
  --white: #ffffff;
}

/* ===== HEADER — FOND VERT FONCÉ ===== */
#masthead,
.site-header,
.main-header-bar,
.main-header-bar-wrap {
  background-color: #0d4a28 !important;
  background: #0d4a28 !important;
}

/* ===== HEADER STICKY FIXE ===== */
.main-header-bar-wrap {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25) !important;
}

/* ===== LOGO AGRANDI + EFFET DORÉ ===== */
.custom-logo-link,
.site-logo {
  background: rgba(255,255,255,0.05) !important;
  border-radius: 50% !important;
  padding: 4px !important;
  border: 1.5px solid rgba(249,168,37,0.35) !important;
  transition: border-color 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}
.custom-logo-link:hover,
.site-logo:hover {
  border-color: rgba(249,168,37,0.8) !important;
}
.custom-logo-link img,
.site-logo img,
.custom-logo {
  max-height: 70px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 8px rgba(249,168,37,0.4)) !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
}
.custom-logo-link:hover img,
.site-logo:hover img {
  transform: scale(1.05) !important;
  filter: drop-shadow(0 4px 16px rgba(249,168,37,0.75)) !important;
}

/* ===== NOM DU SITE ===== */
.site-title a,
.ast-site-name-wrap a {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
}

/* ===== MENU PRINCIPAL ===== */
.main-header-menu .menu-item > a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  transition: color 0.2s !important;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: #f9a825 !important;
}

/* ===== BOUTON CONTACT DORÉ ===== */
.main-header-menu .menu-item > a[href*="faq"],
.main-header-menu .menu-item > a[href*="contact"] {
  background: #f9a825 !important;
  color: #0d4a28 !important;
  padding: 7px 18px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  margin-left: 6px !important;
}
.main-header-menu .menu-item > a[href*="faq"]:hover,
.main-header-menu .menu-item > a[href*="contact"]:hover {
  background: #e09020 !important;
  color: #0d4a28 !important;
}

/* ===== SOUS-MENUS DÉPLIANTS ===== */
.main-header-menu .sub-menu {
  background: #0d4a28 !important;
  border-top: 2px solid #f9a825 !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25) !important;
  min-width: 260px !important;
  padding: 6px 0 !important;
}
.main-header-menu .sub-menu .menu-item {
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.main-header-menu .sub-menu .menu-item:last-child {
  border-bottom: none !important;
}
.main-header-menu .sub-menu .menu-item > a {
  color: rgba(255,255,255,0.85) !important;
  padding: 11px 20px 11px 24px !important;
  font-size: 12px !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}
.main-header-menu .sub-menu .menu-item > a::before {
  content: '›' !important;
  color: #f9a825 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
.main-header-menu .sub-menu .menu-item > a:hover {
  color: #f9a825 !important;
  background: rgba(255,255,255,0.05) !important;
  padding-left: 30px !important;
}

/* ===== FLÈCHE DÉPLIANTE ===== */
.ast-menu-toggle,
.astra-menu-toggle-link {
  color: #f9a825 !important;
}

/* ===== PAGE D'ACCUEIL ===== */
.home .entry-title {
  display: none !important;
}
.home .entry-content {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ===== FOOTER VERT FONCÉ ===== */
.site-footer,
.ast-small-footer {
  background: #071f10 !important;
  color: rgba(255,255,255,0.6) !important;
}
.site-footer a,
.ast-small-footer a {
  color: #f9a825 !important;
}
.site-footer a:hover,
.ast-small-footer a:hover {
  color: #ffffff !important;
}

/* ===== FORCER HEADER VERT SUR TOUTES LES PAGES ===== */
#masthead,
.site-header,
.main-header-bar,
.main-header-bar-wrap,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar,
header.site-header {
  background: #0d4a28 !important;
  background-color: #0d4a28 !important;
}

/* Menu blanc sur toutes les pages */
.main-header-menu .menu-item > a,
.ast-header-break-point .main-header-menu .menu-item > a,
#masthead .main-header-menu a {
  color: rgba(255,255,255,0.85) !important;
}

/* Titre site blanc partout */
.site-title a,
.ast-site-name-wrap a,
#masthead .site-title a {
  color: #ffffff !important;
}

/* Pages internes — même header */
.ast-separate-container #masthead,
.ast-page-builder-template #masthead,
.single #masthead,
.page #masthead,
.archive #masthead,
.blog #masthead {
  background: #0d4a28 !important;
}