/* article.css — Redesigned article page */

/* ── ARTICLE DARK HEADER (style Futura) ── */
.article-dark-header {
  background: #000918;
  padding: 35px 24px 25px;
  margin-top: -1px;
}
.article-dark-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-hero-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.article-hero-source:hover { opacity: .8; }
.article-hero-source .src-fav { width: 18px; height: 18px; border-radius: 4px; }
.article-hero-cat, .article-hero-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px;
  padding: 3px 10px;
}
.article-hero-cat { background: rgba(139,92,246,.3); border-color: rgba(139,92,246,.4); }
.article-hero-tag { background: rgba(255,255,255,.08); }
.article-hero-title {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.8px;
  color: #fff;
  margin-bottom: 20px;
}
.article-hero-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
}
.article-hero-date { font-size: 13px; color: rgba(255,255,255,.5); }
.article-hero-sep { color: rgba(255,255,255,.2); }

/* Image pont (à cheval sombre/clair) */
.article-img-bridge {
  background: linear-gradient(to bottom, #000918 50%, var(--bg, #f5f3ef) 50%);
  padding: 0 24px;
}
.article-img-bridge-inner {
  max-width: 950px;
  margin: 0 auto;
}
.article-bridge-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* Sub-nav sombre pour article */
.sub-nav { background: #000918; border-bottom-color: rgba(255,255,255,.08); }
.sub-nav-info { color: rgba(255,255,255,.5); }
.sub-nav-sep { color: rgba(255,255,255,.2); }
.sub-nav-back-arrow { color: rgba(255,255,255,.6); }
.sub-nav-back-arrow:hover { background: rgba(255,255,255,.08); }
.share-label { color: rgba(255,255,255,.4); }
.share-btn { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
.share-btn:hover { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.1); }

@media(max-width:640px) {
  .article-dark-header { padding: 24px 16px 20px; }
  .article-hero-title { font-size: 24px; letter-spacing: -.4px; }
  .article-img-bridge { padding: 0 14px; }
  .article-bridge-img { border-radius: 10px; aspect-ratio: 16/9; }
}

[data-theme="dark"] .article-img-bridge {
  background: linear-gradient(to bottom, #0a0a0f 50%, var(--bg) 50%);
}

/* ── LAYOUT 2 COLONNES ── */
.article-page { max-width: 1000px; margin: 0 auto; padding: 32px 24px 50px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
@media(max-width:860px) { .article-page { grid-template-columns: 1fr; gap: 0; } }

.article-main { min-width: 0; }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg { width: 10px; height: 10px; flex-shrink: 0; }

/* ── META LINE ── */
.meta-line { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.meta-source { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }
.meta-source:hover { text-decoration: underline; }
.meta-source img { width: 18px; height: 18px; border-radius: 4px; }
.meta-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--blue-pale); color: var(--blue); border: 1px solid var(--blue-mid); border-radius: 4px; padding: 2px 8px; }
.meta-sep { color: var(--border-strong); font-size: 12px; }
.meta-date, .meta-readtime { font-size: 12px; color: var(--muted); }

/* ── TITLE ── */
.article-title { font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -.8px; margin-bottom: 20px; color: var(--ink); }
@media(max-width:600px) { .article-title { font-size: 24px; } }

/* ── HERO IMAGE ── */
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-bottom: 28px; display: block; }

/* ── CTA TOP (avant le résumé) ── */
.btn-read-top {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px; margin-bottom: 28px;
  background: var(--blue); color: #fff;
  border-radius: 12px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background .15s;
}
.btn-read-top:hover { background: var(--blue-dark, #2563eb); }
.btn-read-top svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── AI SUMMARY — REDESIGN ── */
.ai-summary { margin-bottom: 32px; }
.ai-summary-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ai-read-time { font-size: 12px; color: var(--muted); font-family: var(--sans); }
.ai-intro-phrase { font-size: 13px; color: var(--muted); margin-bottom: 16px; font-style: italic; line-height: 1.5; }
.ai-summary-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px;
}
.ai-summary-badge svg { width: 14px; height: 14px; }

.ai-essential {
  font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--ink);
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 16px;
}

.ai-points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ai-point {
  display: flex; gap: 12px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.ai-point-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  background: var(--blue-pale); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--blue);
}
.ai-point strong { color: var(--ink); }

.ai-impact {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; background: linear-gradient(135deg, rgba(139,92,246,.06), rgba(59,130,246,.06));
  border: 1px solid rgba(139,92,246,.15); border-radius: 10px;
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.ai-impact-icon { flex-shrink: 0; font-size: 18px; margin-top: 2px; }

/* ── ACTIONS BAR ── */
.actions-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 0; margin-bottom: 8px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.btn-read {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: background .15s;
}
.btn-read:hover { background: var(--blue-dark, #2563eb); }
.btn-read svg { width: 14px; height: 14px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; text-decoration: none; font-family: inherit;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-secondary.active { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.btn-secondary.active svg { fill: var(--blue); }
.btn-secondary svg { width: 16px; height: 16px; }
.actions-right { margin-left: auto; display: flex; gap: 6px; }
.btn-icon {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--muted); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .15s;
  text-decoration: none; font-family: inherit;
}
.btn-icon:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.btn-icon.copied { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,.08); }

/* ── TAGS & HUBS SECTION ── */
.tags-hubs-section {
  margin: 24px 0 32px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
}
.tags-hubs-group { margin-bottom: 16px; }
.tags-hubs-group:last-child { margin-bottom: 0; }
.tags-hubs-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.tags-hubs-label svg { width: 12px; height: 12px; opacity: .6; }

.tags-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 5px 14px; text-decoration: none;
  transition: all .2s;
}
.tag-pill:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.hubs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: linear-gradient(135deg, rgba(139,92,246,.06), rgba(59,130,246,.06));
  border: 1px solid rgba(139,92,246,.15);
  border-radius: 10px; padding: 8px 14px; text-decoration: none;
  transition: all .2s;
}
.hub-chip:hover { background: linear-gradient(135deg, rgba(139,92,246,.15), rgba(59,130,246,.15)); border-color: var(--blue); color: var(--blue); }
.hub-chip img { width: 18px; height: 18px; border-radius: 4px; }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 80px; align-self: start; }
@media(max-width:860px) { .article-sidebar { position: static; margin-top: 32px; } }

.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 14px;
}

