:root{
  --bg-top:#2b3138;
  --bg-bottom:#373f49;
  --text:#e5e7eb;
  --muted:#9aa3ac;
  --border:#4a5563;
  --accent:#00ff6a;
  --orange:#ff7a00;
  --overlay:rgba(0,0,0,.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  /* hauteur header mobile injectée en JS */
  --cmx-header-h: 129px;
}


/* ============= DESKTOP header (.ccx-*) ============= */
.ccx-header{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--text);
}

.ccx-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  display:grid;
  grid-template-columns:auto 1fr minmax(420px,540px) auto;
  align-items:center;
  column-gap:16px;
}

/* Barre 1 */
.ccx-bar-top{
  background:var(--bg-top);
  padding:0;
  border-bottom:1px solid var(--border);
  width:100%;
  position:relative;
  margin:0;
  left:0;
  right:auto;
  z-index:1000;
}

.ccx-bar-top .ccx-container{
  height:56px;
  align-items:center;
}

.ccx-left,
.ccx-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.ccx-left{ grid-column:1; }
.ccx-logo{ grid-column:2; }
.ccx-search{ grid-column:3; justify-self:start; }
.ccx-right{
  grid-column:4;
  justify-self:end;
}

/* Bouton "Tous les produits" */
.ccx-btn-all{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:8px;
  background:#1b2024;
  border:1px solid var(--border);
  color:var(--text);
  cursor:pointer;
  transition:border-color .2s,color .2s;
}

.ccx-btn-all:hover{
  border-color:var(--accent);
  color:var(--accent);
}

/* Logo */
.ccx-logo{
  justify-self:center;
  display:inline-flex;
  align-items:baseline;
  gap:0;
  font-weight:800;
  font-size:26px;
  text-decoration:none;
}

.ccx-logo .c{ color:var(--orange); }
.ccx-logo .mon{ color:#fff; }
.ccx-logo .choix{ color:var(--accent); }
.ccx-logo .dotcom{
  color:#fff;
  font-size:.82em;
  transform:translateY(1px);
}

/* Recherche desktop */
.ccx-search{
  position:relative;
  display:flex;
  align-items:center;
  justify-self:center;
  align-self:center;
  width:min(520px,100%);
  height:36px;
  margin:0;
}

.ccx-search input{
  box-sizing:border-box;
  flex:1;
  height:100%;
  background:var(--bg-bottom);
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--text);
  padding:0 14px;
  font-size:15px;
  outline:none;
}

.ccx-search input::placeholder{ color:var(--muted); }
.ccx-search input:focus{ border-color:var(--accent); }

.ccx-search button{
  box-sizing:border-box;
  height:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  padding:0 12px;
  border:none;
  border-radius:10px;
  background:var(--accent);
  color:#0b0c0d;
  font-weight:700;
  cursor:pointer;
  margin-left:8px;
}

.ccx-search button:hover{ filter:brightness(1.05); }

.ccx-quick{
  display:flex;
  align-items:center;
  gap:10px;
  justify-self:end;
}

.ccx-quick a{
  color:var(--text);
  text-decoration:none;
  white-space:nowrap;
}

.ccx-quick a:hover{ color:var(--accent); }

.ccx-div{
  width:1px;
  height:20px;
  background:var(--border);
}

/* Barre 2 */
.ccx-bar-bottom{
  background:var(--bg-bottom);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  width:100%;
  position:relative;
  margin:0;
  left:0;
  right:auto;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}

/* Ligne de menu principale (desktop) */
.ccx-menu-row{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:flex-start;
}

/* Lien "classique" (sans sous-menu) + lien bons plans + guides */
.ccx-menu-row > a{
  color:var(--text);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  font-size:15px;
}

.ccx-menu-row > a:hover{ color:var(--accent); }

.ccx-menu-row .deal-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  transform:translateY(-2px);
  filter:drop-shadow(0 0 4px rgba(255,140,0,.7));
}

/* ===== Sous-menus de la barre principale ===== */
.ccx-menu-parent{
  position:relative;
  display:inline-flex;
  align-items:stretch;
}

.ccx-menu-link{
  display:inline-block;
  padding:0 10px;
  line-height:56px;
  color:#ffffff;
  text-decoration:none;
  font-size:14px;
  background:none;
  border:0;
  cursor:pointer;
  font:inherit;
}

.ccx-menu-link:hover{
  color:#00ff6a;
}

