/* ============================================================================
   seo_news.css : refonte sobriété éditoriale (2026-05-01)
   Veille SEO + IA : digest single-column + sidebar Reddit sticky.
   Tokens OKLCH alignés avec newsroom.css. WCAG AA, prefers-reduced-motion.
   ============================================================================ */

.sn {
  --sn-bg: oklch(0.99 0.003 80);
  --sn-surface: oklch(0.998 0.002 80);
  --sn-ground: oklch(0.97 0.006 80);
  --sn-border: oklch(0.88 0.010 80);
  --sn-rule: oklch(0.92 0.008 80);
  --sn-text: oklch(0.32 0.014 250);
  --sn-muted: oklch(0.48 0.012 250);
  --sn-soft: oklch(0.62 0.010 250);
  --sn-heading: oklch(0.18 0.018 250);
  --sn-accent: oklch(0.45 0.18 25);
  --sn-radius: 6px;

  position: relative;
  isolation: isolate;
  background: var(--sn-bg);
  color: var(--sn-text);
  min-height: 75vh;
  font-family: var(--font-sans-stack, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
}

.sn-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Hero : sobre, pas de gradient, pas de blur */
.sn-hero {
  margin-bottom: 44px;
  max-width: 720px;
}

.sn-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sn-accent);
}

.sn-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--sn-heading);
  font-weight: 700;
}

.sn-hero h1 em {
  font-style: normal;
  color: var(--sn-accent);
}

.sn-hero-kicker {
  margin: 0 0 22px;
  max-width: 60ch;
  color: var(--sn-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.sn-cadence {
  margin: 0;
  font-size: 13px;
  color: var(--sn-soft);
}

.sn-cadence strong {
  color: var(--sn-text);
  font-weight: 600;
}

/* Layout : digest + sidebar sticky */
.sn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 1100px) {
  .sn-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

/* Section heads */
.sn-section-head {
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sn-border);
}

.sn-section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sn-heading);
}

.sn-count {
  font-size: 12px;
  color: var(--sn-soft);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Press digest : pas de cards */
.sn-press {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sn-item {
  padding: 28px 0;
  border-top: 1px solid var(--sn-rule);
}

.sn-item:first-child {
  border-top: 0;
  padding-top: 22px;
}

.sn-item-meta {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sn-soft);
}

.sn-item-meta .sn-source {
  color: var(--sn-text);
}

.sn-item-meta .sep {
  margin: 0 8px;
  color: var(--sn-border);
}

.sn-item-title {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--sn-heading);
  max-width: 32ch;
}

.sn-item-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--sn-accent), var(--sn-accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 220ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease;
}

.sn-item-title a:hover,
.sn-item-title a:focus-visible {
  color: var(--sn-accent);
  background-size: 100% 1px;
}

.sn-item-summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sn-muted);
  max-width: 65ch;
}

.sn-empty {
  padding: 48px 0;
  font-style: italic;
  color: var(--sn-muted);
  text-align: center;
}

/* Community sidebar : warm-grey ground, sticky desktop */
.sn-aside {
  position: sticky;
  top: 24px;
  background: var(--sn-ground);
  border: 1px solid var(--sn-border);
  border-radius: var(--sn-radius);
  padding: 22px 22px 26px;
}

@media (max-width: 1100px) {
  .sn-aside {
    position: static;
  }
}

.sn-aside .sn-section-head {
  border-bottom-color: var(--sn-border);
  padding-bottom: 12px;
}

.sn-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sn-thread {
  padding: 18px 0;
  border-top: 1px solid var(--sn-border);
}

.sn-thread:first-child {
  border-top: 0;
  padding-top: 16px;
}

.sn-thread-meta {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sn-soft);
}

.sn-thread-meta .sn-sub {
  color: var(--sn-text);
}

.sn-thread-title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--sn-heading);
}

.sn-thread-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.sn-thread-title a:hover,
.sn-thread-title a:focus-visible {
  color: var(--sn-accent);
  border-bottom-color: var(--sn-accent);
}

.sn-thread-summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sn-muted);
}

.sn-thread-points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.sn-thread-points li {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sn-muted);
  padding: 5px 0 5px 16px;
  position: relative;
}

.sn-thread-points li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--sn-soft);
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-sans-stack, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
}

.sn-loading,
.sn-aside-empty {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--sn-muted);
  font-style: italic;
}

/* Footer signature */
.sn-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--sn-border);
  font-size: 13px;
  color: var(--sn-soft);
  text-align: center;
}

/* Focus visible custom */
.sn a:focus-visible,
.sn button:focus-visible {
  outline: 2px solid var(--sn-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .sn *,
  .sn *::before,
  .sn *::after {
    transition: none !important;
    animation: none !important;
  }
}
