/* outils-ia.fr — Design System */
/* Clean, premium, no framework BS */

:root {
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --bg-muted: #f5f5f4;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-light: #fff7ed;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --red: #dc2626;
  --red-light: #fef2f2;
  --yellow: #d97706;
  --yellow-light: #fffbeb;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-muted: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: #3f3f46;
  --accent-light: #431407;
  --green-light: rgba(22,163,74,0.1);
  --red-light: rgba(220,38,38,0.1);
  --yellow-light: rgba(217,119,6,0.1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
}

::selection { background: var(--accent); color: white; }

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }

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

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,249,0.75);
  backdrop-filter: blur(20px);
  transition: background var(--transition);
}
[data-theme="dark"] .header { background: rgba(9,9,11,0.75); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 1.125rem;
  color: var(--text); letter-spacing: -0.02em;
  text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo-mark {
  display: flex; flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 4px 12px rgba(234,88,12,0.25));
}
.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.08);
}
.logo-text {
  font-weight: 800; font-size: 1.1875rem;
  letter-spacing: -0.03em;
  transition: letter-spacing 0.3s ease;
}
.logo:hover .logo-text { letter-spacing: -0.01em; }
.logo-accent {
  background: linear-gradient(135deg, #ea580c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-suffix {
  color: var(--text-muted); font-weight: 500;
  font-size: 0.875rem;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 0.75rem; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-muted); border-radius: 0.5rem;
  transition: all var(--transition);
}
.nav a:hover { color: var(--text); background: var(--bg-muted); }

.header-actions { display: flex; align-items: center; gap: 0.25rem; }
.header-btn {
  padding: 0.625rem; border-radius: 0.75rem; border: none; background: none;
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center;
}
.header-btn:hover { color: var(--text); background: var(--bg-muted); }
.header-btn svg { width: 18px; height: 18px; }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.card:hover {
  border-color: rgba(234,88,12,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-2px) scale(1.01);
}

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.3125rem 0.875rem; border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-accent { background: var(--accent-light); color: var(--accent); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8125rem 1.625rem; border-radius: 0.875rem;
  font-weight: 600; font-size: 0.9375rem;
  transition: all var(--transition); cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #ea580c, #dc2626); color: white;
  box-shadow: 0 2px 8px rgba(234,88,12,0.25);
}
.btn-primary:hover { color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234,88,12,0.35); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Prose */
.prose h2 {
  font-size: 1.5rem; margin-top: 3rem; margin-bottom: 1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
  position: relative;
}
.prose h2::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 3rem; height: 2px; background: var(--accent); border-radius: 1px;
}
.prose h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.9375rem; }
.prose th {
  text-align: left; padding: 0.875rem 1rem; background: var(--bg-muted);
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.prose td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); }
.prose tr:hover td { background: rgba(234,88,12,0.02); }

/* Callouts */
.callout {
  border-radius: 0.875rem; padding: 1.125rem 1.375rem;
  margin-bottom: 1.5rem; font-size: 0.9375rem; border-left: 4px solid;
}
.callout-tip { background: var(--accent-light); border-left-color: var(--accent); }
.callout-warning { background: var(--yellow-light); border-left-color: var(--yellow); }
.callout-success { background: var(--green-light); border-left-color: var(--green); }
.callout strong { color: var(--text); }

/* Pros/Cons (merged: improved values) */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; }
.pros-box, .cons-box { border-radius: 1rem; padding: 1.5rem; }
.pros-box { background: var(--green-light); border: 1px solid rgba(22,163,74,0.2); }
.cons-box { background: var(--red-light); border: 1px solid rgba(220,38,38,0.2); }
.pros-box h4 { color: var(--green); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.cons-box h4 { color: var(--red); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.pros-box li, .cons-box li { font-size: 0.875rem; margin-bottom: 0.375rem; list-style: none; padding-left: 1.5rem; position: relative; }
.pros-box li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons-box li::before { content: '\2717'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* FAQ (merged: improved values) */
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.875rem; padding: 0; margin-bottom: 0.625rem;
  cursor: pointer; overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(234,88,12,0.2); }
.faq-item.open { border-color: rgba(234,88,12,0.25); background: var(--bg-card); }
.faq-question { font-weight: 600; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; }
.faq-answer { display: none; padding: 0 1.25rem 1rem; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }
.faq-item.open .faq-answer { display: block; }
.faq-icon { transition: transform var(--transition); font-size: 1.25rem; color: var(--text-muted); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Keyword Cloud */
.kw-cloud-section { margin-bottom: 2.5rem; }
.kw-cloud-title {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.875rem;
}
.kw-cloud {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
}
.kw-cloud-tag {
  display: inline-block; padding: 0.375rem 0.875rem;
  border-radius: 9999px; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-muted); background: var(--bg-muted);
  border: 1px solid var(--border);
  transition: all var(--transition); white-space: nowrap;
}
.kw-cloud-tag:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-light);
}

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 6rem; padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-top: 1rem; }
.footer-social { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a { color: var(--text-muted); transition: color 0.2s; display: flex; }
.footer-social a:hover { color: var(--accent); }
.footer-affiliation { font-size: 0.75rem; margin-top: 1rem; opacity: 0.7; }
.footer h4 { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a { font-size: 0.875rem; color: var(--text-muted); }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); }

/* Article list */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.article-card { display: block; color: var(--text); }
.article-card h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; transition: color var(--transition); }
.article-card:hover h3 { color: var(--accent); }
.article-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: auto; }
.article-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Search */
.search-input {
  width: 100%; padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text);
  font-size: 0.875rem; outline: none;
  transition: all var(--transition);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,0.1); }
.search-wrap { position: relative; }
.search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* Filter tags */
.filter-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-tag {
  padding: 0.375rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); transition: all var(--transition);
}
.filter-tag:hover, .filter-tag.active { border-color: var(--accent); color: var(--accent); }

