/*
Theme Name: El Waq3 Arabe
Text Domain: elwaq3ar
*/
/* ==========================================================================
   الواقع (el-waq3.com) — جريدة إخبارية مصرية عامة، عربي RTL، وضع فاتح فقط.
   Decision Mathias 21/09/2026 (R-0676) : ARABE UNIQUEMENT, RTL, AUCUN mode sombre.
   Inspiration : Youm7 / Masrawy / الشروق — bandeau عاجل défilant, cartouches rouges
   pleines, grille dense, heures visibles partout.
   ========================================================================== */

:root{
  --fond:#ffffff;
  --encre:#141414;
  --doux:#5c5c5c;
  --surf:#f5f5f5;
  --surf-2:#efefef;
  --filet:#e2e2e2;
  --filet-fort:#141414;
  --rouge:#C8102E;
  --rouge-fonce:#900B1F;
  --rouge-txt:#a80d26;
  --noir:#141414;
  --titre:'Cairo','Tahoma',Arial,sans-serif;
  --courant:'Tajawal','Tahoma',Arial,sans-serif;
  --rayon:4px;
  color-scheme:light only;
}

/* ---------- 1. SOCLE ------------------------------------------------------ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fond);color:var(--encre);
  font-family:var(--courant);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block;border-radius:0}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
:focus-visible{outline:3px solid var(--rouge);outline-offset:2px}
h1,h2,h3{font-family:var(--titre);font-weight:800;margin:0;line-height:1.15}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
.sb-oeil,.sb-oeil-txt{position:absolute;right:-9999px;width:1px;height:1px;overflow:hidden}
.sb-oeil:focus{right:.5rem;top:.5rem;width:auto;height:auto;padding:.55rem .9rem;
  background:var(--rouge);color:#fff;z-index:99}
.qe-cadre{width:min(1240px,100% - 2.4rem);margin-inline:auto}

/* الكارتوش: عنوان القسم الأحمر الصريح */
.qe-cartouche{display:inline-block;background:var(--rouge);color:#fff;
  font-family:var(--titre);font-size:13px;font-weight:700;padding:.3rem .8rem .34rem;
  margin-bottom:.55rem;border-radius:2px}
.qe-cartouche:hover{text-decoration:none;background:var(--rouge-fonce)}
.qe-cartouche--mince{font-size:11.5px;padding:.22rem .6rem .26rem}
.qe-chapo{font-size:16px;line-height:1.6;color:var(--doux);margin-top:.55rem}
.qe-chapo--court{font-size:14.5px}
.qe-signe{font-family:var(--titre);font-size:13px;font-weight:600;color:var(--doux);margin-top:.5rem}
.qe-barre{padding-inline:.45em;color:var(--filet)}
.qe-photo{margin:0}
.qe-photo img{width:100%;object-fit:cover;aspect-ratio:3/2;border-radius:var(--rayon)}
.qe-photo figcaption{font-size:12.5px;color:var(--doux);margin-top:.45rem;line-height:1.4;
  border-right:3px solid var(--rouge);padding-right:.6rem}
.jr-plaque{border-radius:var(--rayon)!important}

