/* ── Foot Actu v4 — Design System ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:       #f4f5f7;
  --surface:  #ffffff;
  --border:   #e5e7eb;
  --border-2: #d1d5db;
  --ink:      #111827;
  --ink2:     #374151;
  --ink3:     #6b7280;
  --ink4:     #9ca3af;

  --accent:      #2563eb;
  --accent-bg:   #eff6ff;
  --accent-text: #1d4ed8;

  --live:    #ef4444;
  --live-bg: #fef2f2;
  --green:   #16a34a;
  --green-bg:#f0fdf4;
  --amber:   #d97706;
  --amber-bg:#fffbeb;

  --mw:  1040px;
  --pad: 16px;
  --r4:  4px;
  --r8:  8px;
  --r12: 12px;
  --r24: 24px;
  --nav-h: 52px;
  --tab-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* Container */
.fa-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Layout 2 colonnes */
.fa-layout {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}
.fa-main { min-width: 0; }
.fa-sidebar { min-width: 0; position: sticky; top: calc(var(--nav-h) + 12px); }

/* Section header */
.fa-sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fa-sh-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 7px;
}
.fa-sh-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 13px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.fa-sh-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.fa-sh-link:hover { text-decoration: underline; }

/* Card */
.fa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: hidden;
  margin-bottom: 12px;
}

/* Badges */
.fa-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--r4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.fa-badge-live  { background: var(--live-bg);   color: var(--live); }
.fa-badge-green { background: var(--green-bg);  color: var(--green); }
.fa-badge-blue  { background: var(--accent-bg); color: var(--accent-text); }
.fa-badge-gray  { background: var(--bg); color: var(--ink3); border: 1px solid var(--border); }
.fa-badge-dark  { background: var(--ink); color: #fff; }

/* Live dot */
.fa-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  animation: fa-blink .7s step-end infinite;
}
@keyframes fa-blink { 50% { opacity: 0; } }

/* Chips filtre */
.fa-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px; }
.fa-chip {
  padding: 4px 13px;
  border-radius: var(--r24);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  cursor: pointer;
  transition: all .1s;
}
.fa-chip:hover { border-color: var(--accent); color: var(--accent); }
.fa-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Article row */
.fa-arow {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  cursor: pointer;
  transition: background .1s;
}
.fa-arow:last-child { border-bottom: none; }
.fa-arow:hover { background: #f9fafb; }
.fa-arow-thumb {
  width: 72px; height: 52px;
  border-radius: var(--r8);
  background: var(--bg);
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}
.fa-arow-thumb-ph {
  width: 72px; height: 52px;
  border-radius: var(--r8);
  background: var(--bg);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--ink4);
}
.fa-arow-body { flex: 1; min-width: 0; }
.fa-arow-cat {
  font-size: 10px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: .4px;
  margin-bottom: 3px;
}
.fa-arow-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fa-arow-meta { font-size: 11px; color: var(--ink3); margin-top: 4px; }
.fa-arow-chev { color: var(--border); flex-shrink: 0; align-self: center; }

/* Feed */
.fa-feed-item {
  display: flex; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.fa-feed-item:last-child { border-bottom: none; }
.fa-feed-item:hover { background: #f9fafb; }
.fa-feed-time {
  font-size: 10px; font-weight: 700; color: var(--ink3);
  min-width: 34px; text-align: right; flex-shrink: 0;
  padding-top: 2px; line-height: 1.3;
}
.fa-feed-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); margin-top: 5px; flex-shrink: 0;
}
.fa-feed-dot.live { background: var(--live); box-shadow: 0 0 0 3px var(--live-bg); animation: fa-blink .7s step-end infinite; }
.fa-feed-title { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--ink); }

