/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 19 2026 | 20:45:08 */
/* Ribat 8 — Page d'accueil : bandes دفاتر et ملفات
   Sections 26, 26 bis, 29 de l'ancien CSS additionnel (découpage du 30/10/2026).
   Ordre de chargement : priorité 8. */

/* ===== 26. Page d'accueil : bandes « دفاتر » et « ملفات » =====
   Codes courts [daftar_accueil] et [malafat_accueil] (snippet « Accueil — bandes »). */
.rk-acc-daftar {
    display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center;
    background: #0f3a73; color: #f1e9db; padding: 24px; border-radius: 4px;
    border-top: 4px solid var(--daftar-accent, #eec53a);
}
.rk-acc-daftar a { text-decoration: none !important; }
.rk-acc-daftar-couv { position: relative; display: block; }
.rk-acc-daftar-couv img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; border: 6px solid #fbf8f1; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.rk-acc-daftar-badge { position: absolute; bottom: 14px; right: 14px; background: #eec53a; color: #0f3a73; font-family: 'Alexandria', sans-serif; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.rk-acc-daftar-texte { display: flex; flex-direction: column; gap: 8px; }
.rk-acc-sur { font-family: 'Alexandria', sans-serif; font-size: 13px; font-weight: 600; color: #eec53a; letter-spacing: .02em; }
.rk-acc-daftar-titre { font-family: 'Amiri', serif; font-size: 30px; font-weight: 700; line-height: 1.3; color: #ffffff; }
.rk-acc-daftar-mois { font-family: 'Alexandria', sans-serif; font-size: 12px; color: #d9cfbf; }
.rk-acc-daftar-une { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 10px 14px; background: rgba(255, 255, 255, .06); border-right: 3px solid #eec53a; }
.rk-acc-daftar-une small { font-family: 'Alexandria', sans-serif; font-size: 11px; color: #eec53a; }
.rk-acc-daftar-une span { font-family: 'Amiri', serif; font-size: 20px; font-weight: 700; color: #ffffff; line-height: 1.4; unicode-bidi: plaintext; }
.rk-acc-daftar-liste { list-style: none; margin: 0 !important; padding: 0 !important; }
.rk-acc-daftar-liste li { padding: 5px 0; border-bottom: 1px dotted rgba(238, 197, 58, .35); margin: 0 !important; list-style: none !important; }
.rk-acc-daftar-liste a { color: #f1e9db !important; font-size: 14px; }
.rk-acc-daftar-liste a:hover { color: #eec53a !important; }
.rk-acc-daftar-liste small { color: #eec53a; font-size: 11px; margin-left: 6px; }
.rk-acc-daftar-liste span { unicode-bidi: plaintext; }
.rk-acc-actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.rk-acc-btn { background: #eec53a; color: #0f3a73 !important; font-family: 'Alexandria', sans-serif; font-size: 13px; font-weight: 700; padding: 7px 18px; border-radius: 20px; }
.rk-acc-btn:hover { background: #f7d65c; }
.rk-acc-lien { font-family: 'Alexandria', sans-serif; font-size: 13px; font-weight: 600; color: #eec53a !important; text-decoration: none !important; }
.rk-acc-daftar .rk-acc-lien:hover { color: #ffffff !important; }

.rk-acc-malafat { background: #fbf8f1; border: 1px solid #dbe4f0; border-top: 4px solid #eec53a; border-radius: 4px; padding: 18px 20px 22px; }
.rk-acc-malafat-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.rk-acc-malafat-titre { font-family: 'Amiri', serif; font-size: 26px; font-weight: 700; color: #0f3a73; }
.rk-acc-malafat .rk-acc-lien { color: #9a7230 !important; }
.rk-acc-malafat-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
.rk-acc-malafat-grille .malafat-titre { font-size: 17px; min-height: 2.9em; }
.rk-acc-malafat-grille .rk-acc-premier .malafat-titre { font-size: 22px; }
.rk-acc-malafat-grille .malafat-titre-long { font-size: 15px; }
.rk-acc-malafat-grille .malaf-etiquette { padding: 10px 8px 8px; }

@media (max-width: 991px) {
    .rk-acc-daftar { grid-template-columns: 1fr; }
    .rk-acc-malafat-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .rk-acc-malafat-grille { grid-template-columns: 1fr; }
    .rk-acc-daftar-titre { font-size: 24px; }
}

/* ===== 26 bis. Bande « دفاتر » de l'accueil : carte claire teintée de la couleur de saison =====
   Remplace le style de .rk-acc-daftar de la section 26. Teinte de saison (--daftar-accent)
   qui s'éclaircit vers la couverture ; texte bleu nuit, accents de la couleur de saison. */
.mag-box:has(.rk-acc-daftar), .mag-box:has(.rk-acc-daftar) .container-wrapper,
.container-wrapper:has(> .rk-acc-daftar), .mag-box-container:has(.rk-acc-daftar) {
    background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
}
.rk-acc-daftar {
    position: relative; overflow: hidden;
    display: grid !important; grid-template-columns: 1fr 420px; gap: 0 !important; align-items: stretch !important;
    padding: 0 !important; border: 0 !important; border-radius: 10px !important; color: #0f3a73 !important;
    background: linear-gradient(to left,
        color-mix(in srgb, var(--daftar-accent, #6b2d5c) 18%, #ffffff) 0%,
        color-mix(in srgb, var(--daftar-accent, #6b2d5c) 7%, #ffffff) 100%) !important;
    box-shadow: 0 10px 28px rgba(15, 58, 115, .10);
}
/* Motif zellige discret */
.rk-acc-daftar::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%230f3a73'%3E%3Crect x='18' y='18' width='24' height='24'/%3E%3Crect x='18' y='18' width='24' height='24' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E");
}
.rk-acc-daftar > * { position: relative; z-index: 1; }
/* Couverture à gauche, pleine hauteur */
.rk-acc-daftar-couv { order: 2; min-height: 300px; }
.rk-acc-daftar-couv img {
    width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover;
    border: 0 !important; box-shadow: none !important;
}
.rk-acc-daftar-badge { display: none; }
/* Texte, avec le numéro en grand filigrane */
.rk-acc-daftar-texte { padding: 32px 38px; gap: 10px !important; }
.rk-acc-daftar-texte::before {
    content: attr(data-num); position: absolute; left: 26px; top: -18px;
    font-family: 'Amiri', serif; font-size: 200px; font-weight: 700; line-height: 1;
    color: var(--daftar-accent, #6b2d5c); opacity: .08; pointer-events: none;
}
.rk-acc-sur { color: var(--daftar-accent, #6b2d5c) !important; }
.rk-acc-daftar-titre { font-size: 34px !important; color: #0f3a73 !important; }
.rk-acc-daftar-mois { color: #5a6b7c !important; }
.rk-acc-daftar-une {
    margin-top: 4px; padding: 12px 16px !important; border-radius: 8px;
    background: rgba(255, 255, 255, .7) !important;
    border: 1px solid color-mix(in srgb, var(--daftar-accent, #6b2d5c) 15%, transparent);
    border-right: 3px solid #eec53a !important;
}
.rk-acc-daftar-une small { color: var(--daftar-accent, #6b2d5c) !important; }
.rk-acc-daftar-une span { color: #0f3a73 !important; }
.rk-acc-daftar-liste a { color: #0f3a73 !important; }
.rk-acc-daftar-liste small { color: var(--daftar-accent, #6b2d5c) !important; }
.rk-acc-daftar .rk-acc-btn { background: var(--daftar-accent, #6b2d5c) !important; color: #ffffff !important; }
.rk-acc-daftar .rk-acc-btn:hover { background: #0f3a73 !important; }
.rk-acc-daftar .rk-acc-lien { color: var(--daftar-accent, #6b2d5c) !important; }
.rk-acc-daftar .rk-acc-lien:hover { color: #0f3a73 !important; }
@media (max-width: 991px) {
    .rk-acc-daftar { grid-template-columns: 1fr; }
    .rk-acc-daftar-couv { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
    .rk-acc-daftar-texte::before { font-size: 140px; }
}

/* ===== 29. Accueil : bandes « دفاتر » et « ملفات » plus compactes =====
   Complète les sections 26 et 26 bis (codes courts [daftar_accueil]
   et [malafat_accueil]). Sur ordinateur, les quatre classeurs ont la même
   largeur (le premier, plus large, imposait la hauteur de toute la rangée). */

/* ملفات : sans la carte blanche du bloc Custom Content de Jannah */
.block-custom-content .container-wrapper:has(.rk-acc-malafat) {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    /* دفاتر : texte à droite, couverture de 340 px à gauche */
    .rk-acc-daftar {
        grid-template-columns: 1fr 340px !important;
    }
    /* ملفات : quatre classeurs de même largeur */
    .rk-acc-malafat-grille {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* دفاتر : marges, titre et espacements resserrés */
.rk-acc-daftar-couv { min-height: 220px !important; }
.rk-acc-daftar-texte {
    padding: 22px 30px !important;
    gap: 6px !important;
}
.rk-acc-daftar-titre { font-size: 28px !important; }
.rk-acc-daftar-une {
    padding: 8px 14px !important;
    margin-top: 2px !important;
}
.rk-acc-actions { margin-top: 4px !important; }

/* ملفات : marges resserrées, images un peu moins hautes */
.rk-acc-malafat { padding: 14px 18px 16px !important; }
.rk-acc-malafat-tete { margin-bottom: 8px !important; }
.rk-acc-malafat .malaf-chemise { padding: 14px 12px 10px !important; }
.rk-acc-malafat .malaf-photo img { aspect-ratio: 16 / 10 !important; }
.rk-acc-malafat .malaf-etiquette { margin-top: 10px !important; }


/* ===== 34. Accueil : titres des blocs en demi-largeur (حوارات، أنشطة علمية، آراء، أخبار المجلة) =====
   Jannah : 20 px pour l'article mis en avant, 16 px pour les suivants, trop grand
   dans une demi-colonne. Ramenés à 17 px et 15 px. */
.half-box .posts-items li:first-child .post-title {
    font-size: 17px !important;
    line-height: 1.6 !important;
}
.half-box .posts-items li:not(:first-child) .post-title {
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

/* ===== 44. La une de la page d'accueil — modèle « cartes » =====
   Code court [une_cartes] (snippet « Accueil — la une en cartes »), dans un bloc Custom Content.
   Fond : FondPremeirSlider.jpg. Couleurs du logo : soleil #fee247, brique #c54b33 / #8d2b23, bleu #1e6fd9, turquoise #14a8c4. */
.block-custom-content .container-wrapper:has(.rk-cartes) { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.rk-cartes { position: relative; direction: rtl; background: #fbf6ee url(/wp-content/uploads/2026/11/FondPremeirSlider.jpg) center / cover no-repeat; border-radius: 10px; padding: 24px 56px 40px; }
.rk-cartes a { text-decoration: none !important; }
.rk-cartes-vue { overflow: hidden; }
.rk-cartes-piste { display: flex; transition: transform .8s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.rk-cartes-slide { flex: 0 0 100%; box-sizing: border-box; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rk-cartes-grille { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }

/* Carte commune */
.rk-c { --c: #8d2b23; position: relative; display: block; overflow: hidden; border-radius: 16px; border: 3px solid #fff; background: #fffaf2; box-shadow: 0 4px 14px rgba(110,31,25,.12); transition: transform .25s, box-shadow .25s; }
.rk-c:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(110,31,25,.18); }
.rk-c-img { position: absolute; inset: 0; background: #e9dcc0 center / cover no-repeat; transition: transform .6s; }
.rk-c:hover .rk-c-img { transform: scale(1.04); }
.rk-c-pill { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 30px; background: var(--c); color: #fff; font-family: 'Alexandria', sans-serif; font-size: 12.5px; font-weight: 600; line-height: 1.4; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.rk-c-pill svg { width: 17px; height: 17px; flex: none; }
.rk-c-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; }
.rk-c-t { font-family: 'Alexandria', sans-serif; font-weight: 700; line-height: 1.45; }
.rk-c-trait { display: block; width: 54px; height: 4px; border-radius: 3px; background: #fee247; margin-top: 10px; }

/* Grande carte */
.rk-c-grand { min-height: 410px; }
.rk-c-grand .rk-c-pill { top: 20px; right: 20px; padding: 7px 17px; font-size: 15px; }
.rk-c-grand .rk-c-pill svg { width: 21px; height: 21px; }
.rk-c-grand .rk-c-txt { padding: 110px 30px 34px; background: linear-gradient(to top, rgba(110,31,25,.96) 0%, rgba(141,43,35,.8) 45%, rgba(141,43,35,0) 100%); }
.rk-c-grand .rk-c-t { color: #fff; font-size: 33px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.rk-c-grand::before, .rk-c-grand::after { content: ""; position: absolute; z-index: 2; left: -12%; border-radius: 50%; pointer-events: none; }
.rk-c-grand::before { bottom: -38px; width: 62%; height: 60px; background: #14a8c4; transform: rotate(9deg); opacity: .9; }
.rk-c-grand::after { bottom: -46px; width: 48%; height: 60px; background: #fee247; transform: rotate(9deg); }

/* Petites cartes */
.rk-c-petit { min-height: 196px; }
.rk-c-petit .rk-c-img { bottom: 36%; }
.rk-c-petit .rk-c-txt { min-height: 44%; padding: 16px 16px 16px; background: #fffaf2; border-top-left-radius: 100% 34px; }
.rk-c-petit .rk-c-t { font-size: 16.5px; color: #6e1f19; }
.rk-c-petit .rk-c-trait { width: 40px; height: 3px; background: var(--c); margin-top: 8px; }
.rk-c-petit::after { content: ""; position: absolute; z-index: 3; left: 0; bottom: 0; width: 46%; height: 6px; background: var(--c); border-top-right-radius: 8px; }
.rk-c-v1 { --c: #14a8c4; } .rk-c-v1 .rk-c-t { color: #123f6e; }
.rk-c-v2 { --c: #e9b400; } .rk-c-v2 .rk-c-pill { background: #fee247; color: #6e1f19; }
.rk-c-v3 { --c: #1e6fd9; } .rk-c-v3 .rk-c-t { color: #123f6e; }
.rk-c-v4 { --c: #8d2b23; }

/* Flèches et points */
.rk-cartes .rk-cartes-nav { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; min-height: 0; margin: -22px 0 0; padding: 0; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(30,111,217,.3); transition: transform .2s; }
.rk-cartes .rk-cartes-nav:hover { transform: scale(1.08); }
.rk-cartes .rk-cartes-prev { right: 9px; background: #1e6fd9 !important; }
.rk-cartes .rk-cartes-next { left: 9px; background: #14a8c4 !important; }
.rk-cartes-nav svg { width: 21px; height: 21px; }
.rk-cartes-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 10px; }
.rk-cartes .rk-cartes-dots button { width: 11px; height: 11px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #f1c9c2 !important; cursor: pointer; transition: transform .2s; }
.rk-cartes .rk-cartes-dots button.on { background: #8d2b23 !important; transform: scale(1.2); }

@media (max-width: 991px) {
  .rk-cartes { padding: 16px 12px 50px; }
  .rk-cartes-slide { grid-template-columns: 1fr; }
  .rk-c-grand { min-height: 330px; }
  .rk-cartes .rk-cartes-nav { top: auto; bottom: 8px; margin: 0; width: 36px; height: 36px; }
  .rk-cartes .rk-cartes-prev { right: 18px; } .rk-cartes .rk-cartes-next { left: 18px; }
  .rk-cartes-dots { bottom: 20px; }
}
@media (max-width: 600px) {
  .rk-cartes { padding: 8px 4px 50px; border-radius: 0; }
  .rk-c-grand { min-height: 270px; }
  .rk-c-grand .rk-c-t { font-size: 23px; }
  .rk-c-grand .rk-c-txt { padding: 80px 18px 24px; }
  .rk-cartes-grille { gap: 10px; }
  .rk-c-petit { min-height: 175px; }
  .rk-c-petit .rk-c-t { font-size: 13.5px; }
  .rk-c-petit .rk-c-txt { padding: 12px 10px; }
  .rk-c-pill { font-size: 11px; padding: 4px 9px; top: 8px; right: 8px; }
}

/* ===== 89. Accueil : bloc « أخبار المجلة » en pleine largeur (APERÇU, 19/11/2026)
   Depuis que le bloc « آراء » (tie-block_4312) est masqué (CSS 84), « أخبار المجلة » (tie-block_4313) restait seul
   dans sa rangée de demi-blocs et se décalait sous « أنشطة علمية ». Il passe en pleine largeur, présenté comme
   « بحوث ودراسات » : le premier article en grand d'un côté, les autres en liste de l'autre. ===== */
body.rk-apercu #tie-block_4313.half-box{width:100%;float:none;clear:both;padding-left:0;padding-right:0}
body.rk-apercu #tie-block_4313 .posts-items{font-size:0}
body.rk-apercu #tie-block_4313 .posts-items > li{width:50%;padding:0 15px;box-sizing:border-box}
body.rk-apercu #tie-block_4313 .posts-items > li:first-child{float:right}
body.rk-apercu #tie-block_4313 .posts-items > li:nth-child(n+2){float:none;display:inline-block;vertical-align:top}
body.rk-apercu #tie-block_4313 .posts-items > li:nth-child(n+2) .post-thumb img{max-width:110px}
body.rk-apercu #tie-block_4313 .posts-items .post-excerpt{font-size:13px}
@media (max-width:767px){body.rk-apercu #tie-block_4313 .posts-items > li{width:100%;float:none;display:block}}
