/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 31 2026 | 11:53:50 */
/* Ribat 7 — ملفات المجلة
   (31/10 : textes courants — éditorial, extraits, introductions — en Markazi Text, comme les articles du site ;
   les titres et couvertures gardent leurs polices propres.)
   Sections 24, 25 de l'ancien CSS additionnel (découpage du 30/10/2026).
   Ordre de chargement : priorité 7. */

/* ===== 24. ملفات المجلة — dossiers =====
   Code court [malafat] (extrait Code Snippets « ملفات المجلة — affichage des dossiers »).
   Page de tous les dossiers (.malafat), page d'un dossier (.malaf),
   bandeau « ضمن ملف » en tête des articles (.malaf-bandeau). */
.malafat a, .malaf a, a.malaf-bandeau { text-decoration: none !important; }
.malaf-sans-image { display: block; width: 100%; height: 100%; background: #e9f0fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='%23eec53a' stroke-opacity='.35'%3E%3Crect x='12' y='12' width='16' height='16'/%3E%3Crect x='12' y='12' width='16' height='16' transform='rotate(45 20 20)'/%3E%3C/g%3E%3C/svg%3E"); }

/* --- Tous les dossiers : fiches-classeurs ---
   Chemise cartonnée avec onglet « ملف N », image collée (trombone), étiquette. */
.malafat-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.malafat-carte { position: relative; display: flex; flex-direction: column; padding-top: 24px; transition: transform .2s; }
.malafat-carte:hover { transform: translateY(-4px); }
.malaf-onglet {
    position: absolute; top: 0; right: 18px; z-index: 2;
    height: 26px; padding: 0 14px; line-height: 1;
    display: flex; align-items: center; gap: 6px;
    background: #e6d6b1; border: 1px solid #cdb787; border-bottom: 0; border-radius: 6px 6px 0 0;
    font-family: 'Alexandria', sans-serif; font-size: 12px; font-weight: 600; color: #0f3a73;
}
.malaf-onglet b { font-size: 14px; }
.malaf-chemise {
    position: relative; flex-grow: 1; display: flex; flex-direction: column;
    background: #efe3c6 linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(0, 0, 0, .03));
    border: 1px solid #cdb787; border-radius: 2px 0 4px 4px;
    padding: 18px 16px 14px;
    box-shadow: 0 2px 0 #ddc99c, 0 8px 18px rgba(15, 58, 115, .12);
}
/* Feuille qui dépasse du classeur, à gauche de l'onglet */
.malaf-chemise::before {
    content: ''; position: absolute; top: -8px; left: 14px; right: 110px; height: 10px;
    background: #fbf8f1; border: 1px solid #e3d6b8; border-bottom: 0;
}
.malaf-photo {
    position: relative; display: block; background: #ffffff; padding: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transform: rotate(-1.2deg); transition: transform .2s;
}
.malafat-carte:nth-child(even) .malaf-photo { transform: rotate(1deg); }
.malafat-carte:hover .malaf-photo { transform: rotate(0); }
.malaf-photo img, .malaf-photo .malaf-sans-image { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; }
.malaf-trombone {
    position: absolute; top: -13px; left: 22px; z-index: 2;
    width: 16px; height: 40px; box-sizing: border-box;
    border: 2.2px solid #b08a3e; border-bottom-color: transparent; border-radius: 9px;
}
.malaf-trombone::after {
    content: ''; position: absolute; top: 6px; left: 2.5px; width: 7px; height: 24px;
    border: 2px solid #b08a3e; border-top-color: transparent; border-radius: 6px;
}
.malaf-etiquette {
    flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
    margin-top: 16px; padding: 12px 12px 10px; text-align: center;
    background: #fffdf8; border: 1px solid #d8c69c; outline: 1px solid #d8c69c; outline-offset: -5px;
}
.malafat-titre {
    font-family: 'Amiri', serif; font-size: 21px; font-weight: 700; line-height: 1.45; color: #0f3a73;
    min-height: 2.9em; display: flex; align-items: center; justify-content: center;
}
.malafat-titre-long { font-size: 17px; line-height: 1.5; }
.malafat-carte:hover .malafat-titre { color: #9a7230; }
.malafat-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
    font-family: 'Alexandria', sans-serif; font-size: 11.5px; color: #4a5a6b;
    border-top: 1px dashed #d8c69c; padding-top: 6px;
}
.malafat-meta span + span::before { content: '·'; margin: 0 7px; color: #b08a3e; }
.malafat-coord { font-family: 'Alexandria', sans-serif; font-size: 11.5px; color: #9a7230; }
.malafat-autres, .malaf-partie-titre {
    font-family: 'Amiri', serif !important; font-size: 28px !important; font-weight: 700 !important; color: #0f3a73 !important;
    display: flex; align-items: center; gap: 14px; margin: 44px 0 18px !important;
}
.malafat-autres::after, .malaf-partie-titre::after { content: ''; flex-grow: 1; height: 1px; background: #eec53a; }

/* --- Un dossier --- */
.malaf { display: flex; flex-direction: column; gap: 8px; }
.malaf-retour { align-self: flex-start; font-family: 'Alexandria', sans-serif; font-size: 13px; color: #9a7230 !important; margin-bottom: 8px; }
.malaf-entete { display: grid; grid-template-columns: 1fr 1fr; background: #0f3a73; color: #ffffff; margin-bottom: 18px; }
.malaf-entete-image { min-height: 260px; }
.malaf-entete-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.malaf-entete-texte { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 32px 36px; }
.malaf-entete:not(:has(.malaf-entete-image)) { grid-template-columns: 1fr; }
.malaf-surtitre { align-self: flex-start; font-family: 'Alexandria', sans-serif; font-size: 13px; font-weight: 700; background: #eec53a; color: #0f3a73; padding: 3px 14px; }
.entry-content h2.malaf-titre, .malaf-titre {
    font-family: 'Amiri', serif !important; font-size: clamp(30px, 4.5vw, 44px) !important; font-weight: 700 !important;
    line-height: 1.35 !important; color: #ffffff !important; margin: 4px 0 !important;
}
.malaf-chiffres, .malaf-coord { font-family: 'Alexandria', sans-serif; font-size: 13px; margin: 0 !important; color: #d8e0ea; }
.malaf-coord { color: #e6c97f; font-weight: 600; }
.malaf-chapeau { font-family: 'Markazi Text', serif; font-size: 19px; line-height: 1.7 ; color: #e9f0fa; border-top: 1px solid rgba(238, 197, 58, .5); padding-top: 12px; margin-top: 4px; }
.malaf-chapeau p { margin: 0; }
.malaf-parties-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.malaf-parties-nav a { font-family: 'Alexandria', sans-serif; font-size: 13px; font-weight: 600; color: #0f3a73 !important; border: 1px solid #eec53a; padding: 5px 16px; border-radius: 20px; }
.malaf-parties-nav a:hover { background: #eec53a; }
.malaf-partie { scroll-margin-top: 90px; }
.malaf-partie:first-of-type .malaf-partie-titre { margin-top: 16px !important; }

/* Introduction de la partie */
.malaf-intro {
    position: relative; display: flex; flex-direction: column; gap: 8px;
    background: #fbf8f1; border: 1px solid #dbe4f0; border-right: 4px solid #eec53a;
    padding: 24px 28px; margin: 6px 0 24px;
}
.malaf-intro-label { font-family: 'Alexandria', sans-serif; font-size: 12px; font-weight: 700; color: #9a7230; }
.malaf-intro-titre { font-family: 'Amiri', serif; font-size: 26px; font-weight: 700; line-height: 1.45; color: #0f3a73 !important; unicode-bidi: plaintext; }
.malaf-intro-titre:hover { color: #9a7230 !important; }
.malaf-intro-auteur { font-family: 'Alexandria', sans-serif; font-size: 13px; color: #4a5a6b; }
.malaf-intro-texte { font-family: 'Markazi Text', serif; font-size: 19px; line-height: 1.8 ; color: #22262b; margin: 4px 0 !important; }
.malaf-intro-lire { align-self: flex-end; font-family: 'Alexandria', sans-serif; font-size: 13px; font-weight: 600; color: #0f3a73 !important; border: 1px solid #0f3a73; padding: 6px 18px; }
.malaf-intro-lire:hover { background: #0f3a73; color: #ffffff !important; }

/* Articles */
.malaf-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
.malaf-article { display: flex; flex-direction: column; gap: 8px; }
.malaf-article-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid #eec53a; }
.malaf-article-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .3s; }
.malaf-article:hover .malaf-article-image img { transform: scale(1.04); }
.malaf-article-titre { font-family: 'Amiri', serif; font-size: 19px; font-weight: 700; line-height: 1.5; color: #0f3a73; unicode-bidi: plaintext; }
.malaf-article:hover .malaf-article-titre { color: #9a7230; }
.malaf-article-meta { font-family: 'Alexandria', sans-serif; font-size: 12px; color: #4a5a6b; }

/* Bandeau « ضمن ملف » sur un article */
a.malaf-bandeau {
    display: block; margin: 0 0 24px; padding: 10px 16px;
    background: #fbf8f1; border: 1px solid #dbe4f0; border-right: 4px solid #eec53a;
    font-family: 'Alexandria', sans-serif; font-size: 14px; color: #0f3a73 !important;
}
a.malaf-bandeau:hover { background: #f4ecdb; }
.malaf-bandeau-label { color: #9a7230; font-weight: 700; }
.malaf-bandeau-partie, .malaf-bandeau-nb { color: #4a5a6b; font-size: 13px; }

@media (max-width: 1100px) {
    .malafat-grille { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .malafat-grille, .malaf-articles { grid-template-columns: repeat(2, 1fr); }
    .malaf-entete { grid-template-columns: 1fr; }
    .malaf-entete-image { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .malafat-grille, .malaf-articles { grid-template-columns: 1fr; }
    .malaf-entete-texte, .malaf-intro { padding: 20px; }
}

/* ===== 25. Méga-menu ملفات (snippet « Méga-menu ملفات — الملف الأخير et classeurs ») =====
   Lien « كل الملفات » sous les derniers dossiers, au survol de ملفات. */
#main-nav .mega-malaf-tous {
    display: block; clear: both; width: 100%; box-sizing: border-box;
    padding: 12px 15px 0; text-align: left;
    font-family: 'Alexandria', sans-serif; font-size: 13px; font-weight: 600;
    color: #eec53a !important;
}
#main-nav .mega-malaf-tous:hover { color: #f1e9db !important; }
#main-nav .mega-malaf .mega-malaf-num { color: #eec53a; }
