/* =====================================================
   ZOOM Technologie — Categories Fix
   Remplace les styles cat-visual-* existants
   ===================================================== */

/* ── SECTION ── */
.cat-visual-section {
  padding: 28px 0 20px;
  background: var(--surface-2, #fff);
}

.cat-visual-section .section-header {
  text-align: center;
  margin-bottom: 16px;
}

.cat-visual-section .section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

/* ── GRILLE : 8 colonnes sur une seule ligne ── */
.cat-visual-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

/* ── CARTE ── */
.cat-visual-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 0.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}

.cat-visual-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 85, 255, 0.10);
  border-color: #b3c6ff;
}

/* ── ZONE ICÔNE ── */
.cat-visual-img {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Supprime les anciens gradients inline via important */
  background: #EEF3FF !important;
}

/* Énergie : fond orange clair */
.cat-visual-btn:nth-child(7) .cat-visual-img {
  background: #FFF4EE !important;
}

/* Tout voir : fond gris clair */
.cat-visual-btn:nth-child(8) .cat-visual-img {
  background: #F2F2F2 !important;
}

/* Supprime les anciens emojis */
.cat-visual-img span {
  display: none;
}

/* ── ICÔNES SVG injectées via ::before ──
   On remplace les emojis par des SVG via background-image */
.cat-visual-img::after {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Ordinateurs */
.cat-visual-btn:nth-child(1) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E");
}

/* Smartphones */
.cat-visual-btn:nth-child(2) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Ccircle cx='12' cy='17' r='1' fill='%230055FF'/%3E%3C/svg%3E");
}

/* Accessoires */
.cat-visual-btn:nth-child(3) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3z'/%3E%3Cpath d='M3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E");
}

/* Réseau & WiFi */
.cat-visual-btn:nth-child(4) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.55a11 11 0 0 1 14.08 0'/%3E%3Cpath d='M1.42 9a16 16 0 0 1 21.16 0'/%3E%3Cpath d='M8.53 16.11a6 6 0 0 1 6.95 0'/%3E%3Ccircle cx='12' cy='20' r='1' fill='%230055FF'/%3E%3C/svg%3E");
}

/* Écrans */
.cat-visual-btn:nth-child(5) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpolyline points='8 21 12 17 16 21'/%3E%3C/svg%3E");
}

/* Stockage */
.cat-visual-btn:nth-child(6) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E");
}

/* Énergie */
.cat-visual-btn:nth-child(7) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2' fill='rgba(255%2C107%2C0%2C0.12)'/%3E%3C/svg%3E");
}

/* Tout voir */
.cat-visual-btn:nth-child(8) .cat-visual-img::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

/* ── LABEL ── */
.cat-visual-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #222;
  text-align: center;
  padding: 6px 4px 8px;
  background: #fff;
  width: 100%;
  line-height: 1.3;
}

/* ── RESPONSIVE ──
   Tablette : 4 colonnes / Mobile : 4 colonnes petites */
@media (max-width: 768px) {
  .cat-visual-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .cat-visual-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .cat-visual-img {
    height: 46px;
  }
  .cat-visual-img::after {
    width: 22px;
    height: 22px;
  }
  .cat-visual-label {
    font-size: 10px;
    padding: 5px 2px 6px;
  }
}