/* Related cards (sidebar) */
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-card {
  display: flex; gap: 10px; text-decoration: none;
  padding: 10px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); transition: all .15s;
}
.related-card:hover { border-color: var(--blue-mid); }
.related-card img {
  width: 72px; height: 52px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.related-card-text { flex: 1; min-width: 0; }
.related-card-title {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card:hover .related-card-title { color: var(--blue); }
.related-card-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── LIRE ENSUITE (single next article) ── */
.read-next {
  margin: 32px 0 24px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.read-next-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.read-next-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .2s;
}
.read-next-card:hover { border-color: var(--blue-mid); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.read-next-img {
  width: 120px; min-height: 80px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--blue-pale);
  flex-shrink: 0;
}
.read-next-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.read-next-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.read-next-card:hover .read-next-title { color: var(--blue); }
.read-next-meta { font-size: 12px; color: var(--muted); }

/* ── BOUCLE RETOUR ── */
.back-to-feed {
  text-align: center;
  padding: 10px 0 0;
}
.btn-back-feed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--blue);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
}
.btn-back-feed:hover { border-color: var(--blue); background: var(--blue-pale); }
.btn-back-feed svg { flex-shrink: 0; }

/* Newsletter mini widget */
.nl-widget {
  padding: 20px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(59,130,246,.08));
  border: 1px solid rgba(139,92,246,.15);
}
.nl-widget h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.nl-widget p { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.nl-widget input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; background: var(--bg);
  color: var(--ink); margin-bottom: 8px; font-family: inherit;
}
.nl-widget button {
  width: 100%; padding: 10px; background: var(--blue); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.nl-widget button:hover { background: var(--blue-dark, #2563eb); }

/* ── RÉSUMÉ HEBDO (kept from old) ── */
.wrap{max-width:1000px;margin:0 auto;padding:20px 15px 80px}
.weekly-body p { font-size: 15px; line-height: 1.75; color: var(--ink); margin: 6px 0; }
.weekly-intro { font-size: 16px !important; font-weight: 500; color: var(--ink-2) !important; margin-bottom: 16px !important; }
.weekly-theme { font-size: 16px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; letter-spacing: -.2px; }
.weekly-retenir {
  margin-top: 28px; padding: 16px 20px;
  background: var(--blue-pale); border-left: 3px solid var(--blue);
  border-radius: 4px; font-size: 14px; color: var(--ink); line-height: 1.6;
}
.weekly-retenir strong { color: var(--blue); }

/* ── LISTE SEMAINES ── */
.weekly-list { display: flex; flex-direction: column; gap: 2px; }
.weekly-item {
  display: block; padding: 20px 24px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: all .15s; margin-bottom: 8px;
}
.weekly-item:hover { border-color: var(--blue-mid); background: var(--surface); }
.weekly-item-dates { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.weekly-item-title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; margin-bottom: 6px; line-height: 1.4; }
.weekly-item:hover .weekly-item-title { color: var(--blue); }
.weekly-item-meta { font-size: 12px; color: var(--muted); }

/* ── SOURCE ENRICHIE ── */
.src-hd { padding: 32px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.src-hd-main { display: flex; align-items: flex-start; gap: 20px; }
.src-avatar {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--blue-pale); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--blue);
  flex-shrink: 0; text-transform: uppercase;
}
.src-hd-name { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; margin-bottom: 6px; }
.src-hd-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.src-hd-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.src-cat-n { font-size: 10px; font-weight: 700; background: var(--blue); color: #fff; border-radius: 3px; padding: 1px 5px; margin-left: 3px; }
.src-articles-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.src-articles-hd h2 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.arow-img-ph {
  width: 64px; height: 48px; border-radius: 4px;
  background: var(--blue-pale); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--blue); opacity: .7; text-transform: uppercase;
}

/* ── LISTE ARTICLES SOURCE ── */
.art-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.arow {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-top: 1px solid var(--border);
  background: var(--paper); text-decoration: none; transition: background .12s;
}
.arow:first-child { border-top: none; }
.arow:hover { background: var(--surface); }
.arow-img { width: 72px; height: 52px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.arow-body { flex: 1; min-width: 0; }
.arow-title {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px;
}
.arow:hover .arow-title { color: var(--blue); }
.arow-meta { font-size: 12px; color: var(--muted); }
.arow-cat {
  font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-pale);
  border: 1px solid var(--blue-mid); border-radius: 3px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0;
}

/* ── DARK MODE ── */
[data-theme="dark"] .weekly-retenir { background: var(--blue-pale); }
[data-theme="dark"] .weekly-item { background: var(--paper); border-color: var(--border); }
[data-theme="dark"] .weekly-item:hover { background: var(--surface); border-color: var(--blue-mid); }
[data-theme="dark"] .arow { background: var(--paper); border-color: var(--border); }
[data-theme="dark"] .arow:hover { background: var(--surface); }
[data-theme="dark"] .art-list { border-color: var(--border); }
[data-theme="dark"] .src-avatar { background: var(--blue-pale); border-color: var(--blue-mid); }

/* ── MOBILE ARTICLE PAGE ── */
@media (max-width: 640px) {
  .article-page { padding: 20px 14px 40px; }

  /* CTA top */
  .btn-read-top { padding: 14px 16px; font-size: 14px; border-radius: 10px; margin-bottom: 22px; }

  /* AI Summary */
  .ai-essential { padding: 16px; font-size: 15px; }
  .ai-point { padding: 12px 14px; }
  .ai-impact { padding: 12px 14px; }

  /* Actions bar — wrap nicely */
  .actions-bar {
    flex-wrap: wrap; gap: 8px; padding: 16px 0;
  }
  .actions-bar .btn-read {
    width: 100%; justify-content: center; padding: 13px 20px; font-size: 14px; border-radius: 10px; order: 1;
  }
  .actions-bar .btn-secondary {
    flex: 1; justify-content: center; padding: 10px 8px; font-size: 12px; border-radius: 8px; order: 2;
  }
  .actions-right {
    margin-left: 0; width: 100%; justify-content: center; gap: 8px; order: 3;
  }
  .btn-icon { width: 36px; height: 36px; }

  /* Tags & hubs */
  .tags-hubs-section { padding: 16px; margin: 16px 0 24px; }
  .tag-pill { padding: 4px 10px; font-size: 11px; }
  .hub-chip { padding: 6px 10px; font-size: 11px; }

  /* Hero image */
  .article-hero { border-radius: 8px; margin-bottom: 20px; }

  /* Meta line */
  .meta-line { gap: 6px; margin-bottom: 12px; }
}