/* Dropdown */
.ccx-menu-dropdown{
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  padding:8px 0;
  background:#2b3138;
  border-radius:8px;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;

  /* z-index raisonnable (ne doit jamais passer au-dessus de wpadminbar) */
  z-index:9100;
}

.ccx-menu-dropdown a{
  display:block;
  padding:8px 16px;
  font-size:14px;
  color:#ff7a00;
  text-decoration:none;
  white-space:nowrap;
}

.ccx-menu-dropdown a:hover{
  color:#00ff6a;
  background:rgba(255,255,255,0.02);
}

/* Affichage du sous-menu au survol du parent — DESKTOP uniquement */
@media (min-width:1129px){
  .ccx-menu-parent:hover > .ccx-menu-dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
}

/* Mobile : ouverture au clic quand .open est ajouté par le JS */
.ccx-menu-parent.open > .ccx-menu-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* Mega-menu overlay */
.ccx-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.12);
  display:none;

  z-index:9000;
}

.ccx-overlay.open{ display:block; }

.ccx-megacard{
  position:fixed;
  top:88px;
  left:0;
  transform:none;
  width:min(1120px,80vw);
  max-height:calc(100vh - 96px);
  background:#fff;
  color:#111;
  border-radius:0 0 12px 0;
  overflow-y:auto;
  box-shadow:0 18px 40px rgba(15,23,42,.35);
  border:1px solid #e5e7eb;

  z-index:9100;
}

.ccx-mega-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px;
  border-bottom:1px solid #e5e7eb;
  background:#f9fafb;
}

.ccx-mega-header strong{
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.ccx-close{
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
}

.ccx-mega-body{ padding:0; }

/* Layout Leclerc : onglets à gauche + panneau droite */
.ccx-mega-layout{
  display:flex;
  min-height:260px;
}

/* Colonne de gauche : familles principales */
.ccx-mega-main{
  width:230px;
  background:#f3f4f6;
  border-right:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  padding:10px 0;
}

.ccx-mega-main-item{
  width:100%;
  padding:9px 18px;
  text-align:left;
  border:0;
  background:#f3f4f6;
  font-size:14px;
  color:#4b5563;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
}

.ccx-mega-main-item:hover{
  background:#e5e7eb;
  color:#111827;
}

.ccx-mega-main-item.is-active{
  background:var(--bg-bottom);
  color:var(--accent);
  font-weight:700;
}

.ccx-mega-main-item.is-active:hover{
  background:var(--bg-bottom);
  color:var(--accent);
}

/* Panneau de droite */
.ccx-mega-panels{
  flex:1;
  background:var(--bg-bottom);
  padding:16px 18px 18px 14px;
}

.ccx-mega-panel{ display:none; }
.ccx-mega-panel.is-active{ display:block; }

/* Titre principal du panneau */
.ccx-mega-panel h4{
  margin:0 0 8px;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--accent);
}

/* Groupes de sous-catégories */
.ccx-mega-groups{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:20px;
  row-gap:14px;
}

.ccx-mega-group h5{
  margin:0 0 4px;
  font-size:14px;
  font-weight:700;
  color:var(--orange);
}

.ccx-mega-group ul{
  list-style:none;
  margin:0;
  padding:0;
}

.ccx-mega-group li + li{ margin-top:1px; }

.ccx-mega-group a{
  font-size:14px;
  line-height:1.25;
  color:#e5e7eb;
  text-decoration:none;
}

.ccx-mega-group a:hover{
  color:var(--accent);
  text-decoration:none;
}

/* Panneau "Maison & Autres" */
.ccx-mega-panel-maison .ccx-mega-groups{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:28px;
  row-gap:10px;
}
.ccx-mega-panel-maison .ccx-mega-group{ min-width:0; }
.ccx-mega-panel-maison .ccx-mega-group h5{
  font-size:13px;
  margin-bottom:4px;
}

/* Accessibilité focus */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

/* Mobile / tablette : cache header desktop */
@media(max-width:1128px){
  .ccx-header{ display:none; }
}

/* ============= MOBILE header (.cmx-*) ============= */
.cmx-m{ display:none; }
@media (max-width:1128px){ .cmx-m{ display:block; } }

/* Header mobile fixed */
.cmx-m{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:9999;
  margin:0;
}

.cmx-c{
  max-width:900px;
  margin:0 auto;
  padding:0 10px;
}

.cmx-top{
  background:linear-gradient(90deg,var(--bg-top),var(--bg-bottom) 40%,var(--bg-top));
  background-size:300% 100%;
  padding:calc(10px + var(--safe-top)) 0 10px;
  border-bottom:1px solid var(--border);
}