/* Player row */
.fa-prow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.fa-prow:last-child { border-bottom: none; }
.fa-prow:hover { background: #f9fafb; }
.fa-prow-rank { font-size: 11px; font-weight: 700; color: var(--border); min-width: 16px; text-align: center; flex-shrink: 0; }
.fa-prow-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent-text);
  flex-shrink: 0; overflow: hidden;
}
.fa-prow-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.fa-prow-info { flex: 1; min-width: 0; }
.fa-prow-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-prow-sub { font-size: 11px; color: var(--ink3); margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.fa-prow-val { flex-shrink: 0; text-align: right; }
.fa-prow-val strong { font-size: 16px; font-weight: 800; display: block; line-height: 1; }
.fa-prow-val span { font-size: 9px; color: var(--ink3); text-transform: uppercase; letter-spacing: .3px; }

/* Team row */
.fa-trow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.fa-trow:last-child { border-bottom: none; }
.fa-trow:hover { background: #f9fafb; }
.fa-trow-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.fa-trow-name { font-size: 13px; font-weight: 600; flex: 1; }
.fa-trow-meta { font-size: 11px; color: var(--ink3); display: flex; align-items: center; gap: 4px; }

/* League row */
.fa-lrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .1s;
}
.fa-lrow:last-child { border-bottom: none; }
.fa-lrow:hover { background: #f9fafb; }
.fa-lrow-logo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.fa-lrow-name { font-size: 13px; font-weight: 500; flex: 1; }
.fa-lrow-ctry { font-size: 11px; color: var(--ink3); }

/* Sidebar widget */
.fa-sw { border: 1px solid var(--border); border-radius: var(--r12); overflow: hidden; background: var(--surface); margin-bottom: 12px; }
.fa-sw-hd {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: space-between;
}
.fa-sw-hd h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--ink); }
.fa-sw-hd a { font-size: 11px; color: var(--accent); font-weight: 500; }
.fa-sw-hd a:hover { text-decoration: underline; }

/* Entity hero */
.fa-entity-hero {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r12);
  padding: 16px; margin-bottom: 12px;
  display: flex; gap: 14px; align-items: center;
}
.fa-entity-av {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--accent-text); flex-shrink: 0;
  overflow: hidden;
}
.fa-entity-av img { width: 100%; height: 100%; object-fit: cover; }
.fa-entity-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 5px; }
.fa-entity-sub { font-size: 12px; color: var(--ink3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Stats strip (dark) */
.fa-stats-strip {
  display: flex; background: #0f172a;
  border-radius: var(--r12); overflow: hidden; margin-bottom: 12px;
}
.fa-ss-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 13px 8px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.fa-ss-item:last-child { border-right: none; }
.fa-ss-n { font-size: 22px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.5px; }
.fa-ss-n.g { color: #4ade80; }
.fa-ss-n.r { color: #f87171; }
.fa-ss-n.y { color: #fbbf24; }
.fa-ss-l { font-size: 9px; font-weight: 600; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

/* Standings mini */
.fa-standing-hd {
  display: grid;
  grid-template-columns: 16px 18px 1fr 22px 22px 26px 48px;
  gap: 3px; align-items: center;
  padding: 5px 12px;
  font-size: 9px; font-weight: 700; color: var(--ink3);
  text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--border);
}
.fa-srow {
  display: grid;
  grid-template-columns: 16px 18px 1fr 22px 22px 26px 48px;
  gap: 3px; align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px; cursor: pointer; transition: background .1s;
}
.fa-srow:last-child { border-bottom: none; }
.fa-srow:hover { background: #f9fafb; }
.fa-srow .rk { font-weight: 700; color: var(--ink3); text-align: center; }
.fa-srow .lg { width: 15px; height: 15px; border-radius: 2px; object-fit: contain; }
.fa-srow .lg-ph { width: 15px; height: 15px; border-radius: 2px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 7px; color: var(--ink3); }
.fa-srow .tn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-srow .nm { text-align: center; color: var(--ink3); }
.fa-srow .pt { text-align: center; font-weight: 800; color: var(--ink); }
.fa-srow .fm { display: flex; gap: 2px; justify-content: center; }
.fa-fd { width: 13px; height: 13px; border-radius: 50%; font-size: 7px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.fa-fd-w { background: var(--green); }
.fa-fd-d { background: var(--ink4); }
.fa-fd-l { background: var(--live); }
.fa-bd-cl { border-left: 2px solid var(--accent); }
.fa-bd-el { border-left: 2px solid var(--amber); }
.fa-bd-rl { border-left: 2px solid var(--live); }

/* Featured article */
.fa-featured {
  position: relative; border-radius: var(--r12); overflow: hidden;
  margin-bottom: 12px; min-height: 272px;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer; background: #0c2340;
  transition: opacity .15s;
}
.fa-featured:hover { opacity: .95; }
.fa-featured-bg {
  position: absolute; inset: 0;
  background: #0c2340;
}
.fa-featured-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.fa-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,15,35,.92) 0%, rgba(5,15,35,.4) 55%, transparent 100%);
}
.fa-featured-body { position: relative; z-index: 1; padding: 18px 20px; }
.fa-featured-cat {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r4);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px;
}
.fa-featured-title {
  font-size: 21px; font-weight: 800; color: #fff;
  line-height: 1.25; letter-spacing: -.2px; margin-bottom: 8px;
}
.fa-featured-meta {
  font-size: 12px; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 8px;
}
.fa-featured-dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.35); }

/* Info list pour fiches */
.fa-info-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.fa-info-row:last-child { border-bottom: none; }
.fa-info-icon {
  width: 30px; height: 30px; border-radius: var(--r8);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink3); flex-shrink: 0;
}
.fa-info-lbl { font-size: 11px; color: var(--ink3); margin-bottom: 1px; }
.fa-info-val { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.fa-info-val a { color: var(--accent); }

/* Stats grid */
.fa-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--r8); overflow: hidden;
}
.fa-sg-item {
  background: var(--surface); display: flex; flex-direction: column;
  align-items: center; padding: 14px 8px; text-align: center;
}
.fa-sg-num { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.4px; }
.fa-sg-num.g { color: var(--green); }
.fa-sg-num.r { color: var(--live); }
.fa-sg-lbl { font-size: 9.5px; font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: .3px; margin-top: 4px; }

