/* =====================================================
   FIGHTFOCUS — style.css
   Média des sports de combat
   ===================================================== */

/* ── CSS VARIABLES ── */
:root {
  --bg:           #F5F7FA;
  --card:         #FFFFFF;
  --border:       #E8ECF2;
  --text:         #0F172A;
  --text-light:   #64748B;
  --text-muted:   #94A3B8;
  --blue:         #1E88E5;
  --blue-dark:    #1565C0;
  --blue-light:   #38BDF8;
  --blue-tint:    #EFF6FF;
  --accent-red:   #DC2626;
  --header-bg:    #0F172A;
  --header-h:     64px;
  --nav-h:        44px;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --shadow-sm:    0 2px 8px rgba(15,23,42,.06);
  --shadow-md:    0 8px 24px rgba(15,23,42,.10);
  --shadow-lg:    0 16px 40px rgba(15,23,42,.14);
  --max-w:        1180px;
  --col-gap:      28px;
  --transition:   0.22s cubic-bezier(.4,0,.2,1);
}

/* Dark mode */
body.dark-mode {
  --bg:           #0F172A;
  --card:         #1E293B;
  --border:       #334155;
  --text:         #F1F5F9;
  --text-light:   #94A3B8;
  --text-muted:   #64748B;
  --blue-tint:    #1E3A5F;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── LOADER ── */
.loader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  animation: loader-slide 0.8s ease infinite alternate;
  z-index: 9999;
}
@keyframes loader-slide {
  from { transform: scaleX(0.2) translateX(-100%); }
  to   { transform: scaleX(1) translateX(0); }
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.header-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search form */
#searchForm {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 40px;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}
#searchForm:focus-within {
  background: rgba(255,255,255,.18);
  border-color: var(--blue-light);
}
#searchInput {
  background: none;
  border: none;
  outline: none;
  color: white;
  padding: 8px 14px;
  font-size: 0.88rem;
  width: 180px;
  font-family: inherit;
}
#searchInput::placeholder { color: rgba(255,255,255,.45); }
#searchBtn {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  padding: 8px 12px;
  font-size: 0.95rem;
  transition: color var(--transition);
}
#searchBtn:hover { color: white; }

#darkModeToggle {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
#darkModeToggle:hover { background: rgba(255,255,255,.2); }

/* Navigation bar */
.nav-bar {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 2px;
  height: var(--nav-h);
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  color: rgba(255,255,255,.7);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: white;
  border-bottom-color: var(--blue-light);
}

/* Accent band under nav */
.hero-accent-band {
  height: 3px;
  background: linear-gradient(90deg, #1E88E5 0%, #38BDF8 40%, transparent 100%);
}

/* ═══════════════════════════════════════
   LAYOUT WRAPPER
═══════════════════════════════════════ */
#app {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
  min-height: 60vh;
}

/* ═══════════════════════════════════════
   HERO — HOME
═══════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--col-gap);
  margin-bottom: 48px;
}

/* Featured card */
.featured-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15,23,42,.18);
}

.featured-image {
  height: 320px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.6) 0%, transparent 60%);
}

.fi-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--accent-red);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 40px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.featured-body {
  padding: 28px 28px 24px;
}
.feat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.feat-meta span { display: flex; align-items: center; gap: 4px; }
.feat-meta span + span::before {
  content: '·';
  color: var(--text-muted);
  margin-right: 4px;
}

.feat-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.feat-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-footer { margin-top: auto; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .02em;
  transition: gap var(--transition);
}
.featured-card:hover .read-more { gap: 10px; }

/* Hero sidebar — mini cards */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.mini-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.mini-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.mini-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   SECTION BAR
═══════════════════════════════════════ */
.sec-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.sec-bar h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  white-space: nowrap;
}
.sec-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.see-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color var(--transition);
}
.see-all:hover { color: var(--blue-dark); }

/* ═══════════════════════════════════════
   SPORTS HUB — DISCIPLINE CARDS
═══════════════════════════════════════ */
.sports-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.sport-hub-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.sport-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.sport-hub-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sport-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sport-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text);
}
.sport-origin {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}
.sport-links {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.sport-link {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
  padding: 6px;
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.sport-hub-card:hover .sport-link { background: #dbeafe; }

/* ═══════════════════════════════════════
   MAIN LAYOUT (home, article pages)
═══════════════════════════════════════ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--col-gap);
  align-items: start;
}

/* ═══════════════════════════════════════
   ARTICLE CARDS — GRID
═══════════════════════════════════════ */
.art-grid,
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.art-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.art-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30,136,229,.25);
}

.art-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.art-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.35) 0%, transparent 60%);
  transition: opacity var(--transition);
}
.art-card:hover .art-image::after { opacity: 0.5; }