/* pas d’animation au 1er paint */
html:not(.ccx-ready) .cmx-top{
  animation:none !important;
  background-position:0% 50%;
}

/* animation seulement quand prêt */
html.ccx-ready .cmx-top{
  animation:headerGlow 12s ease-in-out infinite;
}

@keyframes headerGlow{
  0%,100%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
}

.cmx-row1{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
}

.cmx-all{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:34px;
  padding:0 10px;
  border-radius:10px;
  background:#1b2024;
  border:1px solid var(--border);
  color:var(--text);
  cursor:pointer;
}

.cmx-all:hover{
  border-color:var(--accent);
  color:var(--accent);
}

.cmx-logo{
  justify-self:center;
  display:inline-flex;
  align-items:baseline;
  font-weight:800;
  font-size:20px;
  letter-spacing:.2px;
  text-decoration:none;
  color:inherit;
  -webkit-tap-highlight-color:transparent;
}

.cmx-logo,
.cmx-logo *{
  -webkit-user-select:none;
  user-select:none;
}

.cmx-logo .c{ color:var(--orange); }
.cmx-logo .mon{ color:#fff; }
.cmx-logo .choix{ color:var(--accent); }

.cmx-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.cmx-actions a{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:10px;
  background:#1b2024;
  color:var(--text);
  text-decoration:none;
}

.cmx-actions a.fav::before{ content:'❤'; font-size:16px; }
.cmx-actions a.acc::before{ content:'👤'; font-size:16px; }

/* ligne 2 (recherche) */
.cmx-row2{
  background:var(--bg-top);
  padding:6px 0;
  border-bottom:1px solid var(--border);
}

.cmx-search-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}

.cmx-search{
  flex:1;
  display:flex;
  gap:8px;
  position:relative;
}

.cmx-search::before{
  content:"🔍";
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:.7;
  pointer-events:none;
}

.cmx-search input{
  flex:1;
  height:34px;
  border-radius:999px;
  padding:0 14px 0 32px;
  background:var(--bg-bottom);
  border:1px solid var(--border);
  color:var(--text);
  transition:border-color .2s ease,box-shadow .2s ease;
  font-size:16px;
}

.cmx-search input:focus{
  border-color:var(--accent);
  box-shadow:0 0 6px rgba(0,255,106,.35);
}

.cmx-search button{
  height:34px;
  padding:0 14px;
  border-radius:999px;
  border:none;
  font-weight:700;
  background:linear-gradient(90deg,#00ff6a,#00e05e);
  color:#0b0c0d;
  cursor:pointer;
  transition:transform .15s ease,box-shadow .2s ease;
}

.cmx-search button:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,255,106,.25);
}

/* dropdown suggestions mobile */
.cmx-suggest{
  position:absolute;
  left:0;
  right:0;
  top:40px;
  z-index:99999;
  background:#0f1216;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
  display:none;
  max-height:60vh;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.cmx-suggest.open{ display:block; }

.cmx-s-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  text-decoration:none;
  color:var(--text);
}

.cmx-s-item:hover,
.cmx-s-item[aria-selected="true"]{
  background:#1b2026;
  color:var(--accent);
}

.cmx-s-thumb{
  width:40px;
  height:40px;
  border-radius:8px;
  background:#222;
  flex:none;
  overflow:hidden;
}

