/* ============================================================
 * Bonjour la toile — feuille de style publique
 * S'appuie sur tokens.css (variables couleurs + typo du design system).
 * ============================================================ */

@import url("/assets/tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans, system-ui, sans-serif);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }

button { font-family: inherit; }

.container { width: min(1240px, 94vw); margin-inline: auto; }
.container-narrow { width: min(800px, 94vw); margin-inline: auto; }

.tracking-caps {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
}

/* ---------------- Header sticky (style design system) ---------------- */
.siteHeader {
  position: sticky; top: 0; z-index: 50;
  background: oklch(98.5% 0.006 305 / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.siteHeader .hdr {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 0;
}
.siteHeader .brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  flex: none;
}
.siteHeader .brand em { font-style: italic; color: var(--brand); }
.hdrNav { display: flex; gap: 2px; flex: none; }
.hdrNav a {
  color: var(--fg-2); font: 500 14px var(--font-sans);
  padding: 6px 12px; border-radius: 8px;
  text-decoration: none;
}
.hdrNav a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.hdrNav a.is-active { color: var(--brand); }
.hdrNav a.modLink { color: var(--brand); font-weight: 600; }

.hdrSearch {
  flex: 1; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 6px 12px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.hdrSearch:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(50% 0.175 305 / 0.12);
}
.hdrSearch svg { color: var(--fg-3); flex: none; }
.hdrSearch input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 400 14px var(--font-sans); color: var(--fg); padding: 4px 0;
  min-width: 0;
}
.hdrSearch input::placeholder { color: var(--fg-3); }
.kbd {
  font: 500 10px var(--font-mono); color: var(--fg-3);
  border: 1px solid var(--border); padding: 1px 6px;
  border-radius: 4px; background: var(--surface-2);
}

.hdrRight { display: flex; align-items: center; gap: 10px; flex: none; }
.soumettreBtn { white-space: nowrap; }

@media (max-width: 1080px) {
  .hdrSearch { max-width: 320px; }
}
@media (max-width: 960px) {
  .hdrNav a { padding: 6px 8px; font-size: 13px; }
  .siteHeader .hdr { gap: 14px; }
}
@media (max-width: 820px) {
  .hdrSearch { display: none; }
}
@media (max-width: 760px) {
  .hdrNav { display: none; }
  .siteHeader .hdr { gap: 10px; padding: 10px 0; }
  .siteHeader .brand { font-size: 18px; }
  .hdrRight { gap: 6px; }
}
@media (max-width: 540px) {
  .soumettreBtn { font-size: 0; padding: 6px 10px; }
  .soumettreBtn::before { content: "+"; font-size: 18px; font-weight: 700; line-height: 1; }
  .avatarPop { width: min(280px, calc(100vw - 24px)); }
}

/* ---------------- Avatar menu (dropdown) ---------------- */
.avatarMenu { position: relative; }
.avatarBtn {
  background: transparent; border: 0; cursor: pointer;
  padding: 0; line-height: 0; border-radius: 50%;
  transition: transform 120ms ease;
}
.avatarBtn:hover { transform: scale(1.05); }
.avatarPill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font: 600 12px var(--font-sans);
  letter-spacing: 0.02em;
}
.avatarPop {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 240px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 32px oklch(40% 0.15 305 / 0.18);
  opacity: 0; transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 80;
}
.avatarMenu.is-open .avatarPop {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.avatarHead { padding: 10px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.avatarHeadName { font: 600 13.5px var(--font-sans); color: var(--fg); }
.avatarHeadEmail { font: 400 11px var(--font-mono); color: var(--fg-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatarItem {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font: 500 14px var(--font-sans); color: var(--fg);
  text-decoration: none;
}
.avatarItem:hover { background: var(--surface-2); text-decoration: none; }
.avatarItem.danger { color: oklch(45% 0.16 28); }
.avatarItem.danger:hover { background: oklch(96% 0.04 28); }
.avatarItem span { width: 18px; display: inline-flex; justify-content: center; color: var(--fg-3); }
.avatarSep { height: 1px; background: var(--border); margin: 4px 0; }
.avatarItemPremium {
  background: linear-gradient(135deg, oklch(94% 0.09 75), oklch(96% 0.05 145));
  color: oklch(32% 0.13 65);
  border: 1px solid oklch(86% 0.10 75);
  padding: 10px 12px;
  margin: 2px 0;
}
.avatarItemPremium:hover { background: linear-gradient(135deg, oklch(91% 0.12 75), oklch(94% 0.07 145)); }
.avatarItemPremium i[data-lucide] { color: oklch(48% 0.16 60); }
.avatarItemPremium small { color: oklch(40% 0.10 60); }

/* ---------------- Bell notifications ---------------- */
.bellWidget { position: relative; }
.bellBtn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--surface); color: var(--fg-2);
  cursor: pointer; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.bellBtn:hover { background: rgba(216,180,254,.18); color: var(--brand); }
.bellWidget.is-open .bellBtn { background: rgba(216,180,254,.22); color: var(--brand); }
.bellBadge {
  position: absolute; top: 0; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font: 700 10px var(--font-mono);
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.bellPop {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 380px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.06);
  opacity: 0; transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 80;
}
.bellWidget.is-open .bellPop {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}

/* En-tête style picker des favoris */
.bellHead {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.bellHead::before {
  content: ""; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(216,180,254,.22); color: var(--brand);
  display: inline-block; flex: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/><path d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/></svg>");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}
.bellHeadTitle { font: 600 14px var(--font-sans); color: var(--fg); flex: 1; }
.bellHeadCount {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font: 700 10.5px var(--font-mono); letter-spacing: .04em; margin-left: 4px;
}
.bellHeadCount:empty { display: none; }
.bellHeadClear {
  background: transparent; border: 0; cursor: pointer;
  color: var(--fg-3); font: 500 12px var(--font-sans);
  padding: 6px 10px; border-radius: 7px;
  transition: background .12s, color .12s;
}
.bellHeadClear:hover { background: var(--surface); color: var(--brand); }

.bellList { max-height: 60vh; overflow-y: auto; padding: 6px; }
.bellList:empty::before {
  content: "Aucune notification.";
  display: block; padding: 24px 14px; text-align: center;
  color: var(--fg-3); font: 400 13px var(--font-sans); font-style: italic;
}

.bellFoot {
  background: var(--surface);
  padding: 10px 14px; text-align: center;
  border-top: 1px solid var(--border-soft);
}
.bellFoot a {
  color: var(--brand); font: 500 13px var(--font-sans); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.bellFoot a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Une ligne de notif */
.bellRow {
  --bell-color: var(--brand);
  --bell-soft: rgba(216,180,254,.18);
  position: relative;
  border-radius: 10px;
  margin-bottom: 2px;
  transition: background .12s;
}
.bellRow:last-child { margin-bottom: 0; }
.bellRow:hover { background: var(--surface); }
.bellRow.is-unread { background: var(--bell-soft); }
.bellRow.is-unread::before {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--bell-color);
}

.bellRowLink {
  display: grid; grid-template-columns: 36px 1fr 14px;
  gap: 11px; padding: 12px 12px;
  text-decoration: none; color: var(--fg);
  align-items: center;
}
.bellRowLink:hover { text-decoration: none; }
.bellRowChev {
  font: 400 18px var(--font-sans); color: var(--fg-3);
  line-height: 1; align-self: center; justify-self: end;
  transition: color .12s, transform .12s;
}
.bellRow:hover .bellRowChev { color: var(--bell-color); transform: translateX(2px); }
.bellRowAction { color: var(--bell-color); font-weight: 500; }

.bellRowIcon {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bell-soft); color: var(--bell-color);
}
.bellRowIcon svg, .bellRowIcon i[data-lucide] { width: 16px; height: 16px; }
.bellRowIcon-success { --bell-color: #3a7a5b; --bell-soft: rgba(143,199,171,.22); }
.bellRowIcon-info    { --bell-color: #4080d0; --bell-soft: rgba(64,128,208,.15); }
.bellRowIcon-brand   { --bell-color: var(--brand); --bell-soft: rgba(216,180,254,.18); }
.bellRowIcon-warning { --bell-color: #b08200; --bell-soft: rgba(255,212,128,.22); }
.bellRowIcon-danger  { --bell-color: #c24a4a; --bell-soft: rgba(240,180,180,.22); }
.bellRowIcon-neutral { --bell-color: #6b7c8a; --bell-soft: #eef2f5; }

.bellRowBody { min-width: 0; }
.bellRowTitle { font: 500 13.5px var(--font-sans); line-height: 1.35; color: var(--fg); letter-spacing: -.005em; }
.bellRowSub { font: 400 12.5px var(--font-sans); color: var(--fg-2); line-height: 1.45; margin-top: 3px; }
.bellRowWhen { font: 400 12px var(--font-sans); color: var(--fg-3); margin-top: 6px; }
.bellRowWhen .bellRowAction { color: var(--bell-color); font-weight: 500; }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 16px; border-radius: 10px;
  font: 500 14px var(--font-sans); cursor: pointer;
  border: 0; transition: background 150ms ease, transform 100ms ease;
}
.btn-primary { background: var(--brand); color: var(--fg-on-brand); }
.btn-primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--fg-2); padding: 8px 12px; }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead {
  font-size: 18px; color: var(--fg-2);
  max-width: 580px; margin: 0 auto;
}
.hero .stats {
  margin-top: 22px;
  color: var(--fg-3); font-size: 14px;
}

/* Hero accueil — version design system */
.heroPill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-soft-fg);
  font: 500 12px var(--font-sans);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 22px;
}
.heroTitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.heroTitle em { font-style: italic; color: var(--brand); }
.heroLead {
  margin: 18px auto 28px;
  max-width: 580px;
  font-size: 18px; line-height: 1.55;
  color: var(--fg-2);
}
.heroLead em { font-style: italic; color: var(--brand); font-weight: 500; }

/* Section titles (eyebrow + titre serif) */
.eyebrow {
  display: block;
  font: 600 11px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.sectionTitle {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(22px, 4vw, 32px); line-height: 1.1;
  letter-spacing: -0.015em;
}
.sectionTitle em { font-style: italic; color: var(--brand); }

/* CTA banner mauve */
.ctaBanner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(216,180,254,.18) 0%, rgba(255,182,193,.10) 60%, transparent 100%);
  border: 1px solid rgba(216,180,254,.25);
  color: var(--fg);
  border-radius: 18px; padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.ctaBanner::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(216,180,254,.28), transparent 70%);
  pointer-events: none;
}
.ctaBanner > * { position: relative; z-index: 1; }
.ctaBanner h2 {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 4.5vw, 32px); line-height: 1.1; letter-spacing: -0.015em; color: var(--fg);
}
@media (max-width: 540px) {
  .ctaBanner { padding: 24px 20px; gap: 16px; }
  .ctaBannerBtn { width: 100%; justify-content: center; }
  .heroLead { font-size: 16px; margin: 14px auto 22px; }
  .heroPill { margin-bottom: 16px; }
  .bigSearch { padding: 4px 4px 4px 16px; }
  .bigSearch input { font-size: 15px; }
  .bigSearch button { padding: 9px 16px; font-size: 13px; }
}
.ctaBanner h2 em { font-style: italic; color: var(--brand); }
.ctaBanner p { margin: 10px 0 0; color: var(--fg-2); line-height: 1.55; font-size: 15px; }
.ctaBannerBtn {
  background: var(--brand); color: #fff;
  font: 500 14.5px var(--font-sans);
  padding: 12px 22px; border-radius: 10px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: filter .12s, transform .12s;
}
.ctaBannerBtn:hover { filter: brightness(.92); text-decoration: none; }
.ctaBannerBtn:active { transform: translateY(1px); }

/* ---------------- Big Search ---------------- */
.bigSearch {
  display: flex; align-items: center; gap: 0;
  max-width: 620px; margin: 28px auto 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(60, 30, 80, 0.06));
}
.bigSearch input {
  flex: 1; min-width: 0; border: 0; outline: none;
  background: transparent; font: 400 16px var(--font-sans);
  color: var(--fg); padding: 10px 0;
}
.bigSearch input::placeholder { color: var(--fg-3); }
.bigSearch button { flex: none; background: var(--brand); color: #fff; border: 0; padding: 10px 22px; border-radius: 999px; font: 500 14px var(--font-sans); cursor: pointer; }
.bigSearch button:hover { background: var(--brand-hover); }

/* ---------------- Section titles ---------------- */
.section { padding: 36px 0; }
.section-title {
  margin: 0 0 18px;
}
.section-title .eyebrow {
  display: block;
  font: 600 11px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.section-title h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 32px; margin: 0; letter-spacing: -0.01em;
}

/* ---------------- Niche grid ---------------- */
.nicheGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .nicheGrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .nicheGrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .nicheGrid { grid-template-columns: repeat(2, 1fr); } }