/* Comparison table (merged: improved values) */
.comparison-table { overflow-x: auto; margin: 2rem 0; border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); }
.comparison-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.comparison-table th { text-align: left; padding: 0.875rem 1rem; background: var(--bg-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.comparison-table td { padding: 0.875rem 1rem; border-top: 1px solid var(--border); }
.comparison-table tr:first-child td {
  background: linear-gradient(135deg, rgba(234,88,12,0.06) 0%, rgba(234,88,12,0.02) 100%);
}
.comparison-table .rank { font-weight: 700; color: var(--accent); font-size: 0.8125rem; }
.comparison-tool-cell { display: flex; align-items: center; gap: 0.625rem; min-width: 140px; }
.comparison-tool-logo { flex-shrink: 0; width: 36px; height: 36px; border-radius: 0.5rem; background: #fff; padding: 4px; box-sizing: border-box; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.comparison-tool-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.comparison-tool-logo-fallback { background: linear-gradient(135deg, var(--accent), #dc2626); color: #fff; font-weight: 700; font-size: 0.9375rem; padding: 0; }
.comparison-table .btn-primary {
  background: linear-gradient(135deg, #ea580c, #dc2626); border-radius: 100px;
  font-size: 0.75rem; padding: 0.4375rem 1rem; border: none;
  box-shadow: 0 2px 8px rgba(234,88,12,0.25);
  transition: all 0.2s ease;
}
.comparison-table .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(234,88,12,0.35); }

/* Stats */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(245,245,244,0.5); padding: 1.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-value { font-size: 1.25rem; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* Admin Panel */
.admin-container { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table input { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: 0.5rem; font-size: 0.875rem; background: var(--bg-card); color: var(--text); }
.admin-btn { padding: 0.5rem 1rem; border-radius: 0.5rem; border: none; cursor: pointer; font-weight: 600; font-size: 0.875rem; }
.admin-btn-save { background: var(--accent); color: white; }
.admin-btn-save:hover { background: var(--accent-hover); }
.admin-login { max-width: 400px; margin: 4rem auto; }
.admin-login input { width: 100%; padding: 0.75rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; font-size: 1rem; }

/* Sidebar */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-content { min-width: 0; }
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-title { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.sidebar-affi { display: block; padding: 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 0.625rem; transition: all var(--transition); color: var(--text); }
.sidebar-affi:hover { border-color: var(--accent); background: var(--accent-light); color: var(--text); }
.sidebar-affi-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.625rem; }
.sidebar-affi-header strong { flex: 1; font-size: 0.9375rem; line-height: 1.2; min-width: 0; word-break: break-word; }
.sidebar-affi-logo { flex-shrink: 0; width: 44px; height: 44px; border-radius: 0.5rem; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; box-sizing: border-box; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.sidebar-affi-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sidebar-affi-logo-fallback { background: linear-gradient(135deg, var(--accent), #dc2626); color: #fff; font-weight: 700; font-size: 1.125rem; padding: 0; }
.sidebar-affi:hover .sidebar-affi-logo { border-color: var(--accent); transform: scale(1.06); box-shadow: 0 4px 14px rgba(234,88,12,0.18); }
.comparison-table tr:hover .comparison-tool-logo { border-color: var(--accent); box-shadow: 0 2px 10px rgba(234,88,12,0.15); }
.comparison-tool-logo { transition: border-color var(--transition), box-shadow var(--transition); }
.hp-toptool-card:hover .hp-toptool-icon-logo { transform: scale(1.06); box-shadow: 0 6px 18px rgba(234,88,12,0.25); }
.hp-toptool-icon-logo { transition: transform var(--transition), box-shadow var(--transition); }
.sidebar-affi-cta { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.sidebar-lead { background: linear-gradient(135deg, var(--accent-light), var(--bg-card)); border-color: rgba(234,88,12,0.2); }
.sidebar-lead-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.sidebar-input { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; font-size: 0.875rem; background: var(--bg-card); color: var(--text); }
.sidebar-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,0.1); }
.sidebar-form { display: flex; flex-direction: column; }
.sidebar-social { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sidebar-social-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; transition: all var(--transition); }
.sidebar-social-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.sidebar-social-btn svg { flex-shrink: 0; }

/* ======================================================
   PREMIUM CTA SYSTEM -- 2026 Glassmorphism + Gradients
   ====================================================== */

/* Keyframes */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(234,88,12,0.15); }
  50% { box-shadow: 0 0 40px rgba(234,88,12,0.3); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* -- CTA #1 -- Inline (haut d'article) — visual punch */
.cta-inline {
  display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap;
  padding: 1rem 1.5rem; margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(234,88,12,0.08) 0%, rgba(220,38,38,0.04) 100%);
  border: 1.5px solid rgba(234,88,12,0.2);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.cta-inline::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #ea580c, #f97316, #fbbf24);
}
.cta-inline:hover {
  border-color: rgba(234,88,12,0.4);
  background: linear-gradient(135deg, rgba(234,88,12,0.12) 0%, rgba(220,38,38,0.08) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(234,88,12,0.1);
}
.cta-inline a { font-weight: 700; color: var(--accent); font-size: 0.9375rem; }
.cta-inline-logo {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 0.5rem;
  background: #fff; padding: 5px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(234,88,12,0.2);
  box-shadow: 0 2px 8px rgba(234,88,12,0.08);
}
.cta-inline-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cta-inline-badge {
  background: linear-gradient(135deg, #ea580c, #dc2626); color: white;
  font-size: 0.5625rem; padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(234,88,12,0.3);
}
.cta-inline-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #dc2626);
  color: white; font-size: 0.8125rem; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(234,88,12,0.3);
  transition: transform 0.2s;
}
.cta-inline:hover .cta-inline-arrow { transform: translateX(2px); }

/* -- CTA #2 -- Mid-article glassmorphic card — high impact */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(234,88,12,0.08), 0 8px 32px rgba(0,0,0,0.04); }
  50% { box-shadow: 0 0 40px rgba(234,88,12,0.15), 0 12px 40px rgba(0,0,0,0.06); }
}
.cta-mid {
  margin: 3rem 0; padding: 0; border-radius: 1.25rem;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(234,88,12,0.08) 0%, rgba(124,58,237,0.04) 50%, rgba(220,38,38,0.08) 100%);
  border: 1.5px solid rgba(234,88,12,0.2);
  animation: cta-glow 4s ease-in-out infinite;
}
.cta-mid::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(234,88,12,0.5) 0%, rgba(124,58,237,0.25) 50%, rgba(220,38,38,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.cta-mid-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 2rem;
  position: relative; z-index: 1;
}
.cta-mid-icon {
  width: 52px; height: 52px; border-radius: 1rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #dc2626);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.375rem;
  box-shadow: 0 6px 20px rgba(234,88,12,0.35);
  animation: float 3s ease-in-out infinite;
}
.cta-mid-icon-logo {
  background: #fff; padding: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(234,88,12,0.15);
}
.cta-mid-icon-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cta-tool-logo {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 0.5rem;
  background: #fff; padding: 5px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.cta-tool-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cta-tool-logo-sm { width: 36px; height: 36px; padding: 4px; }
.cta-mid-text { flex: 1; min-width: 200px; }
.cta-mid-title { font-weight: 800; font-size: 1.125rem; margin-bottom: 0.375rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cta-score-inline { font-size: 0.75rem; font-weight: 700; color: var(--accent); background: rgba(234,88,12,0.12); padding: 0.125rem 0.5rem; border-radius: 9999px; letter-spacing: 0; }
.cta-mid-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
.cta-mid .btn-primary {
  background: linear-gradient(135deg, #ea580c, #dc2626); border: none;
  padding: 0.875rem 2rem; font-size: 0.9375rem; border-radius: 100px;
  box-shadow: 0 6px 24px rgba(234,88,12,0.35);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  font-weight: 700;
}
.cta-mid .btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(234,88,12,0.45);
}
.cta-mid-footer {
  padding: 0.625rem 2rem 0.875rem; text-align: center;
  font-size: 0.625rem; color: var(--text-muted);
  border-top: 1px solid rgba(234,88,12,0.1);
}

/* -- CTA #3 -- End banner premium (glassmorphism full) */
.cta-banner {
  margin: 3rem 0; border-radius: 1.25rem; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1a0a02 0%, #0c0403 50%, #0a0215 100%);
  color: white;
}
.cta-banner-bg {
  position: absolute; inset: 0; opacity: 0.15;
  background: radial-gradient(ellipse at 30% 50%, rgba(234,88,12,0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.3) 0%, transparent 60%);
}
.cta-banner-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}
.cta-banner-badge {
  position: absolute; top: 0; left: 2rem;
  background: linear-gradient(135deg, #ea580c, #dc2626); color: white;
  padding: 0.375rem 1rem; border-radius: 0 0 0.5rem 0.5rem;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(234,88,12,0.4);
}
.cta-banner-content {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding: 2.5rem 2rem 1.5rem;
  position: relative; z-index: 1;
}
.cta-banner-logo {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 1rem;
  background: #fff; padding: 10px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(255,255,255,0.18), 0 0 0 1px rgba(255,255,255,0.1);
}
.cta-banner-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cta-banner-left { flex: 1; min-width: 220px; }
.cta-banner-title { font-size: 1.375rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.625rem; flex-wrap: wrap; }
.cta-banner-score { font-size: 1rem; font-weight: 700; color: #fbbf24; background: rgba(251,191,36,0.12); padding: 0.25rem 0.625rem; border-radius: 9999px; letter-spacing: 0; border: 1px solid rgba(251,191,36,0.25); }
.cta-banner-score-max { font-size: 0.75rem; color: rgba(251,191,36,0.7); font-weight: 600; }
.cta-banner-desc { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.cta-banner .btn-primary {
  background: white; color: #0c0a09; border: none;
  padding: 0.875rem 2rem; font-size: 0.9375rem; font-weight: 700;
  border-radius: 100px; letter-spacing: -0.01em;
  box-shadow: 0 4px 24px rgba(255,255,255,0.15);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.cta-banner .btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(234,88,12,0.25), transparent);
  transition: none;
  animation: btn-shine 3.5s ease-in-out infinite;
  animation-delay: 1s;
}
.cta-banner .btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 40px rgba(255,255,255,0.25);
  color: #0c0a09;
}
@keyframes btn-shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}
.cta-banner-footer {
  padding: 0 2rem 1.25rem; text-align: center;
  font-size: 0.6875rem; color: rgba(255,255,255,0.35);
  position: relative; z-index: 1;
}
.cta-banner-footer a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* ======================================================
   GLOBAL IMPROVEMENTS -- Premium polish
   ====================================================== */

/* Related Articles */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.related-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 0.875rem; font-weight: 500;
  transition: all 0.3s ease; text-decoration: none;
}
.related-card:hover {
  border-color: var(--accent); background: var(--accent-light);
  transform: translateX(4px); color: var(--text);
}
.related-card-arrow { color: var(--accent); font-size: 1rem; flex-shrink: 0; }

/* Score badge */
.score-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  background: linear-gradient(135deg, rgba(217,119,6,0.1), rgba(217,119,6,0.05));
  border: 1px solid rgba(217,119,6,0.2);
  font-weight: 700; color: var(--yellow); font-size: 0.875rem;
}

/* Breadcrumb styling */
.breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.375rem; opacity: 0.5; }

/* Article meta improved */
.article-meta-bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.25rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.article-meta-bar a { color: var(--text-muted); }
.article-meta-bar a:hover { color: var(--accent); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--accent), #dc2626, #7c3aed);
  z-index: 100;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Table of Contents */
.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
}
.toc-title {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 0.875rem;
  padding-bottom: 0.625rem; border-bottom: 1px solid var(--border);
}
.toc-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc-counter;
}
.toc-list li {
  counter-increment: toc-counter;
  margin-bottom: 0.25rem;
}
.toc-list li a {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding: 0.375rem 0; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: color var(--transition); line-height: 1.4;
}
.toc-list li a::before {
  content: counter(toc-counter) ".";
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent); flex-shrink: 0; min-width: 1.25rem;
}
.toc-list li a::after {
  content: ''; flex: 1;
  border-bottom: 1px dotted var(--border);
  margin: 0 0.25rem; align-self: baseline;
  position: relative; top: -0.25rem;
}
.toc-list li a:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), #dc2626);
  color: white; font-size: 1.25rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(234,88,12,0.3);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s ease; pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(234,88,12,0.4); }