.cmx-s-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cmx-s-main{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.cmx-s-title{
  font-size:15px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cmx-s-price{
  font-size:13px;
  color:var(--muted);
}

.cmx-s-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-top:1px solid var(--border);
  background:#0c0f13;
  font-size:13px;
}

.cmx-s-footer a{
  color:var(--text);
  text-decoration:none;
}

.cmx-s-footer a:hover{ color:var(--accent); }

/* ligne 3 : catégories scrollables */
.cmx-bot{
  background:var(--bg-bottom);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.cmx-cats{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:10px 0;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}

.cmx-cats a{
  flex:0 0 auto;
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  padding:6px 10px;
  border:1px solid var(--border);
  background:#1b2024;
  border-radius:10px;
  white-space:nowrap;
  scroll-snap-align:start;
}

.cmx-cats a:hover{
  color:var(--accent);
  border-color:var(--accent);
}

/* Off-canvas */
.cmx-ov[hidden]{ display:none !important; }

/* offcanvas fermé : ne capte pas les clics */
.cmx-ov{
  position:fixed;
  inset:0;
  z-index:100100;
  background:rgba(0,0,0,.55);
  backdrop-filter:saturate(120%) blur(2px);

  pointer-events:none;
  visibility:hidden;
}
body.ccx-ov-open .cmx-ov{
  pointer-events:auto;
  visibility:visible;
}

.cmx-ov__panel{
  position:absolute;
  inset:0;
  background:#0f1216;
  color:var(--text);
  display:flex;
  flex-direction:column;
  height:100%;
  padding-bottom:var(--safe-bot);
}

.cmx-ov__head{
  position:sticky;
  top:0;
  background:#0c0f13;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:2;
}

.cmx-ov__close{
  background:#1b2024;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
}

.cmx-ov__wrap{
  display:flex;
  flex:1;
  min-height:0;
}

.cmx-ov__nav{
  width:100%;
  max-width:760px;
  padding:8px 10px 20px;
  overflow:auto;
  margin:0 auto;
}

.cmx-ov__sec{
  border:1px solid var(--border);
  border-radius:12px;
  background:#10151a;
  margin:10px 0;
}

.cmx-ov__btn{
  width:100%;
  text-align:left;
  background:#10151a;
  color:var(--text);
  border:0;
  padding:12px 14px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:700;
  cursor:pointer;
}

.cmx-ov__btn:hover{ color:var(--accent); }

.cmx-ov__caret{ transition:transform .18s ease; }

.cmx-ov__sec.is-open .cmx-ov__caret{
  transform:rotate(180deg);
}

.cmx-ov__sub{
  display:none;
  padding:8px 10px 12px;
  border-top:1px solid var(--border);
  background:#0f1419;
  border-radius:0 0 12px 12px;
}

.cmx-ov__sec.is-open .cmx-ov__sub{ display:block; }

.cmx-ov__sub a{
  display:block;
  padding:9px 10px;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
  border:1px solid transparent;
}

.cmx-ov__sub a:hover{
  color:var(--accent);
  border-color:var(--accent);
  background:#121721;
}

/* Groupes dans le menu mobile */
.cmx-ov-group{
  padding:8px 0 10px;
  border-top:1px solid var(--border);
}

.cmx-ov-group:first-child{
  border-top:none;
  padding-top:0;
}

.cmx-ov-group-title{
  font-size:14px;
  font-weight:700;
  color:var(--orange);
  margin:0 0 4px;
}

.cmx-ov-group a{
  display:block;
  padding:1px 0;
}

/* Mobile / tablette : corriger les barres full-width (mais on garde le header en fixed) */
@media (max-width:1128px){
  .ccx-bar-top,
  .ccx-bar-bottom{
    width:100%;
    left:0;
    right:auto;
    margin-left:0;
    margin-right:0;
  }
}

/* ===== Badge favoris (commun desktop + mobile) ===== */
.ccx-favs,
.cmx-actions .fav{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.ccx-wl-badge{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:700;
  background:#00ff6a;
  color:#0b0c0d;
  border:1px solid rgba(0,0,0,.15);
  transform:translateY(-1px);
}

.ccx-wl-badge.is-empty{ display:none; }

/* Badge favoris mobile */
.cmx-actions .fav .ccx-wl-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:16px;
  height:16px;
  font-size:11px;
  line-height:16px;
  padding:0 4px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.35);
  display:inline-grid;
  place-items:center;
  background:#22c55e;
  color:#0b0c0d;
  font-weight:700;
}

.cmx-actions .fav .ccx-wl-badge.is-empty{ display:none; }

/* Logo mobile : rappel */
.cmx-logo .c{ color:var(--orange); }
.cmx-logo .mon{ color:#fff; }
.cmx-logo .choix{ color:var(--accent); }

@media (max-width:1128px){
  html,
  body{
    max-width:100%;
    overflow-x:hidden;
  }
}

/* ===== Barre principale mobile/tablette : rail horizontal ===== */
@media (max-width:1128px){
  html,
  body{
    max-width:100%;
    overflow-x:hidden;
  }

  .cmx-m{
    overflow:visible;
  }

  /* Barre de menu sous le header mobile */
  .cmx-m .ccx-bar-bottom{
    position:relative;
    z-index:9999;

    overflow-x:auto;
    overflow-y:visible;
    -webkit-overflow-scrolling:touch;
  }

  /* Rail horizontal des onglets */
  .cmx-m .ccx-bar-bottom .ccx-menu-row{
    max-width:none;
    margin:0;
    padding:0 10px;
    display:inline-flex;
    align-items:center;
    gap:12px;
    flex-wrap:nowrap;
    width:max-content;
  }

  .cmx-m .ccx-bar-bottom .ccx-menu-parent,
  .cmx-m .ccx-bar-bottom > a{
    flex:0 0 auto;
    white-space:nowrap;
  }
}

/* ✅ IMPORTANT (mobile) : on NE fait PAS display:none sur le dropdown
   (le JS lit son HTML pour remplir le subpanel) */
@media (max-width:1128px){
  .cmx-m .ccx-bar-bottom .ccx-menu-dropdown{
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    position:absolute;
  }
}

/* ===== Panneau global de sous-menu mobile — VERSION PREMIUM ===== */
@media (max-width:1128px){
  .ccx-mobile-subpanel{
    position:fixed;
    left:10px;
    right:10px;

    /* ✅ top piloté proprement par variable (set en JS) */
    top: var(--ccx-subpanel-top, calc(var(--cmx-header-h, 129px) + var(--ccx-wpbar-h, 0px) + 8px));

    z-index:9200;
    background:linear-gradient(145deg,#111827,#020617);
    border-radius:18px;
    border:1px solid rgba(148,163,184,0.35);
    box-shadow:
      0 22px 60px rgba(0,0,0,0.75),
      0 0 0 1px rgba(15,23,42,0.9);
    backdrop-filter:blur(20px) saturate(130%);
    padding:6px 0;
    display:none;

    max-height:60vh;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;

    opacity:0;
    transform:translateY(-4px);
  }
}


  .ccx-mobile-subpanel.is-visible{
    opacity:1;
    transform:translateY(0);
    transition: opacity .18s ease-out, transform .18s ease-out;
  }

  .ccx-mobile-subpanel a{
    display:block;
    padding:10px 18px;
    font-size:14px;
    color:#f97316;
    text-decoration:none;
    white-space:nowrap;
  }

  .ccx-mobile-subpanel a + a{
    border-top:1px solid rgba(15,23,42,0.8);
  }

  .ccx-mobile-subpanel a:hover{
    color:#00ff6a;
    background:rgba(15,23,42,0.9);
  }

  .cmx-m .ccx-menu-parent.open-sub > .ccx-menu-link{
    color:#00ff6a;
    position:relative;
  }

  .cmx-m .ccx-menu-parent.open-sub > .ccx-menu-link::after{
    content:'';
    position:absolute;
    left:10%;
    right:10%;
    bottom:-3px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,#00ff6a,#f97316);
  }
}

/* ==== Ajuste la couleur du panneau sous-menu mobile (plus clair) ==== */
@media (max-width:1128px){
  .ccx-mobile-subpanel{
    background:linear-gradient(145deg,#1f2933,#111827) !important;
    border-color:rgba(148,163,184,0.55) !important;
    box-shadow:
      0 18px 50px rgba(0,0,0,0.65),
      0 0 0 1px rgba(15,23,42,0.7) !important;
  }
}

/* Quand le mega-menu mobile est ouvert, on masque la barre .ccx-bar-bottom */
@media (max-width:1128px){
  body.mega-open .cmx-m .ccx-bar-bottom{
    display:none;
  }
}

/* ===== FIX mega-menu DESKTOP : couleurs panneau droite ===== */
@media (min-width:1129px){
  .ccx-megacard .ccx-mega-panels{ color: var(--text) !important; }
  .ccx-megacard .ccx-mega-panels a,
  .ccx-megacard .ccx-mega-panels li,
  .ccx-megacard .ccx-mega-panels span,
  .ccx-megacard .ccx-mega-panels p{ color: var(--text) !important; }

  .ccx-megacard .ccx-mega-panels h4,
  .ccx-megacard .ccx-mega-panels h5,
  .ccx-megacard .ccx-mega-panels strong,
  .ccx-megacard .ccx-mega-panels b{ color: var(--orange) !important; }

  .ccx-megacard .ccx-mega-panels a:hover{ color: var(--accent) !important; }
}

@media (min-width:1129px){
  .ccx-mega-main-item.ccx-mega-deal{
    color: var(--orange);
    font-weight:800;
  }
  .ccx-mega-main-item.ccx-mega-deal:hover{ color: var(--accent); }
  .ccx-mega-main-item.ccx-mega-deal.is-active{
    background: var(--bg-bottom);
    color: var(--accent);
  }
}

/* ============================
   FIX : barre blanche sous footer (Divi)
   ============================ */
html{
  background:#0f1216 !important;
}
body{
  background:#0f1216 !important;
  margin:0 !important;
}


/* (optionnel) si tu vois encore 1px de chevauchement sur certains écrans */
@media (min-width:1129px){
  body.admin-bar .ccx-bar-top{
    z-index: 1000; /* reste normal */
  }
}

 
#page-container{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

#et-main-area{
  flex:1 0 auto;
}

#main-footer,
#et-footer-nav,
#footer-bottom{
  flex-shrink:0;
  background:#0f1216 !important;
}

/* =========================================================
   CCX HOTFIX — Admin bar + overlays cliquables seulement quand ouverts
   ========================================================= */

/* WP admin bar au-dessus de tout */
#wpadminbar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  z-index:2147483647 !important;
}

