:root {
  --ccx-bg-dark: #11151b;
  --ccx-bg-card: rgba(23, 29, 38, 0.96);
  --ccx-bg-soft: #151b23;
  --ccx-accent-green: #00ff6a;
  --ccx-accent-orange: #ff7a00;
  --ccx-text-main: #f5f7fb;
  --ccx-text-muted: #a4adbb;
  --ccx-radius-xl: 22px;
  --ccx-radius-lg: 18px;
  --ccx-radius-md: 12px;
  --ccx-blur: 22px;
  --ccx-shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.6);
}

body {
  background: radial-gradient(circle at 0% 0%, #1f2933 0, #05070b 52%, #020307 100%);
  color: var(--ccx-text-main);
}

.ccx-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 26px 24px 40px;
}

/* ==========================================================
   HERO PREMIUM (base)
   ========================================================== */

.hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  padding: 30px 32px;
  border-radius: 28px;
  background: radial-gradient(circle at 0% 0%, #1f2933 0, #070b11 45%, #050509 100%);
  box-shadow: var(--ccx-shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,255,106,0.18) 0, transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(255,122,0,0.16) 0, transparent 50%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
}

/* Texte / pills / CTA */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.85);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 13px;
  color: var(--ccx-text-muted);
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
}

.hero-kicker span.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ccx-accent-orange), #ffb347);
  color: #111;
  font-weight: 700;
  font-size: 11px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.hero-title span.ccx-c { color: var(--ccx-accent-green); }
.hero-title span.ccx-mon { color: #fff; }
.hero-title span.ccx-choix { color: var(--ccx-accent-orange); }

.hero-subtitle {
  font-size: 17px;
  color: var(--ccx-text-muted);
  max-width: 460px;
  margin: 0 0 22px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--ccx-text-muted);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ccx-accent-orange), #ffb347);
  color: #111317;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(255,122,0,0.45);
  border: none;
}

.hero-primary span.arrow {
  font-size: 16px;
}

.hero-secondary {
  font-size: 13px;
  color: var(--ccx-text-muted);
}

.hero-secondary strong {
  color: var(--ccx-accent-green);
}

/* Colonne droite */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  padding: 16px 18px;
  background: radial-gradient(circle at 0 0, rgba(0,255,106,0.18) 0, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(255,122,0,0.2) 0, transparent 55%),
              rgba(9, 14, 22, 0.98);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  overflow: hidden;
}

.hero-tag {
  position: absolute;
  top: 16px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ccx-text-muted);
}

.hero-discount {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: conic-gradient(from 200deg, #ffb347, var(--ccx-accent-orange), #ffcf99);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.hero-product-card {
  position: absolute;
  inset: 62px 18px 18px 18px;
  border-radius: 22px;
  background: radial-gradient(circle at 0 0, rgba(0,255,106,0.18) 0, transparent 55%),
              rgba(12, 18, 26, 0.98);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px 16px 14px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.hero-product-visual {
  border-radius: 16px;
  background: linear-gradient(135deg, #181f2b, #0d1119);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-product-visual img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-product-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-product-meta {
  font-size: 12px;
  color: var(--ccx-text-muted);
  margin-bottom: 10px;
}

.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-price-now {
  font-size: 22px;
  font-weight: 750;
  color: var(--ccx-accent-green);
}

.hero-price-old {
  font-size: 13px;
  color: var(--ccx-text-muted);
  text-decoration: line-through;
}

.hero-saving {
  font-size: 12px;
  color: var(--ccx-accent-orange);
}

.hero-small-label {
  font-size: 11px;
  color: var(--ccx-text-muted);
}

/* ==========================================================
   CATEGORY BANNERS PREMIUM
   ========================================================== */

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px; /* rapproché */
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 18px 20px;
  border-radius: var(--ccx-radius-xl);
  background: linear-gradient(135deg, #151b23, #070b12);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  overflow: hidden;
  min-height: 170px; /* anti CLS */
}

.banner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(0,255,106,0.16) 0, transparent 46%),
              radial-gradient(circle at 90% 100%, rgba(255,122,0,0.16) 0, transparent 50%);
  opacity: 0.7;
  pointer-events: none;
}

.banner-inner {
  position: relative;
  z-index: 1;
}

.banner-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ccx-text-muted);
  margin-bottom: 6px;
}

.banner h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.banner p {
  margin: 0 0 12px;
  color: var(--ccx-text-muted);
  font-size: 13px;
}

.banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(4,7,13,0.8);
  color: var(--ccx-text-main);
  font-size: 13px;
  text-decoration: none;
  gap: 6px;
}

.banner .btn span.arrow { font-size: 14px; }

.banner img {
  position: relative;
  z-index: 1;
  max-width: 42%;
  border-radius: 18px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.7));
}

