/* ==========================================================================
   JOURNAL DE RECLUS LAB — styles propres au journal.
   Indépendant du site : aucune variable ni classe partagée (préfixe j-).
   Charte 2026 : noir profond, doré, dégradé bleu-violet du logo ; Inter (copie locale).
   Version sobre : aucune animation.
   ========================================================================== */

@font-face { font-family: 'InterJ'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('polices/inter-var.woff2') format('woff2'); }

:root {
  --j-ink: #0B0C1F; --j-ink2: #14162B; --j-gold: #D5B083; --j-gold-txt: #86622F;
  --j-blue: #22B4F5; --j-violet: #8E3DF0; --j-violet-txt: #4B3FC2; --j-grad: linear-gradient(90deg, #22B4F5, #5B6CF3 50%, #8E3DF0);
  --j-paper: #F6F6F9; --j-white: #FFFFFF; --j-slate: #4A5568; --j-grey: #A9AECB;
  --j-line: #E2E2EC; --j-line-dark: #262948;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'InterJ', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400; background: var(--j-paper); color: var(--j-ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--j-violet); outline-offset: 3px; }

.j-skip { position: absolute; left: -9999px; top: 8px; background: var(--j-white); padding: 8px 14px; z-index: 50; }
.j-skip:focus { left: 16px; }

/* --- bandeau du haut --- */
.j-topbar { background: var(--j-white); border-bottom: 1px solid var(--j-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px max(16px, calc((100% - 1100px) / 2)); position: sticky; top: 0; z-index: 30; }
.j-back img { height: 30px; width: auto; }
.j-back:hover img { opacity: .75; }
.j-topnav { display: flex; gap: 20px; flex-wrap: wrap; }
.j-topnav a { color: var(--j-slate); text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.j-topnav a:hover, .j-topnav a[aria-current="page"] { color: var(--j-ink); }
.j-topnav a[aria-current="page"] { box-shadow: 0 2px 0 var(--j-violet); }

/* --- Une --- */
.j-mast { background: radial-gradient(900px 380px at 85% -10%, rgba(91, 75, 214, .35), transparent 65%), var(--j-ink); color: var(--j-white); }
.j-mast-inner { max-width: 1100px; margin: 0 auto; padding: 48px 16px 40px; }
.j-mast-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.j-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; color: var(--j-gold); }
.j-num { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.3); color: var(--j-white); padding: 6px 14px; border-radius: 999px; }
.j-num:empty { display: none; }
.j-num b { color: var(--j-gold); font-weight: 700; }
.j-title { margin: 30px 0 0; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.j-title-small { display: block; font-size: clamp(16px, 2vw, 20px); font-weight: 400; color: var(--j-grey); letter-spacing: 0; margin-bottom: 10px; }
.j-title-big { display: flex; align-items: center; gap: .28em; font-size: clamp(44px, 9vw, 100px); }
.j-symbol { width: .8em; height: auto; flex: none; }
.j-une { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: clamp(22px, 2.8vw, 34px); font-weight: 600; line-height: 1.25; max-width: 820px; letter-spacing: -.01em; }
.j-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.j-sommaire a { font-size: 13px; text-decoration: none; color: var(--j-white); border: 1px solid var(--j-line-dark); background: rgba(255,255,255,.04); padding: 8px 15px; border-radius: 999px; transition: border-color .2s, background-color .2s; }
.j-sommaire a:hover { border-color: var(--j-gold); background: rgba(213,176,131,.1); }

/* --- contenu --- */
.j-main { max-width: 1100px; margin: 0 auto; padding: 40px 16px 24px; outline: none; }
.j-rubrique { background: var(--j-white); border: 1px solid var(--j-line); border-radius: 18px; padding: 28px 28px 26px; margin-bottom: 22px; position: relative; scroll-margin-top: 84px; }
.j-grille-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; margin-bottom: 22px; }
.j-grille-2 > .j-rubrique { margin-bottom: 0; }
@media (max-width: 760px) { .j-grille-2 { grid-template-columns: minmax(0,1fr); } .j-rubrique { padding: 22px 18px; } }

.j-rh { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--j-line); position: relative; }
.j-rh::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 72px; background: var(--j-grad); }
.j-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #262A52, #0B0C1F); color: var(--j-white); flex: none; font-size: 17px; }
.j-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.j-rh h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }

