/* ============================================================
   Charte « crise » · cyberattaque · banque · urgence · créée en v2.31
   Bleu nuit bancaire, rouge alerte, ambre « avertissement »,
   bande de danger, grille de salle de crise, chiffres en police machine.
   Tout est préfixé par html[data-charte=crise] : ce fichier n'agit que si
   assets/charte.js active la charte « crise ».
   ============================================================ */
html[data-charte=crise]{
  --navy:#0B1A33; --navy-2:#16305A; --green:#FFB020; --green-ink:#A3320B;
  --ink:#121722; --muted:#4B5565; --line:#D2D8E2; --bg:#E9EDF3;
  --soft:#FFF3DA; --soft-acc:#FFF1D4; --paper:#FFFFFF; --red:#C8102E;
  --alerte:#E5243B; --mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
}
@keyframes lc-clignote{0%,100%{opacity:1}50%{opacity:.25}}
html[data-charte=crise] .kick,html[data-charte=crise] .tag,html[data-charte=crise] .lab,
html[data-charte=crise] .clk,html[data-charte=crise] .ver,html[data-charte=crise] .chip.live,
html[data-charte=crise] .clock .lab{font-family:var(--mono)}

/* bande de danger (jaune / noir) au-dessus de l'en-tête */
html[data-charte=crise] header.site,html[data-charte=crise] .top{
  border-top:6px solid transparent;
  border-image:repeating-linear-gradient(-45deg,#FFB020 0 12px,#111 12px 24px) 6 0 0 0;
  box-shadow:inset 0 -2px 0 var(--alerte);
}

/* ---------- site : en-tête, bandeau, pied de page ---------- */
html[data-charte=crise] header.site{background:#0B1A33}
html[data-charte=crise] .nav .logo span{color:#FFB020}
html[data-charte=crise] .nav nav a[aria-current="page"],html[data-charte=crise] .nav nav a:hover{color:#FFB020}
html[data-charte=crise] .hero{
  background:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px) 0 0/26px 26px,
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px) 0 0/26px 26px,
    radial-gradient(820px 380px at 92% -8%,rgba(229,36,59,.42),transparent 62%),
    #0B1A33;
}
html[data-charte=crise] .kick{color:#FFB020;letter-spacing:2px}
html[data-charte=crise] .kick::before{content:"● ";color:#FF4757;animation:lc-clignote 1.2s steps(2,start) infinite}
html[data-charte=crise] .cta{background:#FFB020;color:#1A1000 !important}
html[data-charte=crise] .cta:hover{background:#FFC24D}
html[data-charte=crise] .ghost{border-color:#FF6B78}
html[data-charte=crise] main section>h2,html[data-charte=crise] article.post h2{border-left:5px solid var(--alerte);padding-left:12px}
html[data-charte=crise] main a:not(.cta):not(.ghost):not(.btn){color:#16305A}
html[data-charte=crise] .card{border-top:3px solid #0B1A33}
html[data-charte=crise] .card:hover{border-top-color:var(--alerte)}
html[data-charte=crise] .tag{background:#FDE8EA;color:#9F0F24}
html[data-charte=crise] .chip.on{background:#0B1A33;border-color:#0B1A33;color:#fff}
html[data-charte=crise] .lab-terrain{background:#FFF1D4;color:#7A3300}
html[data-charte=crise] article.post .takeaway{border-left-color:var(--alerte);background:#FFF4F4}
html[data-charte=crise] footer.site{background:#060E1D;color:#B8C2D3;border-top:3px solid var(--alerte)}
html[data-charte=crise] footer.site a{color:#FFB020}

/* ---------- journal live ---------- */
html[data-charte=crise] .top{background:#0B1A33}
html[data-charte=crise] .brand .mark{background:var(--alerte);color:#fff}
html[data-charte=crise] .btn.go{background:#FFB020;border-color:#FFB020;color:#1A1000}
html[data-charte=crise] .chip.live{background:var(--alerte);color:#fff}
html[data-charte=crise] .chip.live::before{content:"●";animation:lc-clignote 1.2s steps(2,start) infinite}
html[data-charte=crise] .intro,html[data-charte=crise] .hero-card{
  background:
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px) 0 0/24px 24px,
    radial-gradient(640px 300px at 100% 0%,rgba(229,36,59,.40),transparent 60%),
    #0B1A33;
}
html[data-charte=crise] .hero-card .kick{color:#FFB020}
html[data-charte=crise] .steps .n{background:var(--alerte);color:#fff}
html[data-charte=crise] .clock .bar.h{background:var(--alerte)}
/* les bonnes réponses restent vertes (le vert garde son sens « correct ») */
html[data-charte=crise] .dist i.ok{background:#12B76A}
html[data-charte=crise] .doc .rl.ok .ic{color:#12B76A}

@media (prefers-reduced-motion:reduce){
  html[data-charte=crise] .kick::before,html[data-charte=crise] .chip.live::before{animation:none}
}