.nicheTile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--fg);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.nicheTile:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px oklch(50% 0.175 305 / 0.08);
  text-decoration: none;
}
.nicheTile .nicheIcon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  background: var(--brand);
}
.nicheTile .label { font-weight: 600; font-size: 14px; }
.nicheTile .count { font-size: 12px; color: var(--fg-3); }

/* Couleurs par niche : on adresse via [data-niche="slug"] sur le tile.
   La couleur effective vient des variables --n-{slug} dans tokens.css. */
.nicheTile[data-niche] .nicheIcon { background: var(--n-color, var(--brand)); }

/* ---------------- Niche chip (pastille) ---------------- */
.nicheChip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font: 600 12px var(--font-sans);
  color: var(--n-fg, var(--brand-soft-fg));
  background: var(--n-soft, var(--brand-soft));
  text-transform: none;
  letter-spacing: 0;
}
.nicheChip:hover { text-decoration: none; filter: brightness(0.97); }
.nicheChip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--n-color, var(--brand)); }

/* ---------------- Site cards (grille de fiches) ---------------- */
.siteGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) { .siteGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .siteGrid { grid-template-columns: minmax(0, 1fr); } }

.siteCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.siteCard:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px oklch(50% 0.175 305 / 0.08);
  text-decoration: none;
}
.siteCard .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.siteCard .titleRow { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.siteCard .favicon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--n-soft, var(--surface-2));
  color: var(--n-fg, var(--brand-soft-fg));
  font: 600 16px var(--font-sans);
  flex: none;
}
.siteCard h3 {
  font: 600 16px var(--font-sans);
  margin: 0; color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.siteCard .host {
  font: 400 12px var(--font-mono);
  color: var(--fg-3);
  margin-top: 2px;
  min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.siteCard .desc {
  color: var(--fg-2); font-size: 14px; line-height: 1.55;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.siteCard .meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: auto;
}
.siteCard .meta .badge {
  font: 600 10px var(--font-sans); letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-soft-fg);
}
.siteCard .meta .badge.staff { background: oklch(94% 0.05 80); color: oklch(45% 0.12 70); }
.siteCard .meta .badge.premium { background: oklch(94% 0.06 145); color: oklch(35% 0.12 145); }
.siteCard .meta .badge.lang { background: oklch(94% 0.04 245); color: oklch(38% 0.14 245); }

/* Favorite button (cœur) */
.favBtn {
  width: 34px; height: 34px;
  border-radius: 50%; border: 0;
  background: transparent;
  color: var(--fg-3);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 150ms ease, transform 150ms cubic-bezier(.34, 1.56, .64, 1);
  flex: none;
}
.favBtn:hover { color: var(--brand); }
.favBtn.is-active { color: var(--brand); transform: scale(1.08); }

/* Carnet picker popover (clic sur ♥) */
.carnetPicker {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.06);
  width: 320px;
  z-index: 200;
  overflow: hidden;
  animation: cpFadeIn .14s ease-out;
}
@keyframes cpFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.carnetPickerHead {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.carnetPickerHead .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-soft, rgba(216, 180, 254, .25)); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.carnetPickerHead .ico svg { width: 15px; height: 15px; fill: currentColor; }
.carnetPickerHead .titleBlock { flex: 1; min-width: 0; }
.carnetPickerHead .title { font: 600 14px var(--font-sans); color: var(--fg); line-height: 1.2; }
.carnetPickerHead .subtitle { font: 400 11.5px var(--font-mono); color: var(--fg-3); margin-top: 2px; letter-spacing: .02em; }
.carnetPickerHead .closeBtn {
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent;
  color: var(--fg-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-size: 26px; line-height: 1; padding: 0; font-weight: 300;
}
.carnetPickerHead .closeBtn:hover { background: var(--surface); color: var(--fg); }

.carnetPickerList {
  max-height: 280px; overflow-y: auto; padding: 6px;
}
.carnetPickerList .empty {
  padding: 18px 12px; font-size: 13px; color: var(--fg-3); text-align: center; font-style: italic;
}
.carnetPickerOpt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: background .12s;
}
.carnetPickerOpt:hover { background: var(--surface); }
.carnetPickerOpt .dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--cp-color, var(--brand));
  box-shadow: 0 0 0 3px var(--cp-soft, var(--brand-soft, rgba(216, 180, 254, .2)));
}
.carnetPickerOpt .name { flex: 1; font: 500 14px var(--font-sans); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carnetPickerOpt .vis {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-3); flex: none;
}
.carnetPickerOpt .vis svg { width: 12px; height: 12px; }
.carnetPickerOpt .count { font: 500 11.5px var(--font-mono); color: var(--fg-3); flex: none; }
.carnetPickerOpt .check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex: none; display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, transform .2s;
  background: #fff;
}
.carnetPickerOpt:hover .check { border-color: var(--fg-2); }
.carnetPickerOpt .check.on {
  background: var(--brand); border-color: var(--brand); transform: scale(1.05);
}
.carnetPickerOpt .check.on::after {
  content: ""; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0px, -1px);
}
.carnetPickerOpt.just-added {
  background: var(--brand-soft, rgba(216, 180, 254, .15));
}