/* Variable (mise à jour par le JS) */
:root{ --ccx-wpbar-h: 32px; }

/* Header mobile : toujours sous la WP bar (1 ligne / 2 lignes) */
body.admin-bar .cmx-m{
  top: var(--ccx-wpbar-h) !important;
}

/* Mega-card desktop sous la WP bar */
body.admin-bar .ccx-megacard{
  top: calc(88px + var(--ccx-wpbar-h)) !important;
}


  /* dropdown (si jamais affiché) */
  body.admin-bar .cmx-m .ccx-menu-dropdown{
    top: calc(80px + var(--ccx-wpbar-h)) !important;
  }
}

/* Overlays/panneaux : cliquables uniquement quand ouverts */
.ccx-overlay{ pointer-events:none; }
.ccx-overlay.open{ pointer-events:auto; }

/* ✅ desktop mega menu : clickable/scroll quand overlay est open */
.ccx-overlay .ccx-megacard{ pointer-events:none; }
.ccx-overlay.open .ccx-megacard{ pointer-events:auto; }


/* Offcanvas : cliquable uniquement quand ouvert */
#cmxOvM{ pointer-events:none; }
body.ccx-ov-open #cmxOvM{ pointer-events:auto; }

/* ===== Spacer HEADER MOBILE (STABLE) ===== */
.cmx-spacer{ display:none; }
@media (max-width:1128px){
  .cmx-spacer{
    display:block;
    height: var(--cmx-header-h, 129px);
  }
}