/* ======================================================
   HOMEPAGE -- Premium Editorial Magazine Design
   ====================================================== */

/* -- Hero — Cinematic editorial with grain + mesh -- */
@keyframes mesh-shift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.98); }
  75% { transform: translate(15px, 10px) scale(1.03); }
}
@keyframes mesh-shift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 15px) scale(1.04); }
  66% { transform: translate(20px, -15px) scale(0.97); }
}

.hp-hero {
  padding: 4rem 0 3rem; position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Animated gradient mesh */
.hp-hero-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hp-hero-mesh::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -150px; right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,88,12,0.10) 0%, rgba(234,88,12,0.03) 40%, transparent 70%);
  animation: mesh-shift 12s ease-in-out infinite;
}
.hp-hero-mesh::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  bottom: -100px; left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, rgba(124,58,237,0.02) 40%, transparent 70%);
  animation: mesh-shift-2 15s ease-in-out infinite;
}

/* Film grain texture */
.hp-hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

[data-theme="dark"] .hp-hero { background: #09090b; }
[data-theme="dark"] .hp-hero-mesh::before {
  background: radial-gradient(circle, rgba(234,88,12,0.06) 0%, rgba(234,88,12,0.02) 40%, transparent 70%);
}
[data-theme="dark"] .hp-hero-mesh::after {
  background: radial-gradient(circle, rgba(124,58,237,0.04) 0%, rgba(124,58,237,0.01) 40%, transparent 70%);
}
[data-theme="dark"] .hp-hero-grain { opacity: 0.04; }

.hp-hero > .container { position: relative; z-index: 1; }

.hp-hero-split {
  display: grid; grid-template-columns: 1fr 380px; gap: 3.5rem; align-items: center;
}
.hp-hero-left { max-width: 620px; }
.hp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hp-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #16a34a; animation: pulse-glow 2s infinite;
  box-shadow: 0 0 6px #16a34a;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hp-hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 400;
  line-height: 1.08; letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.hp-hero-gradient {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fbbf24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-hero-sub {
  font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted);
  max-width: 540px; margin-bottom: 1.75rem;
}
.hp-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hp-btn-lg { padding: 0.9375rem 2rem; font-size: 1rem; border-radius: 100px; }
.hp-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.9375rem 1.5rem; font-size: 0.9375rem; font-weight: 600;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  transition: color 0.2s; text-decoration: none;
}
.hp-btn-ghost:hover { color: var(--text); }

