/* =====================================================================
   MacForum.ch — feuille de style principale.
   Design inspiré du mockup : layout 3 colonnes, palette Apple-like.
   ===================================================================== */

:root {
  color-scheme: light dark;
  /* couleurs (light par défaut) */
  --c-bg:        #f4f5f7;
  --c-surface:   #ffffff;
  --c-border:    #e5e7eb;
  --c-text:      #111418;
  --c-muted:     #6b7280;
  --c-muted-2:   #9ca3af;
  --c-link:      #0a84ff;
  --c-link-2:    #0066d6;
  --c-accent:    #0a84ff;
  --c-success:   #34c759;
  --c-danger:    #ff3b30;
  --c-warning:   #ff9500;
  --c-tag-bg:    #eef2f7;
  --c-tag-bg-h:  #e1e7ef;
  --c-chip-on:   #0a84ff;
  --c-pill:      #f1f3f6;
  /* design tokens (indépendants du thème) */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 2px rgba(16, 24, 40, .04);
  --shadow:      0 4px 14px rgba(16, 24, 40, .06);
  --font-sans:   -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
                 Inter, system-ui, sans-serif;
}

/* Mode sombre — actif si OS préfère ET pas d'override "light", OU si data-theme="dark" */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:        #0b0d11;
    --c-surface:   #15181d;
    --c-border:    #262a31;
    --c-text:      #f3f4f6;
    --c-muted:     #9ca3af;
    --c-muted-2:   #6b7280;
    --c-link:      #4ea3ff;
    --c-link-2:    #79b8ff;
    --c-tag-bg:    #1e2229;
    --c-tag-bg-h:  #2a2f37;
    --c-pill:      #1e2229;
  }
}
:root[data-theme="dark"] {
  --c-bg:        #0b0d11;
  --c-surface:   #15181d;
  --c-border:    #262a31;
  --c-text:      #f3f4f6;
  --c-muted:     #9ca3af;
  --c-muted-2:   #6b7280;
  --c-link:      #4ea3ff;
  --c-link-2:    #79b8ff;
  --c-tag-bg:    #1e2229;
  --c-tag-bg-h:  #2a2f37;
  --c-pill:      #1e2229;
}

