/* ═══════════════════════════════════════════════════════
   niche.css — Pages micro-niches SEO (niches/{}/index.html)
   Tokens et anti-patterns : voir albexia-design skill.
   ═══════════════════════════════════════════════════════ */

/* ── Hero ── */
.niche-hero {
  position: relative;
  padding: 56px 32px 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.niche-hero-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 400px;
  pointer-events: none;
}

.niche-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.niche-hero h1 {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  position: relative;
}

.niche-hero p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  position: relative;
}

/* ── Section wrapper ── */
.niche-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 32px 8px;
}

.niche-section-title {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

/* ── Grille d'outils ── */
.niche-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.niche-tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, var(--radius-sm));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .2s;
}

.niche-tool-card:hover {
  border-color: var(--text);
}

.ntc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ntc-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, var(--radius-sm));
  object-fit: contain;
  background: var(--bg3);
}

.ntc-logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, var(--radius-sm));
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ntc-name {
  font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.ntc-cat {
  font-size: 11px;
  color: var(--text-dim);
}

.ntc-note {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent-amber);
  font-weight: 600;
  white-space: nowrap;
}

.ntc-cta {
  margin-top: auto;
  font-size: 12px;
  color: var(--accent2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Conseils ── */
.niche-conseils {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, var(--radius-sm));
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* ── FAQ ── */
.niche-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.niche-faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, var(--radius-sm));
  overflow: hidden;
}

.niche-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.niche-faq-arrow {
  color: var(--text-dim);
  font-size: 11px;
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.niche-faq-item.open .niche-faq-arrow {transform:rotate(180deg);}

.niche-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.niche-faq-item.open .niche-faq-answer {
  max-height: 400px;
  padding: 0 16px 16px;
}

/* ── Maillage interne : niches liées ── */
.niche-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.niche-related-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.niche-related-link:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ── CTA retour catalogue ── */
.niche-cta-wrap {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0 32px;
  text-align: center;
}

.niche-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: .04em;
}

.niche-back {
  display: block;
  max-width: 900px;
  margin: 32px auto 56px;
  padding: 0 32px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.niche-back:hover {color:var(--text);}

/* ─── RESPONSIVE (CORRIGÉ & SYNCHRONISÉ) ─── */
@media (max-width: 640px) {
  .niche-hero {
  padding: 48px 16px 36px;
}

  .niche-section {
  padding: 32px 16px 8px;
}

  .niche-faq-question {
  padding: 16px 18px;
  font-size: 0.9rem;
}

  .niche-conseils {
  padding: 18px 18px;
}

  .niche-tools-grid {
  grid-template-columns: 1fr;
}}
/* Bouton « Explorer tout le catalogue » : aucune teinte rose (survol, clic, focus, visité) */
.niche-cta-btn,
.niche-cta-btn:link,
.niche-cta-btn:visited,
.niche-cta-btn:focus,
.niche-cta-btn:active {
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s;
}
.niche-cta-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (hover: hover) {
  .niche-cta-btn:hover { background: var(--text); border-color: var(--text); color: var(--bg); opacity: .88; }
}