/* Hero social proof bar */
.hp-hero-proof {
  display: flex; align-items: center; gap: 1.5rem;
}
.hp-hero-proof-item {
  display: flex; flex-direction: column;
}
.hp-hero-proof-item strong {
  font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text);
}
.hp-hero-proof-item span {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-weight: 500;
}
.hp-hero-proof-sep {
  width: 1px; height: 32px; background: var(--border);
}

/* Hero featured card */
.hp-hero-feature-card {
  position: relative; border-radius: 1.25rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; width: 100%;
  color: white; text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.hp-hero-feature-card:hover { transform: translateY(-4px) scale(1.01); color: white; }
.hp-hero-feature-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-hero-feature-card:hover .hp-hero-feature-img { transform: scale(1.06); }
.hp-hero-feature-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}
.hp-hero-feature-content {
  position: relative; z-index: 2; padding: 1.75rem;
}
.hp-hero-feature-content h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.375rem; font-weight: 400; line-height: 1.2;
  margin: 0.625rem 0 0.5rem; letter-spacing: -0.01em; color: white;
}
.hp-hero-feature-meta {
  font-size: 0.6875rem; color: rgba(255,255,255,0.4);
}

/* -- Trending pills -- */
.hp-trending {
  padding: 0.875rem 0; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.hp-trending .container { display: flex; align-items: center; gap: 0.875rem; overflow-x: auto; }
.hp-trending-label {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.6875rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.hp-trending-label svg { color: var(--accent); }
.hp-trending-pills { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0; }
.hp-pill {
  display: inline-block; padding: 0.375rem 0.875rem; border-radius: 100px;
  font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
  background: var(--bg-muted); color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hp-pill:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-light);
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(234,88,12,0.12);
}

/* -- Sections -- */
.hp-section { padding: 5rem 0; }
.hp-section-muted { background: var(--bg-muted); }
.hp-section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem; gap: 1rem;
}
.hp-label {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.375rem;
}
.hp-section-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400;
  letter-spacing: -0.02em;
}
.hp-see-all { font-size: 0.875rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* -- Editorial Grid -- */
.hp-edito-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; min-height: 420px; }
.hp-edito-hero-card {
  position: relative; border-radius: 1.25rem; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px;
  color: white; text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-edito-hero-card:hover { transform: scale(1.01); color: white; }
.hp-edito-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.hp-edito-hero-card:hover .hp-edito-hero-img { transform: scale(1.06); }
.hp-edito-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.hp-edito-hero-content { position: relative; z-index: 2; padding: 2rem; }
.hp-edito-hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.625rem; font-weight: 400; line-height: 1.2;
  margin: 0.75rem 0 0.625rem; letter-spacing: -0.01em;
}
.hp-edito-hero-desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.hp-edito-meta { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 0.75rem; display: block; }
.hp-edito-badge {
  display: inline-block; padding: 0.25rem 0.625rem; border-radius: 0.25rem;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--badge-color, var(--accent)); color: white;
}
.hp-edito-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.hp-edito-card {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 1.25rem 1.5rem; border-radius: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.3s ease;
}
.hp-edito-card:hover { border-color: var(--accent); transform: translateX(4px); color: var(--text); }
.hp-edito-card-top {
  display: flex; align-items: center; justify-content: space-between;
}
.hp-edito-card-type {
  font-size: 0.625rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}
.hp-edito-card-title { font-size: 0.9375rem; font-weight: 600; margin: 0.5rem 0 0.375rem; line-height: 1.3; }
.hp-edito-card-meta { font-size: 0.6875rem; color: var(--text-muted); }

/* -- Category Grid -- */
.hp-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem;
}
.hp-cat-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.3s ease;
}
.hp-cat-card:hover { border-color: var(--cat-color, var(--accent)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); color: var(--text); }
.hp-cat-icon {
  width: 40px; height: 40px; border-radius: 0.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8125rem; color: white;
  background: var(--cat-color, var(--accent));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--cat-color, var(--accent)) 30%, transparent);
}
.hp-cat-info { flex: 1; min-width: 0; }
.hp-cat-name { font-size: 0.875rem; font-weight: 600; }
.hp-cat-count { font-size: 0.75rem; color: var(--text-muted); }
.hp-cat-arrow { color: var(--text-muted); font-size: 1rem; transition: transform 0.2s; }
.hp-cat-card:hover .hp-cat-arrow { transform: translateX(4px); color: var(--cat-color); }

/* -- Trust -- */
.hp-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.hp-trust-card {
  padding: 2rem; border-radius: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
}
.hp-trust-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #dc2626, #7c3aed);
  opacity: 0; transition: opacity 0.3s;
}
.hp-trust-card:hover::before { opacity: 1; }
.hp-trust-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.hp-trust-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem; font-weight: 400; color: var(--accent);
  opacity: 0.3; line-height: 1; margin-bottom: 0.75rem;
}
.hp-trust-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.hp-trust-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.hp-author-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1.25rem 0.625rem 0.625rem;
  border-radius: 100px; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8125rem;
  transition: all 0.2s;
}
.hp-author-link:hover { border-color: var(--accent); color: var(--text); }
.hp-author-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #dc2626);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.75rem;
}

