/* RezepteChef Child — reprise de « HEADER » (Simple Custom CSS and JS n°307).
   Modification : header fixe réparé (fond givré déplacé, overflow-x: clip)
   Modification : 5 icônes PNG 1254px → vignettes 150px
*/

/* ================================
   REZEPTECHEF HEADER CSS COMPLETE
   Header aligned with hero + home sections
   Logo same niveau as hero content
   ================================ */

body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* ================================
   HEADER GLOBAL
================================ */

#masthead,
.site-header {
  padding: 0 !important;
}

/* Fond givré posé sur l'élément « sticky » de Kadence et non sur #masthead :
   un backdrop-filter sur #masthead en fait le repère des éléments
   position: fixed, ce qui empêchait le menu de rester en haut de l'écran. */
#masthead .site-header-inner-wrap {
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.025);
}

/* Header containers clean */
.site-main-header-wrap,
.site-main-header-inner-wrap,
.site-header-row-container,
.site-header-row-container-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.site-main-header-wrap .site-header-row-container-inner {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 76px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

/* ================================
   HEADER LAYOUT
   Same width as hero / rc_home_recipes
================================ */

.site-header-row {
  max-width: 1560px !important;
  width: calc(100% - 68px) !important;
  margin: 0 auto !important;
  min-height: 76px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;

  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  column-gap: 24px !important;
}

.site-header-section-left {
  justify-self: start !important;
  display: flex !important;
  align-items: center !important;
}

.site-header-section-center {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
}

.site-header-section-right {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

/* ================================
   LOGO
================================ */

.site-branding,
.site-branding a,
.site-logo,
.custom-logo-link {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.site-branding img,
.custom-logo {
  max-height: 52px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}

/* Hide account/language/welcome text */
.site-header .welcome,
.site-header [class*="welcome"],
.site-header .header-account-wrap,
.site-header .header-account,
.site-header [class*="account"],
.site-header .user-info,
.site-header .wpml-ls,
.site-header [class*="language"],
.site-header [class*="flag"] {
  display: none !important;
}

/* ================================
   MAIN MENU - BOLD EVERYWHERE
================================ */

#masthead .header-navigation .menu,
#masthead .main-navigation .menu,
#masthead .main-navigation .primary-menu-container > ul,
.site-header .header-navigation .menu,
.site-header .main-navigation .menu,
.site-header .main-navigation .primary-menu-container > ul {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#masthead .header-navigation .menu > li > a,
#masthead .main-navigation .menu > li > a,
#masthead .main-navigation .primary-menu-container > ul > li > a,
.site-header .header-navigation .menu > li > a,
.site-header .main-navigation .menu > li > a,
.site-header .main-navigation .primary-menu-container > ul > li > a,
body.home #masthead .header-navigation .menu > li > a,
body.home #masthead .main-navigation .menu > li > a,
body.home #masthead .main-navigation .primary-menu-container > ul > li > a,
body.single #masthead .header-navigation .menu > li > a,
body.single #masthead .main-navigation .menu > li > a,
body.single #masthead .main-navigation .primary-menu-container > ul > li > a,
body.single-post #masthead .header-navigation .menu > li > a,
body.single-post #masthead .main-navigation .menu > li > a,
body.single-post #masthead .main-navigation .primary-menu-container > ul > li > a,
body.page #masthead .header-navigation .menu > li > a,
body.page #masthead .main-navigation .menu > li > a,
body.page #masthead .main-navigation .primary-menu-container > ul > li > a {
  position: relative !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #2f3540 !important;
  opacity: 1 !important;
  padding: 10px 8px !important;
  border-radius: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  text-transform: none !important;
  background: transparent !important;
  transition: all 0.22s ease !important;
}

#masthead .header-navigation .menu > li > a span,
#masthead .main-navigation .menu > li > a span,
#masthead .main-navigation .primary-menu-container > ul > li > a span,
.site-header .header-navigation .menu > li > a span,
.site-header .main-navigation .menu > li > a span,
.site-header .main-navigation .primary-menu-container > ul > li > a span {
  font-weight: 800 !important;
  color: inherit !important;
  opacity: 1 !important;
}

/* [RezepteChef Child 1.0.2] Ancien état « survol / actif » + soulignement retirés : style unique dans 9000-menu-state.css */

/* Dropdown arrow */
#masthead .header-navigation .menu > li > a .dropdown-nav-toggle,
#masthead .main-navigation .menu > li > a .dropdown-nav-toggle,
#masthead .main-navigation .primary-menu-container > ul > li > a .dropdown-nav-toggle,
#masthead .header-navigation .menu > li > a svg,
#masthead .main-navigation .menu > li > a svg {
  color: inherit !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

/* ================================
   DROPDOWN MENU WITH ICONS
================================ */

#masthead .header-navigation .menu .sub-menu,
#masthead .main-navigation .primary-menu-container .sub-menu,
#masthead .main-navigation .sub-menu,
.site-header .header-navigation .menu .sub-menu,
.site-header .main-navigation .primary-menu-container .sub-menu,
.site-header .main-navigation .sub-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 22px !important;
  padding: 18px 14px 14px !important;
  min-width: 285px !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(255, 107, 44, 0.12) !important;
  overflow: hidden !important;
}

#masthead .header-navigation .menu .sub-menu li a,
#masthead .main-navigation .primary-menu-container .sub-menu li a,
#masthead .main-navigation .sub-menu li a,
.site-header .header-navigation .menu .sub-menu li a,
.site-header .main-navigation .primary-menu-container .sub-menu li a,
.site-header .main-navigation .sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1f140f !important;
  opacity: 1 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: all 0.22s ease !important;
}

#masthead .header-navigation .menu .sub-menu li a::before,
#masthead .main-navigation .primary-menu-container .sub-menu li a::before,
#masthead .main-navigation .sub-menu li a::before {
  content: "" !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

#masthead .header-navigation .menu .sub-menu li a:hover,
#masthead .main-navigation .primary-menu-container .sub-menu li a:hover,
#masthead .main-navigation .sub-menu li a:hover,
.site-header .header-navigation .menu .sub-menu li a:hover,
.site-header .main-navigation .primary-menu-container .sub-menu li a:hover,
.site-header .main-navigation .sub-menu li a:hover {
  background: #fff3eb !important;
  color: #ff6b2c !important;
  transform: translateX(4px) !important;
}

/* Category icons */
#masthead .sub-menu li a[href*="salate-bowls"]::before,
#masthead .sub-menu li a[href*="salate"]::before {
  background-image: url("https://rezeptechef.com/wp-content/uploads/2026/05/salate-icon-150x150.png") !important;
}