.carnetPickerFooter {
  border-top: 1px solid var(--border-soft); padding: 8px;
}
.carnetPickerNew {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font: 500 13.5px var(--font-sans); color: var(--fg-2);
  transition: background .12s, color .12s;
}
.carnetPickerNew:hover { background: var(--surface); color: var(--fg); }
.carnetPickerNew .plus {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px dashed var(--border-strong); color: var(--fg-3);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; font-size: 14px; line-height: 1; font-weight: 400;
}
.carnetPickerNew:hover .plus { border-color: var(--fg-2); color: var(--fg-2); }

.carnetPickerCreateForm {
  padding: 4px 6px 10px;
  display: none;
}
.carnetPickerCreateForm.open { display: block; animation: cpFadeIn .14s ease-out; }
.carnetPickerCreateForm .row { display: flex; gap: 6px; }
.carnetPickerCreateForm input[type=text] {
  flex: 1; border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 8px 11px; font: 400 13.5px var(--font-sans); background: #fff; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.carnetPickerCreateForm input[type=text]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(216, 180, 254, .25); }
.carnetPickerCreateForm .createBtn {
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 0 14px; font: 500 13px var(--font-sans); cursor: pointer; height: 34px;
}
.carnetPickerCreateForm .createBtn:hover { filter: brightness(.95); }
.carnetPickerCreateForm .createBtn:disabled { opacity: .5; cursor: wait; }
.carnetPickerCreateForm .visSegments {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 4px;
}
.carnetPickerCreateForm .visSegment {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 10px; border-radius: 7px;
  font: 500 13px var(--font-sans); color: var(--fg-3);
  cursor: pointer; user-select: none;
  transition: color .15s, background .15s, box-shadow .15s;
}
.carnetPickerCreateForm .visSegment input { position: absolute; opacity: 0; pointer-events: none; }
.carnetPickerCreateForm .visSegment svg { width: 13px; height: 13px; flex: none; }
.carnetPickerCreateForm .visSegment:hover { color: var(--fg-2); }
.carnetPickerCreateForm .visSegment:has(input:checked) {
  background: rgba(216,180,254,.22); color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(216,180,254,.55);
}

/* ---------------- Page index univers (groupée par thème) ---------------- */
.universesStats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 14px 0 8px;
}
@media (max-width: 720px) { .universesStats { grid-template-columns: 1fr; } }
.universesStat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.universesStat.highlight { background: var(--brand-soft); border-color: transparent; }
.universesStat .lbl { font: 600 11px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.universesStat.highlight .lbl { color: var(--brand-soft-fg); }
.universesStat .val { font-family: var(--font-display); font-size: 26px; }
.universesStat.highlight .val { color: var(--brand); }

.universesGroupGrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 960px) { .universesGroupGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .universesGroupGrid { grid-template-columns: 1fr; } }

