/*
Theme Name: Islam365
Theme URI: https://www.islam365.fr/
Author: Islam365.fr
Description: Thème sur mesure d'Islam365.fr — léger, rapide, accessible et adapté au mobile. Polices hébergées localement, aucune dépendance externe.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: islam365
*/

/* ------------------------------------------------------------------ Polices (hébergées localement) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("assets/fonts/playfair-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("assets/fonts/playfair-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/amiri-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/amiri-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ Jetons */
:root {
  --emerald-900: #052a20;
  --emerald-800: #073b2e;
  --emerald-700: #0b4d3c;
  --emerald-600: #0f6b5a;
  --emerald-100: #e3f0eb;
  --emerald-50: #f1f7f4;
  --gold-500: #d4a947;
  --gold-400: #e5c46e;
  --gold-200: #f3e3b5;
  --gold-700: #96711c;
  --ink: #17231f;
  --muted: #5b6b65;
  --line: #e2e7e4;
  --paper: #faf8f3;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(5, 42, 32, .05), 0 8px 24px rgba(5, 42, 32, .07);
  --shadow-lg: 0 2px 4px rgba(5, 42, 32, .06), 0 20px 48px rgba(5, 42, 32, .14);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-arabic: "Amiri", "Traditional Arabic", serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(11, 77, 60, .05) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--emerald-600); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--emerald-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; clip: auto; width: auto; height: auto; padding: .7rem 1rem; background: var(--gold-500); color: var(--emerald-900); border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.arabic { font-family: var(--font-arabic); direction: rtl; unicode-bidi: isolate; }

/* ------------------------------------------------------------------ En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(120deg, rgba(5, 42, 32, .97), rgba(11, 77, 60, .96) 60%, rgba(15, 107, 90, .96));
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212, 169, 71, .5);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; margin-right: auto; }
.brand:hover { color: #fff; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-title); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.brand__name b { color: var(--gold-400); font-weight: 700; }
.brand__tag { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); opacity: .85; margin-top: .3rem; }

@media (max-width: 480px) { .brand__tag { display: none; } .brand__name { font-size: 1.3rem; } .site-header .wrap { gap: .6rem; } }
.nav-toggle { display: none; background: none; border: 1px solid rgba(229, 196, 110, .7); color: var(--gold-400); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: .2rem; }
.primary-nav li { position: relative; }
.primary-nav a {
  display: block; padding: .55rem .85rem; color: #eef5f1; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap;
  border-radius: 999px; transition: background .2s, color .2s;
}
.primary-nav > ul > li > a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-category-ancestor > a { background: rgba(255, 255, 255, .1); color: #fff; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.2em) rotate(45deg); opacity: .8; }
.primary-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: .5rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { color: var(--ink); border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--emerald-50); color: var(--emerald-700); }
.header-search { color: #fff; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.header-search:hover { background: rgba(255, 255, 255, .1); color: var(--gold-400); }
.header-search svg { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  .nav-toggle { display: grid; place-items: center; }
  .primary-nav {
    position: fixed; inset: 70px 0 auto 0; max-height: calc(100vh - 70px); overflow-y: auto; background: var(--emerald-900);
    padding: 1rem var(--gutter) 2rem; transform: translateY(-110%); transition: transform .35s var(--ease); z-index: -1;
    border-bottom: 1px solid rgba(212, 169, 71, .4);
  }
  .admin-bar .primary-nav { top: 116px; }
  .primary-nav.is-open { transform: none; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { padding: .8rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 1rem; }
  .primary-nav .sub-menu a { color: #cfe0d9; font-size: .95rem; }
  .primary-nav .sub-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .primary-nav .menu-item-has-children > a::after { display: none; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------------ Bannière d'accueil */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--emerald-900); min-height: clamp(440px, 46vw, 640px); display: flex; align-items: center; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__media img { object-fit: cover; object-position: 72% center; animation: kenburns 30s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 26, 20, .9) 0%, rgba(3, 26, 20, .55) 42%, rgba(3, 26, 20, 0) 72%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, #ffe9a8 50%, transparent 51%), radial-gradient(2px 2px at 44% 14%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 61% 41%, #ffe9a8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 8% 84%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 36% 38%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 20% 50%, #ffe9a8 50%, transparent 51%);
  animation: twinkle 4.5s ease-in-out infinite alternate; }