#masthead .sub-menu li a[href*="suppen-eintoepfe"]::before,
#masthead .sub-menu li a[href*="suppen"]::before {
  background-image: url("https://rezeptechef.com/wp-content/uploads/2026/05/suppen-icon-150x150.png") !important;
}

#masthead .sub-menu li a[href*="saucen-dips"]::before,
#masthead .sub-menu li a[href*="saucen"]::before {
  background-image: url("https://rezeptechef.com/wp-content/uploads/2026/05/saucen-dips-icon-150x150.png") !important;
}

#masthead .sub-menu li a[href*="pasta-nudelgerichte"]::before,
#masthead .sub-menu li a[href*="pasta"]::before {
  background-image: url("https://rezeptechef.com/wp-content/uploads/2026/05/pasta-icon-150x150.png") !important;
}

#masthead .sub-menu li a[href*="dessert-suesses"]::before,
#masthead .sub-menu li a[href*="dessert"]::before {
  background-image: url("https://rezeptechef.com/wp-content/uploads/2026/05/desserts-icon-150x150.png") !important;
}

/* ================================
   HEADER ICONS
================================ */

.site-header .header-social-wrap,
.site-header .header-social-inner-wrap,
.site-header .header-social-container,
.site-header-section-right .site-header-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.search-toggle-open,
.header-search-button,
.search-toggle-open-container a,
.site-header .header-social-wrap a,
.site-header .header-social-inner-wrap a,
.site-header .header-social-container a {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.92) !important;
  color: #4b5563 !important;
  border: none !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.035) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  transition: all 0.22s ease !important;
}

