:root {
  /* Mise en page : fil de cartes 4:5 en grille fluide, en-tête compact, étiquettes penchées comme le logo. Univers sombre de la grille éditoriale Gingaaa. */
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --line: #2E2E2E;
  --text: #F5F0E8;
  --muted: #A0998C;
  --accent: #FF5F1F;
  --gold: #E8B84B;
  --wa: #25D366;
  --rub: var(--accent);
  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* En-tête */
.top { border-bottom: 3px solid var(--accent); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px var(--gutter) 10px; }
.top .rubs { padding: 0 var(--gutter) 10px; }
.brand img { width: clamp(132px, 22vw, 190px); }
.follow, .foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.follow a, .foot nav a { color: var(--muted); text-decoration: none; }
.follow a:hover, .foot nav a:hover { color: var(--accent); }

main { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 64px; }

.demo { margin: 0 0 22px; padding: 10px 14px; border: 1px dashed var(--gold); color: var(--gold); font-size: 14px; border-radius: 4px; }

/* Texte réservé aux lecteurs d'écran et aux moteurs de recherche */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow a { text-decoration: none; }
.eyebrow a::before { content: '\2190\00a0'; }
.eyebrow a:hover { color: var(--text); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 9vw, 92px); line-height: .95; letter-spacing: .02em; margin-top: 10px; text-wrap: balance; }
.lede { max-width: 60ch; margin-top: 14px; color: var(--muted); }
.lede a { color: var(--accent); }

/* Contenu phare : il ouvre la page d'accueil, sans titre au-dessus */
.lead { display: grid; gap: clamp(16px, 3vw, 44px); padding: clamp(16px, 3vw, 32px) 0 clamp(26px, 4vw, 48px); }
@media (min-width: 760px) { .lead { grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); align-items: center; } .lead-media { aspect-ratio: 4 / 5; } }
.lead-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface); border-radius: 6px; overflow: hidden; border-top: 4px solid var(--rub); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-media.is-video::after { content: ''; position: absolute; left: 16px; top: 16px; width: 60px; height: 60px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%230D0D0D'/%3E%3C/svg%3E") center / 36px no-repeat; }
.lead-body { display: grid; gap: 16px; justify-items: start; }
.lead .card-meta { justify-content: flex-start; gap: 14px; font-size: 14px; }
.lead h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.4vw, 78px); line-height: .95; letter-spacing: .02em; text-wrap: balance; }
.lead h2 a { text-decoration: none; }
.lead h2 a:hover { color: var(--rub); }
.lead-text { max-width: 54ch; font-size: 17px; line-height: 1.6; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-actions .btn { min-height: 48px; padding: 10px 22px; font-size: 15px; }
.btn-go { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-go:hover { background: var(--text); border-color: var(--text); }

/* Blocs : dernières publications, puis une rangée par rubrique */
.block { padding-top: 20px; border-top: 1px solid var(--line); }
.block + .block { margin-top: clamp(30px, 5vw, 52px); }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.block-head:empty { display: none; }
.block-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); line-height: 1; letter-spacing: .04em; color: var(--rub, var(--text)); }
.block:not([style]) .block-head h2 { color: var(--text); }
.block-head h2 a { color: inherit; text-decoration: none; }
.more-link { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.more-link:hover, .block-head h2 a:hover { color: var(--text); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 44vw, 240px); gap: clamp(12px, 2vw, 20px); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail .card { scroll-snap-align: start; }
.center { display: flex; justify-content: center; margin-top: 26px; }

/* Pages de liste */
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: clamp(18px, 3vw, 30px) 0 16px; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 56px); margin: 0; color: var(--rub, var(--text)); }
.page-head .count { color: var(--muted); font-size: 14px; }
.page-head.notfound { display: grid; }