/* Surcharges dark — éléments avec couleurs en dur */
:root[data-theme="dark"] .brand-name,
:root[data-theme="dark"] .tab,
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .cat-list li,
:root[data-theme="dark"] .news-title,
:root[data-theme="dark"] .forum-list .title,
:root[data-theme="dark"] .pillar-inner,
:root[data-theme="dark"] .pillar-inner h2,
:root[data-theme="dark"] .pillar-inner h3,
:root[data-theme="dark"] .static-page,
:root[data-theme="dark"] .static-page h1,
:root[data-theme="dark"] .static-page h2,
:root[data-theme="dark"] .footer-cols h4,
:root[data-theme="dark"] .category-head h1 { color: var(--c-text); }
:root[data-theme="dark"] .news-row:hover { background: #1b1f26; }
:root[data-theme="dark"] .ad-slot       { background: #1a1d22; }
:root[data-theme="dark"] .deal-thumb,
:root[data-theme="dark"] .feature-card .thumb {
  background: linear-gradient(135deg, #262a31, #1e2229);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-name,
  :root:not([data-theme="light"]) .tab,
  :root:not([data-theme="light"]) .tag,
  :root:not([data-theme="light"]) .cat-list li,
  :root:not([data-theme="light"]) .news-title,
  :root:not([data-theme="light"]) .forum-list .title,
  :root:not([data-theme="light"]) .pillar-inner,
  :root:not([data-theme="light"]) .pillar-inner h2,
  :root:not([data-theme="light"]) .pillar-inner h3,
  :root:not([data-theme="light"]) .static-page,
  :root:not([data-theme="light"]) .static-page h1,
  :root:not([data-theme="light"]) .static-page h2,
  :root:not([data-theme="light"]) .footer-cols h4,
  :root:not([data-theme="light"]) .category-head h1 { color: var(--c-text); }
  :root:not([data-theme="light"]) .news-row:hover { background: #1b1f26; }
  :root:not([data-theme="light"]) .ad-slot       { background: #1a1d22; }
  :root:not([data-theme="light"]) .deal-thumb,
  :root:not([data-theme="light"]) .feature-card .thumb {
    background: linear-gradient(135deg, #262a31, #1e2229);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============================ NAVBAR (single row) ============================ */
.navbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr auto;
  gap: 20px;
  align-items: center;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #111;
}
.brand-name .accent { color: var(--c-link); }
.brand-tag {
  font-size: 11.5px;
  color: var(--c-muted);
  margin-top: 2px;
}

.navbar-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: #2c2c2e;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.tab:hover  { background: var(--c-tag-bg); color: #111; }
.tab.active { background: var(--c-tag-bg); color: #111; }
.tab.home {
  background: var(--c-tag-bg);
  width: 36px; height: 36px;
  justify-content: center;
  padding: 0;
  margin-right: 6px;
}
.tab.home:hover  { background: var(--c-tag-bg-h); }
.tab.deals       { color: var(--c-link); font-weight: 600; }
.tab.deals.active{ background: rgba(10,132,255,.10); color: var(--c-link); }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--c-pill);
  color: var(--c-muted);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.theme-toggle:hover { background: var(--c-tag-bg-h); color: var(--c-text); }

/* boutons partagés (newsletter etc.) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-ghost   { color: #2c2c2e; }
.btn-ghost:hover { color: var(--c-link); }
.btn-primary { background: var(--c-link); color: #fff; }
.btn-primary:hover { background: var(--c-link-2); }
.btn-block   { width: 100%; padding: 10px 14px; }

@media (max-width: 880px) {
  .navbar-inner   { grid-template-columns: 1fr auto; padding: 10px 12px; }
  .navbar-tabs    { grid-column: 1 / -1; order: 3; }
  .navbar-right   { order: 2; }
  .brand-tag      { display: none; }
}

/* ---------------------------- layout ------------------------------- */
.main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1180px) {
  .main { grid-template-columns: 240px minmax(0, 1fr); }
  .col-right { display: none; }
}
@media (max-width: 880px) {
  .main { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .col-left { display: none; }
  .header-feature { display: none; }
}

/* ---------------------------- cards -------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-pad   { padding: 16px; }
.card-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  font-weight: 600;
  margin: 0 0 12px;
}
.card-title.row {
  display: flex; justify-content: space-between; align-items: center;
}
.card-title .more {
  color: var(--c-link);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* -------------------------- sidebar left ---------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-tag-bg);
  color: #1f2937;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.tag:hover { background: var(--c-tag-bg-h); }
.tag.on {
  background: var(--c-link);
  color: #fff;
}
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
  font-weight: 500; color: #1f2937; cursor: pointer;
}
.cat-list li:hover { background: var(--c-tag-bg); }
.cat-list .ico {
  width: 26px; height: 26px;
  background: var(--c-pill);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.see-all {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 8px 0;
  font-size: 13px;
  color: #1f2937;
  cursor: pointer;
  border-top: 1px solid var(--c-border);
  margin-top: 10px;
}
.see-all::after { content: "›"; color: var(--c-muted); }

.trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.trend-list li { border-radius: 8px; font-size: 13px; }
.trend-list li:hover { background: var(--c-tag-bg); }
.trend-list a {
  display: flex; gap: 10px; align-items: center;
  padding: 6px 4px;
  color: inherit;
  text-decoration: none;
}
.trend-list .ico { color: var(--c-link); font-size: 14px; }

/* ---------------------------- center -------------------------------- */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  background: #0b0b0f;
  color: #fff;
  display: block;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 50%, #b585ff 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, #ff79c6 0%, transparent 40%),
    linear-gradient(135deg, #0b0b0f 0%, #1a1a24 60%, #2a1b3a 100%);
}
.hero-content {
  position: relative;
  padding: 26px 28px;
  max-width: 60%;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
  justify-content: space-between;
}
.hero-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-link);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 6px;
  align-self: flex-start;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
}
.hero p {
  font-size: 14px;
  color: #d1d5db;
  margin: 0;
}
.hero-meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 12px; color: #9ca3af;
}
.hero-meta .dot::before { content: "•"; margin: 0 2px; }

/* live news ------------------------------------------------------------ */
.live-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
}
.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-danger);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, .55);
  animation: pulse 1.6s infinite;
}
.live-label {
  color: var(--c-danger); font-weight: 700; font-size: 12px;
  letter-spacing: .04em;
}
.live-title { font-weight: 600; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 59, 48, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0   rgba(255, 59, 48, 0); }
}

