/* =========================================================
   Shop catégories - CSS mutualisé
   Scope : .fai-shopcat-v1
   ========================================================= */

.fai-shopcat-v1 {
  --shopcat-text: #111827;
  --shopcat-muted: #667085;
  --shopcat-blue: #2557ff;
  --shopcat-blue-2: #0ea5ff;
  --shopcat-green: #16c784;
  --shopcat-purple: #7c3aed;
  --shopcat-accent: #2557ff;
  --shopcat-border: rgba(15, 23, 42, 0.10);
  --shopcat-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shopcat-shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.06);

  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  padding: 0;
  color: var(--shopcat-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.fai-shopcat-v1,
.fai-shopcat-v1 * {
  box-sizing: border-box;
}

.fai-shopcat-v1 h2,
.fai-shopcat-v1 h3 {
  margin: 0;
  padding: 0;
  color: var(--shopcat-text);
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.fai-shopcat-v1 h2 {
  font-size: clamp(26px, 3.2vw, 42px);
}

.fai-shopcat-v1 h3 {
  font-size: 19px;
}

.fai-shopcat-v1 p {
  margin: 0;
  color: var(--shopcat-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.fai-shopcat-v1 a {
  color: var(--shopcat-blue);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Variantes catégories */

.fai-shopcat--mesh {
  --shopcat-accent: var(--shopcat-purple);
}

.fai-shopcat--repeater {
  --shopcat-accent: var(--shopcat-blue-2);
}

.fai-shopcat--cpl {
  --shopcat-accent: var(--shopcat-green);
}

.fai-shopcat--router {
  --shopcat-accent: var(--shopcat-blue);
}

.fai-shopcat--switch {
  --shopcat-accent: #0f766e;
}

.fai-shopcat--cable {
  --shopcat-accent: #f59e0b;
}

.fai-shopcat--netcard {
  --shopcat-accent: #2563eb;
}

.fai-shopcat--usbeth {
  --shopcat-accent: #0891b2;
}

.fai-shopcat--antenna {
  --shopcat-accent: #ef4444;
}

.fai-shopcat-v1:not([class*="fai-shopcat--"]) {
  --shopcat-accent: var(--shopcat-blue);
}

.fai-shopcat--accesspoint {
  --shopcat-accent: #10b981;
}

.fai-shopcat--usbwifi {
  --shopcat-accent: #6366f1;
}

/* Hero */

.fai-shopcat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(37, 87, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 87, 255, 0.14), transparent 32%),
    radial-gradient(circle at 100% 8%, color-mix(in srgb, var(--shopcat-accent) 16%, transparent), transparent 30%),
    linear-gradient(135deg, #ffffff, #f3f7ff);
  box-shadow: var(--shopcat-shadow);
  overflow: hidden;
}

.fai-shopcat-hero__content {
  display: grid;
  gap: 14px;
}

.fai-shopcat-lead {
  color: #3d4658 !important;
  font-size: clamp(16.5px, 1.6vw, 20px) !important;
  line-height: 1.58 !important;
  font-weight: 500;
}

.fai-shopcat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(37, 87, 255, 0.18);
  border-radius: 999px;
  background: rgba(37, 87, 255, 0.075);
  color: #2446c7;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fai-shopcat-kicker::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--shopcat-blue), var(--shopcat-accent));
  box-shadow: 0 0 0 5px rgba(37, 87, 255, 0.11);
}

.fai-shopcat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fai-shopcat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  transition: transform .22s ease, box-shadow .22s ease;
}

.fai-shopcat-btn:hover {
  transform: translateY(-2px);
}

.fai-shopcat-btn--primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--shopcat-blue), var(--shopcat-accent));
  box-shadow: 0 12px 26px rgba(37, 87, 255, 0.26);
}

.fai-shopcat-btn--secondary {
  color: var(--shopcat-text) !important;
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--shopcat-border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.fai-shopcat-hero__card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--shopcat-accent) 28%, transparent), transparent 34%),
    linear-gradient(135deg, #101828, #17233d);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.fai-shopcat-hero__card strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.fai-shopcat-hero__card p {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Nav */

.fai-shopcat-nav {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shopcat-shadow-soft);
  overflow-x: auto;
}