/* Boutons sous-catégories */
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.banner-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(4, 7, 13, 0.85);
  color: #e5e7eb;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.16s ease-out;
  white-space: nowrap;
}

.banner-chip:hover {
  background: var(--ccx-accent-green);
  color: #020617;
  border-color: var(--ccx-accent-green);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.35),
    0 12px 30px rgba(0, 0, 0, 0.75);
}

/* ==========================================================
   TOP DEALS header (SCOPÉ uniquement home-topdeals)
   ========================================================== */

.home-topdeals { margin-top: 16px; }

.home-topdeals .deals-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.home-topdeals .deals-header-left { max-width: 720px; }

.home-topdeals .deals-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.85);
  color: var(--ccx-text-muted);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-topdeals .deals-title {
  margin: 6px 0 2px;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  font-weight: 850;
  color: var(--ccx-text-main);
}

.home-topdeals .deals-tagline {
  margin: 0;
  font-size: .95rem;
  color: var(--ccx-text-muted);
}

.home-topdeals .deals-header-right {
  display: flex;
  align-items: center;
}

.home-topdeals .deals-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  background: radial-gradient(circle at 0 0, #1f2933 0, #020617 70%);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, .6);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .32);
  white-space: nowrap;
}

/* ==========================================================
   CARTE PROMO : Soldes d'hiver 2026 + Countdown
   ========================================================== */

.ccx-promo-soldes {
  position: relative;
  margin-top: 16px;
  border-radius: 26px;
  background: radial-gradient(circle at 0% 0%, #1f2933 0, #070b11 45%, #050509 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ccx-promo-soldes::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,122,0,0.18) 0, transparent 46%),
    radial-gradient(circle at 90% 100%, rgba(0,255,106,0.14) 0, transparent 52%);
  opacity: 0.9;
  pointer-events: none;
}

.ccx-promo-soldes__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.ccx-promo-soldes__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.85);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 12px;
  color: var(--ccx-text-muted);
  margin-bottom: 10px;
  backdrop-filter: blur(12px);
}

.ccx-promo-soldes__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.ccx-promo-soldes__subtitle {
  margin: 0;
  color: var(--ccx-text-muted);
  font-size: 13px;
  max-width: 720px;
}

/* (optionnel si HTML existe, mais masqué plus bas) */
.ccx-promo-soldes__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ccx-promo-soldes__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 7, 13, 0.85);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--ccx-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.ccx-promo-soldes__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ccx-promo-soldes__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ccx-accent-green), #a7ffd3);
  color: #07120c;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,255,106,0.22);
  border: 1px solid rgba(0, 255, 106, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.ccx-promo-soldes__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0,255,106,0.26);
}

.ccx-promo-soldes__note {
  font-size: 12px;
  color: var(--ccx-text-muted);
}

/* Countdown */
.ccx-countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ccx-countdown__label {
  font-size: 12px;
  color: var(--ccx-text-muted);
  letter-spacing: 0.02em;
}

.ccx-countdown__grid {
  display: flex;
  gap: 8px;
}

.ccx-countdown__item {
  min-width: 56px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  background: rgba(4, 7, 13, 0.70);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  text-align: center;
}

.ccx-countdown__val {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.96);
}

.ccx-countdown__unit {
  margin-top: 6px;
  font-size: 10px;
  color: var(--ccx-text-muted);
  letter-spacing: 0.06em;
}

.ccx-promo-soldes.is-expired .ccx-countdown__label,
.ccx-promo-soldes.is-expired .ccx-countdown__val {
  color: rgba(255,122,0,0.95);
  font-weight: 800;
}

/* ==========================================================
   HERO Tweaks (compact + anti CLS)
   ========================================================== */

/* anti CLS + compact */
.hero-banner {
  padding: 22px 28px;
  gap: 24px;
  min-height: 280px;
}

.hero-subtitle { margin-bottom: 14px; }

@media (min-width: 1024px) {
  .hero-banner { min-height: 300px; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .hero-banner {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 24px 22px;
  }
}

@media (max-width: 840px) {
  .hero-banner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    min-height: unset;
  }

  .hero-right { justify-content: flex-start; }

  .section-grid { grid-template-columns: minmax(0, 1fr); }

  .ccx-promo-soldes__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ccx-promo-soldes__right {
    align-items: flex-start;
    width: 100%;
  }

  /* Mobile/tablette : countdown align à gauche */
  .ccx-countdown { align-items: flex-start; }
}

@media (max-width: 640px) {
  .banner-actions { gap: 6px; }
  .banner-chip { font-size: 12px; padding: 5px 10px; }
}