/* Filtres */
.chips, .rubs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar, .rubs::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 500 14px var(--body); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.rubs a { flex: none; font-family: var(--display); font-size: 18px; letter-spacing: .06em; text-decoration: none; color: var(--rub); padding: 2px 10px 0; border-left: 3px solid var(--rub); }
.rubs a:hover, .rubs a[aria-current] { background: var(--rub); color: var(--bg); }

/* Cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: clamp(12px, 2.4vw, 24px); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: 6px; overflow: hidden; border-top: 3px solid var(--rub); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-video::after { content: ''; position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(13, 13, 13, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23F5F0E8'/%3E%3C/svg%3E") center / 24px no-repeat; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 12px 12px 14px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; font-size: 12px; color: var(--muted); }
.card-meta time { flex: none; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; max-width: 100%; background: var(--rub); color: var(--bg); text-decoration: none; transform: skewX(-12deg); padding: 3px 9px 1px; }
.tag span { display: block; transform: skewX(12deg); font-family: var(--display); font-size: 15px; letter-spacing: .06em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.6vw, 25px); line-height: 1.05; letter-spacing: .02em; text-wrap: balance; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--rub); }
.card-nets { font-size: 12px; color: var(--muted); margin-top: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; font: 700 14px var(--body); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { border-color: var(--text); }
.btn-wa { border-color: var(--wa); color: var(--wa); }
.btn-wa:hover { background: var(--wa); color: var(--bg); border-color: var(--wa); }
.card .btn-wa { min-height: 36px; padding: 6px 10px; font-size: 13px; }

.empty { padding: 32px 0; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.pager > :last-child { justify-self: end; }
.pager > :first-child { justify-self: start; }

/* Mini article */
.post { padding-top: clamp(20px, 4vw, 40px); }
.post .card-meta { justify-content: flex-start; gap: 14px; margin-top: 18px; font-size: 14px; }
.post h1 { font-size: clamp(38px, 6.4vw, 68px); max-width: 20ch; }
.post-cols { display: grid; gap: clamp(20px, 4vw, 44px); margin-top: clamp(20px, 3vw, 32px); }
@media (min-width: 860px) { .post-cols { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); align-items: start; } }
.player { position: relative; width: 100%; max-width: 420px; aspect-ratio: var(--ratio, 4 / 5); background: var(--surface); border-radius: 6px; overflow: hidden; border-top: 3px solid var(--rub); }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player .play { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 48px; padding: 10px 14px; font: 400 22px var(--display); letter-spacing: .06em; color: var(--bg); background: var(--accent); border: 0; border-radius: 4px; cursor: pointer; }
.player .play:hover { background: var(--text); }
.player .play.is-note { font: 500 14px var(--body); letter-spacing: 0; background: var(--bg); color: var(--gold); border: 1px dashed var(--gold); cursor: default; }
.player.is-live { aspect-ratio: auto; height: min(760px, 82vh); background: #000; }
.player.is-live[data-net="youtube"] { aspect-ratio: 16 / 9; height: auto; max-width: 640px; }
.player.is-live[data-net="facebook"] { height: 620px; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.post-text { display: grid; gap: 14px; max-width: 65ch; font-size: 17px; line-height: 1.65; }
.share { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share h2, .more h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .04em; color: var(--gold); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-row .btn-wa { flex: 1 1 100%; min-height: 50px; font-size: 16px; background: var(--wa); color: var(--bg); }
.share-row .btn-wa:hover { background: var(--text); border-color: var(--text); }
.share-row .btn { flex: 1 1 auto; overflow-wrap: anywhere; }
.origin { margin-top: 18px; font-size: 14px; color: var(--muted); }
.origin a { color: var(--text); }
.more { margin-top: clamp(40px, 7vw, 72px); padding-top: 24px; border-top: 3px solid var(--accent); }
.more .grid { margin-top: 18px; }

/* Pied de page */
.foot { display: grid; gap: 12px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.legal { font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .card-media img { transition: transform .35s ease; }
  .card:hover .card-media img { transform: scale(1.03); }
}
