/* ============================================================================
   Fil « Breaking News » — bandeau défilant de l'accueil + fenêtre modale
   Volet gauche : salle de rédaction sombre (verre, aurores, or) · Volet droit : lecteur clair
   Propriétés logiques (RTL natif), mouvement réduit respecté, 100 thèmes via les jetons.
   ========================================================================== */
:root {
  --nw-ink: #f4efe2;
  --nw-ink-2: rgba(244, 239, 226, .72);
  --nw-ink-3: rgba(244, 239, 226, .5);
  --nw-night: color-mix(in srgb, var(--c-navy-deep, #071a33) 92%, #000);
  --nw-night-2: color-mix(in srgb, var(--c-navy, #0b2545) 80%, #000);
  --nw-gold: var(--c-gold, #c9a227);
  --nw-gold-2: var(--c-gold-light, #e6c868);
  --nw-red: #ff3b4e;
  --nw-line: rgba(255, 255, 255, .09);
  --nw-glass: rgba(255, 255, 255, .055);
  --nw-ease: cubic-bezier(.22, .9, .25, 1);
  --nw-tone-red: #ff5a67; --nw-tone-green: #34d399; --nw-tone-gold: #f2c94c; --nw-tone-teal: #2dd4bf; --nw-tone-night: #a5b4fc;
  --nw-tone-rose: #fb7185; --nw-tone-blue: #60a5fa; --nw-tone-violet: #c084fc;
}
[class*="tone-"] { --tone: var(--nw-gold); }
.tone-red { --tone: var(--nw-tone-red); } .tone-green { --tone: var(--nw-tone-green); } .tone-gold { --tone: var(--nw-tone-gold); }
.tone-teal { --tone: var(--nw-tone-teal); } .tone-night { --tone: var(--nw-tone-night); } .tone-rose { --tone: var(--nw-tone-rose); }
.tone-blue { --tone: var(--nw-tone-blue); } .tone-violet { --tone: var(--nw-tone-violet); }

/* ---------- Pulsation « en direct » ---------- */
.nw-pulse { position: relative; display: inline-grid; place-items: center; inline-size: 12px; block-size: 12px; flex: none; }
.nw-pulse i { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--nw-red); box-shadow: 0 0 10px var(--nw-red); }
.nw-pulse::before, .nw-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--nw-red); animation: nw-ping 1.8s var(--nw-ease) infinite; }
.nw-pulse::after { animation-delay: .9s; }
@keyframes nw-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

/* ============================ Bandeau d'accueil ============================ */
.nw-ticker {
  position: relative; z-index: 3; display: flex; align-items: stretch; gap: 0; margin: clamp(.6rem, 1.6vw, 1.1rem) auto 0; max-inline-size: var(--content-max, 1320px);
  inline-size: calc(100% - 2 * clamp(12px, 3vw, 32px)); min-block-size: 54px; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, var(--nw-night) 0%, var(--nw-night-2) 55%, var(--nw-night) 100%);
  border: 1px solid color-mix(in srgb, var(--nw-gold) 32%, transparent);
  box-shadow: 0 18px 40px -18px rgba(3, 10, 25, .55), inset 0 1px 0 rgba(255, 255, 255, .06); color: var(--nw-ink);
}
.nw-ticker::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 80px at 12% 0%, color-mix(in srgb, var(--nw-red) 22%, transparent), transparent 70%), radial-gradient(500px 90px at 90% 100%, color-mix(in srgb, var(--nw-gold) 18%, transparent), transparent 70%); }
.nw-ticker button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.nw-ticker-badge {
  display: flex; align-items: center; gap: .65rem; padding-inline: 1rem 1.25rem; flex: none; position: relative;
  background: linear-gradient(135deg, #d61f35, #ff4757 60%, #ff6b5e); color: #fff !important; text-align: start;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
[dir="rtl"] .nw-ticker-badge { clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%); }
.nw-ticker-badge .nw-pulse i { background: #fff; box-shadow: 0 0 10px #fff; }
.nw-ticker-badge .nw-pulse::before, .nw-ticker-badge .nw-pulse::after { border-color: #fff; }
.nw-ticker-badge-text { display: grid; line-height: 1.05; }
.nw-ticker-badge-text strong { font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.nw-ticker-badge-text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.nw-ticker-badge:hover { filter: brightness(1.07); }
.nw-ticker-rail { position: relative; flex: 1; min-inline-size: 0; overflow: hidden; display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nw-ticker-track { display: flex; align-items: center; gap: 1.1rem; white-space: nowrap; inline-size: max-content; padding-inline: 1rem; animation: nw-marquee var(--nw-dur, 60s) linear infinite; }
[dir="rtl"] .nw-ticker-track { animation-name: nw-marquee-rtl; }
.nw-ticker-rail:hover .nw-ticker-track, .nw-ticker-rail:focus-within .nw-ticker-track { animation-play-state: paused; }
@keyframes nw-marquee { to { transform: translateX(-50%); } }
@keyframes nw-marquee-rtl { to { transform: translateX(50%); } }
/* Sens réglable (Admin › Actualités › Réglages) : « ltr » = les titres glissent de gauche à droite */
[data-nw-dir="ltr"] .nw-ticker-track { animation-direction: reverse; }
[dir="rtl"] [data-nw-dir="ltr"] .nw-ticker-track, [dir="rtl"][data-nw-dir="ltr"] .nw-ticker-track { animation-direction: normal; }
[dir="rtl"] [data-nw-dir="rtl"] .nw-ticker-track { animation-direction: reverse; }
.nw-ticker-item { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .55rem; border-radius: 10px; font-size: .9rem; transition: background .2s; }
.nw-ticker-item:hover, .nw-ticker-item:focus-visible { background: rgba(255, 255, 255, .08); }
.nw-ticker-item i { color: var(--tone); }
.nw-ticker-item em { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); }
.nw-ticker-item span { max-inline-size: 60ch; overflow: hidden; text-overflow: ellipsis; }
.nw-ticker-sep { color: color-mix(in srgb, var(--nw-gold) 70%, transparent); font-size: .55rem; }
.nw-flag { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: .12rem .4rem; border-radius: 6px; background: var(--nw-red); color: #fff; }
.nw-ticker-empty { margin: 0; padding-inline: 1rem; font-size: .85rem; color: var(--nw-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-ticker-actions { display: flex; align-items: center; gap: .4rem; padding-inline: .5rem .6rem; flex: none; border-inline-start: 1px solid var(--nw-line); }
.nw-ticker-pf, .nw-ticker-cta { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 11px; font-size: .82rem; font-weight: 700; white-space: nowrap; transition: transform .2s var(--nw-ease), background .2s, box-shadow .2s; }
.nw-ticker-pf { color: var(--nw-gold-2) !important; }
.nw-ticker-pf:hover { background: rgba(255, 255, 255, .07); }
.nw-ticker-cta { background: linear-gradient(135deg, var(--nw-gold-2), var(--nw-gold)) !important; color: var(--c-navy-deep, #071a33) !important; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--nw-gold) 80%, transparent); }
.nw-ticker-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--nw-gold) 90%, transparent); }
@media (max-width: 720px) {
  .nw-ticker { border-radius: 14px; min-block-size: 50px; }
  .nw-ticker-badge { padding-inline: .7rem 1rem; }
  .nw-ticker-badge-text small, .nw-ticker-pf span, .nw-ticker-cta span { display: none; }
  .nw-ticker-pf, .nw-ticker-cta { padding: .5rem .6rem; }
}

/* =============================== Fenêtre =============================== */
.nw-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: clamp(0px, 2.2vw, 28px); }
.nw-modal[hidden] { display: none; }
.nw-backdrop { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 50% 0%, rgba(201, 162, 39, .14), transparent 60%), rgba(2, 7, 18, .72); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); animation: nw-fade .35s ease both; }
.nw-window {
  position: relative; inline-size: min(1440px, 100%); block-size: min(900px, 100%); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; isolation: isolate;
  border-radius: 26px; color: var(--nw-ink); background: linear-gradient(160deg, var(--nw-night-2), var(--nw-night) 60%);
  border: 1px solid color-mix(in srgb, var(--nw-gold) 26%, rgba(255, 255, 255, .08));
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: nw-rise .55s var(--nw-ease) both;
}
@keyframes nw-fade { from { opacity: 0; } }
@keyframes nw-rise { from { opacity: 0; transform: translateY(26px) scale(.975); } }
.nw-modal.is-closing .nw-window { animation: nw-sink .28s ease-in both; }
.nw-modal.is-closing .nw-backdrop { animation: nw-fade .28s ease-in reverse both; }
@keyframes nw-sink { to { opacity: 0; transform: translateY(18px) scale(.98); } }
.nw-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.nw-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: nw-drift 22s ease-in-out infinite alternate; }
.nw-aurora i:nth-child(1) { inline-size: 520px; block-size: 360px; inset-block-start: -160px; inset-inline-start: -120px; background: color-mix(in srgb, var(--nw-gold) 40%, transparent); }
.nw-aurora i:nth-child(2) { inline-size: 460px; block-size: 340px; inset-block-end: -180px; inset-inline-start: 22%; background: color-mix(in srgb, var(--c-green, #0f4d37) 70%, transparent); animation-duration: 28s; }
.nw-aurora i:nth-child(3) { inline-size: 300px; block-size: 260px; inset-block-start: 10%; inset-inline-start: 30%; background: rgba(255, 59, 78, .22); animation-duration: 19s; }
@keyframes nw-drift { to { transform: translate(60px, 40px) scale(1.15); } }
.nw-window ::selection { background: color-mix(in srgb, var(--nw-gold) 45%, transparent); }

/* ---------- En-tête ---------- */
.nw-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; padding: 1rem 1.25rem; border-block-end: 1px solid var(--nw-line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent); }
.nw-brand { display: flex; align-items: center; gap: .85rem; min-inline-size: 0; }
.nw-brand-mark { display: grid; place-items: center; inline-size: 46px; block-size: 46px; border-radius: 14px; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #d61f35, #ff5a67); box-shadow: 0 10px 26px -10px rgba(255, 59, 78, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.nw-brand h2 { margin: 0; display: flex; align-items: center; gap: .65rem; font-family: var(--font-heading); font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: #fff; letter-spacing: .01em; }
.nw-live { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .55rem .18rem .45rem; border-radius: 999px; font: 800 .62rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffd5d9; background: rgba(255, 59, 78, .14); border: 1px solid rgba(255, 59, 78, .35); }
.nw-live .nw-pulse { inline-size: 9px; block-size: 9px; }
.nw-live .nw-pulse i { inline-size: 6px; block-size: 6px; }
.nw-updated { margin: .15rem 0 0; font-size: .76rem; color: var(--nw-ink-3); }

.nw-tabs { position: relative; justify-self: center; display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--nw-line); }
.nw-tab { position: relative; z-index: 1; display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border: 0; border-radius: 12px; background: none; color: var(--nw-ink-2); cursor: pointer; text-align: start; transition: color .25s; font: inherit; }
.nw-tab i { font-size: 1.15rem; }
.nw-tab span { display: grid; line-height: 1.15; }
.nw-tab strong { font-size: .9rem; }
.nw-tab small { font-size: .68rem; opacity: .7; }
.nw-tab[aria-selected="true"] { color: var(--c-navy-deep, #071a33); }
.nw-tab:not([aria-selected="true"]):hover { color: #fff; }
.nw-tab-count:empty { display: none; }
.nw-tab-count { min-inline-size: 1.6rem; padding: .1rem .4rem; border-radius: 999px; font-size: .7rem; text-align: center; background: rgba(255, 255, 255, .12); }
.nw-tab[aria-selected="true"] .nw-tab-count { background: rgba(7, 26, 51, .14); }
.nw-tab-ink { position: absolute; z-index: 0; inset-block: .3rem; inset-inline-start: 0; border-radius: 12px; background: linear-gradient(135deg, var(--nw-gold-2), var(--nw-gold)); box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--nw-gold) 80%, transparent); transition: transform .45s var(--nw-ease), inline-size .45s var(--nw-ease); }
.nw-head-actions { display: flex; gap: .4rem; }
.nw-icon-btn { display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 12px; border: 1px solid var(--nw-line); background: var(--nw-glass); color: var(--nw-ink); cursor: pointer; font-size: 1.05rem; transition: background .2s, transform .2s, border-color .2s; }
.nw-icon-btn:hover { background: rgba(255, 255, 255, .12); border-color: color-mix(in srgb, var(--nw-gold) 45%, transparent); }
.nw-icon-btn:active { transform: scale(.95); }
.nw-icon-btn[aria-pressed="true"] { color: var(--nw-gold-2); border-color: color-mix(in srgb, var(--nw-gold) 55%, transparent); }
.nw-close:hover { background: rgba(255, 59, 78, .2); border-color: rgba(255, 59, 78, .5); }
.nw-window :focus-visible { outline: 2px solid var(--nw-gold-2); outline-offset: 2px; }

/* ---------- Corps : deux volets ---------- */
.nw-body { display: grid; grid-template-columns: minmax(340px, 34%) 1fr; min-block-size: 0; }
.nw-list-pane { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-block-size: 0; border-inline-end: 1px solid var(--nw-line); background: rgba(0, 0, 0, .14); }
.nw-tools { display: grid; gap: .7rem; padding: .95rem 1rem .7rem; }
.nw-search { display: flex; align-items: center; gap: .55rem; padding: 0 .75rem; block-size: 42px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--nw-line); transition: border-color .2s, background .2s; }
.nw-search:focus-within { border-color: color-mix(in srgb, var(--nw-gold) 60%, transparent); background: rgba(255, 255, 255, .09); }
.nw-search i { color: var(--nw-ink-3); }
.nw-search input { flex: 1; min-inline-size: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: .88rem; }
.nw-search input::placeholder { color: var(--nw-ink-3); }
.nw-search kbd { font-size: .66rem; padding: .1rem .4rem; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--nw-ink-2); border: 0; }
.nw-chips { display: flex; gap: .4rem; overflow-x: auto; padding-block-end: .2rem; scrollbar-width: none; }
.nw-chips::-webkit-scrollbar { display: none; }
.nw-chip { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .35rem .7rem; border-radius: 999px; font: 600 .74rem/1.2 var(--font-body); color: var(--nw-ink-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--nw-line); cursor: pointer; transition: all .2s; }
.nw-chip i { color: var(--tone, var(--nw-gold)); }
.nw-chip:hover { color: #fff; border-color: color-mix(in srgb, var(--tone, var(--nw-gold)) 50%, transparent); }
.nw-chip[aria-pressed="true"] { color: var(--c-navy-deep, #071a33); background: var(--tone, var(--nw-gold-2)); border-color: transparent; }
.nw-chip[aria-pressed="true"] i { color: inherit; }

.nw-fresh { position: absolute; z-index: 4; inset-block-start: 118px; inset-inline-start: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .78rem var(--font-body); color: #fff; background: linear-gradient(135deg, #d61f35, #ff5a67); box-shadow: 0 10px 26px -8px rgba(255, 59, 78, .8); animation: nw-bounce .6s var(--nw-ease) both; }
[dir="rtl"] .nw-fresh { translate: 50% 0; }
@keyframes nw-bounce { from { opacity: 0; transform: translateY(-12px) scale(.9); } }

.nw-viewport { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; padding: .2rem .75rem 1rem;
  mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 34px), transparent); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px, #000 calc(100% - 34px), transparent); }
.nw-viewport:focus { outline: 0; }
.nw-track { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.nw-item { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: .8rem; padding: .7rem; border-radius: 16px; cursor: pointer; text-align: start; inline-size: 100%;
  color: inherit; font: inherit; background: rgba(255, 255, 255, .035); border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s var(--nw-ease); }
.nw-item::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; inline-size: 3px; border-radius: 3px; background: var(--tone); opacity: .0; transition: opacity .25s; }
.nw-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .08); transform: translateX(3px); }
[dir="rtl"] .nw-item:hover { transform: translateX(-3px); }
.nw-item:hover::before, .nw-item.is-active::before { opacity: 1; }
.nw-item.is-active { background: linear-gradient(110deg, color-mix(in srgb, var(--tone) 18%, transparent), rgba(255, 255, 255, .05)); border-color: color-mix(in srgb, var(--tone) 45%, transparent); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--tone) 90%, transparent); }
.nw-item.is-new { animation: nw-new 2.4s ease both; }
@keyframes nw-new { 0% { background: rgba(255, 59, 78, .3); } 100% { background: rgba(255, 255, 255, .035); } }
.nw-item.is-urgent { border-color: rgba(255, 59, 78, .35); }
.nw-thumb { position: relative; inline-size: 74px; block-size: 74px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 1.6rem; color: var(--tone);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tone) 35%, transparent), rgba(255, 255, 255, .04) 70%); border: 1px solid rgba(255, 255, 255, .07); }
.nw-thumb img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .6s var(--nw-ease); }
.nw-item:hover .nw-thumb img { transform: scale(1.08); }
.nw-thumb .nw-kind { position: absolute; inset-block-end: 5px; inset-inline-end: 5px; display: grid; place-items: center; inline-size: 22px; block-size: 22px; border-radius: 7px; font-size: .72rem; color: #fff; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.nw-meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .68rem; color: var(--nw-ink-3); margin-block-end: .25rem; }
.nw-meta .nw-cat { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); }
.nw-meta .nw-dot { inline-size: 3px; block-size: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.nw-item h4 { margin: 0; font: 650 .92rem/1.35 var(--font-body); color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-item h4[lang="ar"] { font-family: var(--font-arabic-ui, var(--font-arabic)); font-size: 1rem; line-height: 1.6; }
.nw-item .nw-src { margin-block-start: .3rem; font-size: .7rem; color: var(--nw-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-badges { display: inline-flex; gap: .3rem; }
.nw-badge { padding: .08rem .38rem; border-radius: 6px; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nw-badge-urgent { background: var(--nw-red); color: #fff; animation: nw-blink 1.6s ease-in-out infinite; }
.nw-badge-important { background: rgba(242, 201, 76, .2); color: var(--nw-tone-gold); }
.nw-badge-pin { background: rgba(255, 255, 255, .12); color: #fff; }
@keyframes nw-blink { 50% { opacity: .55; } }
.nw-progress { position: absolute; inset-inline: 12px; inset-block-end: 4px; block-size: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--nw-gold), transparent); transform-origin: left; transform: scaleX(0); }
.nw-skel { block-size: 92px; border-radius: 16px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 300% 100%; animation: nw-shimmer 1.4s linear infinite; }
@keyframes nw-shimmer { to { background-position: -150% 0; } }
.nw-list-empty { padding: 2.5rem 1rem; text-align: center; color: var(--nw-ink-2); font-size: .9rem; }
.nw-list-empty i { display: block; font-size: 2rem; color: var(--nw-gold); margin-block-end: .5rem; }
.nw-list-empty button { margin-block-start: .8rem; }
.nw-list-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 1rem; border-block-start: 1px solid var(--nw-line); font-size: .72rem; color: var(--nw-ink-3); }
.nw-mode { display: inline-flex; align-items: center; gap: .4rem; }
.nw-mode i { color: var(--nw-gold); }
.nw-list-pane.is-paused .nw-mode i::before { content: "\f4c3"; }

/* ---------- Lecteur ---------- */
.nw-reader { position: relative; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; color: var(--c-ink, #1d2433); background: var(--c-paper, #fbf8f1);
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--c-ink, #000) 22%, transparent) transparent; }
.nw-reader-empty { block-size: 100%; display: grid; place-content: center; justify-items: center; gap: .55rem; padding: 2rem; text-align: center; color: var(--c-muted, #5b6474); }
.nw-reader-empty h3 { margin: .8rem 0 0; font-family: var(--font-heading); color: var(--c-heading, var(--c-ink)); font-size: 1.4rem; }
.nw-reader-empty p { margin: 0; max-inline-size: 42ch; }
.nw-keys { display: inline-flex; align-items: center; gap: .45rem; margin-block-start: 1rem !important; padding: .4rem .8rem; border-radius: 999px; font-size: .75rem; background: color-mix(in srgb, var(--c-ink, #000) 6%, transparent); }
.nw-orbit { position: relative; inline-size: 120px; block-size: 120px; display: grid; place-items: center; }
.nw-orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--c-gold, #c9a227) 60%, transparent); animation: nw-spin 18s linear infinite; }
.nw-orbit span + span { inset: 18px; border-style: solid; border-color: color-mix(in srgb, var(--c-gold, #c9a227) 25%, transparent); animation-direction: reverse; animation-duration: 12s; }
.nw-orbit i { font-size: 2.2rem; color: var(--c-gold-text, var(--c-gold)); }
@keyframes nw-spin { to { transform: rotate(360deg); } }

.nw-reader-inner { animation: nw-in .45s var(--nw-ease) both; }
@keyframes nw-in { from { opacity: 0; transform: translateY(14px); } }
.nw-hero { position: relative; overflow: hidden; background: #000; }
.nw-hero-img { position: relative; max-block-size: 52vh; display: grid; place-items: center; cursor: zoom-in; background: #0b0f17; }
.nw-hero-img img { inline-size: 100%; max-block-size: 52vh; object-fit: cover; display: block; }
.nw-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); pointer-events: none; }
.nw-embed { position: relative; aspect-ratio: 16 / 9; inline-size: 100%; background: #000; }
.nw-embed iframe, .nw-embed video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.nw-audio { padding: 1.4rem clamp(1.2rem, 4vw, 3rem); background: linear-gradient(135deg, var(--c-navy-deep, #071a33), var(--c-navy, #0b2545)); }
.nw-audio audio { inline-size: 100%; }
.nw-article { max-inline-size: 780px; margin-inline: auto; padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.2rem, 4vw, 3rem) 3rem; }
.nw-article-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-block-end: .9rem; }
.nw-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tone) 70%, var(--c-ink, #000)); background: color-mix(in srgb, var(--tone) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
.nw-pill.is-urgent { color: #fff; background: var(--nw-red); border-color: transparent; }
.nw-pill.is-soft { color: var(--c-muted, #5b6474); background: color-mix(in srgb, var(--c-ink, #000) 5%, transparent); border-color: transparent; text-transform: none; letter-spacing: 0; font-weight: 600; }
.nw-article h1 { margin: 0 0 .9rem; font-family: var(--font-heading); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; color: var(--c-heading, var(--c-ink)); letter-spacing: -.01em; }
.nw-article h1[lang="ar"], .nw-article .nw-lead[lang="ar"], .nw-prose[lang="ar"] { font-family: var(--font-arabic, var(--font-body)); line-height: 1.8; }
.nw-lead { margin: 0 0 1.3rem; font-size: 1.12rem; line-height: 1.65; color: color-mix(in srgb, var(--c-ink, #000) 82%, transparent); font-weight: 500; }
.nw-byline { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .85rem 0; margin-block-end: 1.5rem; border-block: 1px solid var(--c-border-soft, rgba(0, 0, 0, .08)); font-size: .82rem; color: var(--c-muted, #5b6474); }
.nw-byline .nw-src-logo { display: grid; place-items: center; inline-size: 36px; block-size: 36px; border-radius: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c-green, #0f4d37), var(--c-navy, #0b2545)); flex: none; }
.nw-byline strong { color: var(--c-ink, #000); display: block; font-size: .88rem; }
.nw-byline .nw-by-meta { display: flex; gap: .9rem; flex-wrap: wrap; margin-inline-start: auto; }
.nw-byline .nw-by-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.nw-prose { font-size: 1.04rem; line-height: 1.8; color: var(--c-ink, #1d2433); overflow-wrap: anywhere; }
.nw-prose > :first-child { margin-block-start: 0; }
.nw-prose p { margin: 0 0 1.1em; }
.nw-prose h2, .nw-prose h3, .nw-prose h4 { font-family: var(--font-heading); color: var(--c-heading, var(--c-ink)); margin: 1.6em 0 .6em; line-height: 1.3; }
.nw-prose img, .nw-prose video { max-inline-size: 100%; block-size: auto; border-radius: 14px; margin: .6em 0; }
.nw-prose figure { margin: 1.4em 0; } .nw-prose figcaption { font-size: .82rem; color: var(--c-muted); text-align: center; margin-block-start: .4em; }
.nw-prose blockquote { margin: 1.4em 0; padding: .9em 1.2em; border-inline-start: 4px solid var(--c-gold, #c9a227); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--c-gold, #c9a227) 9%, transparent); font-style: italic; }
[dir="rtl"] .nw-prose blockquote { border-radius: 12px 0 0 12px; }
.nw-prose a { color: var(--c-link, var(--c-green)); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nw-prose ul, .nw-prose ol { padding-inline-start: 1.4em; margin: 0 0 1.1em; }
.nw-prose table { inline-size: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.2em 0; display: block; overflow-x: auto; }
.nw-prose th, .nw-prose td { padding: .5em .7em; border: 1px solid var(--c-border-soft, rgba(0, 0, 0, .1)); }
.nw-prose .ayah, .nw-prose .hadith { padding: 1em 1.2em; border-radius: 14px; background: color-mix(in srgb, var(--c-green, #0f4d37) 7%, transparent); }
.nw-note { display: flex; gap: .6rem; margin: 1.6rem 0 0; padding: .85rem 1rem; border-radius: 14px; font-size: .82rem; color: var(--c-muted, #5b6474); background: color-mix(in srgb, var(--c-ink, #000) 4%, transparent); }
.nw-note i { color: var(--c-gold-text, var(--c-gold)); }
.nw-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.6rem 0 0; }
.nw-tags span { padding: .3rem .7rem; border-radius: 999px; font-size: .76rem; background: color-mix(in srgb, var(--c-ink, #000) 6%, transparent); color: var(--c-muted, #5b6474); }
.nw-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2rem 0 0; padding-block-start: 1.4rem; border-block-start: 1px solid var(--c-border-soft, rgba(0, 0, 0, .08)); }
.nw-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 12px; font: 700 .84rem var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s var(--nw-ease), box-shadow .2s, background .2s;
  color: var(--c-ink, #1d2433); background: color-mix(in srgb, var(--c-ink, #000) 6%, transparent); border: 1px solid var(--c-border-soft, rgba(0, 0, 0, .08)); }
.nw-btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--c-ink, #000) 10%, transparent); color: var(--c-ink, #1d2433); }
.nw-btn-primary { color: #fff; background: linear-gradient(135deg, var(--c-green, #0f4d37), var(--c-green-deep, #0a3627)); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(15, 77, 55, .8); }
.nw-btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--c-green-deep, #0a3627), var(--c-green, #0f4d37)); }
.nw-reader-nav { position: sticky; inset-block-start: 0; z-index: 3; display: none; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem;
  background: color-mix(in srgb, var(--c-paper, #fff) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block-end: 1px solid var(--c-border-soft, rgba(0, 0, 0, .08)); }
.nw-reader-nav .nw-btn { padding: .5rem .8rem; }
.nw-reader-nav .nw-steps { display: flex; gap: .35rem; }
.nw-reader-load { padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.2rem, 4vw, 3rem); display: grid; gap: .9rem; max-inline-size: 780px; margin-inline: auto; }
.nw-reader-load i { display: block; block-size: 16px; border-radius: 8px; background: linear-gradient(100deg, color-mix(in srgb, var(--c-ink, #000) 6%, transparent) 30%, color-mix(in srgb, var(--c-ink, #000) 12%, transparent) 50%, color-mix(in srgb, var(--c-ink, #000) 6%, transparent) 70%) 0 0 / 300% 100%; animation: nw-shimmer 1.4s linear infinite; }
.nw-reader-load i:first-child { block-size: 260px; border-radius: 18px; } .nw-reader-load i:nth-child(2) { block-size: 34px; inline-size: 80%; } .nw-reader-load i:nth-child(5) { inline-size: 60%; }

/* ---------- Pied & visionneuse ---------- */
.nw-foot { padding: .6rem 1.25rem; border-block-start: 1px solid var(--nw-line); font-size: .72rem; color: var(--nw-ink-3); background: rgba(0, 0, 0, .2); }
.nw-foot p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.nw-foot i { color: var(--nw-tone-green); }
.nw-lightbox { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 2rem; background: rgba(0, 0, 0, .88); cursor: zoom-out; animation: nw-fade .25s ease both; }
.nw-lightbox[hidden] { display: none; }
.nw-lightbox img { max-inline-size: 100%; max-block-size: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.nw-lightbox .nw-icon-btn { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; }
.nw-toast { position: absolute; inset-block-end: 1.2rem; inset-inline-start: 50%; translate: -50% 0; z-index: 6; padding: .6rem 1rem; border-radius: 12px; font-size: .82rem; font-weight: 600; color: #fff; background: rgba(10, 18, 32, .92); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); animation: nw-bounce .4s var(--nw-ease) both; }
[dir="rtl"] .nw-toast { translate: 50% 0; }
html.nw-locked, html.nw-locked body { overflow: hidden !important; }

/* ---------- Page /actualites ---------- */
.nw-page { min-block-size: 60vh; display: grid; place-items: center; padding: 4rem 1rem; text-align: center; background: radial-gradient(800px 400px at 50% 0%, color-mix(in srgb, var(--c-gold, #c9a227) 16%, transparent), transparent 70%); }
.nw-page-inner { max-inline-size: 640px; display: grid; justify-items: center; gap: 1rem; }
.nw-page-mark { display: grid; place-items: center; inline-size: 76px; block-size: 76px; border-radius: 22px; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #d61f35, #ff5a67); box-shadow: 0 20px 40px -14px rgba(255, 59, 78, .8); }
.nw-page h1 { margin: 0; font-family: var(--font-heading); }
.nw-page p { margin: 0; color: var(--c-muted); }
.nw-page-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.nw-page-actions button { border: 0; cursor: pointer; font: inherit; }
.nw-page-actions .nw-ticker-pf { background: var(--c-navy-deep, #071a33); color: var(--nw-gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nw-head { grid-template-columns: 1fr auto; }
  .nw-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .nw-tab { flex: 1; justify-content: center; }
  .nw-body { grid-template-columns: minmax(300px, 40%) 1fr; }
}
@media (max-width: 760px) {
  .nw-modal { padding: 0; }
  .nw-window { border-radius: 0; block-size: 100%; block-size: 100dvh; border: 0; }
  .nw-head { padding: .75rem .85rem; gap: .7rem; }
  .nw-brand-mark { inline-size: 40px; block-size: 40px; border-radius: 12px; font-size: 1.1rem; }
  .nw-tab small { display: none; }
  .nw-tab { padding: .55rem .6rem; }
  .nw-body { grid-template-columns: 1fr; position: relative; overflow: hidden; }
  .nw-list-pane { border: 0; }
  .nw-reader { position: absolute; inset: 0; z-index: 5; transform: translateX(100%); transition: transform .45s var(--nw-ease); }
  [dir="rtl"] .nw-reader { transform: translateX(-100%); }
  .nw-modal.is-reading .nw-reader { transform: none; }
  .nw-reader-nav { display: flex; }
  .nw-reader-empty { display: none; }
  .nw-foot { display: none; }
  .nw-byline .nw-by-meta { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-ticker-track { animation-duration: 0s; animation: none; flex-wrap: nowrap; overflow-x: auto; }
  .nw-ticker-rail { overflow-x: auto; }
  .nw-aurora i, .nw-orbit span, .nw-pulse::before, .nw-pulse::after, .nw-badge-urgent { animation: none; }
  .nw-window, .nw-backdrop, .nw-reader-inner { animation: none; }
}