.news-row {
  display: grid;
  grid-template-columns: 64px 12px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  transition: background .12s;
}
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: #fafbfc; }
.news-time { color: var(--c-muted-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.news-bullet {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-link);
}
.news-title {
  font-size: 14px; color: #111;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.news-row:hover .news-title { color: var(--c-link); }
.news-cat {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  background: var(--c-pill);
  color: #374151;
}
@media (max-width: 640px) {
  .news-row { grid-template-columns: 48px 8px 1fr; gap: 10px; padding: 11px 12px; }
  .news-cat { display: none; }
  .news-title { font-size: 14px; white-space: normal; line-height: 1.35; }
}

/* ============================ Stories carousel ============================ */
.stories {
  margin: 0 0 16px;
  overflow: hidden;
}
.stories-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 4px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.stories-track::-webkit-scrollbar { height: 6px; }
.stories-track::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.stories-track::-webkit-scrollbar-track { background: transparent; }
.story {
  flex: 0 0 130px;
  aspect-ratio: 9 / 16;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.story:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.story:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }
.story-cat {
  align-self: flex-start;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .92);
  color: #111;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.story-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .stories-track { gap: 8px; padding: 4px 12px 10px; margin: 0 -12px; }
  .story { flex: 0 0 110px; border-radius: 12px; }
  .story-title { font-size: 12px; }
}

/* ============================ Stories viewer (modal) ============================ */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: storyFadeIn .18s ease-out;
  overscroll-behavior: contain;
}
.story-viewer[hidden] { display: none; }
@keyframes storyFadeIn { from { opacity: 0; } to { opacity: 1; } }

.story-viewer-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.story-viewer-close:hover { background: rgba(255, 255, 255, .22); }

.story-viewer-progress {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, calc(100vw - 80px));
  display: flex;
  gap: 4px;
  z-index: 9;
}
.story-viewer-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, .25);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.story-viewer-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, .95);
  transition: width .2s ease;
}
.story-viewer-bar.viewed > span { width: 100%; }
.story-viewer-bar.current > span { width: 100%; }

.story-viewer-stage {
  position: relative;
  width: min(400px, 100vw);
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 40px);
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}
@media (max-width: 640px) {
  .story-viewer-stage {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .story-viewer-progress { width: calc(100vw - 24px); top: 14px; }
  .story-viewer-close { top: 22px; right: 14px; }
}

.story-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.story-slide[hidden] { display: none; }
.story-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.story-slide-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,0) 25%,
    rgba(0,0,0,0) 50%,
    rgba(0,0,0,.85) 100%);
}
.story-slide-content {
  position: relative;
  padding: 22px 22px 28px;
  color: #fff;
  z-index: 5;
}
.story-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 12px;
  opacity: .9;
}
.story-slide-meta .cat {
  padding: 3px 9px;
  background: rgba(255, 255, 255, .96);
  color: #111;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
}
.story-slide-meta .src,
.story-slide-meta .time { font-weight: 500; }
.story-slide-meta .src::before { content: '· '; opacity: .6; margin-right: 2px; }
.story-slide-meta .time::before { content: '· '; opacity: .6; margin-right: 2px; }
.story-slide-title {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.story-slide-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
  opacity: .92;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.story-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: var(--c-link);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
  position: relative;
  z-index: 10;
}
.story-slide-cta:hover { background: var(--c-link-2); }

.story-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.story-viewer-nav:hover { background: rgba(255, 255, 255, .25); }
.story-viewer-nav.prev { left: max(20px, calc(50% - 250px)); }
.story-viewer-nav.next { right: max(20px, calc(50% - 250px)); }
.story-viewer-nav[disabled] { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  .story-viewer-nav { display: none; }
}

/* Tap navigation mobile : gérée en JS sur le stage, exclut les éléments interactifs */
.bookmark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-muted-2); cursor: pointer; border-radius: 6px;
}
.bookmark:hover { background: var(--c-tag-bg); color: var(--c-link); }