.universRow {
  background: var(--n-soft, var(--surface-2));
  border-radius: 12px; padding: 14px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: flex-start;
  transition: transform .12s ease;
}
.universRow:hover { transform: translateY(-1px); }
.universRowLink { display: contents; color: inherit; text-decoration: none; }
.universRowIcon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--n-color, var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.universRowTitle { margin: 0; font: 600 14px var(--font-sans); color: var(--n-fg, var(--fg)); }
.universRowMeta { font: 500 11px var(--font-mono); color: var(--n-fg, var(--fg-3)); opacity: 0.7; margin-top: 2px; }
.universRowDesc { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--n-fg, var(--fg-2)); opacity: 0.92; }
.universRowFollow {
  width: 28px; height: 28px; border-radius: 999px;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 14px var(--font-sans);
  background: var(--surface); color: var(--n-color, var(--brand));
  box-shadow: inset 0 0 0 1.5px var(--n-color, var(--brand));
  transition: background .12s ease, color .12s ease;
}
.universRowFollow.is-on { background: var(--n-color, var(--brand)); color: #fff; box-shadow: none; }

/* ---------------- Bannière curateur ---------------- */
.curatorBanner {
  background: linear-gradient(180deg, var(--n-soft, var(--brand-soft)) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 26px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
}
.curatorAvatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--n-color, var(--brand)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 22px var(--font-sans);
}
.curatorEyebrow { font: 600 11px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--n-fg, var(--brand-soft-fg)); }
.curatorName {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 36px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 4px 0 4px;
}
.curatorMeta { display: flex; gap: 14px; font-size: 12.5px; color: var(--fg-2); flex-wrap: wrap; }
.curatorFollow {
  background: var(--brand); color: #fff; border: 0;
  padding: 8px 16px; border-radius: 999px;
  font: 500 13px var(--font-sans); cursor: pointer;
}
.curatorFollow.is-on { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.curatorFollowSub { font: 500 11px var(--font-mono); color: var(--fg-3); margin-top: 4px; }

/* ---------------- Top sites incontournables (sur page univers) ---------------- */
.topSitesGrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px;
}
@media (max-width: 760px) { .topSitesGrid { grid-template-columns: minmax(0, 1fr); } }
.topSiteCard {
  background: var(--n-soft, var(--surface-2)); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; text-decoration: none; color: inherit;
  transition: transform .12s ease;
}
.topSiteCard:hover { transform: translateY(-1px); text-decoration: none; }
.topSiteRank {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--font-display); font-size: 20px; line-height: 1;
  color: var(--n-fg, var(--fg-2)); opacity: 0.5;
}
.topSiteFav {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); color: var(--n-fg, var(--brand));
  display: flex; align-items: center; justify-content: center;
  font: 600 16px var(--font-display);
}
.topSiteCard h3 { margin: 0; font: 600 14px var(--font-sans); color: var(--n-fg, var(--fg)); }
.topSiteCard p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--n-fg, var(--fg-2)); opacity: 0.92; }
.topSiteMeta {
  display: flex; align-items: center; justify-content: space-between;
  font: 500 10px var(--font-mono); color: var(--n-fg, var(--fg-3)); opacity: 0.7;
}
.topSiteMeta .star { text-transform: uppercase; font-weight: 700; }

/* ---------------- FAQ accordéon ---------------- */
.faqList { display: flex; flex-direction: column; gap: 8px; }
.faqItem { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.faqItem summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font: 600 15px var(--font-sans); color: var(--fg); list-style: none; }
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem .faqPlus {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--surface-2); color: var(--fg-2);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font: 500 16px var(--font-sans);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.faqItem[open] .faqPlus { transform: rotate(45deg); background: var(--brand-soft); color: var(--brand); }
.faqItem p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }

/* ---------------- Search advanced filters ---------------- */
.searchFilterPanel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.searchFilterGroup { padding: 14px 0; border-bottom: 1px solid var(--border); }
.searchFilterGroup:first-of-type { padding-top: 0; }
.searchFilterGroup:last-child { border-bottom: 0; padding-bottom: 0; }
.searchFilterLabel {
  font: 600 12px var(--font-sans); color: var(--fg);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.searchFilterCount {
  font: 500 10px var(--font-mono); color: var(--brand);
  padding: 1px 6px; border-radius: 999px; background: var(--brand-soft);
}
.searchToggle {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 0; cursor: pointer;
  font: 500 13px var(--font-sans); color: var(--fg);
}
.searchToggle input { accent-color: var(--brand); }

/* ---------------- Password strength ---------------- */
.pwStrength { display: flex; gap: 3px; margin-top: 8px; }
.pwStrength span {
  flex: 1; height: 4px; border-radius: 999px;
  background: var(--surface-3, var(--mauve-200));
  transition: background .15s ease;
}
.pwStrength span.on1 { background: oklch(60% 0.20 28); }
.pwStrength span.on2 { background: oklch(65% 0.18 70); }
.pwStrength span.on3 { background: oklch(60% 0.16 145); }
.pwStrength span.on4 { background: oklch(55% 0.18 145); }
.pwChecks {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px; font-size: 11.5px;
}
.pwCheck { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-3); }
.pwCheck.ok { color: oklch(45% 0.16 145); }
.pwCheck::before { content: "○"; }
.pwCheck.ok::before { content: "✓"; }

/* ---------------- Page Mes favoris ---------------- */
.newCarnetWrap { position: relative; }
.newCarnetWrap > summary { cursor: pointer; list-style: none; }
.newCarnetWrap > summary::-webkit-details-marker { display: none; }
.newCarnetForm {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 14px 36px oklch(40% 0.15 305 / 0.16);
  z-index: 90;
  display: flex; flex-direction: column; gap: 6px;
}
.newCarnetForm label { font: 500 12px var(--font-sans); color: var(--fg-2); margin-top: 8px; }
.newCarnetForm input[type="text"] {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px;
  font: 400 14px var(--font-sans); background: var(--surface);
}
.newCarnetColors { display: flex; gap: 6px; margin-top: 4px; }
.newCarnetColor input { display: none; }
.newCarnetColor span {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-block; cursor: pointer;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .12s ease;
}
.newCarnetColor input:checked + span { outline-color: var(--brand); }