.hero__inner { padding-block: 4rem; }
.hero__inner > * { max-width: 36rem; opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero__basmala { font-family: var(--font-arabic); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--gold-200); margin: 0 0 .5rem; animation-delay: .1s; }
.hero__title { font-family: var(--font-title); font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.02; margin: 0; color: #fff; animation-delay: .25s;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--gold-200) 50%, #fff 60%, #fff 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__title.is-in { animation: rise .9s var(--ease) .25s forwards, shine 7s linear 1.6s infinite; }
.hero__lead { font-size: clamp(1.02rem, 1.7vw, 1.25rem); color: #e4eee9; margin: 1rem 0 1.6rem; animation-delay: .45s; }
.hero__search { display: flex; gap: .5rem; padding: .4rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; backdrop-filter: blur(8px); animation-delay: .6s; }
.hero__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; padding: .55rem 1rem; outline: none; }
.hero__search input::placeholder { color: #d6e5df; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; animation-delay: .75s; }
.hero__chips a { font-size: .85rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; transition: background .2s, border-color .2s; }
.hero__chips a:hover { background: rgba(255, 255, 255, .14); border-color: var(--gold-400); color: #fff; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (max-width: 767px) {
  .hero { min-height: 82vh; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(3, 26, 20, .94) 0%, rgba(3, 26, 20, .6) 50%, rgba(3, 26, 20, .1) 80%); }
  .hero__media img { object-position: center top; }
  .hero__inner { padding-block: 2.5rem; }
}

/* ------------------------------------------------------------------ Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: var(--font-body); }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--emerald-900); box-shadow: 0 8px 22px rgba(212, 169, 71, .35); }
.btn--gold:hover { color: var(--emerald-900); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 169, 71, .5); }
.btn--ghost { background: transparent; color: var(--emerald-700); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-700); }

/* ------------------------------------------------------------------ Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: linear-gradient(180deg, var(--emerald-50), transparent); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; position: relative; padding-bottom: .5rem; }
.section__head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-500), transparent); }
.section__more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__more::after { content: " →"; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; margin: 0 0 .4rem; }

/* ------------------------------------------------------------------ Cartes */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--emerald-800); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-200);
  background: radial-gradient(circle at 70% 20%, rgba(212, 169, 71, .25), transparent 55%), linear-gradient(135deg, var(--emerald-700), var(--emerald-900)); }
.card__placeholder::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23e5c46e' stroke-width='1'%3E%3Cpath d='M30 4l7.6 18.4L56 30l-18.4 7.6L30 56l-7.6-18.4L4 30l18.4-7.6z'/%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/svg%3E"); background-size: 60px 60px; }
.card__placeholder span { position: relative; font-family: var(--font-title); font-size: 1.15rem; text-align: center; padding: 0 1.2rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .4rem; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--emerald-800); backdrop-filter: blur(4px); }
.badge svg { width: 13px; height: 13px; }
.card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.card__cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--gold-700); text-decoration: none; position: relative; z-index: 2; }
.card__title { font-size: 1.12rem; margin: 0; line-height: 1.35; }
.card__title a { color: var(--emerald-900); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: .4rem; font-size: .8rem; color: var(--muted); }

/* Carte « vedette » */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.4rem; }
.feature .card:first-child .card__media { aspect-ratio: 16 / 10; }
.feature .card:first-child .card__title { font-size: 1.55rem; }
.feature__side { display: grid; gap: 1.4rem; }
.feature__side .card { flex-direction: row; }
.feature__side .card__media { aspect-ratio: auto; width: 38%; flex: none; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feature__side .card { flex-direction: column; } .feature__side .card__media { width: 100%; aspect-ratio: 16 / 9; } }

/* Tuiles de rubriques */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 128px; padding: 1.1rem 1.2rem; border-radius: var(--radius); text-decoration: none; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, var(--emerald-600), var(--emerald-900)); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 60 60'%3E%3Cpath d='M30 4l7.6 18.4L56 30l-18.4 7.6L30 56l-7.6-18.4L4 30l18.4-7.6z' fill='none' stroke='%23e5c46e'/%3E%3C/svg%3E"); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.tile__icon { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; color: var(--gold-400); }
.tile__name { font-family: var(--font-title); font-size: 1.2rem; font-weight: 700; }
.tile__count { font-size: .8rem; color: var(--gold-200); }

