/* Milkids AJAX Search v1.1 — compatible avec les formulaires existants du header Bricks */
#mk26-header .mk26-ajax-form { position: relative; overflow: visible; }
#mk26-header .mk26-ajax-results { position: absolute; top: calc(100% + 9px); right: 0; left: 0; z-index: 10050; padding: 10px; background: #fff; border: 1px solid #ece9f4; border-radius: 16px; box-shadow: 0 14px 35px rgba(46,43,120,.12); max-height: min(420px, 65vh); overflow-y: auto; overscroll-behavior: contain; font-family: "Gill sans", "Gill Sans", "Gill Sans MT", Arial, sans-serif; }
#mk26-header .mk26-ajax-results[hidden] { display: none !important; }
#mk26-header .mk26-ajax-heading { padding: 6px 9px 10px; color: #86819a; font-family: "Gill sans", "Gill Sans", "Gill Sans MT", Arial, sans-serif !important; font-size: 12px; font-weight: 600; letter-spacing: .015em; text-transform: uppercase; }
#mk26-header .mk26-ajax-item { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 10px; color: #292644; font-size: 13px; line-height: 1.35; text-decoration: none; transition: background .16s ease; }
#mk26-header .mk26-ajax-item:hover, #mk26-header .mk26-ajax-item:focus-visible, #mk26-header .mk26-ajax-item.is-active { background: #f7f5fc; color: #2e2b78; }
#mk26-header .mk26-ajax-item img, #mk26-header .mk26-ajax-placeholder { display: block; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 9px; object-fit: contain; background: #f7f8fe; }
#mk26-header .mk26-ajax-info { flex: 1; min-width: 0; }
#mk26-header .mk26-ajax-name { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
#mk26-header .mk26-ajax-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; color: #9b94b9; }
#mk26-header .mk26-ajax-arrow svg { display: block; width: 15px; height: 15px; }
#mk26-header .mk26-ajax-empty { padding: 14px 9px; color: #777587; font-size: 13px; }
#mk26-header .mk26-ajax-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; padding: 12px 13px; border-radius: 10px; background: linear-gradient(105deg, #e8f7e3 0%, #e5f2ff 23%, #efe7ff 46%, #ffe6f2 68%, #fff1cd 85%, #ffe6d2 100%); color: #2e2b78; font-size: 13px; font-weight: 600; text-decoration: none; }
#mk26-header .mk26-ajax-all:hover, #mk26-header .mk26-ajax-all:focus-visible { background: linear-gradient(105deg, #d9f0d2 0%, #d7eaff 23%, #e5d9ff 46%, #ffd8ea 68%, #ffebaf 85%, #ffdcc0 100%); color: #2e2b78; }
#mk26-header .mk26-ajax-all span:last-child { display:inline-flex; align-items:center; justify-content:center; flex:0 0 19px; }
#mk26-header .mk26-ajax-all span:last-child svg { display:block; width:19px; height:19px; }
@media (max-width: 900px) {
  #mk26-header .mk26-mobile-search input[type="search"] { font-size: 16px !important; }
  #mk26-header .mk26-mobile-panel.is-open { z-index: 100; }
  #mk26-header .mk26-mobile-search.mk26-ajax-form { display: flex; flex-wrap: wrap; align-items: stretch; overflow: visible; }
  #mk26-header .mk26-mobile-search .mk26-ajax-results { position: relative; top: auto; left: auto; right: auto; z-index: auto; flex: 0 0 100%; width: 100%; margin-top: 8px; max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { #mk26-header .mk26-ajax-item { transition: none; } }

/* v1.1.3 — 4 résultats + CTA sans défilement interne sur mobile.
   Si le clavier réduit la hauteur disponible, seul le panneau du menu défile. */
@media (max-width: 900px) {
  #mk26-header .mk26-mobile-search .mk26-ajax-results {
    padding: 6px 8px 8px;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    scrollbar-width: none;
  }
  #mk26-header .mk26-mobile-search .mk26-ajax-heading {
    padding: 4px 7px 5px;
    font-size: 11px;
  }
  #mk26-header .mk26-mobile-search .mk26-ajax-item {
    gap: 9px;
    padding: 5px 6px;
    min-height: 43px;
    line-height: 1.2;
  }
  #mk26-header .mk26-mobile-search .mk26-ajax-item img,
  #mk26-header .mk26-mobile-search .mk26-ajax-placeholder {
    width: 36px; height: 36px; flex-basis: 36px; border-radius: 7px;
  }
  #mk26-header .mk26-mobile-search .mk26-ajax-name { font-size: 12px; line-height: 1.2; }
  #mk26-header .mk26-mobile-search .mk26-ajax-all {
    margin-top: 5px; padding: 10px 11px; min-height: 38px;
    font-size: 12px;
  }
}