.carnetCardGrid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 720px) { .carnetCardGrid { grid-template-columns: 1fr; } }

.carnetCard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.carnetCard:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px oklch(50% 0.175 305 / 0.06);
}
.carnetCardHead { display: flex; align-items: center; gap: 10px; }
.carnetCardIcon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex: none;
}
.carnetCardName {
  flex: 1; min-width: 0;
  font: 600 16px var(--font-sans); color: var(--fg);
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.carnetCardName:hover { color: var(--brand); }
.carnetCardBadge {
  font: 600 10px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  flex: none;
}
.carnetCardBadge.public { background: oklch(94% 0.05 145); color: oklch(38% 0.14 145); }
.carnetCardBadge.private { background: var(--surface-2); color: var(--fg-3); }
.carnetCardBadge.subscribed { background: var(--brand-soft); color: var(--brand-soft-fg); }

.carnetCardDesc { margin: 0; font: 400 13.5px var(--font-sans); line-height: 1.5; color: var(--fg-2); }
.carnetCardFoot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px;
}
.carnetCardStats {
  display: flex; gap: 8px;
  font: 500 11.5px var(--font-mono); color: var(--fg-3);
  align-items: center;
}
.carnetCardActions { display: flex; gap: 4px; align-items: center; }
.carnetCardDanger { color: oklch(45% 0.16 28) !important; padding: 4px 10px !important; }
.carnetCardDanger:hover { background: oklch(96% 0.04 28) !important; }

/* ---------------- Banner univers redesign (avec follow + stats) ---------------- */
.nicheBannerHero {
  background: linear-gradient(180deg, var(--n-soft, var(--brand-soft)) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 24px 28px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
@media (max-width: 540px) {
  .nicheBannerHero { padding: 20px 18px; gap: 14px; }
  .nicheHeroFollow { width: 100%; justify-content: center; }
}
.nicheHeroIcon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--n-color, var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.nicheHeroBody { flex: 1; min-width: 0; }
.nicheHeroEyebrow {
  display: block; font: 600 11px var(--font-sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--n-fg, var(--brand-soft-fg));
}
.nicheHeroTitle {
  margin: 4px 0 6px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 38px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--fg);
}
.nicheHeroIntro { margin: 0; color: var(--fg-2); font-size: 14.5px; max-width: 620px; }
.nicheHeroFollow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--n-color, var(--brand)); color: #fff;
  font: 500 13.5px var(--font-sans);
  border: 0; cursor: pointer; flex: none;
  transition: filter .12s ease, transform .1s ease;
}
.nicheHeroFollow:hover { filter: brightness(1.05); }
.nicheHeroFollow:active { transform: scale(0.98); }
.nicheHeroFollow.is-on {
  background: var(--surface); color: var(--n-color, var(--brand));
  box-shadow: inset 0 0 0 1.5px var(--n-color, var(--brand));
}

.nicheStatsGrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 14px 0 24px;
}
@media (max-width: 720px) { .nicheStatsGrid { grid-template-columns: repeat(2, 1fr); } }
.nicheStat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
}
.nicheStat .lbl { font: 600 10px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.nicheStat .val { margin-top: 5px; font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.nicheStat .val.success { color: oklch(45% 0.14 145); }

/* ---------------- Banner niche (ancienne) ---------------- */
.nicheBanner {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.nicheBanner .crumbs {
  font: 400 13px var(--font-sans);
  color: var(--fg-3);
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 8px;
}
.nicheBanner .crumbs a { color: var(--fg-3); }
.nicheBanner h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.nicheBanner .intro { font-size: 17px; color: var(--fg-2); max-width: 640px; margin: 0; }
.nicheBanner .countTag {
  display: inline-block; margin-top: 12px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--n-soft, var(--brand-soft));
  color: var(--n-fg, var(--brand-soft-fg));
  font: 600 12px var(--font-sans);
}

/* ---------------- Page niche : layout sidebar + content ---------------- */
.nichePage { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-bottom: 40px; }

.subcatPanel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 12px;
  position: sticky; top: 88px;
  max-height: calc(100vh - 110px); overflow: auto;
}
.subcatPanel h2 {
  margin: 0 0 8px; padding: 0 6px;
  font: 600 11px var(--font-sans); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-3);
}
.subcatPanel .item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  font-size: 13.5px; color: var(--fg-2); cursor: pointer;
}
.subcatPanel .item:hover { background: var(--n-soft, var(--surface-2)); text-decoration: none; color: var(--n-fg, var(--fg)); }
.subcatPanel .item.active { background: var(--n-soft, var(--brand-soft)); color: var(--n-fg, var(--brand-soft-fg)); font-weight: 600; }
.subcatPanel .item.active .count { color: var(--n-fg, var(--brand-soft-fg)); opacity: .75; }
.subcatPanel .item .count { margin-left: auto; font: 500 10.5px var(--font-mono); color: var(--fg-3); }
.subcatPanel h2 { color: var(--n-fg, var(--fg-3)); }

/* Responsive : placé APRÈS la définition de base pour que l'override l'emporte
   (même spécificité → l'ordre source décide). Sinon la sidebar reste sticky
   sur mobile et suit le défilement en masquant le contenu. */
@media (max-width: 920px) {
  .nichePage { grid-template-columns: 1fr; gap: 20px; }
  .subcatPanel { position: static; max-height: none; }
}

/* ---------------- Fiche site (layout éditorial, magazine) ---------------- */
.fiche {
  padding: 40px 0 80px;
}
.container-narrow { width: min(720px, 92vw); margin-inline: auto; }

/* Crumbs : discret, juste là pour la navigation */
.ficheCrumbs {
  font: 400 12.5px var(--font-sans);
  color: var(--fg-3);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-bottom: 32px;
}
.ficheCrumbs a { color: var(--fg-3); }
.ficheCrumbs a:hover { color: var(--fg-2); text-decoration: none; }
.ficheCrumbs span { opacity: 0.5; }