.load-more {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  padding: 14px;
  color: var(--c-link); font-weight: 600;
  cursor: pointer;
}
.load-more:hover { background: #fafbfc; }

/* cards bottom 3 cols -------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.feature-card .kicker {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-muted);
}
.feature-card h3 {
  margin: 4px 0 0;
  font-size: 14px; font-weight: 600;
  line-height: 1.3;
}
.feature-card .time {
  font-size: 12px; color: var(--c-muted-2); margin-top: 10px;
}
.feature-card .thumb {
  width: 70px; height: 70px; border-radius: 8px;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #6b7280;
}

/* -------------------------- sidebar right --------------------------- */
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.src-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px; align-items: center;
  cursor: pointer;
}
.src-list li .name { font-weight: 600; font-size: 13.5px; }
.src-list li .time { font-size: 12px; color: var(--c-muted-2); }
.src-logo {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  overflow: hidden;
}
.src-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #fff;
}

/* "Voir plus" sous la liste des sources */
.src-more {
  margin-top: 6px;
}
.src-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--c-link);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px 4px;
  user-select: none;
}
.src-more summary::-webkit-details-marker { display: none; }
.src-more summary::after {
  content: " ▾";
  font-size: 10px;
  color: var(--c-muted);
}
.src-more[open] summary::after { content: " ▴"; }
.src-list-extra { margin-top: 4px; }

.forum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.forum-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.forum-list .title { font-size: 13px; font-weight: 500; color: #1f2937; }
.forum-list .count {
  background: var(--c-link); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  min-width: 26px; text-align: center;
}
.forum-list .time { font-size: 12px; color: var(--c-muted-2); white-space: nowrap; }
.forum-more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--c-link); font-weight: 600; font-size: 13px;
  margin-top: 12px;
}

.newsletter .icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-pill); color: var(--c-link);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.newsletter-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.newsletter-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-muted); font-weight: 600;
}
.newsletter p { margin: 0 0 10px; font-size: 13px; color: #374151; }
.newsletter input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  margin: 8px 0;
  font-size: 13px;
  outline: none;
}
.newsletter input:focus { border-color: var(--c-link); }
.newsletter small { color: var(--c-muted-2); font-size: 11px; display: block; margin-top: 6px; text-align: center; }

.deal {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px; align-items: center;
}
.deal-thumb {
  width: 56px; height: 56px; border-radius: 8px;
  background: linear-gradient(135deg, #fafafa, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.deal-name { font-weight: 600; font-size: 14px; }
.deal-price { font-weight: 700; color: var(--c-text); }
.deal-old { color: var(--c-muted-2); text-decoration: line-through; font-size: 12px; }
.deal-badge {
  background: #ecfdf5; color: var(--c-success);
  padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 12px;
}

/* ---------------------------- footer -------------------------------- */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 24px;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
}
.site-footer a { color: var(--c-muted); }
.site-footer a:hover { color: var(--c-link); }

/* ============================ /go.php ================================ */
.adwall {
  min-height: 100vh;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
}
.adwall-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 720px;
  width: 100%;
  padding: 28px;
  text-align: center;
}
.adwall-box .brand-name { margin-bottom: 8px; font-size: 24px; }
.adwall-box h1 {
  font-size: 20px; margin: 0 0 4px; line-height: 1.3;
}
.adwall-box .from { color: var(--c-muted); font-size: 13px; margin-bottom: 18px; }
.ad-slot {
  background: #fafbfc;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  min-height: 250px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.adwall-cta {
  display: flex; flex-direction: column; gap: 10px;
}
.adwall-count {
  font-size: 13px; color: var(--c-muted);
}
.adwall-count .num { font-weight: 700; color: var(--c-text); }
.adwall-link {
  margin-top: 12px;
  color: var(--c-muted-2);
  font-size: 12px;
  word-break: break-all;
}
.adwall-link a { color: var(--c-link); }

/* ============================ language switcher ============================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--c-pill);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--c-muted);
  transition: background .15s, color .15s;
}
.lang-switch a:hover { color: var(--c-text); }
.lang-switch a.on   { background: var(--c-link); color: #fff; }

/* ============================ category head ============================ */
.category-head {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.category-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -.01em;
}
.category-head p.muted { margin: 0; color: var(--c-muted); font-size: 13px; }
.src-logo.big {
  width: 38px; height: 38px;
  font-size: 14px;
  display: inline-flex;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================ pillar SEO block ============================ */
.pillar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  margin-top: 12px;
}
.pillar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  color: #374151;
  font-size: 14.5px;
  line-height: 1.65;
}
.pillar-inner h2 {
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -.01em;
  color: var(--c-text);
}
.pillar-inner h3 {
  font-size: 16px;
  margin: 22px 0 8px;
  color: var(--c-text);
}
.pillar-inner p { margin: 0 0 12px; }
.pillar-inner ul { margin: 0 0 12px; padding-left: 22px; }
.pillar-inner li { margin: 4px 0; }
.pillar-inner a { color: var(--c-link); }
.pillar-inner a:hover { text-decoration: underline; }

