/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 05 2026 | 14:46:13 */
/* Ribat 6 — دفاتر رباط الكتب
   (31/10 : textes courants — éditorial, extraits, introductions — en Markazi Text, comme les articles du site ;
   les titres et couvertures gardent leurs polices propres.)
   Sections 16, 17, 18, 19, 20, 21, 22 de l'ancien CSS additionnel (découpage du 30/10/2026).
   Ordre de chargement : priorité 6. */

/* ===== 16. دفاتر رباط الكتب — numéros trimestriels =====
   Codes courts [daftar] (page d'un numéro) et [dafatir] (archives),
   extrait Code Snippets « دفاتر رباط الكتب ». La couleur de saison
   arrive par la variable --daftar-accent. */
.daftar { display: flex; flex-direction: column; gap: 40px; }
.daftar a, .dafatir a { text-decoration: none !important; }

/* Couverture : papier crème, arche décorative à gauche, illustration à fond perdu */
.daftar-couv {
    --daftar-marge: clamp(20px, 6vw, 56px);
    --daftar-papier: #f6f1e6;
    position: relative; overflow: hidden;
    width: 100%; max-width: 794px; margin: 0 auto; box-sizing: border-box;
    padding: 40px var(--daftar-marge) 32px;
    color: #0f3a73; font-family: 'Noto Kufi Arabic', sans-serif;
    background: var(--daftar-papier);
    border: 1px solid #dbe4f0;
    display: flex; flex-direction: column; gap: 22px;
}
.daftar-couv > * { position: relative; z-index: 2; }
.daftar-couv > .daftar-image { z-index: 0; }
/* Arche décorative à gauche : au-dessus de l'illustration, sous les textes */
.daftar-couv::before {
    content: ''; position: absolute; z-index: 1; pointer-events: none;
    left: -110px; top: 37%; width: 270px; height: 540px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 600'%3E%3Cdefs%3E%3Cpattern id='p' width='50' height='50' patternUnits='userSpaceOnUse'%3E%3Cg fill='none' stroke='%239fb0b8' stroke-opacity='.55' stroke-width='1'%3E%3Crect x='13' y='13' width='24' height='24'/%3E%3Crect x='13' y='13' width='24' height='24' transform='rotate%2845 25 25%29'/%3E%3Cpath d='M0 25H8M42 25H50M25 0V8M25 42V50'/%3E%3C/g%3E%3C/pattern%3E%3CclipPath id='c'%3E%3Cpath d='M0 600V230A150 150 0 0 1 300 230V600Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Crect width='300' height='600' fill='url%28%23p%29' clip-path='url%28%23c%29'/%3E%3Cpath d='M0 600V230A150 150 0 0 1 300 230V600' fill='none' stroke='%23eec53a' stroke-width='1.6'/%3E%3Cpath d='M120 600V360A85 85 0 0 1 290 360V600' fill='none' stroke='%23eec53a' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.daftar-couv-haut, .daftar-couv-bas {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
    font-size: 13px; font-weight: 600; color: #0f3a73;
}
.daftar-couv-haut { border-bottom: 1px solid #eec53a; padding-bottom: 14px; }
.daftar-couv-haut span:last-child { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: .14em; direction: ltr; }
.daftar-couv-bas { font-size: 12px; font-weight: 500; border-top: 1px solid #eec53a; padding-top: 16px; }
.daftar-partenaire { display: flex; align-items: center; gap: 10px; }
.daftar-logo { height: 44px; width: auto; }
.daftar-titre, .dafatir-couv { display: flex; flex-direction: column; align-items: center; text-align: center; }
.daftar-surtitre { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 600; color: #b08a3e; font-size: clamp(22px, 4vw, 34px); line-height: 1.3; }
.daftar-nom { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 700; color: #0f3a73; font-size: clamp(56px, 12.5vw, 112px); line-height: 1.15; }
.daftar-bandeau {
    display: block; text-align: center;
    background: color-mix(in srgb, var(--daftar-accent) 20%, var(--daftar-papier));
    color: #0f3a73; font-size: 17px; font-weight: 700; padding: 12px;
}
.daftar-une { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.daftar-une-rub {
    font-size: clamp(15px, 2.4vw, 19px); font-weight: 700; color: #b08a3e;
    border-bottom: 1px solid #eec53a; padding-bottom: 4px;
}
.daftar-une-titre { font-family: 'Noto Kufi Arabic', sans-serif; font-size: clamp(24px, 4.4vw, 34px); font-weight: 700; line-height: 1.45; color: #0f3a73; }
.daftar-une::after { content: ''; align-self: center; width: 100px; height: 1px; background: #eec53a; margin-top: 4px; }
.daftar-une:hover .daftar-une-titre { color: #9a7230; }
.daftar-image { position: relative; margin: 0 calc(-1 * var(--daftar-marge)); }
/* Ciel adouci : voile crème sur le haut de l'illustration, comme sur la maquette */
.daftar-image::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, var(--daftar-papier) 0%, color-mix(in srgb, var(--daftar-papier) 80%, transparent) 22%, color-mix(in srgb, var(--daftar-papier) 35%, transparent) 42%, transparent 58%);
}
.daftar-image img {
    display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover;
    filter: saturate(.85);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.daftar-lignes { padding-top: 4px; }
.daftar-lignes-titre { display: none; }
.daftar-lignes-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 0; }
.daftar-ligne { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 4px 18px; }
.daftar-ligne:not(:last-child) { border-left: 1px solid #eec53a; }
.daftar-ligne::after { content: ''; width: 40px; height: 1px; background: #eec53a; }
.daftar-ligne small { font-family: 'Noto Kufi Arabic', sans-serif; font-size: 13px; font-weight: 600; color: #b08a3e; }
.daftar-ligne span { font-family: 'Noto Naskh Arabic', serif; font-size: 21px; font-weight: 700; line-height: 1.5; color: #0f3a73; }
.daftar-ligne:hover span { color: #9a7230; }
@media (max-width: 600px) {
    .daftar-ligne { border-left: 0 !important; }
}

/* Sommaire */
.daftar-sommaire {
    width: 100%; max-width: 794px; margin: 0 auto; box-sizing: border-box;
    padding: 40px clamp(20px, 6vw, 56px);
    background: #fdfaf4; border: 1px solid #dbe4f0;
    color: #0f3a73; font-family: 'Alexandria', sans-serif;
}
.daftar-som-titre {
    display: flex; justify-content: space-between; align-items: flex-end;
    font-family: 'Amiri', serif !important; font-size: clamp(40px, 7vw, 60px) !important;
    font-weight: 700 !important; line-height: 1 !important; color: #0f3a73 !important;
    margin: 0 0 24px !important; padding-bottom: 12px; border-bottom: 2px solid #eec53a;
}
.daftar-som-titre span { color: var(--daftar-accent); font-size: 1.4em; line-height: .8; }
.daftar-edito {
    background: #fdf3cf; border-right: 4px solid #eec53a; padding: 16px 20px; margin-bottom: 24px;
    font-family: 'Markazi Text', serif; font-size: 18px; line-height: 1.75 ; color: #22262b;
}
.daftar-edito-label { display: block; font-family: 'Alexandria', sans-serif; font-size: 12px; font-weight: 700; color: #9a7230; margin-bottom: 6px; }
.daftar-edito p:last-child { margin-bottom: 0; }
.daftar-encours { font-size: 13px; color: #9a7230; margin: 0 0 20px; }
.daftar-rubrique { margin-bottom: 22px; }
.daftar-rubrique h3 {
    display: inline-block; font-family: 'Alexandria', sans-serif !important;
    font-size: 12px !important; font-weight: 700 !important; line-height: 1.6 !important;
    color: #ffffff !important; background: var(--daftar-accent);
    padding: 3px 10px; border-radius: 2px; margin: 0 0 6px !important;
}
.daftar-entree { display: flex; gap: 16px; align-items: baseline; border-bottom: 1px dotted #c9b48a; padding: 8px 0; }
.daftar-num { font-size: 20px; font-weight: 700; color: var(--daftar-accent); min-width: 32px; }
.daftar-info { display: flex; flex-direction: column; gap: 2px; }
.daftar-titre-art { font-family: 'Amiri', serif; font-size: 21px; font-weight: 700; line-height: 1.4; color: #0f3a73; }
.daftar-entree:hover .daftar-titre-art { color: #9a7230; }
.daftar-meta { font-size: 12px; color: #4a5a6b; }

/* Archives : grille des couvertures */
.dafatir { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.dafatir-carte { display: flex; flex-direction: column; gap: 10px; }
.dafatir-couv {
    aspect-ratio: 794 / 1123; box-sizing: border-box; gap: 8px;
    background: #f6f1e6;
    border: 1px solid #eec53a; padding: 16px 12px;
    transition: transform .2s;
}
.dafatir-carte:hover .dafatir-couv { transform: translateY(-4px); }
.dafatir-couv .daftar-surtitre { font-size: 14px; }
.dafatir-couv .daftar-nom { font-size: 32px; }
.dafatir-couv .daftar-bandeau { align-self: stretch; font-size: 11px; padding: 4px; }
.dafatir-image {
    flex-grow: 1; align-self: stretch; overflow: hidden;
    border: 1px solid #eec53a; background: rgba(255, 255, 255, .55); color: #9a7230; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
}
.dafatir-image img { width: 100%; height: 100%; object-fit: cover; }
.dafatir-legende { display: flex; flex-direction: column; gap: 2px; font-family: 'Alexandria', sans-serif; font-size: 12px; color: #4a5a6b; }
.dafatir-legende strong { font-size: 15px; color: #0f3a73; }

/* Titres en français ou en anglais : sens d'écriture propre à chaque titre */
.daftar-une-titre,
.daftar-ligne span,
.daftar-titre-art {
    unicode-bidi: plaintext;
}

/* Pages des numéros (enfants de « الدفاتر الفصلية », page 7107) :
   l'image mise en avant ne s'affiche que sur la couverture */
.parent-pageid-7107 .featured-area { display: none !important; }

/* ===== 17. دفاتر رباط الكتب — une ambiance par saison =====
   Classe ajoutée par l'extrait sur .daftar et sur les vignettes des archives :
   daftar-style-hiver (style de base, section 16), -printemps, -ete, -automne.
   Le champ daftar_style d'une page permet de forcer une autre ambiance. */

/* --- Printemps : jardin andalou (vert pâle, frises de zellige, image en arche) --- */
.daftar-style-printemps .daftar-couv {
    --daftar-papier: #f2f3e8;
    color: #2f3a1c;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26'%3E%3Cg fill='none' stroke='%235f7232' stroke-opacity='.55' stroke-width='1'%3E%3Crect x='13' y='6' width='14' height='14'/%3E%3Crect x='13' y='6' width='14' height='14' transform='rotate%2845 20 13%29'/%3E%3Cpath d='M0 13H8M32 13H40'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top 14px / 40px 26px,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26'%3E%3Cg fill='none' stroke='%235f7232' stroke-opacity='.55' stroke-width='1'%3E%3Crect x='13' y='6' width='14' height='14'/%3E%3Crect x='13' y='6' width='14' height='14' transform='rotate%2845 20 13%29'/%3E%3Cpath d='M0 13H8M32 13H40'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom 14px / 40px 26px,
        var(--daftar-papier);
    padding-top: 56px; padding-bottom: 56px;
}
.daftar-style-printemps .daftar-couv::before { display: none; }
.daftar-style-printemps .daftar-couv-haut,
.daftar-style-printemps .daftar-couv-bas { color: #2f3a1c; }
.daftar-style-printemps .daftar-surtitre { font-family: 'Amiri', serif; color: #5f7232; }
.daftar-style-printemps .daftar-nom { font-family: 'Amiri', serif; color: #2f3a1c; line-height: 1; }
.daftar-style-printemps .daftar-bandeau { background: var(--daftar-accent); color: #ffffff; border-radius: 30px; }
.daftar-style-printemps .daftar-une { align-items: center; text-align: center; }
.daftar-style-printemps .daftar-une-rub { color: #5f7232; border-bottom-color: #5f7232; }
.daftar-style-printemps .daftar-une-titre { font-family: 'Amiri', serif; color: #2f3a1c; font-size: clamp(28px, 5vw, 40px); }
.daftar-style-printemps .daftar-image { margin: 0 auto; width: 82%; }
.daftar-style-printemps .daftar-image::after { display: none; }
.daftar-style-printemps .daftar-image img {
    aspect-ratio: 4 / 3; max-height: none;
    border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px;
    border: 2px solid #eec53a; box-sizing: border-box;
    filter: none; -webkit-mask-image: none; mask-image: none;
}
.daftar-style-printemps .daftar-ligne small { color: #5f7232; }
.daftar-style-printemps .daftar-ligne span { font-family: 'Amiri', serif; color: #2f3a1c; }

/* --- Été : sable et soleil (fond chaud, grand soleil géométrique, titres modernes) --- */
.daftar-style-ete .daftar-couv {
    --daftar-papier: #f5e7cf;
    color: #4a2a12;
    background: linear-gradient(170deg, #f8eddb 0%, #f1dcbb 100%);
}
.daftar-style-ete .daftar-couv::before {
    left: auto; right: -120px; top: -120px; width: 380px; height: 380px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23a85a24' stroke-opacity='.3' stroke-width='1.4'%3E%3Ccircle cx='100' cy='100' r='34'/%3E%3Ccircle cx='100' cy='100' r='52'/%3E%3Crect x='48' y='48' width='104' height='104'/%3E%3Crect x='48' y='48' width='104' height='104' transform='rotate%2845 100 100%29'/%3E%3Cpath d='M100 0V30M100 170V200M0 100H30M170 100H200M29 29L50 50M150 150L171 171M171 29L150 50M50 150L29 171'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.daftar-style-ete .daftar-couv-haut,
.daftar-style-ete .daftar-couv-bas { color: #4a2a12; border-color: #a85a24; }
.daftar-style-ete .daftar-surtitre { font-family: 'Alexandria', sans-serif; font-weight: 500; color: #8a4a1c; }
.daftar-style-ete .daftar-nom { font-family: 'Alexandria', sans-serif; font-weight: 800; color: #4a2a12; letter-spacing: -.01em; }
.daftar-style-ete .daftar-bandeau { background: var(--daftar-accent); color: #ffffff; }
.daftar-style-ete .daftar-une-rub { color: #8a4a1c; border-bottom-color: #a85a24; }
.daftar-style-ete .daftar-une-titre { font-family: 'Alexandria', sans-serif; color: #4a2a12; }
.daftar-style-ete .daftar-une::after,
.daftar-style-ete .daftar-ligne::after { background: #a85a24; }
.daftar-style-ete .daftar-image::after { display: none; }
.daftar-style-ete .daftar-image img {
    filter: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%);
    border-top: 4px solid var(--daftar-accent);
}
.daftar-style-ete .daftar-ligne:not(:last-child) { border-left-color: #a85a24; }
.daftar-style-ete .daftar-ligne small { color: #8a4a1c; }
.daftar-style-ete .daftar-ligne span { font-family: 'Alexandria', sans-serif; font-weight: 600; font-size: 18px; color: #4a2a12; }
/* --- Automne : nuit et or (fond bleu nuit, cadre or, titres naskh dorés) --- */

/* --- Vignettes de la page des archives : même ambiance que la couverture --- */
.dafatir-carte.daftar-style-printemps .dafatir-couv { background: #f2f3e8; }
.dafatir-carte.daftar-style-printemps .daftar-nom { font-family: 'Amiri', serif; color: #2f3a1c; }
.dafatir-carte.daftar-style-ete .dafatir-couv { background: linear-gradient(170deg, #f8eddb 0%, #f1dcbb 100%); }
.dafatir-carte.daftar-style-ete .daftar-nom { font-family: 'Alexandria', sans-serif; font-weight: 800; color: #4a2a12; font-size: 28px; }
.dafatir-carte .daftar-bandeau { color: #ffffff; }
.dafatir-carte.daftar-style-hiver .daftar-bandeau { background: color-mix(in srgb, var(--daftar-accent) 20%, #f6f1e6); color: #0f3a73; }

/* --- Suite de la page (sommaire, éditorial, fond de la page) : même ambiance --- */

/* Fond de toute la carte de la page autour de la couverture et du sommaire */
.post-content:has(div.daftar-style-hiver)     { background-color: #f3ede0 !important; }
.post-content:has(div.daftar-style-printemps) { background-color: #e9ecdc !important; }
.post-content:has(div.daftar-style-ete)       { background-color: #f1e2c8 !important; }

/* Printemps */
.daftar-style-printemps .daftar-sommaire { background: #f5f6ee; border-color: #cdd5b4; color: #2f3a1c; }
.daftar-style-printemps .daftar-som-titre { color: #2f3a1c !important; border-bottom-color: #5f7232; }
.daftar-style-printemps .daftar-edito { background: #e6ebd3; border-right-color: #5f7232; }
.daftar-style-printemps .daftar-edito-label { color: #5f7232; }
.daftar-style-printemps .daftar-entree { border-bottom-color: #b9c39a; }
.daftar-style-printemps .daftar-titre-art { color: #2f3a1c; }
.daftar-style-printemps .daftar-meta { color: #56603f; }
.daftar-style-printemps .daftar-rubrique h3 { border-radius: 30px; padding: 3px 14px; }

/* Été */
.daftar-style-ete .daftar-sommaire { background: #fbf2e2; border-color: #e6cfa8; color: #4a2a12; }
.daftar-style-ete .daftar-som-titre { font-family: 'Alexandria', sans-serif !important; font-weight: 800 !important; color: #4a2a12 !important; border-bottom-color: #a85a24; }
.daftar-style-ete .daftar-edito { background: #f4e2c3; border-right-color: #a85a24; }
.daftar-style-ete .daftar-edito-label { color: #8a4a1c; }
.daftar-style-ete .daftar-entree { border-bottom-color: #d9b98c; }
.daftar-style-ete .daftar-titre-art { font-family: 'Alexandria', sans-serif; font-weight: 600; font-size: 18px; color: #4a2a12; }
.daftar-style-ete .daftar-meta { color: #6e4a2c; }
.daftar-style-ete .daftar-rubrique h3 { border-radius: 0; }
/* Automne */

/* ===== 18. دفاتر رباط الكتب — une page de magazine par article =====
   Chaque article du trimestre a sa « page » : titre courant, rubrique, titre,
   auteur, vignette, référence du livre, début du texte, folio. */
.daftar { scroll-behavior: smooth; }
.daftar-folio-som { margin-right: auto; align-self: center; font-size: 12px; font-weight: 600; color: var(--daftar-accent); white-space: nowrap; }

.daftar-page {
    width: 100%; max-width: 794px; margin: 0 auto; box-sizing: border-box;
    padding: 36px clamp(20px, 6vw, 56px) 28px;
    background: #fdfaf4; border: 1px solid #dbe4f0;
    box-shadow: 0 2px 10px rgba(15, 58, 115, .07);
    color: #0f3a73; font-family: 'Alexandria', sans-serif;
    display: flex; flex-direction: column; gap: 16px;
    scroll-margin-top: 90px;
}
.daftar-page a { text-decoration: none !important; }
.daftar-page-haut {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
    font-size: 11px; font-weight: 600; color: #4a5a6b;
    border-bottom: 1px solid #eec53a; padding-bottom: 10px;
}
.daftar-page-rub { align-self: flex-start; font-size: 12px; font-weight: 700; color: #ffffff; background: var(--daftar-accent); padding: 3px 10px; border-radius: 2px; margin-top: 8px; }
.daftar-page-titre { margin: 0 !important; font-family: 'Amiri', serif !important; font-size: clamp(22px, 3.6vw, 30px) !important; font-weight: 700 !important; line-height: 1.35 !important; unicode-bidi: plaintext; }
.daftar-page-titre a { color: #0f3a73 !important; }
.daftar-page-titre a:hover { color: #9a7230 !important; }
.daftar-page-auteur { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #4a5a6b; }
.daftar-page-auteur strong { color: #0f3a73; }
.daftar-page-auteur span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #eec53a; margin-left: 10px; vertical-align: middle; }
.daftar-page-image { display: block; border: 1px solid #eec53a; padding: 8px; background: #ffffff; }
.daftar-page-image img { display: block; width: 100%; height: auto; max-height: 400px; object-fit: cover; }
.daftar-page-ref {
    margin: 0 !important; font-family: 'Noto Kufi Arabic', sans-serif; font-size: 13px !important; line-height: 1.8 !important;
    color: #0f3a73; background: #fdf3cf; border-right: 4px solid #eec53a; padding: 12px 16px !important;
    unicode-bidi: plaintext; text-align: start !important;
}
.daftar-page-texte {
    margin: 0 !important; font-family: 'Markazi Text', serif; font-size: 20px!important; line-height: 1.8 !important;
    color: #22262b; text-align: justify; unicode-bidi: plaintext;
}
@media (min-width: 760px) {
    .daftar-page-texte { column-count: 2; column-gap: 32px; column-rule: 1px solid #dbe4f0; }
}
.daftar-page-lire {
    align-self: flex-start; font-size: 14px; font-weight: 700; color: #ffffff !important;
    background: var(--daftar-accent); padding: 8px 18px; border-radius: 3px; transition: opacity .2s;
}
.daftar-page-lire:hover { opacity: .85; }
.daftar-page-bas {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    border-top: 1px solid #dbe4f0; padding-top: 12px; margin-top: 6px; font-size: 12px;
}
.daftar-page-bas a { color: #9a7230 !important; font-weight: 600; }
.daftar-page-folio { font-size: 13px; font-weight: 700; color: var(--daftar-accent); display: flex; align-items: center; gap: 10px; }
.daftar-page-folio::before, .daftar-page-folio::after { content: ''; width: 28px; height: 1px; background: #eec53a; }

/* Ambiances */
.daftar-style-printemps .daftar-page { background: #f5f6ee; border-color: #cdd5b4; }
.daftar-style-printemps .daftar-page-haut { border-bottom-color: #5f7232; color: #56603f; }
.daftar-style-printemps .daftar-page-rub { border-radius: 30px; padding: 3px 14px; }
.daftar-style-printemps .daftar-page-titre a { color: #2f3a1c !important; }
.daftar-style-printemps .daftar-page-image { border-radius: 50% 50% 6px 6px / 22% 22% 6px 6px; overflow: hidden; padding: 0; border-width: 2px; }
.daftar-style-printemps .daftar-page-ref { background: #e6ebd3; border-right-color: #5f7232; color: #2f3a1c; }
.daftar-style-printemps .daftar-page-lire { border-radius: 30px; }

.daftar-style-ete .daftar-page { background: #fbf2e2; border-color: #e6cfa8; }
.daftar-style-ete .daftar-page-haut { border-bottom-color: #a85a24; color: #6e4a2c; }
.daftar-style-ete .daftar-page-titre { font-family: 'Alexandria', sans-serif !important; font-weight: 700 !important; font-size: clamp(21px, 3.4vw, 26px) !important; }
.daftar-style-ete .daftar-page-titre a { color: #4a2a12 !important; }
.daftar-style-ete .daftar-page-image { border: 0; border-top: 4px solid var(--daftar-accent); padding: 0; }
.daftar-style-ete .daftar-page-ref { background: #f4e2c3; border-right-color: #a85a24; color: #4a2a12; }
.daftar-style-ete .daftar-page-texte { color: #3a2412; }

/* Carte de la page resserrée autour des pages du numéro (794 px + marges) */
.post-content:has(.daftar) {
    max-width: 860px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Grand cadre du site (#tie-wrapper) : blanc (#ffffff), distinct du fond du thème et des teintes de saison,
   sur les pages des numéros et sur la page des archives uniquement */
body:has(.daftar) #tie-wrapper,
body:has(.dafatir) #tie-wrapper {
    background-color: #ffffff !important;
}

/* Grand titre « دفاتر رباط الكتب » (lien vers les archives), placé par l'extrait au-dessus de la carte :
   bandeau ivoire à motif géométrique or discret, titre bleu nuit, double cadre or    Réduit le 30/10 : 38 px au plus, bandeau de 620 px.
   */
#tie-wrapper a.dafatir-bandeau-titre {
    display: block; text-align: center; text-decoration: none !important;
    max-width: 620px; margin: 0 auto 20px; box-sizing: border-box;
    padding: 16px 20px 20px;
    font-family: 'Amiri', serif; font-weight: 700;
    font-size: clamp(28px, 4vw, 38px); line-height: 1.2; color: #0f3a73 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23eec53a' stroke-opacity='.3' stroke-width='1'%3E%3Crect x='18' y='18' width='24' height='24'/%3E%3Crect x='18' y='18' width='24' height='24' transform='rotate%2845 30 30%29'/%3E%3Cpath d='M0 30H12M48 30H60M30 0V12M30 48V60'/%3E%3C/g%3E%3C/svg%3E") repeat center / 60px, #fbf8f1;
    border: 1px solid #eec53a;
    outline: 1px solid rgba(238, 197, 58, .55); outline-offset: -7px;
    box-shadow: 0 2px 10px rgba(15, 58, 115, .06);
}

/* ===== 19. Automne : « mauve d'automne »
   Fond lilas pâle, accents prune, double cadre or. La couleur de saison
   passe du bordeaux au prune (#6b2d5c) sans toucher à l'extrait. */
.daftar-style-automne, .dafatir-carte.daftar-style-automne { --daftar-accent: #6b2d5c !important; }
.post-content:has(div.daftar-style-automne) { background-color: #ece3ee !important; }

.daftar-style-automne .daftar-couv {
    --daftar-papier: #faf6fa;
    color: #3b1f3a;
    border-color: #eec53a;
    background: linear-gradient(170deg, #fdfbfd 0%, #f6f0f7 100%);
}
.daftar-style-automne .daftar-couv::before {
    left: 12px; right: 12px; top: 12px; bottom: 12px; width: auto; height: auto;
    background: none; border: 1px solid rgba(238, 197, 58, .8);
    box-shadow: inset 0 0 0 4px #faf6fa, inset 0 0 0 5px rgba(107, 45, 92, .35);
}
.daftar-style-automne .daftar-couv-haut,
.daftar-style-automne .daftar-couv-bas { color: #56344f; }
.daftar-style-automne .daftar-surtitre { font-family: 'Amiri', serif; color: #9a7230; }
.daftar-style-automne .daftar-nom { font-family: 'Amiri', serif; color: #6b2d5c; line-height: 1; }
.daftar-style-automne .daftar-bandeau { background: var(--daftar-accent); color: #ffffff; border: 1px solid #eec53a; }
.daftar-style-automne .daftar-une-rub { color: #9a7230; border-bottom-color: #eec53a; }
.daftar-style-automne .daftar-une-titre { font-family: 'Amiri', serif; color: #3b1f3a; font-size: clamp(28px, 5vw, 40px); }
.daftar-style-automne .daftar-une:hover .daftar-une-titre { color: #6b2d5c; }
.daftar-style-automne .daftar-image { margin: 0; border: 1px solid #eec53a; padding: 8px; background: #ffffff; }
.daftar-style-automne .daftar-image::after { display: none; }
.daftar-style-automne .daftar-image img { filter: none; -webkit-mask-image: none; mask-image: none; }
.daftar-style-automne .daftar-ligne small { color: #6b2d5c; }
.daftar-style-automne .daftar-ligne span { font-family: 'Amiri', serif; color: #3b1f3a; }
.daftar-style-automne .daftar-ligne:hover span { color: #6b2d5c; }

/* Sommaire */
.daftar-style-automne .daftar-sommaire { background: #fefcfe; border-color: #e3d5e6; color: #3b1f3a; }
.daftar-style-automne .daftar-som-titre { color: #6b2d5c !important; border-bottom-color: #eec53a; }
.daftar-style-automne .daftar-edito { background: #f6eff7; border-right-color: #6b2d5c; color: #2c1a2b; }
.daftar-style-automne .daftar-edito-label { color: #6b2d5c; }
.daftar-style-automne .daftar-entree { border-bottom-color: #d6c2da; }
.daftar-style-automne .daftar-titre-art { color: #3b1f3a; }
.daftar-style-automne .daftar-entree:hover .daftar-titre-art { color: #6b2d5c; }
.daftar-style-automne .daftar-meta { color: #6a5168; }

/* Pages d'articles */
.daftar-style-automne .daftar-page { background: #fefcfe; border-color: #e3d5e6; color: #3b1f3a; }
.daftar-style-automne .daftar-page-haut { border-bottom-color: #eec53a; color: #6a5168; }
.daftar-style-automne .daftar-page-titre a { color: #3b1f3a !important; }
.daftar-style-automne .daftar-page-titre a:hover { color: #6b2d5c !important; }
.daftar-style-automne .daftar-page-auteur strong { color: #6b2d5c; }
.daftar-style-automne .daftar-page-ref { background: #f6eff7; border-right-color: #6b2d5c; color: #3b1f3a; }

/* Vignette dans les archives */
.dafatir-carte.daftar-style-automne .dafatir-couv { background: linear-gradient(170deg, #fdfbfd 0%, #f6f0f7 100%); }
.dafatir-carte.daftar-style-automne .daftar-nom { font-family: 'Amiri', serif; color: #6b2d5c; }

/* Bouton « اقرأ المقال كاملًا » : version légère (contour), toutes saisons.
   Sélecteur renforcé : la couleur des liens de Jannah l'emportait sur le texte blanc. */
#the-post .daftar .daftar-page a.daftar-page-lire {
    background: transparent;
    color: var(--daftar-accent) !important;
    border: 1.5px solid var(--daftar-accent);
    border-radius: 3px;
    padding: 7px 18px;
    opacity: 1;
    transition: background .2s;
}
#the-post .daftar .daftar-page a.daftar-page-lire:hover {
    background: color-mix(in srgb, var(--daftar-accent) 10%, transparent);
}
#the-post .daftar-style-printemps .daftar-page a.daftar-page-lire { border-radius: 30px; }

/* ===== 20. Corrections après relecture des quatre numéros ===== */

/* Vignettes des pages d'articles : image entière (affiches, couvertures de livres) */
.daftar-page-image img { object-fit: contain; max-height: 440px; background: rgba(15, 58, 115, .04); }
.daftar-style-printemps .daftar-page-image img { object-fit: cover; object-position: center 25%; }

/* Textes en français : colonnes dans le sens de lecture, texte à gauche */
.daftar-page-texte[dir="ltr"], .daftar-page-ref[dir="ltr"] { text-align: justify; direction: ltr; }
.daftar-page-ref[dir="ltr"] { border-right: 0; border-left: 4px solid #eec53a; }

/* Comptes rendus sans texte (vidéos, photos) */
.daftar-page-media { margin: 0 !important; font-size: 14px; font-style: italic; color: #6b737c; }

/* Archives sur téléphone : deux couvertures par ligne */
@media (max-width: 600px) {
    .dafatir { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .dafatir-couv { padding: 10px 8px; }
    .dafatir-couv .daftar-nom { font-size: 22px; }
}

/* ===== 21. Menu « الدفاتر » : méga-menu par années (ordinateur) =====
   Années à droite ; au survol d'une année, ses numéros avec leur couverture.
   Sur téléphone, le sous-menu simple (une ligne par année) prend le relais. */
.dafatir-mega { display: none; }
@media (min-width: 992px) {
    #main-nav .main-menu > ul > li.menu-dafatir { position: static; }
    #main-nav li.menu-dafatir > .sub-menu,
    #main-nav li.menu-dafatir > .menu-sub-content { display: none !important; }
    #main-nav li.menu-dafatir:hover > .dafatir-mega { display: block; }
}
.dafatir-mega {
    position: absolute; top: 100%; right: 0; left: 0; z-index: 200;
    background: #1a4a8a; border-top: 2px solid #eec53a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
    text-align: right;
}
#main-nav .dafatir-annees {
    list-style: none; margin: 0; padding: 14px 0; width: 190px; min-height: 290px;
    background: #0f3a73; box-sizing: border-box;
}
#main-nav .dafatir-annee-item > a.dafatir-annee-lien {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; line-height: 1.4;
    font-family: 'Alexandria', sans-serif; font-size: 16px; font-weight: 600;
    color: #f1e9db !important; background: transparent !important;
}
#main-nav .dafatir-annee-lien small { font-size: 11px; font-weight: 400; color: #d9cfbf; }
#main-nav .dafatir-annee-item:hover > a.dafatir-annee-lien,
#main-nav .dafatir-annees:not(:hover) .dafatir-annee-item:first-child > a.dafatir-annee-lien {
    background: #1a4a8a !important; color: #eec53a !important;
}
.dafatir-mega-numeros {
    display: none; position: absolute; top: 0; bottom: 0; right: 190px; left: 0;
    padding: 22px 26px; box-sizing: border-box;
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-content: start;
}
.dafatir-annee-item:hover .dafatir-mega-numeros,
.dafatir-annees:not(:hover) .dafatir-annee-item:first-child .dafatir-mega-numeros { display: grid; }
#main-nav a.dafatir-mega-num {
    display: flex; flex-direction: column; gap: 4px; padding: 0 !important;
    color: #f1e9db !important; background: transparent !important; line-height: 1.5;
}
.dafatir-mega-img {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
    border: 1px solid rgba(238, 197, 58, .5); background: #0f3a73;
}
.dafatir-mega-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
#main-nav a.dafatir-mega-num:hover .dafatir-mega-img img { transform: scale(1.05); }
.dafatir-mega-vide {
    display: flex; height: 100%; align-items: center; justify-content: center;
    font-family: 'Amiri', serif; font-size: 16px; color: #eec53a;
}
.dafatir-mega-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: var(--daftar-accent); color: #ffffff;
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 2px;
}
.dafatir-mega-num strong { font-family: 'Alexandria', sans-serif; font-size: 14px; font-weight: 600; color: #ffffff; margin-top: 4px; }
.dafatir-mega-num small { font-size: 11px; color: #d9cfbf; }
#main-nav a.dafatir-mega-num:hover strong { color: #eec53a; }
#main-nav .dafatir-tous > a {
    display: block; margin-top: 8px; padding: 10px 20px;
    border-top: 1px solid rgba(238, 197, 58, .35);
    font-size: 13px; font-weight: 600; color: #eec53a !important; background: transparent !important;
}

/* Page des archives : un titre par année (cible des liens du menu) */
.entry-content h2.dafatir-annee {
    font-family: 'Amiri', serif !important; font-size: 34px !important; font-weight: 700 !important;
    color: #0f3a73 !important; line-height: 1.3 !important;
    border-bottom: 2px solid #eec53a; padding-bottom: 6px; margin: 10px 0 20px !important;
    scroll-margin-top: 100px;
}
.dafatir + .dafatir-annee { margin-top: 40px !important; }

/* Méga-menu « الدفاتر » : Jannah met tous les éléments li du menu en position relative,
   ce qui écrasait la grille des numéros dans la colonne des années */
#main-nav .dafatir-annees,
#main-nav .dafatir-annees > li { position: static !important; }
#main-nav .dafatir-annee-item > a.dafatir-annee-lien { gap: 10px; }

/* ===== 22. Page des archives : vignettes en paysage, quatre numéros par ligne =====
   (page « الدفاتر الفصلية » à régler sans barre latérale dans Jannah News – Settings) */
.dafatir { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) { .dafatir { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

.dafatir-carte .dafatir-couv {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 16 / 9; padding: 0 !important;
    background: #0f3a73 !important; border: 1px solid #eec53a;
}
.dafatir-carte .dafatir-couv .daftar-surtitre,
.dafatir-carte .dafatir-couv .daftar-nom { display: none; }
.dafatir-carte .dafatir-image {
    position: absolute; inset: 0; border: 0 !important; background: transparent !important;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Amiri', serif; font-size: 18px; color: #eec53a;
}
.dafatir-carte .dafatir-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dafatir-carte:hover .dafatir-image img { transform: scale(1.04); }
.dafatir-carte .dafatir-couv .daftar-bandeau {
    position: absolute; bottom: 10px; right: 10px; z-index: 1; align-self: auto;
    background: var(--daftar-accent) !important; color: #ffffff !important;
    font-size: 12px; font-weight: 600; padding: 3px 10px; border: 0; border-radius: 2px;
}
.dafatir-carte:hover .dafatir-couv { transform: none; }
.dafatir-carte .dafatir-legende strong { font-size: 15px; }
#tie-wrapper a.dafatir-bandeau-titre:hover { color: #9a7230 !important; }

/* Menu principal : pas de bordure épaisse sous la rubrique active (Jannah) ;
   le trait or fin de la section 5 suffit, et la pastille « الدفاتر » n'en a pas besoin */
#main-nav .main-menu > ul > li { border-bottom-color: transparent !important; }

/* Menu latéral (widget #nav_menu-2, menu « أبواب المجلة – التذييل ») :
   sans la petite flèche › de Jannah devant chaque rubrique */
#nav_menu-2 .menu > li > a::before,
#nav_menu-2 .menu > li > a::after { display: none !important; }


/* ===== 36. دفاتر : mention « أعداد استعادية » des années d'archives (avant 2026) =====
   Ajoutée par l'extrait n° 9 à côté du titre de l'année sur la page des archives. */
.entry-content h2.dafatir-annee .dafatir-retro {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    font-family: 'Alexandria', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: #9a7230;
    border: 1px solid currentColor;
    border-radius: 14px;
    padding: 2px 12px;
}
