/* ==========================================================================
   EBURNIE CI — eburnie-ci.net | Style magazine d'actualités (type Foxiz)
   ========================================================================== */
:root {
  --accent: #ff4500;
  --accent-dark: #d93a00;
  --accent-soft: rgba(255, 69, 0, .12);
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --dark: #15171b;
  --dark-2: #1e2127;
  --dark-3: #0d0e11;
  --shadow: 0 2px 14px rgba(15, 17, 20, .07);
  --radius: 12px;
  --container: 1240px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
[data-theme="dark"] {
  --bg: #0e1013;
  --card: #171a1f;
  --text: #e8eaed;
  --muted: #9aa1ab;
  --line: #272b32;
  --shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--dark-3); color: #cfd3d9; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar-date { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-date .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.topbar-social { display: flex; align-items: center; gap: 6px; }
.topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px; color: #9aa1ab; transition: .2s;
}
.topbar-social a:hover { color: #fff; background: var(--accent); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.btn-theme {
  background: none; border: 1px solid #33373e; color: #9aa1ab; border-radius: 6px;
  width: 28px; height: 28px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.btn-theme:hover { color: #fff; border-color: var(--accent); }

/* ---------- En-tête ---------- */
.header { background: var(--dark); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.header-logo img { height: 44px; width: auto; }
.header-tag { color: #8b919b; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; border-left: 1px solid #33373e; padding-left: 18px; line-height: 1.5; }
.header-search { display: flex; }
.header-search input {
  background: var(--dark-2); border: 1px solid #33373e; color: #e8eaed;
  border-radius: 8px 0 0 8px; padding: 9px 14px; font-size: 14px; width: 220px; outline: none; font-family: var(--sans);
}
.header-search input:focus { border-color: var(--accent); }
.header-search button {
  background: var(--accent); color: #fff; border: 0; padding: 0 14px; border-radius: 0 8px 8px 0;
  cursor: pointer; display: inline-flex; align-items: center;
}
.header-search button:hover { background: var(--accent-dark); }

/* ---------- Navigation ---------- */
.navbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; box-shadow: var(--shadow); }
.nav-in { display: flex; align-items: center; gap: 4px; }
.nav-in > li { position: relative; }
.nav-in > li > a {
  display: inline-flex; align-items: center; gap: 5px; padding: 14px 13px;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .3px;
  border-bottom: 3px solid transparent; transition: .15s;
}
.nav-in > li > a:hover, .nav-in > li.on > a { color: var(--accent); border-bottom-color: var(--accent); }
.nav-in .caret { width: 9px; height: 9px; opacity: .55; }
.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--card);
  border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; padding: 6px 0; z-index: 95;
}
.nav-in li:hover .nav-drop, .nav-in li:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 500; }
.nav-drop a:hover { color: var(--accent); background: var(--accent-soft); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px 4px; }
.burger svg { width: 24px; height: 24px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--dark); color: #d6d9de; overflow: hidden; }
.ticker-in { display: flex; align-items: stretch; }
.ticker-label {
  background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .8px;
  text-transform: uppercase; display: flex; align-items: center; padding: 9px 16px; white-space: nowrap; flex-shrink: 0;
}
.ticker-track { display: flex; align-items: center; overflow: hidden; flex: 1; position: relative; }
.ticker-move { display: inline-flex; gap: 44px; white-space: nowrap; animation: tick 75s linear infinite; padding-left: 24px; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { font-size: 14px; color: #c9cdd4; }
.ticker-move a:hover { color: var(--accent); }
.ticker-move .sep { color: var(--accent); font-weight: 700; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Structure de sections ---------- */
.section { padding: 30px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.section-title::before { content: ""; width: 6px; height: 26px; background: var(--accent); border-radius: 3px; display: inline-block; }
.section-more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.section-more:hover { color: var(--accent); }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; padding-top: 26px; }

/* ---------- Cartes ---------- */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.045); }
.chip {
  position: absolute; left: 12px; bottom: 12px; background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 5px; z-index: 2;
}
.chip:hover { background: var(--accent-dark); }
.ph { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, var(--accent-dark) 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: 2px; font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; align-items: center; }
.meta a:hover { color: var(--accent); }
.meta .by { font-weight: 600; }
.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--accent); }
.card-excerpt { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Héros accueil */
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.hero-big { display: flex; flex-direction: column; }
.hero-big .thumb { aspect-ratio: 16 / 9.4; }
.hero-big .card-body { padding: 20px 22px; }
.hero-big .card-title { font-size: 26px; line-height: 1.3; -webkit-line-clamp: 3; }
.hero-big .card-excerpt { -webkit-line-clamp: 2; font-size: 15px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-side .card-title { font-size: 15px; -webkit-line-clamp: 3; }
.hero-side .card-body { padding: 12px 14px 14px; }
.hero-side .meta { font-size: 11.5px; }

/* Section rubrique : 1 grande + 3 lignes */
.cat-block { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 34px; }
.cat-list { display: flex; flex-direction: column; gap: 14px; }
.cat-list .card { display: flex; gap: 14px; align-items: center; padding: 12px; box-shadow: none; border: 1px solid var(--line); }
.cat-list .card:hover { transform: none; border-color: transparent; box-shadow: var(--shadow); }
.cat-list .thumb { width: 168px; flex-shrink: 0; aspect-ratio: 16 / 10; border-radius: 8px; }
.cat-list .card-title { font-size: 15px; margin-bottom: 5px; }
.cat-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.cat-subcats a {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; color: var(--muted); background: var(--card);
}
.cat-subcats a:hover { border-color: var(--accent); color: var(--accent); }

/* Grille générique */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Barre latérale */
.sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 76px; }
.widget { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); display: inline-block; }
.w-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.w-list li:last-child { border-bottom: 0; }
.w-list .n { font-size: 19px; font-weight: 800; color: var(--line); line-height: 1.2; min-width: 26px; }
.w-list li:hover .n { color: var(--accent); }
.w-list a { font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-list a:hover { color: var(--accent); }
.w-list time { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.w-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.w-cats a { font-size: 13px; font-weight: 600; background: var(--bg); border-radius: 999px; padding: 6px 14px; }
.w-cats a:hover { background: var(--accent); color: #fff; }
.w-share { display: flex; gap: 10px; }
.w-share a { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.w-share a:hover { background: var(--accent); color: #fff; }

/* ---------- Bannière rubrique / auteur ---------- */
.page-banner { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 70%); color: #fff; padding: 38px 0 34px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 69, 0, .5), transparent 65%); }
.page-banner h1 { font-size: 34px; text-transform: uppercase; letter-spacing: 1px; position: relative; }
.page-banner .crumbs { color: #9aa1ab; font-size: 13px; margin-bottom: 10px; position: relative; }
.page-banner .crumbs a:hover { color: var(--accent); }
.page-banner .desc { color: #c9cdd4; max-width: 640px; margin-top: 8px; font-size: 15px; position: relative; }
.page-banner .rule { width: 56px; height: 5px; background: var(--accent); border-radius: 3px; margin-top: 14px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 34px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; font-weight: 700; font-size: 14px; background: var(--card); color: var(--text); padding: 0 12px;
}
.pagination .cur { background: var(--accent); color: #fff; }
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .dots { background: none; color: var(--muted); }

/* ---------- Article ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-head { padding: 34px 0 6px; }
.article-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.article-crumbs a:hover { color: var(--accent); }
.article-crumbs .sep { margin: 0 7px; color: var(--line); }
.article-head h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.25; font-weight: 800; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-meta .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.article-meta .by a { font-weight: 700; color: var(--text); }
.article-meta .by a:hover { color: var(--accent); }
.article-feat { margin: 22px 0 10px; border-radius: var(--radius); overflow: hidden; }
.article-feat img { width: 100%; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 200; }
.share-row { display: flex; align-items: center; gap: 10px; margin: 20px 0 8px; flex-wrap: wrap; }
.share-row .lbl { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share-row a {
  width: 38px; height: 38px; border-radius: 9px; background: var(--card); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: .18s;
}
.share-row a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Corps d'article */
.article-content { font-size: 17px; line-height: 1.78; padding-bottom: 10px; }
.article-content > p:first-of-type { font-size: 18.5px; }
.article-content p { margin: 0 0 20px; }
.article-content h2, .article-content h3, .article-content h4 { margin: 30px 0 14px; line-height: 1.35; }
.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 17px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { border-radius: 10px; margin: 8px auto; }
.article-content figure { margin: 22px 0; }
.article-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0;
  padding: 16px 22px; margin: 24px 0; font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--text);
}
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content ul li { list-style: disc; margin-bottom: 8px; }
.article-content ol li { list-style: decimal; margin-bottom: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content th { background: var(--card); font-weight: 700; }
.iframe-wrap { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; border-radius: 10px; overflow: hidden; background: #000; }
.iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-content > iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }

/* Auteur & similaires */
.author-box { display: flex; gap: 18px; background: var(--card); border-radius: var(--radius); padding: 22px; margin: 30px 0; box-shadow: var(--shadow); align-items: center; }
.author-box .avatar { width: 64px; height: 64px; font-size: 24px; }
.author-box .role { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.author-box .name { font-size: 18px; font-weight: 800; margin: 2px 0 4px; }
.author-box .name a:hover { color: var(--accent); }
.author-box p { color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 4px; }
.tag-row a { font-size: 13px; background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 14px; }
.tag-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Recherche ---------- */
.search-hero { background: var(--dark); color: #fff; padding: 46px 0; }
.search-hero h1 { font-size: 28px; margin-bottom: 18px; }
.search-box { display: flex; max-width: 640px; }
.search-box input { flex: 1; border: 0; border-radius: 10px 0 0 10px; padding: 15px 20px; font-size: 16px; outline: none; font-family: var(--sans); }
.search-box button { border: 0; background: var(--accent); color: #fff; border-radius: 0 10px 10px 0; padding: 0 22px; font-size: 15px; font-weight: 700; cursor: pointer; }
.search-box button:hover { background: var(--accent-dark); }
.search-meta { color: #9aa1ab; font-size: 14px; margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.filters button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 6px 15px; font-size: 13px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: .4px; font-family: var(--sans); }
.filters button:hover { color: var(--accent); border-color: var(--accent); }
.filters button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--dark); color: #b9bec6; margin-top: 44px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding: 46px 0 36px; }
.footer img { height: 40px; margin-bottom: 16px; }
.footer .about { font-size: 14px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer li { margin-bottom: 9px; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: var(--dark-2); display: inline-flex; align-items: center; justify-content: center; color: #b9bec6; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid #2a2e35; padding: 18px 0; font-size: 13px; color: #8b919b; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #c9cdd4; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Divers ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 69, 0, .4); z-index: 150; border: 0; cursor: pointer;
}
.to-top.show { display: inline-flex; }
.video-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.video-badge span {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(21, 23, 27, .65); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .85);
}
.card:hover .video-badge span { background: var(--accent); border-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .home-cols { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .header-tag { display: none; }
}
@media (max-width: 780px) {
  .burger { display: inline-flex; align-items: center; }
  .nav-in { display: none; flex-direction: column; align-items: stretch; padding: 8px 0 12px; gap: 0; }
  .nav-in.open { display: flex; }
  .nav-in > li > a { padding: 12px 16px; border-bottom: 0; border-radius: 8px; }
  .nav-in > li > a:hover { background: var(--accent-soft); }
  .nav-drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 18px; display: none; }
  .nav-in li.open .nav-drop { display: block; }
  .navbar { position: static; }
  .cat-block { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .hero-side { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px; }
  .topbar-tools span.lbl { display: none; }
  .header-search input { width: 130px; }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
  .cat-list .thumb { width: 110px; }
  .hero-big .card-title { font-size: 21px; }
}