.search-toggle-open svg,
.header-search-button svg,
.search-toggle-open-container a svg,
.site-header .header-social-wrap a svg,
.site-header .header-social-inner-wrap a svg,
.site-header .header-social-container a svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  fill: currentColor !important;
  color: currentColor !important;
}

.search-toggle-open:hover,
.header-search-button:hover,
.search-toggle-open-container a:hover,
.site-header .header-social-wrap a:hover,
.site-header .header-social-inner-wrap a:hover,
.site-header .header-social-container a:hover {
  background: #ff6b2c !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* ================================
   HEADER RESPONSIVE
================================ */

@media (max-width: 1400px) {
  .site-header-row {
    max-width: 1280px !important;
    width: calc(100% - 52px) !important;
  }
}

@media (max-width: 1024px) {
  #masthead,
  .site-header {
    padding: 0 !important;
  }

  .site-main-header-wrap .site-header-row-container-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 66px !important;
    border-radius: 0 !important;
  }

  .site-header-row {
    width: calc(100% - 44px) !important;
    max-width: calc(100% - 44px) !important;
    min-height: 66px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    column-gap: 10px !important;
  }

  .site-header-section-left {
    flex: 1 1 auto !important;
  }

  .site-header-section-center {
    display: none !important;
  }

  .site-header-section-right {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  .site-branding img,
  .custom-logo {
    max-height: 44px !important;
  }

  .site-header .header-social-wrap,
  .site-header .header-social-inner-wrap,
  .site-header .header-social-container {
    display: none !important;
  }

  .search-toggle-open,
  .header-search-button,
  .search-toggle-open-container a,
  .mobile-toggle-open,
  .menu-toggle-open,
  .drawer-toggle,
  .mobile-navigation-toggle button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  .search-toggle-open svg,
  .header-search-button svg,
  .search-toggle-open-container a svg,
  .mobile-toggle-open svg,
  .menu-toggle-open svg,
  .drawer-toggle svg,
  .mobile-navigation-toggle button svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 900px) {
  .rc-header {
    height: 68px !important;
  }

  .rc-header-inner {
    padding: 0 18px !important;
  }

  .rc-logo img {
    height: 44px !important;
  }

  .rc-nav {
    display: none !important;
  }

  .rc-burger {
    display: block !important;
  }

  .rc-header-search {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 768px) {
  .site-header-row {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
  }

  #masthead .header-navigation .menu .sub-menu,
  #masthead .main-navigation .primary-menu-container .sub-menu,
  #masthead .main-navigation .sub-menu {
    box-shadow: none !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 8px 0 !important;
    min-width: auto !important;
  }

  #masthead .header-navigation .menu .sub-menu li a,
  #masthead .main-navigation .primary-menu-container .sub-menu li a,
  #masthead .main-navigation .sub-menu li a {
    font-size: 15px !important;
    padding: 10px 12px !important;
  }

  #masthead .header-navigation .menu .sub-menu li a::before,
  #masthead .main-navigation .primary-menu-container .sub-menu li a::before,
  #masthead .main-navigation .sub-menu li a::before {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }
}

@media (max-width: 480px) {
  .site-header-row {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
  }

  .site-branding img,
  .custom-logo {
    max-height: 40px !important;
  }

  .search-toggle-open,
  .header-search-button,
  .search-toggle-open-container a,
  .mobile-toggle-open,
  .menu-toggle-open,
  .drawer-toggle,
  .mobile-navigation-toggle button {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
  }
}




/* [RezepteChef Child 1.0.2] 12 blocs empilés « MENU ACTIF / FINAL FIX » retirés (lignes 584-1296) : remplacés par 9000-menu-state.css */