.art-cat-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.art-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.art-title-sm {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.art-card:hover .art-title-sm { color: var(--blue); }

.art-excerpt {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* Category type badges */
.atype {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.atype-guide    { background: #dbeafe; color: #1d4ed8; }
.atype-actu     { background: #fee2e2; color: #b91c1c; }
.atype-analyse  { background: #d1fae5; color: #065f46; }
.atype-default  { background: var(--blue-tint); color: var(--blue); }

/* ═══════════════════════════════════════
   SIDEBAR WIDGETS
═══════════════════════════════════════ */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
}

.widget,
.nl-widget {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-head {
  background: var(--header-bg);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 18px;
}
.widget-body { padding: 16px 18px; }

.ev-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.ev-item:last-child { border-bottom: none; }
.ev-date {
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Newsletter widget */
.nl-widget { padding: 20px; }
.nl-widget .widget-head {
  background: none;
  color: var(--text);
  padding: 0 0 12px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.nl-widget p { font-size: 0.83rem; color: var(--text-light); margin-bottom: 14px; }
.nl-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--transition);
}
.nl-input:focus { border-color: var(--blue); }
.nl-btn {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  transition: background var(--transition);
}
.nl-btn:hover { background: var(--blue-dark); }

/* Ad slots */
.ad-slot {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: .04em;
}
.ad-rect { width: 100%; height: 250px; }
.ad-leader { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.footer-ad { padding: 20px 20px 0; }

/* ═══════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 7px 16px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 4px 12px rgba(30,136,229,.3);
}

/* ═══════════════════════════════════════
   LIST PAGE
═══════════════════════════════════════ */
.list-page {
  padding: 0;
}
.list-hero {
  margin-bottom: 32px;
  padding: 36px 36px 30px;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.list-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--blue-light));
  border-radius: 4px 0 0 4px;
}
.list-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 6px;
}
.list-hero p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  max-width: 520px;
  margin: 8px auto 0;
  box-shadow: var(--shadow-md);
}
.empty-state .emoji {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(30,136,229,.2));
}
.empty-state h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.empty-state p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.empty-state .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(30,136,229,.35);
}
.empty-state .btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,136,229,.4);
}

/* ═══════════════════════════════════════
   ARTICLE PAGE
═══════════════════════════════════════ */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--col-gap);
  align-items: start;
}

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

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 40px;
  margin-bottom: 24px;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.back-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateX(-3px);
}

.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.art-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--blue-tint);
  color: var(--blue);
}

.art-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.art-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 24px;
  font-style: italic;
  border-left: 3px solid var(--blue);
  padding-left: 18px;
}

.art-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.art-meta-row strong { color: var(--text); }
.art-meta-row span { display: flex; align-items: center; gap: 5px; }

/* Article rich content */
.art-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 72ch;
}
.art-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.65rem;
  letter-spacing: -.02em;
  margin: 2.4em 0 .8em;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: .5em;
}
.art-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2em 0 .6em;
  color: var(--text);
}
.art-content p { margin-bottom: 1.4em; }
.art-content ul, .art-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.4em;
}
.art-content li { margin-bottom: .4em; }
.art-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  background: var(--blue-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--text-light);
}
.art-content strong { color: var(--text); }
.art-content img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.6em 0;
}
.art-content a { color: var(--blue); text-decoration: underline; }

/* Article navigation */
.art-nav {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}
.art-nav-btn {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  line-height: 1.4;
}
.art-nav-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow-md);
}
.art-nav-btn.right { text-align: right; }
.art-nav-btn small {
  display: block;
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.78rem;
  margin-top: 4px;
}
.art-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ═══════════════════════════════════════
   GUIDES PAGE
═══════════════════════════════════════ */
.guides-page { }

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.guide-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.guide-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.guide-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 60%);
}
.guide-banner .guide-level {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.2);
}