/* Effectif poste header */
.fa-pos-hd {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--ink3); padding: 8px 14px 5px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}

/* Career */
.fa-career-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.fa-career-row:last-child { border-bottom: none; }
.fa-career-dates { font-size: 11px; color: var(--ink3); min-width: 80px; flex-shrink: 0; }
.fa-career-club { display: flex; align-items: center; gap: 8px; flex: 1; }
.fa-career-name { font-size: 13.5px; font-weight: 600; }
.fa-career-current { font-size: 10px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 2px 7px; border-radius: var(--r4); }

/* Article single */
.fa-art-hd { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 0 14px; }
.fa-art-cat { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.fa-art-title {
  font-size: 25px; font-weight: 800; color: var(--ink);
  line-height: 1.25; letter-spacing: -.3px; margin-bottom: 10px;
}
.fa-art-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink3); flex-wrap: wrap; }
.fa-art-sep { width: 2px; height: 2px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.fa-art-entities { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0 0; border-top: 1px solid var(--border); margin-top: 10px; }
.fa-art-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r12); margin: 16px 0; background: var(--bg); }

/* Chip d'entité (inline) */
.fa-chip-entity {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r8); padding: 4px 9px 4px 5px;
  font-size: 12px; font-weight: 600; color: var(--ink2);
  transition: background .1s;
}
.fa-chip-entity:hover { background: var(--border); }
.fa-chip-entity img { width: 18px; height: 18px; border-radius: 3px; object-fit: contain; }

/* Archive header */
.fa-arch-hd { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; }
.fa-arch-inner { display: flex; align-items: center; gap: 12px; }
.fa-arch-icon {
  width: 40px; height: 40px; border-radius: var(--r8);
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.fa-arch-title { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.fa-arch-count { font-size: 12px; color: var(--ink3); margin-top: 2px; }

/* Prose */
.fa-prose { font-size: 15.5px; line-height: 1.7; color: var(--ink2); }
.fa-prose h2 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 1.6em 0 .5em; letter-spacing: -.2px; }
.fa-prose h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 1.4em 0 .4em; }
.fa-prose p { margin-bottom: 1em; }
.fa-prose ul, .fa-prose ol { margin: .5em 0 1em 1.4em; }
.fa-prose ul { list-style: disc; }
.fa-prose ol { list-style: decimal; }
.fa-prose a { color: var(--accent); }
.fa-prose strong { font-weight: 700; color: var(--ink); }
.fa-prose blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--ink3); font-style: italic; margin: 1em 0; }
.fa-prose img { border-radius: var(--r12); margin: 1em 0; }

/* Pagination */
.fa-pag { display: flex; justify-content: center; gap: 4px; padding: 20px 0 4px; flex-wrap: wrap; }
.fa-pag a, .fa-pag span {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; border-radius: var(--r8);
  font-size: 13px; font-weight: 500;
  background: var(--surface); color: var(--ink3);
  border: 1px solid var(--border); transition: all .1s;
}
.fa-pag a:hover { border-color: var(--accent); color: var(--accent); }
.fa-pag .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Empty state */
.fa-empty { text-align: center; padding: 48px 20px; color: var(--ink4); }
.fa-empty p { font-size: 14px; margin-top: 10px; }

/* Helpers */
.fa-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-c2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fa-c3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Page spacing */
.fa-page { padding-bottom: calc(var(--tab-h) + 20px); }

/* Flag */
.fa-flag { border-radius: 2px; object-fit: cover; flex-shrink: 0; }

/* Responsive */
@media (max-width: 840px) {
  .fa-layout { grid-template-columns: 1fr; }
  .fa-sidebar { display: none; }
}
@media (max-width: 600px) {
  .fa-art-title { font-size: 19px; }
  .fa-featured-title { font-size: 17px; }
  .fa-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