/* ------------------------------------------------------------------ Pages de liste */
.page-hero { position: relative; color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); background: linear-gradient(120deg, var(--emerald-900), var(--emerald-700)); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 4l7.6 18.4L56 30l-18.4 7.6L30 56l-7.6-18.4L4 30l18.4-7.6z' fill='none' stroke='%23e5c46e'/%3E%3C/svg%3E"); }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: #d9e7e1; max-width: 46rem; margin: 0; }
.page-hero .eyebrow { color: var(--gold-400); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.chips a { font-size: .85rem; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .2); transition: background .2s, border-color .2s; }
.chips a:hover, .chips a.is-current { background: var(--gold-500); border-color: var(--gold-500); color: var(--emerald-900); }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.page-hero .breadcrumbs { color: #b9d0c7; }
.breadcrumbs a { color: inherit; }
.breadcrumbs span[aria-hidden] { margin: 0 .4rem; opacity: .6; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 .8rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 500; }
.pagination .page-numbers.current { background: var(--emerald-700); color: #fff; }
.pagination a.page-numbers:hover { background: var(--gold-500); color: var(--emerald-900); }
.pagination .dots { background: transparent; box-shadow: none; }

/* ------------------------------------------------------------------ Article */
.article { padding-block: clamp(2rem, 5vw, 3.5rem); }
.article__header { max-width: 780px; margin-inline: auto; text-align: center; }
.article__header .card__cat { font-size: .8rem; }
.article__title { margin: .6rem 0 1rem; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.article__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .9rem; }
.article__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article__meta svg { width: 16px; height: 16px; opacity: .7; }
.article__cover { max-width: 980px; margin: 2rem auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.article__cover img { width: 100%; display: block; }
.prose { max-width: 720px; margin: 2.2rem auto 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose img { border-radius: 12px; height: auto; }
.prose img.alignleft, .prose .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; max-width: 45%; }
.prose img.alignright, .prose .alignright { float: right; margin: .3rem 0 1rem 1.4rem; max-width: 45%; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose blockquote { margin: 1.6em 0; padding: 1.1em 1.4em; border-left: 4px solid var(--gold-500); background: #fff; border-radius: 0 12px 12px 0; box-shadow: var(--shadow); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); margin: 2.4em 0; }
.prose [lang="ar"], .prose [dir="rtl"] { font-family: var(--font-arabic); font-size: 1.35em; line-height: 1.9; }
.prose iframe, .prose .wp-block-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.prose .wp-block-embed__wrapper iframe { aspect-ratio: 16 / 9; }

/* Lecteur audio */
.wp-block-audio, .prose figure.wp-block-audio { margin: 1.2em 0; padding: .9rem 1rem; background: linear-gradient(135deg, var(--emerald-50), #fff); border: 1px solid var(--emerald-100); border-radius: 14px; display: flex; align-items: center; gap: .9rem; }
.wp-block-audio::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--emerald-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E") center / 20px no-repeat; }
.wp-block-audio audio { width: 100%; min-width: 0; height: 44px; }
.i365-telechargement a { display: inline-flex; gap: .4rem; padding: .55rem 1rem; border-radius: 999px; background: var(--emerald-50); border: 1px solid var(--emerald-100); text-decoration: none; font-weight: 500; font-size: .92rem; }
.i365-telechargement a::before { content: "⬇"; }

.article__footer { max-width: 720px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.share { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--muted); }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--emerald-700); border: 0; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--gold-500); color: var(--emerald-900); }
.share svg { width: 18px; height: 18px; }
.tags a { display: inline-block; font-size: .8rem; padding: .2rem .7rem; margin: 0 .3rem .3rem 0; border-radius: 999px; background: var(--emerald-50); text-decoration: none; }
.post-nav { max-width: 980px; margin: 3rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.post-nav a:hover { box-shadow: var(--shadow-lg); }
.post-nav small { display: block; color: var(--gold-700); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .prose img.alignleft, .prose img.alignright, .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1rem 0; } }

/* ------------------------------------------------------------------ Recherche, 404, vide */
.search-form { display: flex; gap: .5rem; max-width: 560px; }
.search-form input[type="search"] { flex: 1; min-width: 0; font: inherit; padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.search-form input[type="search"]:focus { border-color: var(--emerald-600); outline: none; box-shadow: 0 0 0 3px var(--emerald-100); }
.empty { text-align: center; padding: 3rem 1rem; }
.empty .search-form { margin: 1.5rem auto 0; }

/* ------------------------------------------------------------------ Pied de page */
.site-footer { margin-top: clamp(3rem, 8vw, 5rem); color: #cfe0d9; background: linear-gradient(120deg, var(--emerald-900), var(--emerald-800)); border-top: 2px solid rgba(212, 169, 71, .5); }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; padding-block: 3rem 2rem; }
.site-footer h2 { font-size: 1.05rem; color: #fff; }
.site-footer a { color: var(--gold-200); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer__dua { font-family: var(--font-arabic); font-size: 1.4rem; color: var(--gold-400); margin-top: 1rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.2rem; font-size: .85rem; text-align: center; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--emerald-900); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; z-index: 40; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__inner > * { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Classes WordPress usuelles */
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .4rem; }
.alignwide { max-width: 980px; }
.sticky-label { display: none; }
