/* ==========================================================================
   KgTech — header et footer (remplacent le builder Astra)
   ========================================================================== */

.kg-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

/* Barre du haut */
.kg-topbar { background: var(--kg-ink); color: rgba(255, 255, 255, .78); font-size: 12.5px; font-weight: 500; }
.kg-topbar .kg-wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 20px; }
.kg-promises { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.kg-promises li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.kg-promises .kg-ic { color: var(--kg-blue); font-size: 15px; }
.kg-topbar-wa { display: flex; align-items: center; gap: 8px; color: #fff !important; white-space: nowrap; }
.kg-topbar-wa b { color: var(--kg-yellow); }

/* Header */
.kg-header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--kg-line); }
.admin-bar .kg-header { top: 32px; }
.kg-row1 { display: flex; align-items: center; gap: 32px; height: 84px; }
.kg-logo .custom-logo-link { display: block; line-height: 0; }
.kg-logo img { height: 46px !important; width: auto !important; max-width: none; }
.kg-search { flex: 1; min-width: 0; }
.kg-search form { display: flex; align-items: center; background: var(--kg-bg); border-radius: 999px; padding: 6px 6px 6px 8px; box-shadow: inset 0 0 0 1px var(--kg-line); margin: 0; }
.kg-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; height: 40px; padding: 0 16px; font: 500 14px var(--kg-body); color: var(--kg-ink); outline: 0; box-shadow: none; }
.kg-search input[type=search]::placeholder { color: #9A8E9C; }
.kg-search button { height: 40px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--kg-ink); color: #fff; font: 600 13.5px var(--kg-body); display: flex; align-items: center; gap: 8px; cursor: pointer; transition: background .4s var(--kg-ease), transform .4s var(--kg-ease); }
.kg-search button:hover { background: var(--kg-ink-2); }
.kg-search button:active { transform: scale(.97); }
.kg-search button .kg-ic { font-size: 16px; }
/* FiboSearch dans la pilule */
.kg-search .dgwt-wcas-search-wrapp { max-width: none; }
.kg-search .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input { border-radius: 999px; background: var(--kg-bg); border: 1px solid var(--kg-line); height: 52px; font-family: var(--kg-body); }
.kg-hicons { display: flex; align-items: center; gap: 6px; }
.kg-hicon { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--kg-ink) !important; font-size: 21px; transition: background .4s var(--kg-ease); }
.kg-hicon:hover { background: var(--kg-bg); }
.kg-cart-pill { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--kg-ink); color: #fff !important; height: 46px; }
.kg-cart-ico { position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 17px; }
.kg-cart-ico .kg-n { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--kg-yellow); color: var(--kg-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; line-height: 1; }
.kg-cart-txt { font-size: 13px; font-weight: 700; line-height: 1.1; }
.kg-cart-txt .woocommerce-Price-amount { color: #fff; }
.kg-cart-txt small { display: block; font-size: 10px; opacity: .6; font-weight: 500; }
.kg-burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--kg-bg); cursor: pointer; position: relative; padding: 0; }
.kg-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--kg-ink); border-radius: 2px; transition: transform .5s var(--kg-ease), top .5s var(--kg-ease); }
.kg-burger span:first-child { top: 18px; } .kg-burger span:last-child { top: 26px; }
.kg-burger[aria-expanded=true] span:first-child { top: 22px; transform: rotate(45deg); }
.kg-burger[aria-expanded=true] span:last-child { top: 22px; transform: rotate(-45deg); }

.kg-row2 { border-top: 1px solid var(--kg-line); }
.kg-row2 .kg-wrap { display: flex; align-items: center; gap: 8px; height: 52px; overflow: hidden; }
.kg-catbtn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--kg-ink); color: #fff !important; font-weight: 700; font-size: 13.5px; margin-right: 12px; white-space: nowrap; flex-shrink: 0; }
.kg-catbtn .kg-ic { font-size: 16px; }
.kg-nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1; }
.kg-nav li { margin: 0; }
.kg-nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--kg-ink-2) !important; white-space: nowrap; transition: background .4s var(--kg-ease), color .4s var(--kg-ease); text-transform: none; }
.kg-nav a:hover, .kg-nav .current-menu-item > a { background: var(--kg-bg); color: var(--kg-ink) !important; }
.kg-nav .sub-menu { display: none; }

@media (max-width: 1024px) {
  .kg-promises li:not(:first-child) { display: none; }
  .kg-row1 { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .kg-search { order: 3; flex-basis: 100%; }
  .kg-hicons { margin-left: auto; }
  .kg-burger { display: block; }
  .kg-row2 { display: none; }
  .kg-header.is-open .kg-row2 { display: block; }
  .kg-header.is-open .kg-row2 .kg-wrap { height: auto; flex-direction: column; align-items: stretch; padding: 12px 0 16px; }
  .kg-header.is-open .kg-nav { flex-direction: column; gap: 2px; }
  .kg-header.is-open .kg-catbtn { margin: 0 0 8px; justify-content: center; }
}
@media (max-width: 767px) {
  .kg-wrap { width: calc(100% - 32px); }
  .kg-topbar { font-size: 11.5px; }
  .kg-topbar-wa .kg-t { display: none; }
  .kg-hicon:not(.kg-keep) { display: none; }
  .kg-cart-pill { padding: 6px; gap: 0; }
  .kg-cart-txt { display: none; }
  .kg-logo img { height: 40px !important; }
  .admin-bar .kg-header { top: 0; }
}

/* Footer */
.kg-footer { background: var(--kg-deep); color: rgba(255, 255, 255, .72); margin-top: 88px; font-size: 14px; }
.kg-fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.kg-footer h4 { color: #fff; font-family: var(--kg-body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.kg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kg-footer li { margin: 0; }
.kg-footer a { color: rgba(255, 255, 255, .72); }
.kg-footer a:hover { color: #fff; }
.kg-fabout img { height: 52px !important; width: auto !important; }
.kg-fabout p { margin: 14px 0 18px; max-width: 320px; line-height: 1.65; }
.kg-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.kg-pay span { font-size: 11px; font-weight: 800; padding: 8px 12px; border-radius: 10px; letter-spacing: .04em; text-transform: uppercase; }
.kg-pay--cash { background: var(--kg-green); color: #0B3A12; }
.kg-pay--wave { background: #1DC3F0; color: #062431; }
.kg-pay--om { background: #FF7900; color: #fff; }
.kg-fcontact li { display: flex; gap: 10px; align-items: flex-start; }
.kg-fcontact .kg-ic { color: var(--kg-blue); font-size: 17px; margin-top: 2px; }
.kg-copy { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1024px) { .kg-fgrid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 767px) { .kg-fgrid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 28px; } .kg-fabout { grid-column: 1 / -1; } .kg-footer { margin-top: 56px; } }

/* Astra : masquer les restes du builder si un plugin les réinjecte */
.kg-has-header .ast-mobile-header-wrap, .kg-has-header .ast-desktop-header { display: none !important; }
.kg-has-header #content { padding-top: 0; }
