/* ==========================================================================
   HelpTheMarket — GPSR EU Responsible Persons Directory
   Design: Modern dark/neon + light mode + smooth animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---------- Theme tokens ---------- */
:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Light theme (default) */
  --bg: #f5f6f8;
  --bg-elev: #ffffff;
  --bg-soft: #eef0f4;
  --border: #e2e5ec;
  --border-strong: #cdd2de;
  --text: #0f1220;
  --text-muted: #5b6178;
  --text-soft: #8990a5;
  --accent: #0ea968;
  --accent-2: #1d4ed8;
  --accent-glow: rgba(14, 169, 104, 0.18);
  --danger: #d63f3f;
  --warning: #d68b1a;
  --shadow-sm: 0 1px 2px rgba(15, 18, 32, 0.06);
  --shadow-md: 0 6px 22px rgba(15, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 18, 32, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
}

[data-theme="dark"] {
  --bg: #07080d;
  --bg-elev: #0e1019;
  --bg-soft: #131623;
  --border: #1f2233;
  --border-strong: #2a2e44;
  --text: #eef0f7;
  --text-muted: #9aa0b8;
  --text-soft: #6b7090;
  --accent: #00f5d4;        /* cyan-mint neon */
  --accent-2: #ff3ea5;      /* magenta neon */
  --accent-glow: rgba(0, 245, 212, 0.22);
  --danger: #ff6b6b;
  --warning: #ffb547;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--accent); color: #07080d; }

/* ---------- Background pattern (dark) ---------- */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px circle at 12% -10%, rgba(0, 245, 212, 0.10), transparent 55%),
    radial-gradient(700px circle at 92% 10%, rgba(255, 62, 165, 0.08), transparent 55%),
    radial-gradient(800px circle at 50% 110%, rgba(125, 105, 255, 0.07), transparent 55%);
}
body > * { position: relative; z-index: 1; }

/* ---------- Grain overlay (dark) ---------- */
[data-theme="dark"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Layout primitives ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1240px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #07080d;
  font-weight: 800;
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 24px var(--accent-glow);
  font-family: var(--font-display);
}
.logo-mark.alt { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.active { color: var(--text); background: var(--bg-soft); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s;
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.05); background: var(--bg-elev); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* ---------- Language selector ---------- */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); font-size: 0.84rem; font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover { background: var(--bg-elev); border-color: var(--border-strong); }
.lang-btn .lang-emoji { font-size: 1.05rem; line-height: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 170px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 60;
}
.lang-menu.open { display: block; animation: menuIn 0.16s ease-out both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.lang-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem; color: var(--text-muted);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.lang-item:hover { background: var(--bg-soft); color: var(--text); }
.lang-item.active { background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.lang-item .lang-emoji { font-size: 1.1rem; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 48px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 920px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 36px;
}

/* ---------- Search + filters bar ---------- */
.search-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.search-row {
  display: flex; align-items: stretch; gap: 12px;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1 1 320px;
  position: relative;
}
.search-input-wrap svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-soft); pointer-events: none;
}
.search-input {
  width: 100%; padding: 14px 16px 14px 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.filter-select {
  padding: 14px 36px 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='currentColor' d='M3 4.5l3 3 3-3z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-select:focus { outline: none; border-color: var(--accent); }

.results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px;
  font-size: 0.88rem; color: var(--text-muted);
  font-family: var(--font-mono);
}
.results-count strong { color: var(--text); }

/* ---------- Brand grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.brand-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  animation: cardIn 0.5s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brand-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), var(--accent-glow), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.brand-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.brand-card:hover::before { opacity: 1; }

.brand-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.brand-company {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.country-flag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.country-flag .flag-emoji { font-size: 0.95rem; line-height: 1; }

.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tag.rp {
  background: color-mix(in oklab, var(--accent) 20%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}

.brand-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; color: var(--text-soft);
  font-family: var(--font-mono);
  margin-top: auto;
  padding-top: 12px; border-top: 1px dashed var(--border);
}
.brand-meta .verified-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.brand-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem; font-weight: 700;
  transition: transform 0.2s, opacity 0.2s;
}
[data-theme="dark"] .brand-cta { background: var(--accent); color: #07080d; box-shadow: 0 0 22px var(--accent-glow); }
.brand-cta:hover { transform: translateX(2px); }
.brand-cta svg { width: 14px; height: 14px; transition: transform 0.2s; }
.brand-cta:hover svg { transform: translateX(2px); }

/* ---------- No results ---------- */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state h3 { font-family: var(--font-display); color: var(--text); margin: 16px 0 6px; }

/* ---------- Brand detail page ---------- */
.brand-detail-header {
  padding: 50px 0 28px;
}
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 22px; font-family: var(--font-mono);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-soft); }

.brand-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.brand-detail-subtitle { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 22px; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text);
  transition: all 0.2s ease;
}
.btn:hover { border-color: var(--border-strong); background: var(--bg-elev); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary {
  background: var(--accent);
  color: #07080d;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn.primary:hover { transform: translateY(-1px) scale(1.02); }
[data-theme="dark"] .btn.primary { color: #07080d; }

/* Info card */
.info-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 18px;
}
.info-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.info-card .subtitle { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 18px; }

.info-card.rp {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--bg-elev)), var(--bg-elev));
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}

