/* =========================================================
   Menu mobile KParts — [kp_mobile_menu]
   ========================================================= */

/* --- Bouton hamburger (blanc, fin) --- */
.kp-mm-toggle{
  -webkit-appearance:none; appearance:none;
  display:inline-flex; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:40px; height:40px; padding:8px !important; margin:0;
  background:transparent !important; border:0 !important; box-shadow:none !important;
  color:#fff; cursor:pointer;
}
.kp-mm-toggle span{
  display:block; width:22px; height:1.6px; border-radius:2px; background:currentColor;
  transition:transform .25s ease, opacity .2s ease;
}
.kp-mm-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6.6px) rotate(45deg); }
.kp-mm-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.kp-mm-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6.6px) rotate(-45deg); }

/* --- Panneau (sous le header) --- */
.kp-mm{
  position:fixed; left:0; right:0; bottom:0; top:var(--kp-mm-top, 60px); z-index:99990;
  background:#fff; color:#111; font-family:'Saira', sans-serif;
  overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.kp-mm.is-open{
  opacity:1; visibility:visible; transform:none;
  transition:opacity .25s ease, transform .25s ease;
}
html.kp-mm-lock, html.kp-mm-lock body{ overflow:hidden !important; }

.kp-mm__inner{
  min-height:100%; box-sizing:border-box;
  display:flex; flex-direction:column;
  padding:28px 20px 0;
}

/* --- Titre + libellé --- */
.kp-mm__title{ margin:0 0 6px; font-size:28px; font-weight:600; line-height:1.2; color:#111; }
.kp-mm__label{ margin:0 0 12px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#555; }

/* --- Catégories --- */
.kp-mm__cats{ list-style:none; margin:0; padding:0; }
.kp-mm__cats li{ margin:0; padding:0; }
.kp-mm__cats a{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:13px 14px; border-left:3px solid transparent;
  font-size:14px; font-weight:300; line-height:1.35; color:#111 !important; text-decoration:none;
}
.kp-mm__cats a:active,
.kp-mm__cats a.is-active{ background:#f2f2f2; border-left-color:#111; font-weight:400; }
.kp-mm__cats svg{ width:14px; height:14px; flex:0 0 auto; }

/* --- Liens du bas (2 colonnes) --- */
.kp-mm__links{
  list-style:none; margin:20px 0 0; padding:20px 0;
  border-top:1px solid #e5e5e5;
  column-count:2; column-gap:16px;
}
.kp-mm__links li{ margin:0 0 12px; padding:0; break-inside:avoid; }
.kp-mm__links a{ font-size:13px; font-weight:300; color:#111 !important; text-decoration:none; }

/* --- Pied : Mon compte + langue --- */
.kp-mm__foot{
  margin-top:auto;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  border-top:1px solid #e5e5e5;
}
.kp-mm__account{
  display:flex; align-items:center; gap:10px;
  font-size:13px; font-weight:300; color:#111 !important; text-decoration:none;
}
.kp-mm__account svg{ width:22px; height:22px; }

.kp-mm__lang{ position:relative; }
.kp-mm__lang summary{
  list-style:none; cursor:pointer; user-select:none;
  display:flex; align-items:center; gap:6px;
  font-size:12px; font-weight:300; color:#111;
}
.kp-mm__lang summary::-webkit-details-marker{ display:none; }
.kp-mm__lang summary::marker{ content:""; }
.kp-mm__lang b{ font-weight:500; }
.kp-mm__lang summary svg{ width:10px; height:10px; transition:transform .2s; }
.kp-mm__lang[open] summary svg{ transform:rotate(180deg); }
.kp-mm__lang ul{
  position:absolute; right:0; bottom:calc(100% + 10px); min-width:160px;
  list-style:none; margin:0; padding:6px 0;
  background:#fff; border:1px solid #e5e5e5; box-shadow:0 -6px 24px rgba(0,0,0,.12);
}
.kp-mm__lang li{ margin:0; padding:0; }
.kp-mm__lang ul a{
  display:flex; gap:8px; padding:9px 14px;
  font-size:13px; font-weight:300; color:#111 !important; text-decoration:none;
}
.kp-mm__lang .is-current a{ background:#f5f5f5; }

/* --- Jamais sur ordinateur --- */
@media (min-width:1025px){
  .kp-mm{ display:none !important; }
}


/* --- Masquer les boutons flottants (WhatsApp, chat…) quand le menu est ouvert --- */
html.kp-mm-lock .wa__btn_popup,
html.kp-mm-lock .wa__popup_chat_box,
html.kp-mm-lock .nta-wa-gdpr,
html.kp-mm-lock #wa,
html.kp-mm-lock .joinchat,
html.kp-mm-lock .ht-ctc,
html.kp-mm-lock #ht-ctc-chat,
html.kp-mm-lock .qlwapp,
html.kp-mm-lock #qlwapp,
html.kp-mm-lock [class*="whatsapp"],
html.kp-mm-lock [id*="whatsapp"] {
  display: none !important;
}

/* --- Croix de fermeture dans le panneau --- */
.kp-mm__top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:0 0 6px;
}
.kp-mm__top .kp-mm__title{ margin:0; }
.kp-mm__close{
  -webkit-appearance:none; appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; padding:8px !important; margin:0 -8px 0 0;
  background:transparent !important; border:0 !important; box-shadow:none !important;
  color:#111 !important; cursor:pointer;
}
.kp-mm__close svg{ width:24px; height:24px; display:block; }