/* ============================================
   CCX — Page Bons Plans (tax: product_cat = bons-plans)
   Clean + stable overrides (Divi-proof)
   ============================================ */

/* =========================
   Variables / wrapper
   ========================= */
.ccx-bp-page{
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --orange:#ff7a00;
  --green:#00ff6a;              /* ✅ même vert que page article */
  --radius:16px;
  --shadow:0 6px 24px rgba(0,0,0,.06);

  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

/* =========================
   HERO (bandeau type image 2)
   ========================= */

/* neutralise les wrappers Divi autour du module Code */
body.tax-product_cat.term-bons-plans .et_pb_code,
body.tax-product_cat.term-bons-plans .et_pb_code_inner{
  background:transparent !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  box-shadow:none !important;
}

/* bandeau */
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title.ccx-dark{
  max-width: 980px !important;
  width: calc(100% - 32px) !important;
  margin: 26px auto 18px !important;
  padding: 22px 26px 18px !important;

  background: linear-gradient(180deg,#2b3138 0%, #373f49 100%) !important;
  border: 1px solid rgba(74,85,99,.92) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.25) !important;

  text-align: center !important;
  color:#e5e7eb !important;
}

/* titre */
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title.ccx-dark h1{
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;

  font-weight:900 !important;
  font-size: 30px !important;
  line-height:1.18 !important;
  letter-spacing:.2px !important;
  color:#e5e7eb !important;
  text-shadow:0 2px 10px rgba(0,0,0,.28) !important;
}

/* sous-titre */
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title.ccx-dark .ccx-sub{
  margin:10px 0 0 !important;
  font-size:13.5px !important;
  line-height:1.55 !important;
  color: rgba(229,231,235,.82) !important;
}

/* logo couleurs */
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title .ccx-logo{ white-space:nowrap; }
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title .ccx-logo .c{      color:var(--orange) !important; }
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title .ccx-logo .mon{    color:#ffffff !important; }
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title .ccx-logo .choix{  color:var(--green) !important; }
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title .ccx-logo .dotcom{ color:#ffffff !important; }

@media (max-width:980px){
  body.tax-product_cat.term-bons-plans .ccx-bonsplans-title.ccx-dark h1{ font-size:24px !important; }
}
@media (max-width:480px){
  body.tax-product_cat.term-bons-plans .ccx-bonsplans-title.ccx-dark{
    padding:16px 14px 14px !important;
    border-radius:14px !important;
  }
  body.tax-product_cat.term-bons-plans .ccx-bonsplans-title.ccx-dark h1{ font-size:18px !important; }
}

/* =========================
   Layout sections
   ========================= */
/* Wrapper pleine largeur */
body.tax-product_cat.term-bons-plans .ccx-bp-archive{
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto 26px;
  padding: 0 20px 24px; /* respirations latérales */
}

.ccx-bp-section{ margin:0 0 18px; }

/* Bandeau section (Téléphonie / Informatique / etc.) */
.ccx-bp-archive .ccx-titleband{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  padding:16px 20px;
  margin:14px 0 14px;

  border-radius:16px;
  border:1px solid rgba(74,85,99,.9);
  background:linear-gradient(180deg,#2b3138,#373f49);
  box-shadow:0 8px 26px rgba(0,0,0,.35);
  color:#e5e7eb;
}

.ccx-topdeals__meta{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Titre section = vert page article */
.ccx-topdeals__title,
.ccx-titleband .title{
  margin:0;
  font-weight:900;
  font-size:clamp(18px,2.4vw,22px);
  color:var(--green) !important; /* ✅ */
}

/* =========================
   Pastilles DESKTOP (ligne 1)
   ========================= */
.ccx-topdeals__subnav{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:13px;
}

/* état normal (léger) */
.ccx-topdeals__subnav .ccx-bp-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:4px 12px;
  border-radius:999px;

  border:1px solid rgba(148,163,184,.7);
  background:transparent;
  color:var(--orange);
  box-shadow:none;

  font-size:13px;
  font-weight:700;
  cursor:pointer;

  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .12s ease;
}

.ccx-topdeals__subnav .ccx-bp-pill:hover{
  background:rgba(15,23,42,.05);
  border-color:rgba(148,163,184,.95);
  transform:translateY(-1px);
}

/* actif */
.ccx-topdeals__subnav .ccx-bp-pill.is-active{
  background:linear-gradient(180deg,#ff8a00,#ff7a00);
  border-color:rgba(248,250,252,.95);
  color:#ffffff;
  box-shadow:0 4px 10px rgba(249,115,22,.35);
}

/* =========================
   Pastilles (ligne 2) si tu les utilises encore
   ========================= */
.ccx-bp-subline-wrapper{ margin-top:10px; }
.ccx-bp-subline{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ccx-bp-subline .ccx-bp-subitem{
  display:inline-flex;
  align-items:center;

  padding:4px 10px;
  border-radius:999px;

  border:1px solid rgba(148,163,184,.7);
  background:rgba(15,23,42,.04);
  color:#f9fafb;

  font-size:13px;
  text-decoration:none;
  cursor:pointer;

  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .12s ease,box-shadow .15s ease;
}

.ccx-bp-subline .ccx-bp-subitem:hover{
  background:rgba(15,23,42,.14);
  border-color:rgba(148,163,184,.95);
  transform:translateY(-1px);
}

.ccx-bp-subline .ccx-bp-subitem.is-active{
  background:var(--green);
  border-color:var(--green);
  color:#0f172a;
  box-shadow:0 3px 8px rgba(16,185,129,.35);
}

/* =========================
   Bouton “Voir plus” (OFF)
   ========================= */
body.tax-product_cat.term-bons-plans .ccx-topdeals__morelink,
body.tax-product_cat.term-bons-plans .ccx-bp-more{
  display:none !important;
}

/* =========================
   Grille produits / cartes
   ========================= */
.ccx-bp-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(5,minmax(0,1fr));
}

@media (max-width:1200px){ .ccx-bp-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:980px){  .ccx-bp-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:680px){  .ccx-bp-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:349px){  .ccx-bp-grid{ grid-template-columns:1fr; } }

/* Protection : ne pas casser titres Woo/CCX */
.ccx-cards .woocommerce ul.products h2.woocommerce-loop-product__title{
  background:transparent !important;
  padding:0 !important;
  margin:6px 0 4px !important;
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  color:inherit !important;
  font:600 14px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif !important;
}

/* =========================
   Carrousel / tracks
   ========================= */
.ccx-carousel .ccx-track{ display:block; }
.ccx-carousel .ccx-track.is-hidden{ display:none; }

/* =========================
   Badge remise (si tu l’utilises)
   ========================= */
.ccx-bp-card{ position:relative; }
.ccx-bp-discount-badge{
  position:absolute;
  top:8px;
  left:8px;
  padding:4px 8px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  color:#fff;
  background:#00d86f;
}

/* =========================
   SELECT mobile premium (et seulement mobile)
   ========================= */
.ccx-bp-select-wrap{ display:none; }

/* Mobile : on cache les pastilles, on affiche le select */
@media (max-width:680px){

  .ccx-bp-archive .ccx-titleband{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    padding:14px 16px;
  }

  .ccx-bp-archive .ccx-titleband .ccx-topdeals__meta{ width:100%; }

  .ccx-bp-pills{ display:none !important; }
  .ccx-bp-select-wrap{ display:block; width:100%; margin-top:8px; }

  .ccx-bp-select{
    width:100%;
    height:42px;
    padding:0 14px;
    border-radius:12px;

    font-size:14px;
    font-weight:800;

    color:#e5e7eb !important;
    background:linear-gradient(180deg,#2b3138,#373f49) !important;

    border:1px solid rgba(74,85,99,.9);
    box-shadow:0 6px 18px rgba(0,0,0,.35);

    appearance:none;
    -webkit-appearance:none;

    /* chevrons */
    background-image:
      linear-gradient(45deg, transparent 50%, var(--green) 50%),
      linear-gradient(135deg, var(--green) 50%, transparent 50%),
      linear-gradient(180deg,#2b3138,#373f49);
    background-position:
      calc(100% - 18px) 18px,
      calc(100% - 12px) 18px,
      0 0;
    background-size:6px 6px, 6px 6px, 100% 100%;
    background-repeat:no-repeat;
  }

  .ccx-bp-select:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 2px rgba(0,255,106,.22), 0 6px 18px rgba(0,0,0,.35);
  }

  /* ✅ FIX Chrome/Windows : options toujours lisibles */
  .ccx-bp-select option{
    background:#ffffff !important;
    color:#111827 !important;
  }
}

/* =========================
   Sécurité : cacher anciens boutons
   ========================= */
.ccx-bp-toggle,
.ccx-bp-morecats{
  display:none !important;
}

																
																
																
/* Mobile: on cache les pastilles desktop, on affiche le dropdown */
.ccx-bp-dd{ display:none; }
@media (max-width:680px){
  .ccx-bp-pills{ display:none !important; }
  .ccx-bp-dd{ display:block; width:100%; margin-top:8px; position:relative; }
}

/* Bouton */
.ccx-bp-dd__btn{
  width:100%;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(0,255,106,.28);
  background:linear-gradient(180deg,#2b3138,#373f49);
  color:#e5e7eb;
  font-weight:800;

  box-shadow:0 10px 22px rgba(0,0,0,.32);
}

.ccx-bp-dd__chev{ color:var(--green, #00ff6a); font-weight:900; }

/* Panel */
.ccx-bp-dd__panel{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 8px);
  z-index:50;

  padding:8px;
  border-radius:14px;
  border:1px solid rgba(74,85,99,.92);
  background:linear-gradient(180deg,#0f172a,#111827);
  box-shadow:0 18px 46px rgba(0,0,0,.45);

  display:none;
}

.ccx-bp-dd.is-open .ccx-bp-dd__panel{ display:block; }

.ccx-bp-dd__opt{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:10px;
  border:0;
  background:transparent;
  color:#e5e7eb;
  font-weight:700;
}

.ccx-bp-dd__opt:hover{
  background:rgba(0,255,106,.10);
}

.ccx-bp-dd__opt.is-active{
  background:rgba(255,122,0,.18);
  outline:1px solid rgba(255,122,0,.35);
}


																	  
																	  
/* =========================================
   FIX z-index : dropdown mobile > cartes/coeurs
   (page bons-plans)
   ========================================= */
body.tax-product_cat.term-bons-plans .ccx-titleband,
body.tax-product_cat.term-bons-plans .ccx-topdeals__head{
  position: relative;
  z-index: 50;          /* le header de section au-dessus des cartes */
  overflow: visible;    /* important pour que le menu puisse dépasser */
}

/* le dropdown lui-même au top */
body.tax-product_cat.term-bons-plans .ccx-bp-dd{
  position: relative;
  z-index: 80;
}
body.tax-product_cat.term-bons-plans .ccx-bp-dd__menu{
  position: absolute;
  z-index: 999;         /* au-dessus de tout */
}

/* les zones produits en dessous */
body.tax-product_cat.term-bons-plans .ccx-carousel,
body.tax-product_cat.term-bons-plans .ccx-cards,
body.tax-product_cat.term-bons-plans .ccx-bp-grid{
  position: relative;
  z-index: 1;
}

/* on force le coeur sous le menu */
body.tax-product_cat.term-bons-plans .ccx-heart,
body.tax-product_cat.term-bons-plans .ccx-wishlist,
body.tax-product_cat.term-bons-plans .yith-wcwl-add-to-wishlist,
body.tax-product_cat.term-bons-plans .tinvwl_add_to_wishlist_button{
  position: relative;
  z-index: 1 !important;
}





/* =========================
   Dropdown mobile custom (premium)
   ========================= */
.ccx-bp-dd{ display:none; }

@media (max-width:680px){
  .ccx-bp-dd{
    display:block;
    width:100%;
    margin-top:8px;
    position:relative;
    z-index:500; /* passe AU-DESSUS des cartes/coeurs */
  }

  /* on cache les pastilles desktop en mobile */
  .ccx-bp-pills{ display:none !important; }
}

/* bouton */
.ccx-bp-dd__btn{
  width:100%;
  height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(74,85,99,.9);
  background:linear-gradient(180deg,#2b3138,#373f49);
  color:#e5e7eb;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 10px 22px rgba(0,0,0,.35);
}

.ccx-bp-dd__chev{
  width:10px; height:10px;
  border-right:2px solid var(--green);
  border-bottom:2px solid var(--green);
  transform:rotate(45deg);
  margin-left:10px;
}

/* panel */
.ccx-bp-dd__panel{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 8px);
  padding:8px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.28);
  background:linear-gradient(180deg,#0b1220,#0f172a);
  box-shadow:0 18px 40px rgba(0,0,0,.55);
  display:none;
  z-index:600;
}

.ccx-bp-dd.is-open .ccx-bp-dd__panel{ display:block; }

/* items */
.ccx-bp-dd__item{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:#e5e7eb;
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}

.ccx-bp-dd__item:hover{
  background:rgba(255,122,0,.14);
}

.ccx-bp-dd__item.is-active{
  background:linear-gradient(180deg,#ff8a00,#ff7a00); /* ORANGE CCX */
  color:#ffffff;
  box-shadow:0 6px 16px rgba(255,122,0,.28);
}

/* sécurité : coeurs / badges sous le dropdown */
.ccx-card .ccx-heart{ z-index:2 !important; }
.ccx-bp-dd, .ccx-bp-dd__panel{ z-index:600 !important; }

																				
																				
																				
.ccx-bp-archive > .ccx-bp-section{
  width:100%;
}






/* =========================================
   CCX — FULL WIDTH Bons Plans (fix Divi)
   ========================================= */

/* Supprime le cadre/fond gris Divi */
body.tax-product_cat.term-bons-plans
.et_pb_section,
body.tax-product_cat.term-bons-plans
.et_pb_row,
body.tax-product_cat.term-bons-plans
.et_pb_column,
body.tax-product_cat.term-bons-plans
.et_pb_code{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Supprime les marges/paddings forcés */
body.tax-product_cat.term-bons-plans
.et_pb_row{
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
	
																				
																				
																				
																				
																				
/* Les grilles restent bien alignées */
body.tax-product_cat.term-bons-plans .ccx-cards,
body.tax-product_cat.term-bons-plans .ccx-bp-grid{
  max-width: 1400px;
  margin: 0 auto;
}
	
																				
																				
																				
																				
																				
/* =========================================
   CCX — Retirer le fond gris et remettre le fond blanc
   ========================================= */

/* Fond blanc sur la page Bons Plans */
body.tax-product_cat.term-bons-plans {
  background-color: #ffffff !important; /* Remet le fond blanc */
  color: #1f2937; /* Couleur texte sombre pour bonne lisibilité */
}

/* Remet le fond blanc à l'archive CCX */
body.tax-product_cat.term-bons-plans .ccx-bp-archive {
  background-color: #ffffff !important; /* Applique le fond blanc sur l'archive CCX */
  max-width: 100% !important;
  margin: 0 auto 26px;
  padding: 0 20px 24px;
}

/* Sections sans fond gris, juste blanc */
body.tax-product_cat.term-bons-plans .ccx-bp-section {
  background-color: #ffffff !important; /* Fond blanc pour chaque section */
  box-shadow: none !important; /* Enlève l'ombre */
  padding: 20px; /* Garde de l'espace autour du contenu */
  border-radius: 8px; /* Coins arrondis */
}
	
																				
																				
																				
																				
																				
/* =========================================
   CCX — Retirer le cadre et étendre les cartes
   ========================================= */

/* Retirer le cadre blanc autour de la page Bons Plans */
body.tax-product_cat.term-bons-plans {
  background-color: #ffffff !important; /* Fond blanc */
  margin: 0 !important; /* Enlever les marges de la page */
  padding: 0 !important; /* Enlever les paddings */
}

/* Retirer le cadre blanc autour du wrapper des bons plans */
body.tax-product_cat.term-bons-plans .ccx-bp-archive {
  max-width: 100% !important; /* Rendre l'archive pleine largeur */
  margin: 0 !important; /* Pas de marge */
  padding: 0 !important; /* Pas de padding */
  background-color: transparent !important; /* Pas de fond */
}

/* Sections sans bordure, pleine largeur */
body.tax-product_cat.term-bons-plans .ccx-bp-section {
  background-color: transparent !important; /* Fond transparent */
  padding: 0 !important; /* Pas de padding */
  margin: 0 !important; /* Pas de marge */
  box-shadow: none !important; /* Enlever l'ombre */
}

/* Adapter les grilles de produits pour toute la largeur */
body.tax-product_cat.term-bons-plans .ccx-bp-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* Ajuste selon le nombre de produits par ligne */
  max-width: 100% !important; /* Prendre toute la largeur */
  margin: 0 auto !important; /* Centrer horizontalement */
}

/* Responsivité : Grille responsive pour les petits écrans */
@media (max-width: 1200px) {
  .ccx-bp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 colonnes sur les écrans plus petits */
  }
}
@media (max-width: 980px) {
  .ccx-bp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colonnes sur tablettes */
  }
}
@media (max-width: 680px) {
  .ccx-bp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 colonnes sur mobiles */
  }
}
@media (max-width: 349px) {
  .ccx-bp-grid {
    grid-template-columns: 1fr; /* 1 colonne sur très petits écrans */
  }
}













/* =========================================================
   CCX Bons Plans — CENTRAGE titre + sous-catégories
   Scope: section.ccx-bp-section.ccx-topdeals
   Desktop/Tablet only (mobile = dropdown, on ne touche pas)
   ========================================================= */

@media (min-width: 601px){

  /* le bandeau (bloc sombre) : on force une colonne centrée */
  .ccx-bp-page section.ccx-bp-section.ccx-topdeals .ccx-topdeals__head{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Titre catégorie centré */
  .ccx-bp-page section.ccx-bp-section.ccx-topdeals .ccx-topdeals__title{
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Boutons sous-catégories centrés */
  .ccx-bp-page section.ccx-bp-section.ccx-topdeals .ccx-topdeals__subnav,
  .ccx-bp-page section.ccx-bp-section.ccx-topdeals nav.ccx-bp-pills{
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* évite que certains thèmes ajoutent des marges cheloues sur les pills */
  .ccx-bp-page section.ccx-bp-section.ccx-topdeals .ccx-bp-pill{
    margin: 0 !important;
  }
}








/* =========================================================
   FIX marge/padding énorme en haut (Divi) — uniquement Bons Plans
   ========================================================= */

/* 1) Enlève le padding-top du container Divi sur cette page */
body.tax-product_cat.term-bons-plans #main-content .container{
  padding-top: 0 !important;
}

/* 2) Enlève le padding/margin du 1er bloc Divi (section) */
body.tax-product_cat.term-bons-plans .et_pb_section:first-of-type{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 3) Au cas où ton wrapper ajoute lui-même du spacing */
body.tax-product_cat.term-bons-plans .ccx-bp-page{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 4) Petit ajustement si le bloc titre a une marge haute */
body.tax-product_cat.term-bons-plans .ccx-bonsplans-title{
  margin-top: 0 !important;
}
																