
:root {
  --bg: #0b0e14; --surface: #121722; --surface2: #181f2e;
  --border: #232c3d; --text: #e8eaf0; --muted: #8b94a7;
  --accent: #7ee787; --accent2: #58a6ff; --live: #ff6b6b;
  --gold: #ffd166;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
  background-image: radial-gradient(1200px 600px at 80% -10%, #16203a 0%, transparent 60%),
                    radial-gradient(900px 500px at -10% 20%, #1d1828 0%, transparent 55%);
  background-attachment: fixed; }
img { max-width: 100%; height: auto; }
a { color: var(--accent2); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: rgba(11,14,20,.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 12px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: .3px; }
.logo span { color: var(--accent); }
.logo-img { height: 34px; width: auto; display: block; filter: drop-shadow(0 0 10px rgba(126,231,135,.25)); }
nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 10px;
  font-size: .95rem; font-weight: 600; transition: all .15s ease; }
nav a:hover { color: #fff; background: var(--surface2); }
nav a.active { color: #0b0e14; background: var(--accent); }
nav a.switcher { border: 1px solid var(--border); color: var(--accent2); }
nav a.switcher:hover { background: var(--surface2); color: var(--accent2); }

main { padding: 28px 0 70px; }

/* Hero */
.hero { text-align: center; padding: 44px 16px 36px; }
.kicker { text-transform: uppercase; letter-spacing: 3px; font-size: .78rem;
  color: var(--accent2); margin-bottom: 12px; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; }
.hero h1 .accent { color: var(--accent); }
.hero .sub { color: var(--muted); max-width: 620px; margin: 14px auto 0; font-size: 1.05rem; }
.countdown { color: var(--gold); font-weight: 800; margin-top: 18px; font-size: 1.15rem;
  font-variant-numeric: tabular-nums; }

/* Section dernière news */
.latest-news { background: linear-gradient(135deg, #14221c 0%, #141c2e 55%, #221a2e 100%);
  border: 1px solid #2b3a31; border-radius: 16px; padding: 26px 24px; margin: 10px 0 34px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.latest-head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,107,107,.12);
  color: var(--live); border: 1px solid rgba(255,107,107,.35); font-weight: 800;
  font-size: .8rem; letter-spacing: 1.5px; padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.8);} }
.latest-news h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 6px 0 10px; line-height: 1.3; }
.latest-news h2 a { color: #fff; text-decoration: none; }
.latest-news h2 a:hover { color: var(--accent); }
.latest-news > p { color: var(--muted); max-width: 800px; }
.latest-links { margin-top: 16px; }

/* Sections */
.panel { margin-bottom: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.35rem; color: #fff; }
.all { color: var(--accent2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.all:hover { text-decoration: underline; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 26px; }

/* Grille articles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: #3a4a63; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px;
  margin-bottom: 14px; background: var(--surface2); }
.article-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px;
  margin: 6px 0 18px; background: var(--surface2); }
.card h3 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.35; }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .resume { color: var(--muted); flex: 1; font-size: .95rem; }
.card .more { margin-top: 14px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: .92rem; }
.card .more:hover { text-decoration: underline; }

/* Type badges */
.type-badge { display: inline-block; background: rgba(88,166,255,.14); color: var(--accent2);
  border: 1px solid rgba(88,166,255,.3); font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; margin-right: 6px; }

/* Tag badges */
.tag-badge { display: inline-block; background: rgba(255,209,102,.12); color: var(--gold);
  border: 1px solid rgba(255,209,102,.3); font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; text-decoration: none; margin-right: 6px; }
.tag-badge:hover { background: rgba(255,209,102,.25); }
.card-tags { margin-top: 10px; }
.article-tags { margin: -6px 0 16px; }

/* Brèves */
.brief { display: flex; align-items: baseline; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #1b2333; }
.tag { background: var(--surface2); color: var(--muted); font-size: .72rem; padding: 2px 9px;
  border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.lang { font-size: .66rem; padding: 1px 6px; border-radius: 4px; color: #0b0e14; font-weight: 800; flex-shrink: 0; }
.lang.fr { background: var(--accent); }
.lang.en { background: var(--accent2); }
.lang.zh, .lang.ja, .lang.ko { background: var(--gold); }
.brief a { color: #cfd6e4; text-decoration: none; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.brief a:hover { color: var(--accent); }
.date { color: #5c6478; font-size: .78rem; white-space: nowrap; flex-shrink: 0; }
.auto-note { color: #5c6478; font-size: .8rem; margin-top: 14px; }

/* CTA / todo */
.cta { background: var(--surface); border: 1px dashed #33405a; border-radius: 14px; padding: 22px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 8px; }
.todo-list { list-style: none; margin: 12px 0 0; }
.todo-list li { padding: 8px 0; border-bottom: 1px solid #1b2333; color: var(--muted); }
.todo-list li a { color: var(--accent2); }

/* Article page */
article h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 14px; line-height: 1.25; font-weight: 900; }
article h2 { margin-top: 28px; color: #fff; font-size: 1.3rem; }
article h3 { margin-top: 20px; color: #fff; }
article p { margin-bottom: 16px; color: #c9d1de; }
article ul { margin: 0 0 16px 24px; color: #c9d1de; }
article strong { color: #fff; }
.meta { color: #5c6478; font-size: .85rem; margin-bottom: 14px; }
.sources { margin-top: 34px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; }
.sources h2 { margin-top: 0; font-size: 1.1rem; }
.sources ul { list-style: none; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sources li { background: var(--surface2); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
.sources a { color: var(--accent2); text-decoration: none; }
.sources a:hover { text-decoration: underline; }
.back { margin-top: 26px; }
.back a { color: var(--accent); text-decoration: none; font-weight: 600; }

footer { border-top: 1px solid var(--border); padding: 26px 0; color: #5c6478;
  font-size: .85rem; text-align: center; }
footer .small { margin-top: 6px; font-size: .78rem; }
footer .footer-links { margin-top: 10px; font-size: .82rem; }
footer .footer-links a { color: var(--accent2); text-decoration: none; margin: 0 6px; }
footer .footer-links a:hover { text-decoration: underline; }

.empty { color: var(--muted); }

/* Search bar (header) */
.search-bar { position: relative; flex: 1; max-width: 420px; min-width: 200px; }
.search-bar input[type="search"] { width: 100%; padding: 9px 14px; font-size: .92rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); outline: none; }
.search-bar input[type="search"]:focus { border-color: var(--accent2); }
.search-results { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 200; overflow: hidden; }
.search-results.open { display: block; }
.s-result { display: block; padding: 10px 14px; color: #cfd6e4; text-decoration: none;
  border-bottom: 1px solid #1b2333; font-size: .9rem; }
.s-result:hover { background: var(--surface2); color: var(--accent); }
.s-date { color: #5c6478; font-size: .75rem; margin-right: 6px; }
.s-all { display: block; padding: 10px 14px; color: var(--accent); text-decoration: none;
  font-weight: 700; font-size: .88rem; text-align: center; }
.s-all:hover { background: var(--surface2); }
.search-hint { color: #5c6478; font-size: .82rem; margin-top: 8px; }
.search-hint code { background: var(--surface2); padding: 1px 6px; border-radius: 5px;
  color: var(--gold); }

/* Responsive */
@media (max-width: 640px) {
  header .wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .search-bar { max-width: none; order: 2; }
  nav { justify-content: center; }
  .hero { padding: 28px 8px 24px; }
  .grid { grid-template-columns: 1fr; }
  .brief { flex-wrap: wrap; gap: 4px 8px; }
  .brief a { flex-basis: 100%; order: 3; }
  .brief .date { order: 2; }
  .brief .lang { order: 4; }
  .latest-news { padding: 20px 16px; }
}