.fai-shopcat-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #2b3447 !important;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none !important;
}

.fai-shopcat-nav a:hover {
  color: #ffffff !important;
  background: var(--shopcat-blue);
}

/* Sections */

.fai-shopcat-section {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shopcat-shadow-soft);
  overflow: hidden;
}

.fai-shopcat-section--soft {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--shopcat-accent) 12%, transparent), transparent 28%),
    linear-gradient(135deg, rgba(37, 87, 255, 0.06), rgba(255,255,255,.92));
}

.fai-shopcat-section__head {
  display: grid;
  gap: 11px;
  max-width: 880px;
}

/* Grids */

.fai-shopcat-grid,
.fai-shopcat-criteria,
.fai-shopcat-steps,
.fai-shopcat-versus,
.fai-shopcat-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.fai-shopcat-card,
.fai-shopcat-criteria article,
.fai-shopcat-steps article,
.fai-shopcat-versus article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.065);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.fai-shopcat-card:hover,
.fai-shopcat-criteria article:hover,
.fai-shopcat-steps article:hover,
.fai-shopcat-versus article:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 87, 255, 0.24);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.fai-shopcat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--shopcat-blue), var(--shopcat-accent));
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(37, 87, 255, 0.22);
}

.fai-shopcat-criteria article span,
.fai-shopcat-steps article span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 87, 255, 0.08);
  color: var(--shopcat-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .08em;
}

/* Highlight */

.fai-shopcat-highlight {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(37, 87, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 87, 255, 0.07), color-mix(in srgb, var(--shopcat-accent) 10%, transparent)),
    #ffffff;
  color: #3d4658;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
}

.fai-shopcat-highlight strong {
  color: #111827;
  font-weight: 900;
}

/* Links */

.fai-shopcat-link-grid a,
.fai-shopcat-versus a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  background: #ffffff;
  color: var(--shopcat-blue) !important;
  font-weight: 900;
  text-decoration: underline !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
}

/* FAQ */

.fai-shopcat-faq-list {
  display: grid;
  gap: 10px;
}

.fai-shopcat-faq details {
  border: 1px solid var(--shopcat-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
  overflow: hidden;
}

.fai-shopcat-faq summary {
  position: relative;
  cursor: pointer;
  padding: 15px 46px 15px 16px;
  color: #111827;
  background: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

.fai-shopcat-faq summary::-webkit-details-marker {
  display: none;
}

.fai-shopcat-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--shopcat-blue);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.fai-shopcat-faq details[open] summary::after {
  content: "–";
}

.fai-shopcat-faq details p {
  padding: 0 16px 16px 16px;
  color: #667085 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* Fallback si color-mix non supporté */

@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .fai-shopcat-hero {
    background:
      radial-gradient(circle at 8% 0%, rgba(37, 87, 255, 0.14), transparent 32%),
      radial-gradient(circle at 100% 8%, rgba(124, 58, 237, 0.12), transparent 30%),
      linear-gradient(135deg, #ffffff, #f3f7ff);
  }

  .fai-shopcat-section--soft {
    background:
      radial-gradient(circle at 100% 0%, rgba(37, 87, 255, 0.08), transparent 28%),
      linear-gradient(135deg, rgba(37, 87, 255, 0.06), rgba(255,255,255,.92));
  }

  .fai-shopcat-highlight {
    background:
      linear-gradient(135deg, rgba(37, 87, 255, 0.07), rgba(22, 199, 132, 0.08)),
      #ffffff;
  }
}

/* Responsive */

@media (max-width: 760px) {
  .fai-shopcat-v1 {
    gap: 16px;
    margin: 18px 0;
  }

  .fai-shopcat-hero,
  .fai-shopcat-section {
    padding: 18px;
    border-radius: 20px;
  }

  .fai-shopcat-grid,
  .fai-shopcat-criteria,
  .fai-shopcat-steps,
  .fai-shopcat-versus,
  .fai-shopcat-link-grid {
    grid-template-columns: 1fr;
  }

  .fai-shopcat-actions {
    flex-direction: column;
  }

  .fai-shopcat-btn {
    width: 100%;
  }
}