.pillar-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px dashed var(--c-border);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 13px;
  color: var(--c-muted);
}
.pillar-foot span { font-weight: 600; color: var(--c-muted); margin-right: 4px; }
.pillar-foot a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-tag-bg);
  border-radius: 999px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 500;
}
.pillar-foot a:hover { background: var(--c-tag-bg-h); }

/* ============================ footer multi-col ============================ */
.site-footer {
  text-align: left;
  padding: 0;
}
.footer-cols {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 24px 14px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer-cols h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text);
  margin: 0 0 10px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-cols a { color: var(--c-muted); font-size: 13px; }
.footer-cols a:hover { color: var(--c-link); }
.footer-cols .brand-name { font-size: 20px; margin-bottom: 4px; }
.footer-cols .muted { color: var(--c-muted); font-size: 13px; margin: 0; }
.footer-bottom {
  max-width: 1480px;
  margin: 0 auto;
  border-top: 1px solid var(--c-border);
  padding: 14px 24px;
  font-size: 12px;
  color: var(--c-muted-2);
  text-align: center;
}
@media (max-width: 880px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 16px; }
}

/* ============================ left sidebar active state ============================ */
.cat-list li.on {
  background: var(--c-link);
  color: #fff;
}
.cat-list li.on .ico { background: rgba(255,255,255,.18); color: #fff; }

/* ============================ cookie banner ============================ */
.cookiebar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 24px);
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
  padding: 16px 18px;
}
.cookiebar-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.cookiebar-text strong { font-size: 13px; }
.cookiebar-text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.4;
}
.cookiebar-text a { color: var(--c-link); }
.cookiebar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookiebar-actions .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 640px) {
  .cookiebar-inner { grid-template-columns: 1fr; }
  .cookiebar-actions { justify-content: flex-end; }
}

/* ============================ top-list (jour / semaine) ============================ */
.top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: top;
}
.top-list li { margin: 0; padding: 0; }
.top-list a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 13px;
  color: inherit;
  text-decoration: none;
}
.top-list a:hover { background: var(--c-tag-bg); color: var(--c-text); }
.top-list .rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--c-pill);
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.top-list li:nth-child(1) .rank { background: #fef3c7; color: #92400e; }
.top-list li:nth-child(2) .rank { background: #e5e7eb; color: #4b5563; }
.top-list li:nth-child(3) .rank { background: #fed7aa; color: #9a3412; }
.top-list .t { line-height: 1.3; }
.top-list .clicks {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-pill);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================ recherche ============================ */
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}
.search-form input {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  outline: none;
  background: var(--c-bg);
  color: var(--c-text);
}
.search-form input:focus { border-color: var(--c-link); }
.search-h1 {
  font-size: 18px;
  margin: 12px 4px;
  font-weight: 600;
}
.search-h1 .muted { font-weight: 400; }

/* ============================ pages erreur ============================ */
.error-page {
  padding: 40px 32px !important;
  text-align: center;
}
.error-page .error-code {
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--c-link);
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h1 {
  font-size: 22px;
  margin: 0 0 8px;
}
.error-page .tags { justify-content: center; }

/* ============================ pages éditoriales (About, Méthodologie) ============================ */
.static-page {
  padding: 28px 32px !important;
  line-height: 1.65;
  color: #1f2937;
}
.static-page h1 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -.015em;
  color: #111;
}
.static-page h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  letter-spacing: -.005em;
  color: #111;
}
.static-page p { margin: 0 0 14px; }
.static-page ul { margin: 0 0 14px; padding-left: 22px; }
.static-page li { margin-bottom: 5px; }
.static-page a  { color: var(--c-link); }
.static-page a:hover { text-decoration: underline; }
.static-page .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-muted);
  margin-bottom: 22px;
}
.static-page code {
  background: var(--c-tag-bg);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.site-footer .since { color: var(--c-link); font-weight: 500; }