.guide-body {
  padding: 20px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-sport {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -.01em;
}
.guide-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.guide-arrow {
  font-weight: 700;
  color: var(--blue);
  transition: gap var(--transition);
}
.guide-card:hover .guide-arrow { letter-spacing: .02em; }

/* ═══════════════════════════════════════
   GUIDE DETAIL
═══════════════════════════════════════ */
.guide-wrap {
  max-width: 820px;
}
.guide-intro-banner {
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.toc-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.toc-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.toc-item {
  font-size: 0.9rem;
  color: var(--blue);
  padding: 7px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover {
  color: var(--blue-dark);
  padding-left: 6px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--header-bg);
  color: rgba(255,255,255,.75);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-top: 12px;
  max-width: 240px;
  color: rgba(255,255,255,.5);
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════════ */
/* Uses .list-page, .list-hero, .list-grid — all defined above */

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1080px) {
  .sports-hub { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; flex-wrap: wrap; }
  .mini-card { flex: 1 1 calc(50% - 6px); }

  .main-layout { grid-template-columns: 1fr; }
  .sidebar-col { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-col > * { flex: 1 1 280px; }

  .article-wrap { grid-template-columns: 1fr; }
  .art-sidebar { position: static; }
  .art-h1 { font-size: 1.9rem; }

  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  #app { padding: 20px 14px 48px; }

  .featured-image { height: 220px; }
  .feat-h1 { font-size: 1.4rem; }

  .art-grid,
  .list-grid { grid-template-columns: 1fr; }

  .sports-hub { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }

  .hero-sidebar { flex-direction: column; }
  .mini-card { flex: 1 1 100%; }

  .list-hero { padding: 24px 20px 20px; }
  .list-hero h1 { font-size: 1.5rem; }

  .art-h1 { font-size: 1.6rem; }
  .art-lead { font-size: 1rem; }
  .art-content { font-size: 1rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  #searchInput { width: 120px; }

  .empty-state { padding: 48px 24px; }
}

@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
  #searchInput { display: none; }
}

/* ═══════════════════════════════════════
   ASTRO ADDITIONS
═══════════════════════════════════════ */

/* app wrapper */
#app {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 20px 64px;
  min-height: 60vh;
}

/* Articles grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.art-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.art-image {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.art-cat-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,.5);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
}

.art-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.art-title-sm {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}
.art-excerpt {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.atype {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}
.t-guide { background: var(--blue-tint); color: var(--blue); }
.t-conseil { background: #f0fdf4; color: #16a34a; }
.t-analyse { background: #fefce8; color: #ca8a04; }
.t-equip { background: #faf5ff; color: #9333ea; }

/* Main layout with sidebar */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--col-gap);
  margin-top: 40px;
}
@media (max-width: 768px) {
  .main-layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .sports-hub { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
}

/* Sidebar widgets */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-head {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.widget-body { padding: 12px 16px; }
.ev-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.ev-item:last-child { border-bottom: none; }
.ev-date {
  background: var(--blue);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Sport hub cards */
.sport-emoji { font-size: 2rem; flex-shrink: 0; }
.sport-hub-top { display: flex; align-items: center; gap: 12px; }
.sport-name { font-weight: 700; font-size: 1rem; }
.sport-origin { font-size: 0.75rem; color: var(--text-muted); }
.sport-links { display: flex; flex-direction: column; gap: 6px; }
.sport-link {
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--bg);
  transition: color var(--transition);
}
.sport-link:hover { color: var(--blue); }

/* Footer */
footer {
  background: var(--header-bg);
  padding: 48px 20px 24px;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.footer-brand p { color: #94A3B8; font-size: 0.85rem; margin-top: 8px; line-height: 1.6; }
.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94A3B8; font-size: 0.85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════
   BANDEAU COOKIES RGPD
═══════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0F172A;
  border-top: 2px solid var(--blue);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  flex-wrap: wrap;
}
#cookie-banner p {
  color: #CBD5E1;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
  margin: 0;
}
#cookie-banner a { color: var(--blue-light); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--blue-dark); }
.cookie-btn-refuse {
  background: transparent;
  color: #94A3B8;
  border: 1px solid #334155;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.cookie-btn-refuse:hover { border-color: #94A3B8; color: white; }

/* Lien "Gérer mes cookies" dans le footer */
.cookie-manage-link {
  color: #64748B;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}
.cookie-manage-link:hover { color: #94A3B8; }

/* ═══════════════════════════════════════
   NAV DROPDOWN — CSS pur (hover + focus-within)
═══════════════════════════════════════ */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown:focus-within .nav-dropdown-btn {
  color: #fff;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 210px;
  z-index: 9000;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  pointer-events: auto;
}
/* Afficher au hover OU au focus-within (accessibilité) */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
/* Pont invisible pour ne pas fermer en passant de btn à menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(30,136,229,.15);
  color: #fff;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumb a:hover { color: var(--blue) !important; }

/* ── Article : share section ─────────────────────────── */
.share-section a:hover,
.share-section button:hover { opacity: 0.85; }

/* ── Articles similaires ─────────────────────────────── */
.similar-section .art-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── Affiliés équipement ─────────────────────────────── */
.aff-card { text-decoration: none; }
.aff-card:hover { transform: translateY(-4px); }

/* ── Reading progress bar ────────────────────────────── */
#reading-progress { pointer-events: none; }