.info-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.info-row:first-of-type { border-top: none; padding-top: 4px; }
.info-row .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-row .value {
  font-size: 0.96rem;
  color: var(--text);
  word-break: break-word;
}
.info-row .value.mono { font-family: var(--font-mono); font-size: 0.92rem; }
.info-row .value.empty { color: var(--text-soft); font-style: italic; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.18s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.copy-btn:active { transform: scale(0.92); }
.copy-btn.copied {
  background: var(--accent); color: #07080d; border-color: var(--accent);
}
.copy-btn svg { width: 14px; height: 14px; }

/* ---------- Disclaimer / footer ---------- */
.disclaimer {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 24px 0;
}
.disclaimer strong { color: var(--text); }

.footer {
  margin-top: 90px;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.footer-col a { display: block; padding: 4px 0; color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.84rem; color: var(--text-soft);
  font-family: var(--font-mono);
}

/* ---------- Forms (contribute page) ---------- */
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Legal pages prose ---------- */
.prose { padding: 30px 0 60px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.prose h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 32px 0 10px; }
.prose h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 22px 0 8px; }
.prose p, .prose li { font-size: 0.98rem; color: var(--text-muted); }
.prose ul { padding-left: 22px; }
.prose a { color: var(--accent); border-bottom: 1px dashed var(--accent); }
.prose .meta { color: var(--text-soft); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 24px; }

/* ---------- AdSense slot wrapper ---------- */
.ad-slot {
  display: flex; justify-content: center; align-items: center;
  min-height: 90px;
  margin: 28px 0;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  position: relative;
}
.ad-slot::before {
  content: 'Publicité';
  position: absolute;
  top: 6px; left: 12px;
  font-size: 0.62rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 12px 20px;
  background: var(--text); color: var(--bg);
  border-radius: 12px;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
[data-theme="dark"] .toast { background: var(--accent); color: #07080d; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-link:not(.nav-cta) { display: none; }
  .hero { padding: 50px 0 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 6px; }
  .info-row .copy-btn { justify-self: flex-start; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
}

/* ---------- Stagger animation ---------- */
.brand-grid > .brand-card:nth-child(1) { animation-delay: 0.02s; }
.brand-grid > .brand-card:nth-child(2) { animation-delay: 0.06s; }
.brand-grid > .brand-card:nth-child(3) { animation-delay: 0.10s; }
.brand-grid > .brand-card:nth-child(4) { animation-delay: 0.14s; }
.brand-grid > .brand-card:nth-child(5) { animation-delay: 0.18s; }
.brand-grid > .brand-card:nth-child(6) { animation-delay: 0.22s; }
.brand-grid > .brand-card:nth-child(7) { animation-delay: 0.26s; }
.brand-grid > .brand-card:nth-child(8) { animation-delay: 0.30s; }
.brand-grid > .brand-card:nth-child(9) { animation-delay: 0.34s; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin: 40px 0;
}
.pagination button {
  min-width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
.pagination button.active { background: var(--accent); color: #07080d; border-color: var(--accent); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }


/* ---------- Blog cards ---------- */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.blog-card{
  display:block;
  background:var(--bg-elev);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:22px;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.blog-card:hover{
  transform:translateY(-3px);
  border-color:var(--border-strong);
  box-shadow:var(--shadow-md);
}
.blog-card h3{
  margin:10px 0 10px;
  font-family:var(--font-display);
  font-size:1.15rem;
}
.blog-meta{
  color:var(--text-soft);
  font-family:var(--font-mono);
  font-size:.8rem;
}
.blog-card p{
  color:var(--text-muted);
  margin:0 0 14px;
}
.blog-link{
  color:var(--accent);
  font-weight:700;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-soft);
  color:var(--text-soft);
  font-size:.8rem;
  font-family:var(--font-mono);
}
.dual-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.helper-list{
  margin:12px 0 0;
  padding-left:20px;
  color:var(--text-muted);
}
.helper-list li{ margin:8px 0; }
@media (max-width:768px){
  .blog-grid,.dual-grid{ grid-template-columns:1fr; }
}
/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 900px;
  margin: 0 auto;
  background: #111827;
  border: 1px solid #1f2937;
  padding: 18px 20px;
  border-radius: 8px;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 9999;
  font-size: 14px;
  animation: slideUp 0.5s cubic-bezier(.2,.8,.2,1);
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-text a {
  color: #14b8a6;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons button {
  padding: 9px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.cookie-accept {
  background: #14b8a6;
  color: #fff;
}

.cookie-decline {
  background: #374151;
  color: #e5e7eb;
}

/* Mobile : on passe en colonne, tout bien centré */
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* ---------- Legal Pages ---------- */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #e5e7eb;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #14b8a6;
}

.legal-page h2 {
  margin-top: 35px;
  margin-bottom: 12px;
  font-size: 22px;
  color: #38bdf8;
}

.legal-page .intro {
  margin-bottom: 30px;
  font-size: 16px;
  color: #cbd5e1;
}

.card-legal {
  background: #111827;
  border: 1px solid #1f2937;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  line-height: 1.6;
}

.card-legal a {
  color: #14b8a6;
  text-decoration: underline;
}