@media (max-width: 600px) {
  .ccx-page { padding: 18px 14px 30px; }
  .hero-title { font-size: 32px; }
  .hero-product-card { grid-template-columns: minmax(0, 1fr); }

  /* HERO centré uniquement sur mobile */
  .hero-left { text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-pills { justify-content: center; }
  .hero-cta-row { justify-content: center; }
  .hero-right { justify-content: center; }

  /* Soldes : centre chrono + CTA sur mobile */
  .ccx-promo-soldes__inner {
    align-items: center;
    text-align: center;
  }
  .ccx-promo-soldes__right { align-items: center !important; }
  .ccx-countdown { align-items: center; width: 100%; }
  .ccx-countdown__label { width: 100%; text-align: center; }
  .ccx-countdown__grid { width: 100%; justify-content: center; }
  .ccx-promo-soldes__cta { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .home-topdeals .deals-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-topdeals .deals-header-right {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ==========================================================
   Overrides clean (soldes)
   - masque pastilles + "page spéciale"
   ========================================================== */

.ccx-promo-soldes__pills,
.ccx-promo-soldes__note {
  display: none !important;
}


/* ==========================================================
   CCX — HERO : bannière image seule (plein bloc)
   ========================================================== */
.hero-banner.hero-ban-image{
  padding: 0 !important;
  margin: 0 0 18px 0;
  border-radius: 22px;
  overflow: hidden;
  background: transparent !important;
}
.hero-banner.hero-ban-image .hero-ban-img{
  display:block;
  width:100% !important;
  height:auto !important;
}
@media (min-width: 1200px){
  .hero-banner.hero-ban-image .hero-ban-img{
    max-height: 420px;
    object-fit: cover;
  }
}
@media (max-width: 560px){
  .hero-banner.hero-ban-image .hero-ban-img{
    max-height: 320px;
    object-fit: cover;
  }
}
/* ==========================================================
   FIX HERO: l'image doit remplir tout le cadre
   ========================================================== */

/* Le cadre hero doit être un bloc simple (pas grid/flex 2 colonnes) */
.ccx-homepage-premium .hero-banner.hero-ban-image{
  display:block !important;
  width:100% !important;
  max-width:none !important;

  /* on tue le layout en colonnes */
  grid-template-columns:none !important;
  place-items:stretch !important;

  padding:0 !important;
  background:transparent !important;
  overflow:hidden !important;
  border-radius:22px !important;

  /* hauteur du hero (ajuste si tu veux) */
  height: clamp(240px, 22vw, 460px) !important;
}

/* L'image prend 100% largeur + 100% hauteur du cadre */
.ccx-homepage-premium .hero-banner.hero-ban-image .hero-ban-img{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  object-fit:cover !important; /* remplit le cadre */
  object-position:center center !important;
}



/* ==========================================================
   CCX — HERO IMAGE : FORCE plein cadre (override brutal)
   ========================================================== */

/* On tue complètement le hero "grid 2 colonnes" */
.hero-banner.hero-ban-image{
  display:block !important;
  grid-template-columns:none !important;
  gap:0 !important;

  padding:0 !important;
  min-height:0 !important;
  height: clamp(240px, 22vw, 460px) !important;

  background: transparent !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

/* On enlève l'overlay du hero */
.hero-banner.hero-ban-image::before{
  content:none !important;
  display:none !important;
}

/* IMPORTANT : si tu as encore des div left/right, on les neutralise */
.hero-banner.hero-ban-image .hero-left,
.hero-banner.hero-ban-image .hero-right{
  display:none !important;
}

/* L'image doit remplir le cadre */
.hero-banner.hero-ban-image img,
.hero-banner.hero-ban-image > img.hero-ban-img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit: cover !important;
  object-position: center center !important;
}



/* ==========================================================
   CCX — HERO IMAGE : prend 100% du cadre (sans bande blanche)
   ========================================================== */

/* Hero image-only : PAS de hauteur forcée */
.hero-banner.hero-ban-image{
  display:block !important;
  grid-template-columns:none !important;
  gap:0 !important;

  padding:0 !important;
  margin:0 0 18px 0 !important;

  min-height:0 !important;
  height:auto !important;          /* <-- IMPORTANT */
  background:transparent !important;

  border-radius:22px !important;
  overflow:hidden !important;
}

/* On retire l’overlay du hero (sinon effet amateur) */
.hero-banner.hero-ban-image::before{
  content:none !important;
  display:none !important;
}

/* Si des colonnes traînent encore, on les masque */
.hero-banner.hero-ban-image .hero-left,
.hero-banner.hero-ban-image .hero-right{
  display:none !important;
}

/* L’image remplit la largeur, et sa hauteur = hauteur réelle (donc pas de bande blanche) */
.hero-banner.hero-ban-image > img.hero-ban-img,
.hero-banner.hero-ban-image img{
  display:block !important;
  width:100% !important;
  height:auto !important;          /* <-- IMPORTANT */
  max-width:none !important;

  object-fit:cover;
  object-position:center center;
}