/* texte / édito */
.j-edito p { font-size: 17px; color: var(--j-slate); max-width: 72ch; }
.j-edito p + p { margin-top: 14px; }
.j-sign { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--j-ink); font-weight: 600; }
.j-sign img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.j-sign:not(:has(img))::before { content: ''; width: 28px; height: 2px; background: var(--j-gold); }

/* listes d'articles */
.j-article { padding: 14px 0 14px 18px; border-left: 2px solid var(--j-line); }
.j-article + .j-article { margin-top: 4px; }
.j-article:hover { border-left-color: var(--j-violet); }
.j-date { font-size: 11px; color: var(--j-gold-txt); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.j-article h3 { font-size: 17px; font-weight: 600; margin: 4px 0 4px; line-height: 1.35; }
.j-article p { font-size: 14.5px; color: var(--j-slate); }
.j-lien { text-decoration: underline; text-decoration-color: rgba(75, 63, 194, .35); text-underline-offset: 4px; }
.j-lien:hover { color: var(--j-violet-txt); text-decoration-color: currentColor; }

/* portrait */
.j-auteur { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.j-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: var(--j-white); background: var(--j-ink); flex: none; overflow: hidden; box-shadow: 0 0 0 2px var(--j-white), 0 0 0 4px #5B6CF3; }
.j-avatar img { width: 100%; height: 100%; object-fit: cover; }
.j-nom { font-weight: 700; }
.j-poste { font-size: 13px; color: var(--j-slate); }
.j-qa { border-top: 1px solid var(--j-line); }
.j-qa button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; font-size: 15px; font-weight: 600; }
.j-qa button:focus-visible { outline: 2px solid var(--j-violet); outline-offset: 2px; }
.j-qa button i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--j-line); display: grid; place-items: center; color: var(--j-violet-txt); flex: none; font-size: 15px; }
.j-qa button[aria-expanded="true"] i { background: var(--j-paper); }
.j-qa .j-r[hidden] { display: none; }
.j-qa .j-r p { font-size: 14.5px; color: var(--j-slate); padding: 0 0 14px 14px; border-left: 2px solid var(--j-gold); margin-left: 2px; }