/* En-tête : kicker + grand titre serif + hôte + lead */
.ficheHead { margin-bottom: 36px; }
.ficheKicker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.ficheKickerNote {
  font: 500 11px var(--font-sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.ficheTitle {
  margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.ficheHost {
  display: inline-block;
  font: 400 14px var(--font-mono);
  color: var(--fg-3);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.ficheHost:hover { color: var(--n-color, var(--brand)); border-bottom-color: currentColor; text-decoration: none; }
.ficheLead {
  margin: 22px 0 0;
  font: 400 19px var(--font-sans); line-height: 1.55;
  color: var(--fg-2);
  font-style: italic;
}
.ficheHeadCta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Screenshot : juste une image, bord 1px, radius modeste */
.ficheShot {
  margin: 0 auto 40px;
}
.ficheShot a { display: block; }
.ficheShot img {
  width: 100%; height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  aspect-ratio: 16/10; object-fit: cover;
  background: var(--surface-2);
}

/* Prose : 720px de lecture, typographie soignée */
.ficheProse {
  margin: 0 auto 40px;
}
.ficheProse p {
  margin: 0 0 1.2em;
  font: 400 17px/1.7 var(--font-sans);
  color: var(--fg);
}
.ficheProse p:last-child { margin-bottom: 0; }
.ficheProse em { font-style: italic; }
.ficheProse strong { font-weight: 600; }

/* Première lettre de la prose en majuscule "drop cap" subtile */
.ficheProse p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 1.4em;
  font-weight: 400;
  color: var(--n-color, var(--brand));
  padding-right: 2px;
}

/* CTA : centré, comme un bouton en bas d'article */
.ficheCta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 40px auto;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.ficheCtaBtn {
  padding: 11px 22px !important; font-size: 14.5px !important;
  background: var(--n-color, var(--brand)) !important;
  border-radius: 999px !important;
  letter-spacing: 0.01em;
}
.ficheCtaBtn:hover { filter: brightness(1.08); }
/* Variante affiliée : même bouton coloré que la niche, mais on signale via
   un petit éclat (icon shopping-bag SVG ne change pas le markup) + disclosure
   en dessous. Cf. .ficheAffDisclosure. */
.ficheCtaBtn.is-affiliate { background: var(--n-color, var(--brand)) !important; }
.ficheAffDisclosure {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--fg-3);
  opacity: .75;
  letter-spacing: 0.01em;
}
.ficheCtaFav {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--fg-3);
  border: 1px solid var(--border-strong); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1);
  flex: none;
}
.ficheCtaFav:hover {
  color: var(--brand);
  border-color: currentColor;
  text-decoration: none;
}
.ficheCtaFav.is-active {
  color: var(--brand);
  border-color: currentColor;
  background: rgba(216,180,254,.18);
  transform: scale(1.05);
}
.ficheCtaFav svg { display: block; }
.ficheCtaFav.is-active svg { fill: currentColor; }
.ficheCtaFav.is-active svg path { fill: currentColor; }

/* Méta en fin d'article : fiche bibliographique sobre */
.ficheMeta {
  margin: 32px auto 0;
}
.ficheMeta dl {
  display: flex; gap: 36px; flex-wrap: wrap;
  justify-content: center;
  margin: 0; padding: 0;
}
.ficheMeta dl > div { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.ficheMeta dt {
  font: 500 11px var(--font-sans);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-3);
}
.ficheMeta dd {
  margin: 0;
  font: 500 14px var(--font-sans);
  color: var(--fg);
}
.ficheMeta dd a { color: var(--n-color, var(--brand)); }