/* ---------- 2. LA TETE : bande info + logo + nav rubriques + ticker عاجل --- */
.qe-tete{position:relative;z-index:20}
.qe-bande-info{background:var(--noir);color:#cfcfcf;font-size:12.5px}
.qe-bande-info-in{display:flex;justify-content:space-between;align-items:center;
  gap:1rem;padding-block:.4rem;font-family:var(--titre)}
.qe-bande-info time{color:#fff;font-weight:700;font-variant-numeric:tabular-nums}

.qe-bandeau{background:#ffffff;border-bottom:1px solid var(--filet)}
.qe-bandeau-in{display:flex;align-items:center;gap:1.4rem;min-height:84px;flex-wrap:wrap}
.qe-marque a{display:flex;align-items:center;gap:.6rem}
.qe-marque a:hover{text-decoration:none}
.qe-marque-mark{display:flex;align-items:center;justify-content:center;width:52px;height:52px;
  background:var(--rouge);color:#fff;border-radius:6px;font-family:var(--titre);
  font-weight:800;font-size:26px;flex:0 0 auto}
.qe-marque-mot{font-family:var(--titre);font-weight:800;font-size:clamp(24px,4.4vw,32px);
  color:var(--noir);line-height:1}
.qe-marque-baseline{display:block;font-family:var(--courant);font-size:12px;font-weight:400;
  color:var(--doux);margin-top:.15rem}
.qe-rubriques{margin-inline-start:auto;display:flex;gap:0;overflow-x:auto;scrollbar-width:none}
.qe-rubriques::-webkit-scrollbar{display:none}
.qe-rubriques a{white-space:nowrap;padding:.5rem .9rem;font-family:var(--titre);font-size:15px;
  font-weight:700;color:var(--noir);border-radius:var(--rayon)}
.qe-rubriques a:hover{text-decoration:none;background:var(--surf);color:var(--rouge)}
.qe-burger{display:none;background:none;border:2px solid var(--noir);padding:.5rem .55rem;
  cursor:pointer;border-radius:var(--rayon)}
.qe-burger span{display:block;width:18px;height:2px;background:var(--noir);margin:3.5px 0}

/* ---------- 3. بندعاجل — الشريط الأحمر المتحرك -------------------------- */
.qe-ajel{background:var(--rouge);color:#fff;display:flex;align-items:stretch;overflow:hidden}
.qe-ajel-etiquette{flex:0 0 auto;display:flex;align-items:center;gap:.4rem;background:var(--rouge-fonce);
  padding:.5rem 1rem;font-family:var(--titre);font-weight:800;font-size:14px;white-space:nowrap;z-index:2}
.qe-ajel-piste{flex:1 1 auto;overflow:hidden;position:relative;display:flex;align-items:center}
.qe-ajel-defile{display:flex;gap:3rem;white-space:nowrap;padding-inline-start:100%;
  animation:qe-defile 42s linear infinite}
.qe-ajel-defile:hover{animation-play-state:paused}
.qe-ajel-defile a{color:#fff;font-family:var(--courant);font-weight:500;font-size:14.5px}
.qe-ajel-defile a::before{content:"•";padding-inline-start:1.2rem;padding-inline-end:.2rem;opacity:.7}
.qe-ajel-defile a:first-child::before{content:""}
@keyframes qe-defile{0%{transform:translateX(0)}100%{transform:translateX(100%)}}
[dir="rtl"] .qe-ajel-defile{animation-name:qe-defile-rtl}
@keyframes qe-defile-rtl{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

/* ---------- 4. LA UNE ------------------------------------------------------ */
.qe-une{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:2.2rem;
  padding-block:1.8rem 2rem}
.qe-une-titre{font-size:clamp(28px,4.6vw,44px);line-height:1.15;font-weight:800;margin-top:.3rem}
.qe-une-tete .qe-photo{margin-bottom:.9rem}
.qe-une-tete .qe-chapo{font-size:18px}
.qe-une-pile{display:flex;flex-direction:column}
.qe-pile-item{padding-bottom:1.1rem;margin-bottom:1.1rem;border-bottom:1px solid var(--filet)}
.qe-pile-item:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.qe-pile-titre{font-size:20px;font-weight:700;line-height:1.3}

/* ---------- 5. بلوك أقسام رئيسية (بديل « نوس كومبا ») -------------------- */
.qe-combats{background:var(--surf);padding-block:2rem 2.3rem;margin-block:1.4rem;
  border-top:1px solid var(--filet);border-bottom:1px solid var(--filet)}
.qe-titre-bande{font-size:clamp(22px,3.2vw,30px);font-weight:800;color:var(--noir);
  margin-bottom:1.3rem;padding-inline-start:.7rem;border-inline-start:5px solid var(--rouge)}
.qe-combats-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.8rem}
.qe-combat .qe-photo img{aspect-ratio:16/9}
.qe-combat-nom{font-family:var(--titre);font-size:13px;font-weight:700;color:var(--rouge);margin-top:.7rem}
.qe-combat-titre{font-size:20px;font-weight:700;line-height:1.3;margin-top:.3rem}
.qe-combat-compte{font-size:13px;color:var(--doux);margin-top:.5rem}
.qe-combats--suite{margin-top:2.4rem}

/* ---------- 6. LA GRILLE SERREE -------------------------------------------- */
.qe-grille-sec{padding-block:1.6rem 2rem}
.qe-titre-sec{font-size:clamp(20px,2.6vw,26px);font-weight:800;
  padding-inline-start:.7rem;border-inline-start:5px solid var(--rouge);margin-bottom:1.3rem}
.qe-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.8rem 1.6rem}
.qe-carte .qe-photo{margin-bottom:.7rem}
.qe-carte-titre{font-size:19px;font-weight:700;line-height:1.3}

/* ---------- 7. القسم (أرشيف) ---------------------------------------------- */
.sb-heros{background:var(--surf);padding-block:2rem 2.2rem;border-bottom:1px solid var(--filet)}
.sb-heros h1{font-size:clamp(28px,4.6vw,42px);font-weight:800;color:var(--noir)}
.sb-heros-chapo{font-size:16px;margin-top:.6rem;max-width:min(640px,100%);color:var(--doux)}
.sb-compte{font-family:var(--titre);font-size:13px;font-weight:700;color:var(--rouge)}
.sb-depliant{margin-top:1rem;font-size:14px;color:var(--doux)}
.sb-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.8rem 1.6rem}
.sb-carte .qe-photo,.sb-carte a{display:block}
.sb-carte h3{font-size:18px;font-weight:700;margin-top:.6rem;line-height:1.3}
.sb-chapo{font-size:14.5px;color:var(--doux);margin-top:.4rem;line-height:1.55}
.sb-date{font-family:var(--titre);font-size:12.5px;color:var(--doux);margin-top:.4rem}
.sb-pagination{padding-block:1.5rem 2.4rem;display:flex;gap:.4rem;font-family:var(--titre);
  font-size:14px;font-weight:700;border-top:1px solid var(--filet)}
.sb-pagination .page-numbers{padding:.45rem .85rem;background:var(--surf);border-radius:var(--rayon)}
.sb-pagination .current{background:var(--rouge);color:#fff}

/* ---------- 8. المقال ------------------------------------------------------ */
.qe-article{padding-block:1.8rem 2.4rem}
.qe-art-tete{max-width:min(780px,100%)}
.qe-art-titre{font-size:clamp(28px,4.6vw,44px);line-height:1.25;font-weight:800}
.qe-art-chapo{font-size:19px;line-height:1.55;color:var(--doux);margin-top:.9rem}
.qe-art-credits{display:flex;flex-wrap:wrap;align-items:center;font-family:var(--titre);
  font-size:13.5px;font-weight:600;color:var(--doux);
  margin-top:1rem;padding-block:.6rem;border-top:1px solid var(--filet);border-bottom:1px solid var(--filet)}
.qe-photo--article{margin:1.6rem 0}
.qe-photo--article img{aspect-ratio:16/9;max-height:none}
.qe-texte{max-width:min(720px,100%);font-size:18px;line-height:1.9;margin-top:1.6rem}
.qe-texte p{margin:0 0 1.15rem}
.qe-texte h2{font-size:26px;margin:2rem 0 .7rem;padding-inline-start:.7rem;border-inline-start:5px solid var(--rouge)}
.qe-texte h3{font-size:21px;margin:1.6rem 0 .5rem}
/* pas de listes ni de tableaux dans le corps (consigne 21/09) — style de repli seulement */
.qe-texte ul,.qe-texte ol{margin:0 0 1.15rem;padding-inline-start:1.4rem}
.qe-texte a{color:var(--rouge-txt);text-decoration:underline;text-underline-offset:3px}
.qe-texte blockquote{margin:1.7rem 0;padding:1.1rem 1.3rem;background:var(--noir);color:#fff;
  font-family:var(--titre);font-size:22px;font-weight:700;line-height:1.3;border-radius:var(--rayon)}
.qe-texte blockquote p{margin:0}
.qe-texte img{margin:1.5rem 0;border-radius:var(--rayon)}
.qe-art-pied{max-width:min(780px,100%);margin-top:2rem;padding:1.2rem;background:var(--surf);border-radius:var(--rayon)}

.sb-signature{display:flex;gap:1rem;align-items:flex-start}
.sb-signature img{width:64px;height:64px;border-radius:999px}
.sb-signature-nom{font-family:var(--titre);font-weight:800;font-size:17px}
.sb-signature-bio{font-size:14.5px;color:var(--doux);margin-top:.3rem;line-height:1.5}
.sb-sommaire{background:var(--surf);border-radius:var(--rayon);padding:1rem 1.2rem;margin-bottom:1.6rem}
.sb-sommaire p{font-family:var(--titre);font-weight:800;font-size:15px;margin-bottom:.5rem}
.sb-sommaire ol{padding-inline-start:1.2rem;list-style:decimal}
.sb-sommaire li{margin-bottom:.3rem;font-size:14.5px}
.sb-sommaire a{color:var(--rouge-txt)}

/* ---------- 9. فوتر أسود --------------------------------------------------- */
.qe-pied{margin-top:2rem;background:var(--noir);color:#e9e9e9}
.qe-pied a{color:inherit}
.qe-pied-manchette{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;
  padding-block:1.8rem 1.3rem;border-bottom:3px solid var(--rouge)}
.qe-pied-nom{font-family:var(--titre);font-weight:800;font-size:26px;color:#fff}
.qe-pied-baseline{font-family:var(--courant);font-size:13px;color:#b8b8b8}
.qe-pied-grille{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2rem;padding-block:1.8rem}
.qe-pied-titre{font-family:var(--titre);font-size:14px;font-weight:700;color:var(--rouge);
  padding-bottom:.4rem;border-bottom:1px solid #333;margin-bottom:.8rem}
.qe-pied-liste li{padding:.3rem 0;font-size:14.5px;display:flex;justify-content:space-between;gap:.6rem}
.qe-pied-compte{font-size:12px;color:#8f8f8f;font-variant-numeric:tabular-nums}
.qe-pied-fil li{display:flex;gap:.6rem;align-items:baseline;padding:.35rem 0}
.qe-pied-fil time{font-family:var(--titre);font-size:12.5px;font-weight:700;color:var(--rouge);
  flex:0 0 auto;font-variant-numeric:tabular-nums}
.qe-pied-fil a{font-size:14px;line-height:1.4}
.qe-pied-note{font-size:13px;color:#9a9a9a;margin-top:.6rem;line-height:1.5}
.qe-pied input[type="search"],.qe-pied input[type="text"]{font:inherit;font-size:14px;width:100%;
  padding:.5rem .7rem;border:1px solid #333;border-radius:var(--rayon);background:#fff;color:#141414}
.qe-pied button[type="submit"],.qe-pied input[type="submit"]{font-family:var(--titre);font-size:13px;
  font-weight:700;margin-top:.5rem;padding:.5rem 1rem;border:0;background:var(--rouge);color:#fff;
  border-radius:var(--rayon);cursor:pointer}
.qe-ours{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-block:1rem 1.2rem;border-top:1px solid #333;font-size:13px;color:#9a9a9a}

/* ---------- 10. BARRE MOBILE BASSE ----------------------------------------- */
.sb-nav-mobile{display:none;position:fixed;left:0;right:0;bottom:0;z-index:40;
  background:#fff;border-top:1px solid var(--filet);box-shadow:0 -2px 10px rgba(0,0,0,.06);
  padding-bottom:env(safe-area-inset-bottom)}
.sb-nav-mobile-item{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:.45rem .2rem .5rem;font-family:var(--titre);font-size:11px;font-weight:700;
  color:var(--doux);text-align:center}
.sb-nav-mobile-item:hover{text-decoration:none}
.sb-nav-mobile-item.is-actif{color:var(--rouge)}
.sb-nav-ico{display:block;width:20px;height:20px}
.sb-nav-ico svg{width:100%;height:100%;stroke:currentColor;fill:none}

/* ---------- 11. FORMULAIRES / PAGES GENERIQUES ----------------------------- */
.sb-article{padding-block:2rem 2.6rem;max-width:min(760px,100%);margin-inline:auto}
.sb-article-tete h1{font-size:clamp(26px,4vw,38px);font-weight:800}
.sb-corps{font-size:17px;line-height:1.85;margin-top:1.2rem}
.sb-corps p{margin-bottom:1.1rem}
.sb-form input,.sb-form textarea{font:inherit;font-size:15px;width:100%;padding:.6rem .8rem;
  border:1px solid var(--filet);border-radius:var(--rayon);background:#fff;color:var(--encre)}
.sb-form label{font-family:var(--titre);font-weight:700;font-size:14px}
.sb-form button{font-family:var(--titre);font-weight:700;font-size:15px;padding:.65rem 1.3rem;
  border:0;background:var(--rouge);color:#fff;border-radius:var(--rayon);cursor:pointer}
.sb-form button:hover{background:var(--rouge-fonce)}
[role="search"] input[type="search"]{font:inherit;font-size:15px;padding:.6rem .8rem;
  border:1px solid var(--filet);border-radius:var(--rayon);width:min(320px,100%)}
[role="search"] button{font-family:var(--titre);font-weight:700;padding:.6rem 1rem;border:0;
  background:var(--rouge);color:#fff;border-radius:var(--rayon);cursor:pointer;margin-inline-start:.4rem}

/* ---------- 12. REPLIS ------------------------------------------------------ */
@media (max-width: 1080px){
  .qe-une{grid-template-columns:minmax(0,1fr)}
  .qe-combats-grille,.qe-grille,.sb-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qe-pied-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 760px){
  .qe-cadre{width:min(1240px,100% - 1.6rem)}
  .qe-bandeau-in{min-height:66px;gap:.8rem}
  .qe-burger{display:block}
  .qe-rubriques{flex-basis:100%;order:3;flex-direction:column;max-height:0;overflow:hidden;margin-inline-start:0}
  .qe-rubriques.is-ouvert{max-height:none;overflow:visible;padding-bottom:.6rem}
  .qe-rubriques a{border-bottom:1px solid var(--filet);width:100%;padding:.7rem .2rem;border-radius:0}
  .qe-combats-grille,.qe-grille,.qe-pied-grille,.sb-grille{grid-template-columns:minmax(0,1fr)}
  .sb-nav-mobile{display:flex}
  body{padding-bottom:66px}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;
    scroll-behavior:auto!important}
  .qe-ajel-defile{animation:none}
}
@media print{.qe-rubriques,.sb-nav-mobile,.qe-ajel{display:none!important}}

[hidden]{display:none!important}