/* chiffres */
.j-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.j-kpi { background: var(--j-paper); border-radius: 14px; padding: 18px 12px; text-align: center; border: 1px solid transparent; }
.j-kpi .lbl { font-size: 11px; color: var(--j-slate); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.j-kpi .val { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 6px; font-variant-numeric: tabular-nums; }
.j-kpi .tdc { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tdc.up { color: #1F6A47; background: #E3F3EA; } .tdc.down { color: #A23B4C; background: #FBEAEC; } .tdc.stable { color: var(--j-slate); background: #ECECF3; }

/* agenda */
.j-agenda { list-style: none; }
.j-agenda li { display: flex; gap: 16px; align-items: center; padding: 9px 0; }
.j-jour { background: var(--j-ink); color: var(--j-white); border-radius: 12px; width: 62px; flex: none; text-align: center; padding: 7px 0 6px; line-height: 1.1; }
.j-jour b { display: block; font-size: 21px; font-weight: 700; }
.j-jour small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--j-gold); }
.j-agenda li.passe .j-jour { background: #E2E2EC; color: var(--j-slate); }
.j-agenda li.passe .j-jour small { color: var(--j-slate); }
.j-agenda li.passe > span { color: var(--j-slate); }
.j-badge-next { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--j-white); background: var(--j-violet-txt); padding: 2px 8px; border-radius: 999px; margin-left: 8px; white-space: nowrap; }

/* annonces */
.j-filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.j-filtres button { font: inherit; font-size: 13.5px; font-weight: 500; padding: 7px 15px; border: 1px solid var(--j-line); background: var(--j-white); color: var(--j-ink); border-radius: 999px; cursor: pointer; }
.j-filtres button:hover { border-color: var(--j-ink); }
.j-filtres button[aria-pressed="true"] { background: var(--j-ink); color: var(--j-white); border-color: var(--j-ink); }
.j-filtres button sup { font-size: 10px; margin-left: 4px; color: var(--j-gold); }
.j-annonces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.j-annonce { background: var(--j-paper); border-radius: 14px; padding: 18px 18px 16px; border-top: 3px solid var(--c, #5B6CF3); }
.j-annonce[hidden] { display: none; }
.j-annonce.urgent { background: #F1EEFD; }
.j-annonce .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--j-slate); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; font-weight: 600; }
.j-annonce .cat { color: var(--j-ink); }
.j-annonce h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.j-annonce p { font-size: 14px; color: var(--j-slate); }
.j-annonce .plus { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--j-violet-txt); text-decoration: underline; text-underline-offset: 4px; }
.j-urgent { display: inline-block; background: var(--j-violet-txt); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; letter-spacing: .08em; }
.j-vide { color: var(--j-slate); font-style: italic; }

.j-erreur { background: #FFF4E5; border: 1px solid #F0C98B; color: var(--j-ink); padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 22px; }

/* --- bandeau « numéro archivé » --- */
.j-ancien { max-width: 1100px; margin: 24px auto 0; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.j-ancien[hidden] { display: none; }
.j-ancien p, .j-ancien a { font-size: 14px; }
.j-ancien p { color: var(--j-slate); display: flex; align-items: center; gap: 8px; }
.j-ancien p::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--j-gold); }
.j-ancien a { color: var(--j-violet-txt); font-weight: 600; }

/* --- numéro précédent / suivant --- */
.j-suite { max-width: 1100px; margin: 0 auto 8px; padding: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.j-suite[hidden] { display: none; }
.j-suite a { display: grid; gap: 2px; text-decoration: none; padding: 16px 18px; border: 1px solid var(--j-line); border-radius: 14px; background: var(--j-white); }
.j-suite a:hover { border-color: #5B6CF3; }
.j-suite small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--j-gold-txt); font-weight: 700; }
.j-suite span { font-size: 16px; font-weight: 600; }
.j-suite .j-suiv { grid-column: 2; text-align: right; }
@media (max-width: 560px) { .j-suite { grid-template-columns: minmax(0,1fr); } .j-suite .j-suiv { grid-column: 1; } }

/* --- archives --- */
.j-archives { background: var(--j-ink); color: var(--j-white); margin-top: 28px; }
.j-archives[hidden] { display: none; }
.j-archives-inner { max-width: 1100px; margin: 0 auto; padding: 48px 16px 52px; }
.j-archives-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.j-archives h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.j-archives-head p { color: var(--j-grey); font-size: 14px; }
.j-archives-outils { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--j-grey); }
.j-archives-outils[hidden] { display: none; }
.j-archives-outils select { font: inherit; color: var(--j-white); background: var(--j-ink2); border: 1px solid var(--j-line-dark); border-radius: 8px; padding: 6px 10px; }
.j-archives-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.j-arch { position: relative; display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--j-white); background: var(--j-ink2); border: 1px solid var(--j-line-dark); border-radius: 16px; padding: 20px 20px 18px; overflow: hidden; }
.j-arch::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--j-grad); opacity: 0; }
.j-arch:hover { border-color: #3A3F6E; }
.j-arch:hover::after, .j-arch.is-current::after { opacity: 1; }
.j-arch[hidden] { display: none; }
.j-arch-num { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--j-grey); font-weight: 600; }
.j-arch-num b { font-size: 34px; font-weight: 700; color: var(--j-white); letter-spacing: -.02em; margin-left: 4px; }
.j-arch-mois { font-weight: 600; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.j-arch-mois em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; background: var(--j-gold); color: var(--j-ink); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.j-arch-titre { color: var(--j-grey); font-size: 14px; line-height: 1.45; }
.j-arch-cta { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--j-gold); }

/* pied */
.j-foot { background: var(--j-ink); color: var(--j-grey); border-top: 1px solid var(--j-line-dark); }
.j-foot-inner { max-width: 1100px; margin: 0 auto; padding: 28px 16px; font-size: 14px; display: grid; gap: 8px; }
.j-foot strong { color: var(--j-white); font-weight: 600; }
.j-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.j-foot a { color: var(--j-white); text-decoration: none; }
.j-foot a:hover { color: var(--j-gold); }
.j-foot-copy { font-size: 12.5px; }

@media (max-width: 560px) { .j-topbar { flex-wrap: wrap; } .j-topnav { gap: 14px; } }
@media print {
  .j-topbar, .j-sommaire, .j-filtres, .j-archives, .j-suite, .j-ancien { display: none; }
  .j-qa .j-r[hidden] { display: block; }
}