/* Bio curateur : signature en fin d'article */
.ficheCurator {
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.ficheCurator .curatorCredit { display: flex; align-items: center; gap: 14px; }
.ficheCuratorBio { margin: 10px 0 0; font: 400 13.5px var(--font-sans); line-height: 1.55; color: var(--fg-2); font-style: italic; }

/* ---------------- Crédit curateur (composant unifié) ---------------- */
.curatorCredit {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.curatorCreditAvatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff;
  font-family: var(--font-sans); font-weight: 600;
  flex: none;
}
.curatorCreditText { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.curatorCreditLabel {
  font-family: var(--font-sans); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.3;
}
.curatorCreditName {
  font-family: var(--font-sans); font-weight: 600;
  color: var(--fg); text-decoration: none;
  line-height: 1.3;
}
a.curatorCreditName:hover { color: var(--n-color, var(--brand)); text-decoration: none; }

/* Variante mini : tient sur une ligne, en bas des site cards */
.curatorCredit--mini { gap: 6px; }
.curatorCredit--mini .curatorCreditName { font-weight: 500; color: var(--fg-2); }

.siteCardCurator {
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

/* Sites similaires : pleine largeur, 3 max */
.ficheRelated {
  margin: 64px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.ficheRelatedHead { margin-bottom: 18px; text-align: center; }
.ficheRelatedHead .eyebrow { display: block; }
.ficheRelatedHead h2 {
  margin: 4px 0 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.015em;
}
.ficheRelatedHead h2 em { font-style: italic; color: var(--brand); }

/* ---------------- Fiche site (ancienne version, conservée) ---------------- */
.ficheV2 { padding-bottom: 60px; }

.ficheV2Bandeau {
  background: linear-gradient(180deg, var(--n-soft, var(--brand-soft)) 0%, var(--bg) 100%);
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--border);
}
.ficheV2Bandeau .crumbs {
  font: 400 13px var(--font-sans); color: var(--n-fg, var(--fg-3));
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 0.85;
}
.ficheV2Bandeau .crumbs a { color: inherit; }
.ficheV2Bandeau .crumbs a:hover { color: var(--n-color, var(--brand)); text-decoration: none; }
.ficheV2Bandeau .crumbs .sep { opacity: 0.5; }

.ficheV2Head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 800px) {
  .ficheV2Head { grid-template-columns: auto 1fr; }
  .ficheV2Actions { grid-column: 1 / -1; min-width: 0; }
}
@media (max-width: 540px) {
  .ficheV2Letter { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; }
  .ficheV2Bandeau { padding: 22px 0 26px; }
  .ficheV2Stats { grid-template-columns: 1fr; }
}

.ficheV2Letter {
  width: 80px; height: 80px; border-radius: 18px;
  background: var(--n-color, var(--brand)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 38px var(--font-display);
  flex: none;
  box-shadow: 0 8px 24px oklch(50% 0.18 305 / 0.18);
}

.ficheV2HeadBody { min-width: 0; }
.ficheV2Badges {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.ficheV2Badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font: 600 11px var(--font-sans);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ficheV2Badge.staff { background: oklch(94% 0.06 85); color: oklch(40% 0.16 70); }
.ficheV2Badge.premium { background: oklch(94% 0.06 145); color: oklch(38% 0.16 145); }

.ficheV2Title {
  margin: 0 0 8px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--fg);
  word-wrap: break-word;
}
.ficheV2Host {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13.5px var(--font-mono);
  color: var(--n-fg, var(--fg-2));
  text-decoration: none;
  padding: 4px 0;
}
.ficheV2Host:hover { color: var(--n-color, var(--brand)); text-decoration: none; }
.ficheV2Host svg { opacity: 0.7; }
.ficheV2Lead {
  margin: 14px 0 0;
  font: 400 16px var(--font-sans); line-height: 1.55;
  color: var(--fg);
  max-width: 640px;
}

.ficheV2Actions {
  display: flex; flex-direction: column; gap: 10px;
  align-items: stretch;
  min-width: 200px;
}
.ficheV2Visit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px !important; font-size: 15px !important;
  background: var(--n-color, var(--brand)) !important;
  border-radius: 12px !important;
}
.ficheV2Visit:hover { filter: brightness(1.08); }
.ficheV2Fav {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface); color: var(--fg-2);
  border: 1px solid var(--border-strong); border-radius: 12px;
  font: 500 13px var(--font-sans); cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ficheV2Fav:hover { background: var(--surface-2); color: var(--n-color, var(--brand)); }
.ficheV2Fav.is-active { background: var(--n-soft, var(--brand-soft)); color: var(--n-color, var(--brand)); border-color: var(--n-color, var(--brand)); }

/* Screenshot */
.ficheV2ShotWrap { padding: 0; margin: -20px auto 0; max-width: 1100px; }
.ficheV2Shot {
  display: block; position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 14px 40px oklch(40% 0.18 305 / 0.14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ficheV2Shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px oklch(40% 0.18 305 / 0.20);
}
.ficheV2Shot img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.ficheV2ShotOverlay {
  position: absolute; bottom: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 10, 30, 0.78); color: #fff;
  font: 600 12px var(--font-sans);
  backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.ficheV2Shot:hover .ficheV2ShotOverlay { opacity: 1; transform: translateY(0); }

/* Corps : article + sidebar */
.ficheV2Body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  padding-top: 40px;
  align-items: start;
}
@media (max-width: 920px) {
  .ficheV2Body { grid-template-columns: 1fr; gap: 24px; }
}

.ficheV2Content {
  max-width: 720px;
}
.ficheV2Prose {
  font: 400 16px var(--font-sans); line-height: 1.75;
  color: var(--fg);
}
.ficheV2Prose p { margin: 0 0 18px; }
.ficheV2Prose p:last-child { margin-bottom: 0; }
.ficheV2Prose em { font-style: italic; color: var(--fg); }
.ficheV2Prose strong { font-weight: 600; color: var(--fg); }
.ficheV2NoSeo { color: var(--fg-3); font-style: italic; }

/* Sidebar */
.ficheV2Aside {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 920px) { .ficheV2Aside { position: static; } }

.ficheV2MetaCard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.ficheV2MetaCard h3 {
  margin: 0 0 12px; font: 600 11px var(--font-sans);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.ficheV2MetaCard dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; }
.ficheV2MetaCard dt { color: var(--fg-3); font-size: 12.5px; }
.ficheV2MetaCard dd { margin: 0; font: 500 13px var(--font-sans); color: var(--fg); }
.ficheV2MetaCard dd a { color: var(--n-color, var(--brand)); }

.ficheV2CuratorCard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.curatorAvatarMini {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px var(--font-sans); color: #fff;
  flex: none;
}
.curatorLabel { font: 500 11px var(--font-sans); color: var(--fg-3); }
.curatorName { font: 600 14px var(--font-sans); color: var(--fg); text-decoration: none; }
.curatorName:hover { color: var(--n-color, var(--brand)); text-decoration: none; }

.ficheV2Stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.ficheV2Stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-start;
}
.ficheV2Stat svg { color: var(--n-color, var(--brand)); }
.ficheV2Stat strong { font-family: var(--font-display); font-size: 22px; line-height: 1.1; color: var(--fg); }
.ficheV2Stat span { font: 500 11px var(--font-sans); color: var(--fg-3); }

.ficheV2VisitMobile { display: none; }
@media (max-width: 800px) {
  .ficheV2VisitMobile { display: inline-flex; }
}

.ficheV2Similar { margin-top: 56px; }

/* ---------------- Fiche site (ancienne version, conservée pour compat) ---------------- */
.fichePage { padding: 32px 0 60px; }
.ficheHero {
  display: flex; gap: 20px; align-items: flex-start;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.ficheHero .favicon-lg {
  width: 72px; height: 72px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--n-soft, var(--surface-2));
  color: var(--n-fg, var(--brand-soft-fg));
  font: 600 28px var(--font-sans); flex: none;
}
.ficheHero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0; letter-spacing: -0.01em;
}
.ficheHero .host {
  display: inline-block; margin-top: 4px;
  font: 400 13.5px var(--font-mono); color: var(--fg-3);
}
.ficheHero .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.ficheBody { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
@media (max-width: 920px) { .ficheBody { grid-template-columns: 1fr; } }
.ficheBody .meta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.ficheBody .meta dt { font: 600 11px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); margin-top: 10px; }
.ficheBody .meta dt:first-child { margin-top: 0; }
.ficheBody .meta dd { margin: 4px 0 0; font-size: 14px; color: var(--fg); }
.ficheBody .desc { font-size: 16px; color: var(--fg); line-height: 1.7; }

.screenshot {
  width: 100%; aspect-ratio: 16/10;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3); font: 400 13px var(--font-sans);
  margin-bottom: 18px; overflow: hidden;
}
.screenshot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Auth forms ---------------- */
.authShell { min-height: calc(100dvh - 200px); display: grid; place-items: center; padding: 40px 0; }
.authCard {
  width: min(440px, 94vw); background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 28px 22px;
}
.authCard h1 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin: 0 0 4px; letter-spacing: -0.01em; }
.authCard .sub { color: var(--fg-3); font-size: 14px; margin: 0 0 18px; }
.authCard label { display: block; font: 500 13px var(--font-sans); color: var(--fg-2); margin: 12px 0 6px; }
.authCard input[type=text], .authCard input[type=email], .authCard input[type=password] {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  font: 400 15px var(--font-sans); background: var(--surface); color: var(--fg);
  outline: none;
}
.authCard input:focus { outline: 2px solid var(--ring, var(--brand)); outline-offset: 2px; }
.authCard .submit { width: 100%; margin-top: 18px; padding: 11px; }
.authCard .switch { text-align: center; margin-top: 14px; font-size: 14px; color: var(--fg-3); }

/* ---------------- Notices ---------------- */
.notice {
  padding: 10px 14px; border-radius: 10px;
  font-size: 13.5px; margin: 12px 0;
}
.notice.error { background: oklch(94% 0.06 25); color: oklch(38% 0.14 28); border: 1px solid oklch(85% 0.08 25); }
.notice.ok    { background: oklch(94% 0.06 145); color: oklch(38% 0.14 145); border: 1px solid oklch(85% 0.08 145); }