/* -- Top Outils du Moment -- */
.hp-toptools-scroll {
  display: flex; gap: 1.25rem;
  overflow-x: auto; padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hp-toptools-scroll::-webkit-scrollbar { height: 4px; }
.hp-toptools-scroll::-webkit-scrollbar-track { background: transparent; }
.hp-toptools-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.hp-toptool-card {
  flex: 0 0 240px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 1.5rem; border-radius: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
}
.hp-toptool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--badge-color, var(--accent)), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.hp-toptool-card:hover {
  border-color: rgba(234,88,12,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  color: var(--text);
}
.hp-toptool-card:hover::before { opacity: 1; }

.hp-toptool-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.hp-toptool-icon {
  width: 44px; height: 44px; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.hp-toptool-icon-logo {
  background: #fff; padding: 6px; box-sizing: border-box;
  border: 1px solid var(--border);
}
.hp-toptool-icon-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hp-toptool-badge {
  display: inline-block; padding: 0.1875rem 0.625rem; border-radius: 0.25rem;
  font-size: 0.5625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--badge-color, var(--accent)) 12%, transparent);
  color: var(--badge-color, var(--accent));
}
.hp-toptool-name {
  font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.hp-toptool-verdict {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5;
  flex: 1; margin-bottom: 1rem;
}
.hp-toptool-cta {
  font-size: 0.8125rem; font-weight: 600; color: var(--accent);
  transition: gap 0.2s;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.hp-toptool-card:hover .hp-toptool-cta { gap: 0.5rem; }

/* -- Top tools GRID layout (replaces scroll) -- */
.hp-toptools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hp-toptools-grid .hp-toptool-card {
  flex: unset;
}

/* -- Hub Top Outils widget (category pages) -- */
.hub-toptools-section { margin: 2rem 0 2.5rem; }
.hub-toptools-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem;
}
.hub-toptools-title { font-size: 1.25rem; letter-spacing: -0.01em; }
.hub-toptools-sub { font-size: 0.8125rem; color: var(--text-muted); }
.hub-toptools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}
.hub-toptool-card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.125rem 1rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 1rem; color: var(--text); text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hub-toptool-card:hover {
  border-color: rgba(234,88,12,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  color: var(--text);
}
.hub-toptool-rank {
  position: absolute; top: 0.625rem; right: 0.75rem;
  font-size: 0.6875rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg-muted); padding: 0.125rem 0.5rem; border-radius: 9999px;
  letter-spacing: 0.04em;
}
.hub-toptool-logo-wrap {
  width: 56px; height: 56px; border-radius: 0.75rem;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; overflow: hidden; flex-shrink: 0;
}
.hub-toptool-logo-wrap img {
  max-width: 80%; max-height: 80%; object-fit: contain;
}
.hub-toptool-logo-fallback {
  width: 56px; height: 56px; border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--accent), #dc2626);
  color: white; font-weight: 800; font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.hub-toptool-name {
  font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.1875rem;
  letter-spacing: -0.01em;
}
.hub-toptool-meta {
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.hub-toptool-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--accent);
  transition: gap 0.2s;
}
.hub-toptool-card:hover .hub-toptool-cta { gap: 0.5rem; }
[data-theme="dark"] .hub-toptool-logo-wrap { background: #f8f7f4; }
[data-theme="dark"] .hub-toptool-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
@media (max-width: 1024px) { .hub-toptools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .hub-toptools-grid { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; } }

/* -- Hub Use Cases widget ("Meilleur outil pour : X") -- */
.hub-usecases-section { margin: 0 0 2.5rem; }
.hub-usecases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem;
}
.hub-usecase-card {
  display: flex; flex-direction: column; gap: 0.625rem;
  padding: 1rem 1.125rem; border-radius: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hub-usecase-card:hover {
  border-color: rgba(234,88,12,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  color: var(--text);
}
.hub-usecase-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.hub-usecase-winner { display: flex; align-items: center; gap: 0.75rem; }
.hub-usecase-logo {
  width: 40px; height: 40px; border-radius: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.hub-usecase-logo img { max-width: 82%; max-height: 82%; object-fit: contain; }
.hub-usecase-logo-fallback {
  background: linear-gradient(135deg, var(--accent), #dc2626);
  color: white; font-weight: 800; font-size: 1rem;
}
.hub-usecase-name { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.hub-usecase-cta {
  margin-top: auto; font-size: 0.75rem; font-weight: 600;
  color: var(--accent); align-self: flex-start;
  transition: gap 0.2s;
}
[data-theme="dark"] .hub-usecase-logo { background: #f8f7f4; }
[data-theme="dark"] .hub-usecase-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
@media (max-width: 768px) {
  .hub-usecases-grid { grid-template-columns: 1fr; }
}

/* -- Partenaire (tool detail page) -- */
.partenaire-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 160px 1fr; gap: 2rem;
  align-items: center; padding: 2rem; border-radius: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.partenaire-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 200px at 85% 20%, rgba(234,88,12,0.10), transparent 60%),
    radial-gradient(400px 200px at 15% 90%, rgba(220,38,38,0.08), transparent 60%);
}
.partenaire-hero-left, .partenaire-hero-right { position: relative; z-index: 1; }
.partenaire-hero-left { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.partenaire-logo {
  width: 160px; height: 160px; border-radius: 1.5rem;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.partenaire-logo img { max-width: 76%; max-height: 76%; object-fit: contain; }
.partenaire-logo-fallback {
  background: linear-gradient(135deg, var(--accent), #dc2626);
  color: white; font-weight: 800; font-size: 4rem;
}
.partenaire-score-big {
  display: flex; align-items: baseline; gap: 0.25rem;
  padding: 0.5rem 1rem; background: var(--bg-muted);
  border-radius: 1rem; line-height: 1;
}
.partenaire-score-big .partenaire-score-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.partenaire-score-big .partenaire-score-max { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; }
.partenaire-score-big .partenaire-score-label { font-size: 0.6875rem; color: var(--text-muted); margin-left: 0.5rem; }
.partenaire-hero-badges {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.partenaire-hero-title {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 0.75rem; line-height: 1.1;
}
.partenaire-hero-tagline {
  font-size: 1.0625rem; color: var(--text-muted);
  line-height: 1.55; margin: 0 0 1.5rem;
}
.partenaire-hero-ctas {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.partenaire-hero-proof {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--text-muted); padding-top: 0.5rem;
}
.partenaire-hero-proof strong { color: var(--text); font-weight: 700; }

/* Final verdict card */
.partenaire-verdict {
  position: relative; overflow: hidden;
  padding: 3rem 2rem; border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(234,88,12,0.08), rgba(220,38,38,0.04));
  border: 1px solid rgba(234,88,12,0.20);
  text-align: center;
}
.partenaire-verdict-inner { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.partenaire-verdict-badge {
  display: inline-block; padding: 0.375rem 1rem; border-radius: 9999px;
  background: var(--accent); color: white; font-size: 0.6875rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.partenaire-verdict-title { font-size: 1.625rem; letter-spacing: -0.01em; margin: 0 0 1rem; }
.partenaire-verdict-score {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 1rem;
  margin-bottom: 1.25rem;
}
.partenaire-verdict-score .score-big { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.partenaire-verdict-score .score-max { font-size: 1rem; color: var(--text-muted); font-weight: 600; }
.partenaire-verdict-score .score-stars { display: flex; gap: 0.125rem; margin-left: 0.5rem; }
.partenaire-verdict-score .star { color: var(--border); font-size: 1.125rem; }
.partenaire-verdict-score .star.filled { color: #fbbf24; }
.partenaire-verdict-score .star.half  { color: #fbbf24; opacity: 0.5; }
.partenaire-verdict-text { font-size: 1rem; color: var(--text); line-height: 1.6; margin: 0 0 1.5rem; }

.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; border-radius: 1rem; }
[data-theme="dark"] .partenaire-logo { background: #f8f7f4; }
@media (max-width: 768px) {
  .partenaire-hero { grid-template-columns: 1fr; text-align: center; padding: 1.5rem; gap: 1.25rem; }
  .partenaire-hero-badges { justify-content: center; }
  .partenaire-hero-proof { justify-content: center; }
  .partenaire-hero-ctas { justify-content: center; }
  .partenaire-logo { width: 120px; height: 120px; }
  .partenaire-hero-title { font-size: 1.875rem; }
  .partenaire-verdict { padding: 2rem 1.25rem; }
  .partenaire-verdict-title { font-size: 1.375rem; }
}

/* -- Sticky mobile CTA (article) -- */
.sticky-mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.sticky-mobile-cta-inner {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 720px; margin: 0 auto;
}
.sticky-mobile-cta-logo {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 0.5rem;
  background: #fff; padding: 4px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.sticky-mobile-cta-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sticky-mobile-cta-text {
  display: flex; flex-direction: column; flex: 1; min-width: 0;
  line-height: 1.25;
}
.sticky-mobile-cta-text strong { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.sticky-mobile-cta-text span { font-size: 0.6875rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 72px; } /* avoid overlap with content */
}
.hp-toptool-rank {
  position: absolute; top: 1rem; right: 1rem;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.75rem; font-weight: 400;
  color: var(--border); line-height: 1;
  opacity: 0.5;
}

/* -- Guides populaires (dark accent section) -- */
.hp-section-accent {
  background: linear-gradient(135deg, #0c0a09 0%, #1a0a02 50%, #0a0215 100%);
  position: relative; overflow: hidden;
  padding: 4rem 0;
}
.hp-section-accent::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(234,88,12,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(124,58,237,0.06) 0%, transparent 60%);
}
.hp-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative; z-index: 1;
}
.hp-popular-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: white; text-decoration: none;
  transition: all 0.3s ease;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.hp-popular-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  color: white;
}
.hp-popular-cat {
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.hp-popular-card h3 {
  font-size: 1rem; font-weight: 600;
  line-height: 1.3;
}
.hp-popular-arrow {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--accent); margin-top: auto;
  transition: gap 0.2s;
}
.hp-popular-card:hover .hp-popular-arrow { color: #f97316; }

/* -- Trust section icon -- */
.hp-trust-icon {
  width: 48px; height: 48px; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 1rem;
}
[data-theme="dark"] .hp-trust-icon {
  background: rgba(234,88,12,0.1);
}

/* -- Trust author section -- */
.hp-trust-author {
  text-align: center; margin-top: 2.5rem;
}
.hp-trust-author .hp-author-link {
  gap: 1rem;
}
.hp-trust-author .hp-author-link div {
  display: flex; flex-direction: column; text-align: left;
}
.hp-trust-author .hp-author-link div strong {
  font-size: 0.875rem; color: var(--text);
}
.hp-trust-author .hp-author-link div span {
  font-size: 0.75rem; color: var(--text-muted);
}

/* Latest card desc */
.hp-latest-card-desc {
  font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5;
  margin: 0.5rem 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* -- Newsletter -- */
@keyframes newsletter-border-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hp-newsletter {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c0a09 0%, #1a0a02 50%, #0a0215 100%);
  color: white;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ea580c, #f97316, #fbbf24, #dc2626, #7c3aed, #ea580c) 1;
  background-clip: padding-box;
}
.hp-newsletter::before {
  content: '';
  position: absolute; top: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #ea580c, #f97316, #fbbf24, #dc2626, #7c3aed, #ea580c, #f97316, #fbbf24);
  background-size: 200% 100%;
  animation: newsletter-border-shift 4s linear infinite;
}
.hp-newsletter::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #7c3aed, #dc2626, #fbbf24, #f97316, #ea580c, #7c3aed, #dc2626, #fbbf24);
  background-size: 200% 100%;
  animation: newsletter-border-shift 4s linear infinite reverse;
}
.hp-newsletter-inner { position: relative; padding: 5rem 0; text-align: center; }
.hp-newsletter-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(234,88,12,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.08) 0%, transparent 60%);
}
.hp-newsletter-content { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.hp-newsletter-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400;
  margin: 0.5rem 0 0.75rem; letter-spacing: -0.02em;
}
.hp-newsletter-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 1.5rem; }
.hp-newsletter-form {
  display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto;
}
.hp-newsletter-form input {
  flex: 1; padding: 0.875rem 1.25rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05);
  color: white; font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.hp-newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.hp-newsletter-form input:focus { outline: none; border-color: var(--accent); }
.hp-newsletter-form .btn { border-radius: 100px; padding: 0.875rem 1.75rem; white-space: nowrap; }
.hp-newsletter-sub-count {
  font-size: 1rem; color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.hp-newsletter-sub-count strong { color: white; font-weight: 700; }
.hp-newsletter-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-top: 1.25rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.35); font-weight: 500;
}
.hp-newsletter-trust-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.2); flex-shrink: 0;
}

/* -- Scroll reveal (IntersectionObserver-driven) -- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================================================
   DARK MODE -- Additional overrides
   ====================================================== */

[data-theme="dark"] .card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
[data-theme="dark"] .stats-bar { background: rgba(39,39,42,0.5); }
[data-theme="dark"] .hp-cat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-trust-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-toptool-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* Dark mode: article cards in hubs — subtle border */
[data-theme="dark"] .article-card.card {
  border-color: rgba(63,63,70,0.6);
}
[data-theme="dark"] .article-card.card:hover {
  border-color: rgba(234,88,12,0.35);
}

/* ======================================================
   HOVER MICRO-INTERACTIONS
   ====================================================== */

/* Buttons: box-shadow pulse on hover */
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(234,88,12,0.25); }
  50% { box-shadow: 0 4px 20px rgba(234,88,12,0.4); }
}
.btn-primary:hover {
  animation: btn-pulse 1.5s ease-in-out infinite;
}

/* Prose links: underline appears on hover with accent color */
.prose a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease, color var(--transition);
}
.prose a:hover {
  background-size: 100% 1.5px;
}

/* ======================================================
   TYPOGRAPHY -- Instrument Serif for key headings
   ====================================================== */

/* Article H1 */
.article-content > h1,
.article-content h1:first-of-type {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* Hub H1 */
.hub-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* ======================================================
   MOBILE MENU -- Hamburger + Slide-down overlay
   ====================================================== */

.mobile-menu-btn { display: none; }

.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-nav {
  padding: 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-menu-section { margin-bottom: 1.5rem; }
.mobile-menu-section:last-child { margin-bottom: 0; }

.mobile-menu-label {
  display: block;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text);
  border-radius: 0.5rem;
  transition: all var(--transition);
  text-decoration: none;
}
.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: var(--accent);
  background: var(--accent-light);
  padding-left: 1rem;
}

/* (Populaire cette semaine — now integrated into Guides populaires section) */

/* -- Derniers articles grid -- */
.hp-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.hp-latest-card {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem; border-radius: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
}
.hp-latest-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--badge-color, var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.hp-latest-card:hover {
  border-color: rgba(234,88,12,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  color: var(--text);
}
.hp-latest-card:hover::before { opacity: 1; }
[data-theme="dark"] .hp-latest-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

.hp-latest-card .hp-edito-badge { margin-bottom: 0.75rem; }
.hp-latest-card-title {
  font-size: 0.9375rem; font-weight: 600;
  line-height: 1.35; margin-bottom: auto;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hp-latest-card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; color: var(--text-muted);
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.hp-latest-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
}

/* ======================================================
   RESPONSIVE -- Consistent breakpoints
   1024px = tablet, 768px = mobile, 640px = small
   ====================================================== */

@media (max-width: 1024px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }
  .sidebar .sidebar-block { margin-bottom: 0; }
  .hp-edito-grid { grid-template-columns: 1fr; }
  .hp-edito-hero-card { min-height: 300px; }
  .hp-trust-grid { grid-template-columns: 1fr; }
  .hp-latest-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-toptools-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-popular-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hp-hero-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .hp-hero-right { display: none; }
  .hp-hero-proof { margin-top: 1.5rem; }
  .hp-cat-grid { grid-template-columns: 1fr; }
  .hp-newsletter-form { flex-direction: column; }
  .hp-trending-pills { -webkit-overflow-scrolling: touch; }
  .hp-toptools-grid { grid-template-columns: 1fr; }
  .hp-popular-grid { grid-template-columns: 1fr; }
  .hp-latest-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .pros-cons { grid-template-columns: 1fr; }
  h1 { font-size: 1.875rem !important; }
  .cta-mid-inner, .cta-banner-content { flex-direction: column; text-align: center; }
  .cta-mid-icon { margin: 0 auto; }
  .cta-banner .btn-primary { width: 100%; }
  .share-bar { flex-wrap: wrap; }
  .share-btn { font-size: 0; gap: 0; padding: 0.5rem; }
  .share-btn svg { width: 16px; height: 16px; }
  .share-btn-copy-label { display: none; }
  .author-box { flex-direction: column; text-align: center; }
  .author-box-avatar { margin: 0 auto; }
  .sidebar { grid-template-columns: 1fr; }
  .article-layout { padding: 2rem 1rem; gap: 1.5rem; }
}

/* ======================================================
   UPDATED BADGE -- Subtle date indicator under title
   ====================================================== */

.updated-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.updated-badge svg { color: var(--accent); flex-shrink: 0; }

/* ======================================================
   SHARE BAR -- Social share buttons row
   ====================================================== */

.share-bar {
  display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.share-bar-label {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text-muted); margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.4375rem 0.875rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font);
}
.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.share-btn svg { flex-shrink: 0; }

.share-btn-x:hover { border-color: #000; color: #000; background: rgba(0,0,0,0.04); }
[data-theme="dark"] .share-btn-x:hover { border-color: #e7e9ea; color: #e7e9ea; background: rgba(231,233,234,0.08); }
.share-btn-linkedin:hover { border-color: #0a66c2; color: #0a66c2; background: rgba(10,102,194,0.06); }
.share-btn-facebook:hover { border-color: #1877f2; color: #1877f2; background: rgba(24,119,242,0.06); }
.share-btn-copy:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ======================================================
   AUTHOR BOX -- Full width card end of article
   ====================================================== */

.author-box {
  display: flex; align-items: flex-start; gap: 1.25rem;
  margin-top: 3rem; padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.author-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #dc2626, #7c3aed);
}
.author-box-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #dc2626);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(234,88,12,0.25);
}
.author-box-info { flex: 1; min-width: 0; }
.author-box-name {
  display: block; font-size: 1rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  transition: color var(--transition);
}
.author-box-name:hover { color: var(--accent); }
.author-box-title {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.04em; margin-top: 0.125rem;
}
.author-box-bio {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.6; margin-top: 0.5rem;
}
.author-box-link {
  display: inline-block; margin-top: 0.625rem;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--accent); text-decoration: none;
  transition: color var(--transition);
}
.author-box-link:hover { color: var(--accent-hover); }

/* ======================================================
   RELATED ARTICLES — Enriched engagement section
   ====================================================== */

.related-section {
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.375rem; font-weight: 400;
  margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
.related-card {
  display: flex; flex-direction: column; gap: 0.375rem;
  padding: 1.125rem 1.375rem;
  border-radius: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.related-card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--rel-color, var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.related-card:hover {
  border-color: rgba(234,88,12,0.2);
  transform: translateX(4px);
  color: var(--text);
}
.related-card:hover::before { opacity: 1; }
.related-cat {
  font-size: 0.5625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.related-card-label {
  font-size: 0.875rem; font-weight: 600; line-height: 1.35;
}
.related-card-meta {
  font-size: 0.6875rem; color: var(--text-muted);
}
.related-card-arrow {
  position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.875rem;
  transition: transform 0.2s, color 0.2s;
}
.related-card:hover .related-card-arrow {
  transform: translateY(-50%) translateX(4px);
  color: var(--accent);
}

/* ======================================================
   NEXT ARTICLE — Keep reading CTA
   ====================================================== */

.next-article-card {
  display: block;
  margin-top: 2rem; padding: 1.75rem 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #0c0a09 0%, #1a0a02 50%, #0a0215 100%);
  color: white; text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease;
}
.next-article-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(234,88,12,0.1) 0%, transparent 60%);
}
.next-article-card:hover {
  transform: translateY(-3px);
  color: white;
}
.next-article-label {
  display: block;
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.625rem;
  position: relative;
}
.next-article-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem; font-weight: 400;
  line-height: 1.3; margin-bottom: 0.5rem;
  position: relative;
}
.next-article-meta {
  font-size: 0.8125rem; font-weight: 600;
  color: rgba(255,255,255,0.5);
  position: relative;
}

@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   OUTILS GRATUITS — Tool cards & UI
   ====================================================== */

.outils-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.875rem;
}
.outil-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all 0.3s ease;
}
.outil-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  color: var(--text);
}
[data-theme="dark"] .outil-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.outil-icon {
  font-size: 1.75rem; flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-muted); border-radius: 0.75rem;
}
.outil-info { flex: 1; min-width: 0; }
.outil-name { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; }
.outil-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.outil-arrow { color: var(--text-muted); font-size: 1rem; flex-shrink: 0; transition: transform 0.2s; }
.outil-card:hover .outil-arrow { transform: translateX(4px); color: var(--accent); }