/* === SUGGEST: toujours visible (mobile/tablette aussi) === */
.ccx-search,
.ccx-search-wrap,
.ccx-m-search,
.ccx-row2{
  overflow: visible !important;
}

.ccx-suggest{
  z-index: 999999 !important;
}

/* =========================================================
   CCX — Anti saut au chargement (mobile/tablette)
   Désactive les transitions tant que html n'a pas .ccx-ready
   ========================================================= */
html:not(.ccx-ready) .cmx-m,
html:not(.ccx-ready) .cmx-m *{
  transition:none !important;
}


/* =========================================================
   FIX — Offcanvas mobile sous la WP Admin Bar
   (sinon la croix est derrière #wpadminbar)
   ========================================================= */
@media (max-width:1128px){
  body.admin-bar #cmxOvM{
    top: var(--ccx-wpbar-h) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(100vh - var(--ccx-wpbar-h)) !important;
  }

  /* le panel prend 100% de l’overlay (qui est déjà décalé) */
  body.admin-bar #cmxOvM .cmx-ov__panel{
    height: 100% !important;
  }
}


/* =========================================================
   WP Admin Bar — hauteur fallback (WP: 32px desktop / 46px mobile)
   ========================================================= */
:root{ --ccx-wpbar-h: 32px; } /* fallback */

@media (max-width:782px){
  :root{ --ccx-wpbar-h: 46px; } /* WP admin bar est plus haute en mobile */
}


/* =========================================================
   WP Admin Bar — on la cache en tablette/mobile (<=1128px)
   + on neutralise tous les décalages
   ========================================================= */
@media (max-width:1128px){

  /* 1) cache la barre WP */
  #wpadminbar{
    display:none !important;
  }

  /* 2) WordPress ajoute souvent un margin-top inline sur <html> quand la barre est active */
  html{
    margin-top:0 !important;
  }

  /* 3) neutralise ta variable utilisée partout */
  :root{
    --ccx-wpbar-h: 0px !important;
  }

  /* 4) header mobile + offcanvas : revient à top:0 */
  body.admin-bar .cmx-m{
    top:0 !important;
  }

  body.admin-bar #cmxOvM{
    top:0 !important;
    height:100vh !important;
  }
}