/* ---------------- Empty state ---------------- */
.emptyState {
  text-align: center; padding: 60px 20px;
  color: var(--fg-3);
}
.emptyState .icon { font-size: 38px; margin-bottom: 12px; color: var(--brand); }
.emptyState h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--fg); margin: 0 0 6px; }
.emptyState p { margin: 0 auto; max-width: 480px; }

/* ---------------- Footer ---------------- */
.siteFooter {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 60px;
  color: var(--fg-3);
  font-size: 13.5px;
}
.siteFooter .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.siteFooter nav { display: flex; gap: 14px; }
.siteFooter nav a { color: var(--fg-2); }

/* --- Pagination ---------------------------------------------------------- */
.pager { display:flex; align-items:center; justify-content:center; gap:8px; margin:36px 0 8px; flex-wrap:wrap; }
.pager .pagerBtn,
.pager .pagerNum { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 12px; border-radius:10px; border:1px solid var(--border-soft); background:var(--surface); color:var(--fg-2); font:500 13.5px var(--font-sans); text-decoration:none; transition:background .15s, border-color .15s, color .15s; }
.pager .pagerBtn:hover,
.pager .pagerNum:hover { background:var(--bg); border-color:var(--border-strong); color:var(--fg); }
.pager .pagerNum.is-current { background:var(--pager-accent, var(--brand)); border-color:var(--pager-accent, var(--brand)); color:#fff; cursor:default; }
.pager .pagerBtn.is-disabled { opacity:.45; cursor:not-allowed; }
.pager .pagerNums { display:flex; align-items:center; gap:4px; list-style:none; margin:0; padding:0; }
.pager .pagerNums > li { display:inline-flex; }
.pager .pagerGap { color:var(--fg-3); padding:0 4px; align-self:center; }
.pager-admin .pagerBtn,
.pager-admin .pagerNum { height:30px; min-width:30px; padding:0 10px; font-size:13px; border-radius:6px; }
.pager-admin { margin:18px 0 4px; }

/* ============================================================
   Cartes Univers & Patrouilleurs (résultats de recherche)
   ============================================================ */
.nicheCard, .curatorCard {
  position:relative; display:flex; align-items:stretch; gap:14px;
  padding:18px; border-radius:14px; background:var(--surface);
  border:1px solid var(--border-soft); transition:border-color .15s, box-shadow .15s, transform .12s;
}
.nicheCard:hover, .curatorCard:hover {
  border-color: var(--n-color, var(--border-strong));
  box-shadow: 0 4px 14px oklch(50% 0.05 280 / 0.08);
}
.nicheCardLink, .curatorCardLink { display:flex; gap:14px; align-items:flex-start; flex:1; min-width:0; color:inherit; text-decoration:none; }
.nicheCardDot { width:14px; height:14px; border-radius:50%; background:var(--n-color); flex:none; margin-top:8px; box-shadow:0 0 0 4px var(--n-soft); }
.nicheCardBody, .curatorCardBody { flex:1; min-width:0; }
.nicheCardCrumbs { font:500 11.5px var(--font-mono); color:var(--fg-3); letter-spacing:0.02em; margin-bottom:4px; text-transform:uppercase; }
.nicheCardTitle { font:500 19px var(--font-sans); margin:0 0 6px; letter-spacing:-0.01em; line-height:1.25; }
.nicheCardBlurb { margin:0 0 10px; font-size:14px; line-height:1.5; color:var(--fg-2); font-style:italic; font-family:var(--font-display); }
.nicheCardMeta { display:flex; flex-wrap:wrap; gap:8px; font:500 11.5px var(--font-mono); }
.nicheCardCount { padding:2px 9px; border-radius:999px; background:var(--n-soft); color:var(--n-fg); letter-spacing:.02em; }
.nicheCardCount--ghost { background:transparent; color:var(--fg-3); border:1px solid var(--border-soft); }
.nicheCardFollow, .curatorCardFollow {
  background:transparent; border:1px solid var(--border-strong); border-radius:999px;
  height:30px; padding:0 14px; color:var(--fg-2); cursor:pointer; line-height:1; flex:none;
  font:500 12.5px var(--font-sans); align-self:center; transition:color .15s, background .15s, border-color .15s;
}
.nicheCardFollow.is-on, .curatorCardFollow.is-on { background:var(--n-soft); border-color:var(--n-soft); color:var(--n-fg); }
.nicheCardFollow:hover, .curatorCardFollow:hover { border-color:var(--fg); color:var(--fg); }

.curatorCardAvatar {
  width:56px; height:56px; border-radius:50%; flex:none;
  background:var(--n-color); color:#fff; font:600 18px var(--font-sans);
  display:inline-flex; align-items:center; justify-content:center; letter-spacing:0.02em;
}
.curatorCardName { font:500 19px var(--font-sans); margin:0 0 4px; letter-spacing:-0.01em; }
.curatorCardLocation { font:500 12px var(--font-mono); color:var(--fg-3); margin-bottom:6px; }
.curatorCardBio { margin:0 0 10px; font-size:14px; line-height:1.5; color:var(--fg-2); }
.curatorCardMeta { display:flex; flex-wrap:wrap; gap:14px; font:500 12px var(--font-mono); color:var(--fg-3); }

/* Highlight Meili : <mark> dans titles/snippets */
.nicheCardTitle mark, .nicheCardBlurb mark,
.curatorCardName mark, .curatorCardBio mark,
.siteCard h3 mark, .siteCard .desc mark {
  background: var(--n-soft, oklch(95% 0.05 80)); color: inherit;
  padding:0 2px; border-radius:3px; font-weight:600;
}

/* Onglets de recherche */
.searchTabs { display:flex; gap:4px; border-bottom:1px solid var(--border-soft); margin:18px 0 4px; flex-wrap:wrap; }
.searchTab {
  display:inline-flex; align-items:baseline; gap:8px;
  padding:10px 16px; border:0; background:transparent; cursor:pointer;
  color:var(--fg-3); text-decoration:none;
  font:500 14px var(--font-sans); border-bottom:2px solid transparent;
  margin-bottom:-1px; transition:color .15s, border-color .15s;
}
.searchTab:hover { color:var(--fg); }
.searchTab.is-active { color:var(--fg); border-bottom-color:var(--brand); }
.searchTabCount { font:500 11px var(--font-mono); color:var(--fg-3); padding:2px 7px; border-radius:999px; background:var(--surface-2); letter-spacing:.02em; }
.searchTab.is-active .searchTabCount { background:var(--brand); color:#fff; }

.resultsGrid { display:grid; gap:14px; }