/* Tool container */
.outil-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  min-height: 200px;
}
.outil-loading {
  text-align: center; color: var(--text-muted);
  padding: 3rem; font-size: 0.875rem;
}

/* Tool form elements */
.outil-input {
  width: 100%; padding: 0.75rem 1rem;
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-size: 0.9375rem; font-family: var(--font);
  transition: border-color 0.2s;
}
.outil-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,0.1); }
.outil-textarea {
  width: 100%; padding: 0.75rem 1rem; min-height: 120px; resize: vertical;
  border-radius: 0.75rem; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-size: 0.875rem; font-family: var(--font); line-height: 1.6;
  transition: border-color 0.2s;
}
.outil-textarea:focus { outline: none; border-color: var(--accent); }
.outil-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, #ea580c, #dc2626); color: white;
  font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.outil-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(234,88,12,0.3); }
.outil-btn-secondary {
  background: var(--bg-muted); color: var(--text); border: 1px solid var(--border);
}
.outil-btn-secondary:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.outil-result {
  margin-top: 1.5rem; padding: 1.25rem;
  border-radius: 0.875rem;
  background: var(--bg-muted); border: 1px solid var(--border);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875rem; line-height: 1.6;
  word-break: break-all;
}
.outil-result-label {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.5rem;
}
.outil-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.outil-col { flex: 1; min-width: 200px; }
.outil-stat {
  display: flex; flex-direction: column;
  padding: 1rem; border-radius: 0.75rem;
  background: var(--bg-muted); text-align: center;
}
.outil-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.outil-stat-label { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.outil-copy-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  background: var(--accent-light); color: var(--accent);
  border: 1px solid rgba(234,88,12,0.2);
  font-family: var(--font); transition: all 0.2s;
}
.outil-copy-btn:hover { background: var(--accent); color: white; }

@media (max-width: 640px) {
  .outils-grid { grid-template-columns: 1fr; }
  .outil-container { padding: 1.25rem; }
  .outil-row { flex-direction: column; }
}

/* ======================================================
   SCREENSHOT CAROUSEL — Tool review image gallery
   ====================================================== */

.sc-carousel {
  margin: 2.5rem 0;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

/* Header bar */
.sc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}
.sc-header-left {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--text);
}
.sc-header-left svg { color: var(--accent); flex-shrink: 0; }
.sc-header-right {
  display: flex; align-items: center; gap: 0.5rem;
}
.sc-counter {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sc-nav-btn {
  width: 32px; height: 32px; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); cursor: pointer;
  transition: all var(--transition);
}
.sc-nav-btn:hover:not(:disabled) {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}
.sc-nav-btn:disabled {
  opacity: 0.3; cursor: not-allowed;
}

/* Viewport & track */
.sc-viewport {
  overflow: hidden;
  position: relative;
}
.sc-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.sc-slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* Image wrapper */
.sc-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #0a0a0a;
}
.sc-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.sc-img-wrap:hover .sc-img {
  transform: scale(1.02);
}

/* Title banner overlay */
.sc-banner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  color: white;
  pointer-events: none;
}
.sc-banner-num {
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--accent);
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}
.sc-banner-title {
  font-size: 0.875rem; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Zoom button */
.sc-zoom-btn {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
}
.sc-img-wrap:hover .sc-zoom-btn { opacity: 1; }
.sc-zoom-btn:hover { background: var(--accent); border-color: var(--accent); }

/* Caption */
.sc-caption {
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

/* Dots navigation */
.sc-dots {
  display: flex; align-items: center; justify-content: center;
  gap: 0.375rem;
  padding: 0.875rem;
  border-top: 1px solid var(--border);
}
.sc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.sc-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.sc-dot:hover:not(.active) {
  background: var(--text-muted);
}

/* ── Lightbox ── */
.sc-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
}
.sc-lightbox.open { display: flex; }
.sc-lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
}
.sc-lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; cursor: pointer;
  transition: background 0.2s;
}
.sc-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.sc-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white; cursor: pointer;
  transition: background 0.2s;
}
.sc-lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.sc-lightbox-prev { left: 1.25rem; }
.sc-lightbox-next { right: 1.25rem; }
.sc-lightbox-content {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 85vh;
  display: flex; flex-direction: column; align-items: center;
}
.sc-lightbox-img {
  max-width: 90vw; max-height: 75vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.sc-lightbox-info {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1rem; color: white;
  flex-wrap: wrap; justify-content: center;
}
.sc-lightbox-counter {
  font-size: 0.6875rem; font-weight: 700;
  background: var(--accent);
  padding: 0.1875rem 0.625rem;
  border-radius: 0.25rem;
}
.sc-lightbox-title {
  font-size: 0.9375rem; font-weight: 600;
}
.sc-lightbox-caption {
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
  width: 100%; text-align: center;
  margin-top: 0.25rem;
}

/* Responsive — tablet */
@media (max-width: 1024px) {
  .sc-img { max-height: 440px; }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  .sc-carousel { border-radius: 0.875rem; margin: 1.5rem -0.5rem; }
  .sc-header { padding: 0.75rem 1rem; }
  .sc-header-title { font-size: 0.75rem; }
  .sc-header-left svg { display: none; }
  .sc-counter { font-size: 0.6875rem; }
  .sc-nav-btn { width: 28px; height: 28px; }
  .sc-img { max-height: 280px; }
  .sc-banner { padding: 0.625rem 1rem; }
  .sc-banner-title { font-size: 0.75rem; }
  .sc-banner-num { font-size: 0.5625rem; padding: 0.125rem 0.375rem; }
  .sc-caption { padding: 0.625rem 1rem; font-size: 0.75rem; }
  .sc-dots { padding: 0.625rem; gap: 0.3125rem; }
  .sc-dot { width: 6px; height: 6px; }
  .sc-dot.active { width: 18px; }
  .sc-zoom-btn { width: 32px; height: 32px; opacity: 0.8; }
  .sc-lightbox-nav { display: none; }
  .sc-lightbox-img { max-width: 96vw; max-height: 70vh; border-radius: 0.375rem; }
  .sc-lightbox-close { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; }
  .sc-lightbox-info { padding: 0 1rem; }
  .sc-lightbox-title { font-size: 0.8125rem; }
  .sc-lightbox-caption { font-size: 0.75rem; }
}

/* Responsive — small mobile */
@media (max-width: 400px) {
  .sc-carousel { margin: 1.25rem -1rem; border-radius: 0; border-left: none; border-right: none; }
  .sc-img { max-height: 220px; }
  .sc-header-right { gap: 0.25rem; }
  .sc-banner-title { max-width: 180px; }
}

/* Touch devices — zoom always slightly visible */
@media (pointer: coarse) {
  .sc-zoom-btn { opacity: 0.7; }
  .sc-img-wrap { cursor: pointer; }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .sc-img { max-height: 200px; }
  .sc-lightbox-img { max-height: 80vh; }
}
