/* =========================================================
   DAHIRA TAL ATOUL HAQ — Feuille de style principale
   Palette : Vert islamique, Or sobre, Beige, Anthracite
   ========================================================= */

:root {
  --color-green: #1B5E20;
  --color-green-dark: #0F3D14;
  --color-green-light: #2E7D32;
  --color-gold: #C9A227;
  --color-gold-dark: #A8851E;
  --color-gold-light: #E5C158;
  --color-beige: #F4F1E8;
  --color-beige-dark: #E8E2D0;
  --color-anthracite: #1A1A1A;
  --color-gray: #555555;
  --color-gray-light: #888888;
  --color-white: #FAFAF7;
  --color-white-pure: #FFFFFF;
  --color-border: #E5E1D5;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri', 'Scheherazade New', 'Lateef', serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(26,26,26,0.06);
  --shadow-md: 0 6px 24px rgba(26,26,26,0.10);
  --shadow-lg: 0 18px 48px rgba(26,26,26,0.16);

  --container-width: 1280px;
  --header-height: 76px;

  --transition: 0.25s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-anthracite);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding-left: 1.2em; }
hr { border: none; border-top: 1px solid var(--color-border); margin: 1.4rem 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--color-anthracite);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.arabic, [lang="ar"] {
  font-family: var(--font-arabic);
  line-height: 1.9;
  font-size: 1.15em;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-green);
  color: var(--color-white-pure);
}
.btn-primary:hover {
  background: var(--color-green-dark);
  color: var(--color-white-pure);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-anthracite);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--color-gold-dark);
  color: var(--color-white-pure);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}
.btn-outline:hover {
  background: var(--color-green);
  color: var(--color-white-pure);
}
.btn-ghost {
  color: var(--color-anthracite);
  padding: 0.6rem 1rem;
}
.btn-ghost:hover { color: var(--color-green); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white-pure);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-anthracite);
  flex-shrink: 0;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 2px solid var(--color-gold);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-anthracite);
  white-space: nowrap;
}
.logo-sub {
  font-size: 0.66rem;
  color: var(--color-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Header bar uses a wider container to fit the menu comfortably */
.site-header .container {
  max-width: 1400px;
}

/* Hide logo subtitle on narrow desktops to save space */
@media (max-width: 1199px) {
  .logo-sub { display: none; }
}

/* Main nav — 5 items now, fits comfortably from 1024px+ */
.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
  }
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-block;
  padding: 0.6rem 0.85rem;
  color: var(--color-anthracite);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
@media (min-width: 1300px) {
  .nav-link { padding: 0.6rem 1rem; font-size: 0.92rem; }
}
.nav-link:hover, .nav-link.active {
  color: var(--color-green);
  background: var(--color-beige);
}
.nav-item.has-dropdown > .nav-link::after {
  content: "▾";
  margin-left: 0.3em;
  font-size: 0.7em;
  color: var(--color-gold);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 10;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  color: var(--color-anthracite);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.dropdown a:hover {
  background: var(--color-beige);
  color: var(--color-green);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switcher button {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lang-switcher button.active {
  background: var(--color-green);
  color: var(--color-white-pure);
}
.lang-switcher button:hover:not(.active) {
  background: var(--color-beige);
  color: var(--color-anthracite);
}
.search-toggle, .menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-anthracite);
  transition: all var(--transition);
  font-size: 1rem;
}
.search-toggle:hover, .menu-toggle:hover {
  background: var(--color-beige);
  color: var(--color-green);
}
.menu-toggle { display: flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Hide standalone search on narrow screens (still in mobile menu) */
@media (max-width: 767px) { .search-toggle { display: none; } }

.btn-support {
  background: var(--color-gold);
  color: var(--color-anthracite);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: none;
  transition: all var(--transition);
  box-shadow: 0 2px 0 var(--color-gold-dark);
  white-space: nowrap;
}
.btn-support:hover {
  background: var(--color-gold-dark);
  color: var(--color-white-pure);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--color-gold-dark), var(--shadow-md);
}
@media (min-width: 900px) { .btn-support { display: inline-flex; } }
@media (min-width: 1440px) { .btn-support { padding: 0.65rem 1rem; font-size: 0.82rem; } }

/* Compact lang switcher buttons */
@media (max-width: 1279px) {
  .lang-switcher button { padding: 0.35rem 0.5rem; font-size: 0.75rem; }
}
.search-toggle, .menu-toggle {
  flex-shrink: 0;
}

/* Search bar */
.search-bar {
  display: none;
  padding: 1rem 0;
  background: var(--color-beige);
  border-bottom: 1px solid var(--color-border);
}
.search-bar.open { display: block; }
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-white-pure);
}
.search-form input:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: -1px;
}

/* Mobile/drawer menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--color-white-pure);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding-bottom: 2rem;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.mobile-menu::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.3s;
  z-index: -1;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu.open::before {
  background: rgba(0,0,0,0.4);
  pointer-events: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.mobile-menu-close {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.mobile-menu nav { padding: 1rem 0; }
.mobile-menu nav > a, .mobile-menu nav > details > summary {
  display: block;
  padding: 0.9rem 1.5rem;
  color: var(--color-anthracite);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.mobile-menu nav > details > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu nav > details > summary::after {
  content: "+";
  color: var(--color-gold);
  font-size: 1.2rem;
}
.mobile-menu nav > details[open] > summary::after { content: "−"; }
.mobile-menu nav > details > a {
  display: block;
  padding: 0.7rem 2.5rem;
  color: var(--color-gray);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu .mobile-actions {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
  color: var(--color-white-pure);
  padding: clamp(4rem, 10vw, 8rem) 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,162,39,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,162,39,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.15'><path d='M30 0 L60 30 L30 60 L0 30 Z'/><circle cx='30' cy='30' r='12'/></g></svg>");
  background-size: 120px 120px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  color: var(--color-white-pure);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-gold-light);
  margin-bottom: 1.8rem;
  letter-spacing: 0.05em;
}
.hero-tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.hero .btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-anthracite);
}

/* Page hero (smaller) — interne aux pages, plus compact que le hero d'accueil */
.page-hero {
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
  color: var(--color-white-pure);
  padding: clamp(0.9rem, 1.8vw, 1.4rem) 0 clamp(1rem, 2vw, 1.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 0.2em;
  line-height: 1.15;
}
.page-hero .subtitle {
  font-size: 0.94rem;
  margin: 0;
  opacity: 0.95;
}
.page-hero .breadcrumb {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.12'><path d='M30 0 L60 30 L30 60 L0 30 Z'/></g></svg>");
  background-size: 120px 120px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--color-white-pure); margin-bottom: 0.2em; }
.page-hero .subtitle {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb-sep { color: var(--color-gold); }

/* ---------- Sections ----------
   Rythme vertical :
   - section "standard"  : padding y = clamp(1.6, 3vw, 2.4rem)
   - section "compact"   : padding y = clamp(1rem, 2vw, 1.6rem) (pour les transitions intra-page)
   - section + section   : on absorbe une partie du padding cumulé (sinon 2.4+2.4 = 4.8rem = trop)
   - page-hero + section : le hero a déjà un padding-bottom — la section suivante allège son top
*/
section { padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
section.compact { padding: clamp(1rem, 2vw, 1.6rem) 0; }
section.alt { background: var(--color-beige); }
section.dark {
  background: var(--color-anthracite);
  color: var(--color-white);
}
section.dark h1, section.dark h2, section.dark h3 { color: var(--color-white-pure); }

/* Collapse vertical entre deux sections successives : on conserve la rupture visuelle
   sans cumuler les paddings. Vaut pour standard et compact. */
section + section { padding-top: clamp(0.8rem, 1.6vw, 1.4rem); }
section + section.compact,
section.compact + section { padding-top: clamp(0.6rem, 1.2vw, 1rem); }

/* Première section juste après le hero de page : on s'approche du hero sans gap béant */
.page-hero + section { padding-top: clamp(1rem, 2vw, 1.6rem); }
.page-hero + section.compact { padding-top: clamp(0.8rem, 1.5vw, 1.2rem); }

/* Dernière section juste avant le footer : un peu plus d'air pour respirer */
section:last-of-type { padding-bottom: clamp(2rem, 3.5vw, 3rem); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.8rem;
}
.section-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 0.4rem;
}
.section-eyebrow {
  display: inline-block;
  color: var(--color-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: "◆";
  margin: 0 0.5em;
  color: var(--color-gold);
  font-size: 0.7em;
  vertical-align: middle;
}
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p {
  color: var(--color-gray);
  font-size: 1.05rem;
}

/* Ornamental divider */
.ornament {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--color-gold);
  font-size: 1.4rem;
  letter-spacing: 1em;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Card ---------- */
.card {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  position: relative;
  overflow: hidden;
}
/* Motif décoratif (losanges dorés) — sert de placeholder quand aucune image n'est chargée.
   Masqué dès qu'une <img> est présente dans la carte. */
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23C9A227' stroke-width='0.4' opacity='0.5'><path d='M20 0 L40 20 L20 40 L0 20 Z'/></g></svg>");
  background-size: 80px 80px;
  pointer-events: none;
}
.card-image:has(img)::after { display: none; }
.card-image .card-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: var(--color-gold);
  font-size: 3rem;
  font-family: var(--font-arabic);
  z-index: 1;
}
.card-image-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--color-gold);
  color: var(--color-anthracite);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}
/* Couleurs par statut de projet */
.card-image-tag--etudes   { background: #F1ECD8; color: #6E5A1F; }
.card-image-tag--en_cours { background: var(--color-gold); color: var(--color-anthracite); }
.card-image-tag--livre    { background: var(--color-green); color: #fff; }
.card-image-tag--archive  { background: #777; color: #fff; }
.card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  font-size: 0.78rem;
  color: var(--color-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--color-anthracite);
  font-weight: 600;
}
.card-text {
  color: var(--color-gray);
  font-size: 0.92rem;
  margin: 0 0 1rem;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}
.card-link {
  color: var(--color-green);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-link::after { content: "→"; transition: transform var(--transition); }
.card-link:hover::after { transform: translateX(4px); }

/* ---------- Quote / Citation ---------- */
.quote {
  background: var(--color-beige);
  border-left: 4px solid var(--color-gold);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-anthracite);
  position: relative;
}
.quote::before {
  content: """;
  position: absolute;
  top: -10px;
  left: 1rem;
  font-size: 4rem;
  color: var(--color-gold);
  font-family: serif;
  line-height: 1;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-gray);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.quote-arabic {
  font-family: var(--font-arabic);
  font-style: normal;
  font-size: 1.4rem;
  text-align: right;
  margin-bottom: 1rem;
  color: var(--color-green-dark);
  line-height: 2;
}

/* ---------- Hero quote (Cheikh's word) ---------- */
.cheikh-word {
  background: var(--color-beige);
  text-align: center;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
}
.cheikh-word .quote {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  max-width: 800px;
  margin: 0 auto;
}
.cheikh-word .quote::before { display: none; }

/* ---------- Project / Progress ---------- */
.progress {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
}
.progress-bar {
  height: 8px;
  background: var(--color-beige-dark);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-gray);
}
.progress-meta strong {
  color: var(--color-anthracite);
  font-weight: 700;
}

/* ---------- Audio module ---------- */
.audio-cat-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .audio-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audio-cat-grid { grid-template-columns: repeat(3, 1fr); } }

.audio-cat {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.audio-cat:hover {
  border-top-color: var(--color-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.audio-cat-icon {
  width: 56px; height: 56px;
  background: var(--color-beige);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-green);
  font-family: var(--font-arabic);
  font-size: 1.8rem;
}
.audio-cat h3 { margin: 0; font-size: 1.3rem; }
.audio-cat p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin: 0;
}
.audio-cat-count {
  color: var(--color-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
}

/* Book grid */
.book-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
.book-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.book-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.book-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid var(--color-gold);
  pointer-events: none;
}
.book-cover-arabic {
  color: var(--color-gold);
  font-family: var(--font-arabic);
  font-size: 2rem;
  text-align: center;
  z-index: 1;
}
.book-cover-tag {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  background: var(--color-gold);
  color: var(--color-anthracite);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.book-info { padding: 1.2rem; }
.book-info h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.book-info .author { font-size: 0.82rem; color: var(--color-gray); margin: 0; }
.book-info .meta {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Audio player */
.audio-player {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.audio-player-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.audio-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white-pure);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.audio-play-btn:hover { background: var(--color-green-dark); transform: scale(1.05); }
.audio-info {
  flex: 1;
  min-width: 200px;
}
.audio-title { font-weight: 600; margin: 0; font-size: 1rem; }
.audio-sub { font-size: 0.82rem; color: var(--color-gray); margin: 0; }
.audio-progress {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-gray);
}
.audio-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--color-beige-dark);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.audio-progress-fill {
  height: 100%;
  width: 28%;
  background: var(--color-gold);
  border-radius: 3px;
  position: relative;
}
.audio-progress-fill::after {
  content: "";
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background: var(--color-gold);
  border-radius: 50%;
  border: 2px solid var(--color-white-pure);
  box-shadow: var(--shadow-sm);
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.audio-controls button {
  padding: 0.4rem 0.6rem;
  color: var(--color-gray);
  font-size: 1rem;
  border-radius: var(--radius-sm);
}
.audio-controls button:hover { color: var(--color-green); background: var(--color-beige); }
.audio-notice {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-gray);
  font-style: italic;
}
.audio-notice::before { content: "🔒 "; font-style: normal; }

/* Sessions list */
.sessions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white-pure);
}
.sessions-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.sessions-list li:last-child { border-bottom: none; }
.sessions-list li:hover { background: var(--color-beige); }
.session-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-beige);
  color: var(--color-green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.session-info { flex: 1; min-width: 0; }
.session-title { font-weight: 600; margin: 0; }
.session-meta {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin: 0;
}
.session-play {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white-pure);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.session-play:hover:not(:disabled) { background: var(--color-green-dark); }
.session-open { display: inline-flex; align-items: center; }
.sessions-list li[data-session-row].is-playing {
  background: linear-gradient(90deg, rgba(201,162,39,0.13), transparent);
}
.sessions-list li[data-session-row].is-playing .session-play {
  background: var(--color-gold);
  color: var(--color-bg-dark, #1A1A1A);
}

/* ---------- Commentaires & questions ---------- */
.comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.comment-card {
  background: #fff;
  border: 1px solid #E5E1D5;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  border-inline-start: 4px solid var(--color-green);
}
.comment-card.is-question {
  border-inline-start-color: var(--color-gold);
  background: #FFFCEF;
}
.comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.4rem;
}
.comment-author { color: #1A1A1A; font-size: 0.98rem; }
.comment-badge {
  background: var(--color-gold);
  color: #1A1A1A;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comment-date { color: #888; font-size: 0.82rem; margin-inline-start: auto; }
.comment-body { margin: 0; color: #333; line-height: 1.65; white-space: pre-wrap; }
.comment-reply {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  background: rgba(27, 94, 32, 0.06);
  border-inline-start: 3px solid var(--color-green);
  border-radius: 4px;
}
.comment-reply strong { color: var(--color-green-dark); font-size: 0.9rem; }
.comment-reply p { margin: 0.3rem 0 0; color: #333; line-height: 1.6; }
.comment-form .form-row { margin-bottom: 0.8rem; }
.comment-form label { font-size: 0.88rem; font-weight: 600; color: #555; display: block; margin-bottom: 0.25rem; }
.comment-form input, .comment-form textarea, .comment-form select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #D8D2C0;
  border-radius: 5px;
  background: #fff;
  font: inherit;
}
.comment-form textarea { resize: vertical; min-height: 110px; }
.comment-form input:focus, .comment-form textarea:focus, .comment-form select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

/* ---------- Mini lecteur sticky ---------- */
.mini-player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(26, 26, 26, 0.97);
  color: #fff;
  border-top: 3px solid var(--color-gold);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  z-index: 200;
  backdrop-filter: blur(6px);
}
.mini-player[hidden] { display: none !important; }
.mini-player-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mini-play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #1A1A1A;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mini-play-btn:hover { filter: brightness(1.08); }
.mini-info {
  flex: 1;
  min-width: 0;
}
.mini-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #ccc;
}
.mini-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}
.mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  transition: width 0.1s linear;
}
.mini-controls {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.mini-controls button {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  cursor: pointer;
  min-width: 36px;
}
.mini-controls button:hover { background: rgba(255,255,255,0.18); }
[data-mini-close] { background: transparent !important; border-color: transparent !important; font-size: 1.1rem !important; color: #aaa !important; }
[data-mini-close]:hover { color: #fff !important; }
@media (max-width: 720px) {
  .mini-player-inner { flex-wrap: wrap; gap: 0.6rem; padding: 0.6rem 0.9rem; }
  .mini-info { order: 3; flex-basis: 100%; }
  .mini-title { font-size: 0.88rem; }
  .mini-controls button { padding: 0.3rem 0.45rem; min-width: 32px; font-size: 0.78rem; }
}
/* Marge basse sur la page livre pour ne pas masquer le footer */
body.has-mini-player { padding-bottom: 110px; }

/* ---------- Forms ---------- */
.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-anthracite);
  letter-spacing: 0.02em;
}
.form-field label .req { color: var(--color-gold-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-white-pure);
  color: var(--color-anthracite);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: -1px;
  border-color: var(--color-gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-help {
  font-size: 0.8rem;
  color: var(--color-gray);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-anthracite);
  color: rgba(255,255,255,0.85);
  padding: 2.4rem 0 1rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand .logo-name { color: var(--color-white-pure); }
.footer-brand .logo-sub { color: var(--color-gold); }
.footer-brand p {
  margin-top: 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-arabic {
  font-family: var(--font-arabic);
  color: var(--color-gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.site-footer h4 {
  color: var(--color-white-pure);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-list a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}
.footer-list a:hover { color: var(--color-gold); }

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--color-gold);
  color: var(--color-anthracite);
}

.newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.newsletter input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--color-white-pure);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  min-width: 0;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter button {
  padding: 0.65rem 1rem;
  background: var(--color-gold);
  color: var(--color-anthracite);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.newsletter button:hover { background: var(--color-gold-dark); color: var(--color-white-pure); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--color-gold); }

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.92rem;
}
.table th, .table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.table th {
  background: var(--color-beige);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-anthracite);
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(244,241,232,0.5); }

/* ---------- Tabs/filters ---------- */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-anthracite);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--color-gold); color: var(--color-green); }
.filter-btn.active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white-pure);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--color-beige);
  color: var(--color-green-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-gold { background: var(--color-gold); color: var(--color-anthracite); }
.badge-green { background: var(--color-green); color: var(--color-white-pure); }

/* ---------- Event card ---------- */
.event-card {
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: all var(--transition);
}
.event-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-md); }
.event-cover-link {
  flex-shrink: 0;
  display: block;
  width: 240px;
  min-height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  align-self: stretch;
}
.event-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .event-card { flex-wrap: wrap; }
  .event-cover-link { width: 100%; height: 200px; }
}

/* Cartes 'événement passé' : image agrandie (ratio plus haut que les autres cards) */
.event-past-card .card-image { aspect-ratio: 4/3; }

/* Playlist vidéos multi-parties (player principal + miniatures) */
.event-video-playlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
.event-video-main { grid-column: 1 / -1; }
.event-video-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
}
.event-video-thumb {
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.3rem;
  cursor: pointer;
  text-align: start;
  color: inherit;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.event-video-thumb:hover { background: rgba(201,162,39,0.08); }
.event-video-thumb.is-active {
  border-color: var(--color-gold);
  background: rgba(201,162,39,0.12);
}
.event-video-thumb-img {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
}
.event-video-thumb-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.event-video-thumb-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold); font-size: 1.6rem;
}
.event-video-thumb-num {
  position: absolute; top: 4px; left: 4px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.1rem 0.4rem; border-radius: 3px;
}
.event-video-thumb-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.event-video-thumb:hover .event-video-thumb-play,
.event-video-thumb.is-active .event-video-thumb-play {
  opacity: 1;
}
.event-video-thumb.is-active .event-video-thumb-play {
  background: var(--color-gold); color: var(--color-anthracite);
}
.event-video-thumb-title {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--color-anthracite);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bannière de couverture sur la page détail d'un événement */
.event-cover-banner {
  padding: 0.6rem 0 0;
}
.event-cover-banner .container {
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-beige) 0%, #fff 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.event-cover-image {
  display: block;
  /* Image entière visible (pas de rognage) — letterboxée si nécessaire */
  object-fit: contain;
  /* Hauteur adaptée au viewport pour rester visible sans scroller :
     - jamais plus de 60% de la hauteur écran (donc ~ pli toujours visible)
     - jamais plus de 520 px (sur grand écran, évite l'image gigantesque) */
  max-height: min(60vh, 520px);
  width: auto;
  max-width: 100%;
}
.event-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  background: var(--color-green);
  color: var(--color-white-pure);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-date .day {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-gold);
}
.event-date .month {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.event-info { flex: 1; min-width: 0; }
.event-info h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.event-info .meta {
  font-size: 0.83rem;
  color: var(--color-gray);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.event-info .meta span::before { margin-right: 0.3rem; }
.event-info .meta .loc::before { content: "📍"; }
.event-info .meta .time::before { content: "🕐"; }
.event-info .event-description {
  margin: 0.5rem 0 0.7rem;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.55;
  /* Tronque visuellement à 4 lignes pour garder les cartes équilibrées */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- FAQ / fatwa ---------- */
.faq-item {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  font-weight: 600;
  color: var(--color-anthracite);
  font-size: 1rem;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--color-gold);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--color-beige); }
.faq-content {
  padding: 0 1.4rem 1.4rem;
  color: var(--color-gray);
  line-height: 1.7;
}
.faq-content .references {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-green-dark);
}

/* ---------- Map / representatives ---------- */
.map-container {
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-beige);
  position: relative;
}
#representatives-map { height: 100%; width: 100%; }

.rep-card {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  transition: all var(--transition);
}
.rep-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-sm); }
.rep-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.rep-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-beige);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-green-dark);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.rep-avatar-img {
  object-fit: cover;
  border: 2px solid var(--color-gold);
  background: var(--color-beige);
}
.rep-card h3 { margin: 0; font-size: 1.05rem; }
.rep-card .role { font-size: 0.82rem; color: var(--color-gold-dark); font-weight: 600; }
.rep-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-gray);
}
.rep-info li::before { margin-right: 0.4rem; }
.rep-info .city::before { content: "📍"; }
.rep-info .phone::before { content: "📞"; }
.rep-info .email::before { content: "✉️"; }
.rep-info .whatsapp::before { content: "💬"; }

/* ---------- Paiements (QR Wave / Orange Money / Virement) ---------- */
.payment-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 1.5rem;
}
.payment-card {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.payment-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.payment-card-header h3 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}
.payment-qr {
  background: #fff;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  max-width: 240px;
  margin: 0 auto 1rem;
}
.payment-qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.payment-recipient {
  background: #FFF8E1;
  border: 1px solid #C9A227;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.payment-recipient-label {
  display: block;
  color: var(--color-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}
.payment-account {
  font-family: ui-monospace, monospace;
  color: #555;
  font-size: 0.84rem;
  margin-inline-start: 0.4rem;
}
.payment-instructions {
  margin: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--color-gray);
  line-height: 1.5;
}
.payment-ussd {
  background: var(--color-beige);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  margin-top: auto;
  font-size: 0.82rem;
}
.payment-ussd-label {
  display: block;
  color: #666;
  font-size: 0.74rem;
  margin-bottom: 0.2rem;
}
.payment-ussd code {
  font-family: ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-anthracite);
  word-break: break-all;
}

/* Virement bancaire (carte distincte) */
.bank-transfers h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.7rem;
  color: var(--color-anthracite);
}
.bank-card {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
}
.bank-row { margin-bottom: 0.5rem; font-size: 0.95rem; }
.bank-row code {
  background: var(--color-beige);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 0.92rem;
  word-break: break-all;
}

/* Note de sécurité pour le donneur */
.payment-security-note {
  background: linear-gradient(135deg, rgba(27,94,32,0.04), rgba(201,162,39,0.06));
  border-inline-start: 4px solid var(--color-green);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem auto 0;
  max-width: 760px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.55;
}
.payment-security-note strong { color: var(--color-green-dark); }

/* ---------- Donate page ---------- */
.donate-projects {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .donate-projects { grid-template-columns: repeat(2, 1fr); } }
.donate-project {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.donate-project h3 { margin: 0 0 0.5rem; }
.donate-project p { color: var(--color-gray); font-size: 0.93rem; flex: 1; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.amount-btn {
  padding: 0.65rem 0.4rem;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.amount-btn:hover, .amount-btn.active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white-pure);
}
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.payment-method {
  padding: 0.5rem 0.8rem;
  background: var(--color-beige);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray);
}

/* ---------- Article / content layout ---------- */
.content-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .content-layout { grid-template-columns: 1fr 280px; gap: 2.5rem; }
}
.content-main h2 { margin-top: 1.6rem; padding-top: 0.3rem; font-size: 1.4rem; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin-top: 1.2rem; font-size: 1.15rem; }
.content-main p { margin-bottom: 0.8em; }
.content-main p, .content-main li { color: var(--color-anthracite); }
.content-main ul, .content-main ol { padding-left: 1.4rem; line-height: 1.8; }
.content-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
  background: var(--color-beige);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
}
.content-sidebar h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.8rem;
}
.content-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.content-sidebar a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--color-anthracite);
  border-bottom: 1px solid var(--color-beige-dark);
}
.content-sidebar a:hover { color: var(--color-green); }

/* ---------- Generic photo frame with placeholder fallback ---------- */
.photo-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.photo-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(201,162,39,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201,162,39,0.12) 0%, transparent 50%);
}
.photo-frame.placeholder .placeholder-content {
  text-align: center;
  color: var(--color-gold);
  padding: 1.2rem;
  z-index: 3;
}
.photo-frame.placeholder .placeholder-icon {
  font-family: var(--font-arabic);
  font-size: 2.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.photo-frame.placeholder .placeholder-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  line-height: 1.5;
  display: block;
}
.photo-frame.placeholder .placeholder-text small {
  display: block;
  margin-top: 0.4rem;
  opacity: 0.65;
  font-size: 0.72rem;
}

.photo-frame--portrait { aspect-ratio: 3/4; }
.photo-frame--book     { aspect-ratio: 3/4; }
.photo-frame--square   { aspect-ratio: 1/1; }

/* Book card list (catalog) */
.book-grid-large {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .book-grid-large { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .book-grid-large { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .book-grid-large { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1500px) { .book-grid-large { grid-template-columns: repeat(5, 1fr); } }

.book-card-rich {
  display: flex;
  flex-direction: column;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.book-card-rich:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.book-card-rich .photo-frame { border-radius: 0; box-shadow: none; border: none; border-bottom: 1px solid var(--color-border); }
.book-card-rich .book-info-rich { padding: 1rem 1.1rem 1.2rem; }
.book-card-rich h3 { font-size: 1rem; margin: 0 0 0.3rem; line-height: 1.35; }
.book-card-rich .author { font-size: 0.82rem; color: var(--color-gray); margin: 0 0 0.5rem; }
.book-card-rich .oustaz-line {
  font-size: 0.78rem;
  color: var(--color-green-dark);
  font-weight: 600;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.book-card-rich .oustaz-line::before { content: "👤"; font-size: 0.85rem; }

/* Oustaz block on book page */
.oustaz-block {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  background: var(--color-beige);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--color-gold);
  margin: 2rem 0;
}
@media (min-width: 600px) {
  .oustaz-block { grid-template-columns: 120px 1fr; align-items: center; }
}
.oustaz-block .photo-frame { aspect-ratio: 1/1; max-width: 120px; }
.oustaz-block h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.oustaz-block .role {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.oustaz-block p { margin: 0; color: var(--color-gray); font-size: 0.92rem; line-height: 1.6; }
[dir="rtl"] .oustaz-block { border-left: none; border-right: 4px solid var(--color-gold); }

/* Cheikh portrait — header section on cheikh.html */
.cheikh-portrait-section {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .cheikh-portrait-section { grid-template-columns: 220px 1fr; gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .cheikh-portrait-section { grid-template-columns: 240px 1fr; }
}
.cheikh-portrait { max-width: 240px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .cheikh-portrait { margin: 0; } }
.cheikh-portrait {
  margin: 0;
  position: relative;
  text-align: center;
}
.cheikh-portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.cheikh-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}
.cheikh-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.cheikh-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Placeholder shown when no image is provided yet */
.cheikh-portrait-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(201,162,39,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201,162,39,0.12) 0%, transparent 50%);
}
.cheikh-portrait-frame.placeholder::before { border-color: var(--color-gold); }
.cheikh-portrait-frame.placeholder .placeholder-content {
  text-align: center;
  color: var(--color-gold);
  padding: 2rem;
  z-index: 3;
}
.cheikh-portrait-frame.placeholder .placeholder-icon {
  font-family: var(--font-arabic);
  font-size: 4rem;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.cheikh-portrait-frame.placeholder .placeholder-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}
.cheikh-portrait figcaption {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gray);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.cheikh-portrait figcaption strong {
  display: block;
  color: var(--color-anthracite);
  font-style: normal;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

/* Bio info */
.bio-info {
  display: grid;
  gap: 0.8rem;
  background: var(--color-beige);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.92rem;
}
.bio-info dt {
  font-weight: 700;
  color: var(--color-green-dark);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bio-info dd { margin: 0 0 0.5rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  color: var(--color-white-pure);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><g fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.18'><circle cx='20' cy='20' r='10'/></g></svg>");
  background-size: 80px 80px;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--color-white-pure); margin-bottom: 0.6rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto 1.8rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }
.no-marker { list-style: none; padding: 0; }
.no-marker li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}
.no-marker li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 0.1em;
  color: var(--color-gold);
  font-size: 0.7em;
}

/* ---------- RTL adjustments (Arabic) ---------- */
[dir="rtl"] body {
  font-family: var(--font-arabic);
  font-size: 17px;
  line-height: 1.85;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.4;
}
[dir="rtl"] .logo-name,
[dir="rtl"] .logo-sub,
[dir="rtl"] .nav-link,
[dir="rtl"] .footer-list a,
[dir="rtl"] .btn,
[dir="rtl"] .btn-support {
  font-family: var(--font-arabic);
}
[dir="rtl"] .quote { border-left: none; border-right: 4px solid var(--color-gold); padding-left: 2rem; padding-right: 2.5rem; }
[dir="rtl"] .quote::before { left: auto; right: 1rem; }
[dir="rtl"] .quote-arabic { text-align: right; }
[dir="rtl"] .content-sidebar { border-left: none; border-right: 4px solid var(--color-gold); }
[dir="rtl"] .card-link::after { content: "←"; }
[dir="rtl"] .card-link:hover::after { transform: translateX(-4px); }
[dir="rtl"] .no-marker li { padding-left: 0; padding-right: 1.6rem; }
[dir="rtl"] .no-marker li::before { left: auto; right: 0; }
[dir="rtl"] .breadcrumb-sep { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .audio-cat,
[dir="rtl"] .card-body,
[dir="rtl"] .form-field { text-align: right; }
[dir="rtl"] .lang-switcher { direction: ltr; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .section-eyebrow::before,
[dir="rtl"] .section-eyebrow::after { font-family: serif; }
[dir="rtl"] .filter-btn { font-family: var(--font-arabic); font-size: 0.95rem; }

/* ---------- Page d'un livre — en-tête + article ---------- */
.livre-head {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) {
  .livre-head {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: start;
  }
}

.livre-cover {
  margin: 0;
  max-width: 220px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) {
  .livre-cover { margin: 0; max-width: 200px; }
}
.livre-cover .photo-frame {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.livre-cover .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.livre-summary { min-width: 0; }
.livre-summary h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.3;
}

.livre-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.5rem;
  background: var(--color-beige);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1.2rem;
}
.livre-stats div { margin: 0; }
.livre-stats dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.livre-stats dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-anthracite);
  line-height: 1.4;
}

.livre-article {
  max-width: 800px;
  margin: 0 auto;
}
.livre-article h2 {
  margin-top: 2rem;
  padding-top: 0.6rem;
}
.livre-article > h2:first-child { margin-top: 0; padding-top: 0; }

/* ---------- Project gallery (galerie d'images) ---------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}
.gallery-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-beige);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.4rem 0.7rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-tile:hover .gallery-caption { opacity: 1; }

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-overlay .lightbox-caption {
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
  font-style: italic;
}
.lightbox-overlay .lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-overlay .lightbox-close:hover { background: var(--color-gold); color: var(--color-anthracite); }
.lightbox-overlay .lightbox-prev,
.lightbox-overlay .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-overlay .lightbox-prev { left: 1.5rem; }
.lightbox-overlay .lightbox-next { right: 1.5rem; }
.lightbox-overlay .lightbox-prev:hover,
.lightbox-overlay .lightbox-next:hover { background: var(--color-gold); color: var(--color-anthracite); }
.lightbox-overlay .lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ========================================================
   HOME — Slider hero (contenus en vedette choisis par l'admin)
   Inspiré d'AbuMuslim mais en palette site (or / vert / beige)
   ======================================================== */
.home-slider {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: stretch;
}
.slider-track { position: relative; width: 100%; display: flex; align-items: stretch; }
.slider-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  background-color: #1a1a1a;
  opacity: 0; transition: opacity 0.7s ease; pointer-events: none;
}
.slider-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.slider-content { color: #fff; max-width: 720px; padding: 4rem 0; }
.slider-badge {
  display: inline-block;
  background: var(--color-gold); color: var(--color-anthracite);
  padding: 0.35rem 0.85rem; border-radius: 4px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.slider-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.1;
  margin: 0 0 1rem; color: #fff;
}
.slider-description {
  font-size: 1.02rem; line-height: 1.65;
  margin: 0 0 1.6rem; color: rgba(255,255,255,0.92);
  max-width: 560px;
}
.slider-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background 0.2s;
}
.slider-arrow:hover { background: var(--color-gold); color: var(--color-anthracite); border-color: var(--color-gold); }
.slider-arrow-prev { left: 1.2rem; } .slider-arrow-next { right: 1.2rem; }
.slider-dots {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: 0; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.is-active { background: var(--color-gold); transform: scale(1.3); }
.slider-thumbs {
  position: absolute; bottom: 1.2rem; right: 1.5rem;
  display: flex; gap: 0.4rem; z-index: 10;
  max-width: 50%; overflow-x: auto;
}
.slider-thumb {
  width: 64px; height: 40px; border-radius: 4px;
  overflow: hidden; background: #333;
  border: 2px solid transparent; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.slider-thumb.is-active { border-color: var(--color-gold); transform: scale(1.06); }
.slider-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .home-slider { min-height: 460px; }
  .slider-thumbs { display: none; }
  .slider-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
  .slider-arrow-prev { left: 0.4rem; } .slider-arrow-next { right: 0.4rem; }
}

/* ========================================================
   HOME — Rail horizontal (derniers) + Ranking (plus regardés)
   ======================================================== */
.home-rail, .home-rank { padding: clamp(1.6rem, 3vw, 2.2rem) 0 clamp(0.8rem, 1.6vw, 1.2rem); }
/* Lorsque deux rails se suivent : absorber le padding-top doublé */
.home-rail + .home-rail,
.home-rail + .home-rank,
.home-rank + .home-rail,
.home-rank + .home-rank { padding-top: clamp(0.6rem, 1.2vw, 1rem); }
.home-rank { background: linear-gradient(180deg, #fff 0%, var(--color-beige) 100%); }
.rail-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.rail-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700; margin: 0; color: var(--color-anthracite);
  position: relative; padding-inline-start: 0.7rem;
}
.rail-header h2::before {
  content: ""; position: absolute;
  inset-inline-start: 0; top: 0.4rem; bottom: 0.4rem;
  width: 4px; border-radius: 2px; background: var(--color-gold);
}
.rail-nav { display: flex; gap: 0.4rem; }
.rail-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; color: var(--color-anthracite);
  border: 1.5px solid var(--color-border);
  font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
}
.rail-arrow:hover { background: var(--color-gold); color: var(--color-anthracite); border-color: var(--color-gold); }
.rail-see-all { font-size: 0.92rem; color: var(--color-green-dark); font-weight: 600; text-decoration: none; }
.rail-see-all:hover { color: var(--color-gold-dark); }
.rail-track {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 0.6rem; scrollbar-width: thin;
}
.rail-track::-webkit-scrollbar { height: 6px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 3px; }
.rail-card {
  flex: 0 0 280px;
  text-decoration: none; color: inherit;
  scroll-snap-align: start;
  transition: transform 0.2s;
}
.rail-card:hover { transform: translateY(-3px); }
.rail-thumb {
  position: relative; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border);
}
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold); font-size: 2.5rem;
}

/* ---------- Placeholder thématique pour les éclairages (rail + ranking) ----------
   Fond vert dégradé + motif géométrique + grand glyphe arabe de la catégorie
   + label "ÉCLAIRAGE" en bas. Sert à la fois sur .rail-thumb et .rank-card.
*/
.rail-thumb--eclairage,
.rank-card--eclairage {
  background:
    radial-gradient(circle at 30% 20%, rgba(229, 193, 88, 0.22), transparent 55%),
    linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
  position: relative;
}
.rail-thumb--eclairage::before,
.rank-card--eclairage::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23C9A227' stroke-width='0.6' opacity='0.22'><path d='M30 0 L60 30 L30 60 L0 30 Z'/><circle cx='30' cy='30' r='8'/></g></svg>");
  background-size: 60px 60px;
  pointer-events: none;
}
.thumb-eclairage-glyph {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-arabic);
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  color: var(--color-gold-light);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.thumb-eclairage-label {
  position: absolute;
  bottom: 0.55rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(229, 193, 88, 0.92);
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
}
.rank-card--eclairage .thumb-eclairage-glyph { font-size: clamp(1.7rem, 4.5vw, 2.2rem); }
.rank-card--eclairage .thumb-eclairage-label { font-size: 0.6rem; letter-spacing: 0.16em; bottom: 0.35rem; }
.rail-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.rail-meta { padding: 0.7rem 0.2rem 0; }
.rail-ep {
  font-size: 0.72rem; font-weight: 700;
  color: var(--color-gold-dark);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.rail-title {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 600; line-height: 1.35;
  margin: 0.3rem 0 0; color: var(--color-anthracite);
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Liste des plus regardés (gros chiffres outline) */
.rank-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.rank-item { position: relative; display: flex; align-items: center; gap: 0.6rem; }
.rank-number {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 10vw, 7.5rem);
  font-weight: 800; line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--color-gold);
  text-stroke: 2px var(--color-gold);
  flex-shrink: 0; z-index: 1;
}
.rank-card-wrap {
  display: flex; flex-direction: column; gap: 0.6rem;
  text-decoration: none; color: inherit;
  /* Plus de chevauchement : le chiffre est entièrement visible à côté de la carte */
  z-index: 2;
  min-width: 0;
}
.rank-card {
  position: relative;
  width: 130px; aspect-ratio: 3/4; border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
  display: block; border: 2px solid var(--color-gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.rank-card-wrap:hover .rank-card { transform: scale(1.05); }
.rank-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--color-anthracite);
  width: 130px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--color-gold);
}

/* Responsive : sur mobile, on réduit le numéro et on supprime le chevauchement
   pour que le livre ne soit plus collé/superposé au chiffre. */
@media (max-width: 640px) {
  .rank-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .rank-item {
    gap: 0.8rem;
  }
  .rank-number {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .rank-card-wrap {
    /* Pas de chevauchement entre le numéro et la carte sur mobile */
    margin-inline-start: 0;
  }
  .rank-card {
    width: 110px;
  }
  .rank-title {
    width: auto;
    max-width: 100%;
  }
}

/* ===========================================================
   HERO IMMERSIF (style streaming)
   =========================================================== */
.hero-immersive {
  position: relative;
  min-height: 50vh;
  max-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--color-anthracite);
}
@media (max-width: 768px) {
  .hero-immersive { min-height: 55vh; padding: 2.5rem 0; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.15);
  transform: scale(1.05);
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0F3D14 0%, #1B5E20 100%),
    radial-gradient(ellipse at 30% 30%, rgba(201,162,39,0.18) 0%, transparent 60%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,20,5,0.92) 0%, rgba(0,20,5,0.78) 50%, rgba(0,20,5,0.5) 100%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}
.hero-immersive-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 1.8rem 1.5rem;
}
.hero-immersive-content .hero-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(201,162,39,0.18);
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(4px);
}
.hero-immersive-content h1 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.7rem;
  text-shadow: 0 3px 16px rgba(0,0,0,0.6);
  letter-spacing: -0.005em;
}
.hero-immersive-content .hero-tagline {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.1rem;
  max-width: 620px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-immersive-content .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}
.hero-featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.hero-featured-pill:hover {
  background: rgba(201,162,39,0.25);
  border-color: var(--color-gold);
  color: #fff;
}
.hero-featured-label {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  background: var(--color-gold);
  color: var(--color-anthracite);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-featured-title { font-weight: 500; }
[dir="rtl"] .hero-immersive-content { margin-right: 0; }
[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(-90deg, rgba(0,20,5,0.92) 0%, rgba(0,20,5,0.78) 50%, rgba(0,20,5,0.5) 100%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}

/* ===========================================================
   STREAMING SECTIONS (carrousels horizontaux scrollables)
   =========================================================== */
.streaming-section {
  padding: clamp(1.5rem, 3vw, 2.4rem) 0;
  background: var(--color-white);
}
.streaming-section.streaming-dark {
  background: #0B2210;
  color: rgba(255,255,255,0.92);
}
.streaming-section.streaming-dark h2 { color: #fff; }
.streaming-section.streaming-dark .section-eyebrow { color: var(--color-gold); }
.streaming-section.streaming-dark .section-eyebrow::before,
.streaming-section.streaming-dark .section-eyebrow::after { color: var(--color-gold); }
.streaming-section.streaming-dark .streaming-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.streaming-section.streaming-dark .streaming-meta h3 { color: #fff; }
.streaming-section.streaming-dark .streaming-context { color: var(--color-gold); }
.streaming-section.streaming-dark .streaming-date { color: rgba(255,255,255,0.55); }
.streaming-section.streaming-dark .carousel-prev,
.streaming-section.streaming-dark .carousel-next {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.streaming-section.streaming-dark .carousel-prev:hover,
.streaming-section.streaming-dark .carousel-next:hover {
  background: var(--color-gold);
  color: var(--color-anthracite);
  border-color: var(--color-gold);
}

.streaming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.streaming-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 0.2rem 0 0;
  line-height: 1.2;
}
.streaming-header .section-eyebrow { margin-bottom: 0; }

.streaming-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.streaming-see-all {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.streaming-see-all:hover { color: var(--color-green); }

.carousel-prev, .carousel-next {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white-pure);
  color: var(--color-anthracite);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.carousel-prev:hover, .carousel-next:hover {
  background: var(--color-green);
  color: white;
  border-color: var(--color-green);
}
.carousel-prev:disabled, .carousel-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Carrousel scrollable */
.carousel-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 75vw;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
}
@media (min-width: 640px) { .carousel-wrapper { grid-auto-columns: 42vw; } }
@media (min-width: 900px) { .carousel-wrapper { grid-auto-columns: 28vw; } }
@media (min-width: 1200px) { .carousel-wrapper { grid-auto-columns: 22%; } }
@media (min-width: 1500px) { .carousel-wrapper { grid-auto-columns: 18%; } }

.carousel-wrapper::-webkit-scrollbar { height: 8px; }
.carousel-wrapper::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 4px; }
.carousel-wrapper::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }
.streaming-dark .carousel-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }

/* Cartes streaming (style Netflix) */
.streaming-card {
  position: relative;
  display: block;
  scroll-snap-align: start;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.streaming-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
  z-index: 2;
}

.streaming-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  overflow: hidden;
}
.streaming-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.streaming-card:hover .streaming-thumb img { transform: scale(1.08); }

.streaming-thumb-icon {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: var(--color-gold);
}

.streaming-thumb-large {
  aspect-ratio: 16 / 10;
}

.streaming-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(0,0,0,0.78);
  color: white;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.streaming-card.tx-emission .streaming-badge { background: rgba(27,94,32,0.92); }
.streaming-card.tx-serie .streaming-badge { background: rgba(46,125,50,0.92); }
.streaming-card.tx-episode .streaming-badge { background: rgba(168,133,30,0.95); }
.streaming-card.tx-cartoon .streaming-badge { background: rgba(229,193,88,0.95); color: var(--color-anthracite); }
.streaming-card.tx-dessin_anime .streaming-badge { background: rgba(229,193,88,0.95); color: var(--color-anthracite); }
.streaming-card.tx-news .streaming-badge { background: rgba(26,26,26,0.92); }
.streaming-card.tx-audio .streaming-badge { background: rgba(15,61,20,0.92); }
.streaming-card.tx-event .streaming-badge { background: rgba(201,162,39,0.95); color: var(--color-anthracite); }

.streaming-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.18rem 0.45rem;
  background: rgba(0,0,0,0.85);
  color: white;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.streaming-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: white;
  background: rgba(27,94,32,0);
  opacity: 0;
  transition: all 0.25s ease;
  text-shadow: 0 4px 18px rgba(0,0,0,0.8);
}
.streaming-card:hover .streaming-play {
  opacity: 1;
  background: rgba(27,94,32,0.55);
}

/* Top-N "ranks" pour la section tendances */
.streaming-rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.85;
  color: rgba(255,255,255,0.95);
  padding: 0.4rem 0.5rem 0 0.7rem;
  text-shadow:
    -2px 0 0 var(--color-gold-dark),
    2px 0 0 var(--color-gold-dark),
    0 -2px 0 var(--color-gold-dark),
    0 2px 0 var(--color-gold-dark),
    0 6px 18px rgba(0,0,0,0.5);
  letter-spacing: -0.03em;
  pointer-events: none;
}

.streaming-meta {
  padding: 0.85rem 1rem 1rem;
}
.streaming-meta h3 {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  margin: 0.2rem 0 0.35rem;
  line-height: 1.3;
  color: var(--color-anthracite);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.streaming-context {
  font-size: 0.7rem;
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.streaming-date {
  font-size: 0.76rem;
  color: var(--color-gray-light);
  margin-top: 0.25rem;
}

.empty-state {
  background: var(--color-beige);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: var(--color-gray);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

[dir="rtl"] .carousel-wrapper { direction: rtl; }

/* ===========================================================
   PILIERS COMPACTS (3 colonnes horizontales)
   =========================================================== */
.pillars-compact { padding: clamp(1.5rem, 3vw, 2.4rem) 0; background: var(--color-white); }
.pillars-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .pillars-row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.pillar-mini {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  background: var(--color-beige);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-green-dark);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  font-weight: 700;
}
.pillar-mini h3 {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  color: var(--color-green-dark);
}
.pillar-mini p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-gray);
  margin: 0;
}
[dir="rtl"] .pillar-mini {
  border-left: none;
  border-right: 3px solid var(--color-gold);
}

/* ===========================================================
   CTA ENRICHIE (texte + projet phare côte à côte)
   =========================================================== */
.cta-rich { padding: clamp(1.8rem, 3.5vw, 2.8rem) 0; }
.cta-rich-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-rich-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
}
.cta-rich-content { text-align: center; }
@media (min-width: 900px) {
  .cta-rich-content { text-align: left; }
}
[dir="rtl"] .cta-rich-content { text-align: right; }
.cta-rich-content h2 {
  color: white;
  margin: 0 0 1rem;
}
.cta-rich-content p {
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.5rem;
  max-width: 540px;
}

/* Carte projet phare dans la CTA */
.cta-project-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: white;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.cta-project-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  color: white;
}
.cta-project-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-project-body {
  padding: 1.1rem 1.3rem 1.3rem;
}
.cta-project-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  background: var(--color-gold);
  color: var(--color-anthracite);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.cta-project-body h3 {
  color: white;
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
  line-height: 1.3;
}
.cta-project-progress { margin-bottom: 0.8rem; }
.cta-project-progress .progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.cta-project-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}
.cta-project-stats strong { color: var(--color-gold); font-size: 0.95rem; }
.cta-project-link {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* ---------- Flux "Activités récentes" sur l'accueil ---------- */
.activity-feed {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .activity-feed { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .activity-feed { grid-template-columns: repeat(4, 1fr); } }

.activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}
.activity-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-beige);
  overflow: hidden;
}
.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.activity-thumb-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  color: var(--color-gold);
}
.activity-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(0,0,0,0.78);
  color: white;
  backdrop-filter: blur(4px);
}

/* Couleurs spécifiques par type */
.tx-emission .activity-badge  { background: rgba(27,94,32,0.92); }
.tx-serie .activity-badge     { background: rgba(46,125,50,0.92); }
.tx-episode .activity-badge   { background: rgba(168,133,30,0.95); color: white; }
.tx-cartoon .activity-badge   { background: rgba(229,193,88,0.95); color: var(--color-anthracite); }
.tx-news .activity-badge      { background: rgba(26,26,26,0.92); }
.tx-audio .activity-badge     { background: rgba(15,61,20,0.92); }
.tx-event .activity-badge     { background: rgba(201,162,39,0.95); color: var(--color-anthracite); }

.activity-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.activity-context {
  font-size: 0.74rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.activity-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  color: var(--color-anthracite);
}
.activity-excerpt {
  font-size: 0.84rem;
  color: var(--color-gray);
  margin: 0 0 0.7rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.activity-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--color-gray-light);
  letter-spacing: 0.02em;
  border-top: 1px dashed var(--color-border);
}

/* ---------- Vue série publique (Série / Saison / Épisode) ---------- */
.series-cover-hero {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  box-shadow: var(--shadow-md);
}
.series-cover-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.season-public {
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}
.season-public-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--color-border);
}
.season-public-head h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0;
}
.season-public-head h3 a { color: var(--color-anthracite); text-decoration: none; }
.season-public-head h3 a:hover { color: var(--color-green); }
.season-public-count {
  flex-shrink: 0;
  padding: 0.35rem 0.8rem;
  background: var(--color-beige);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  letter-spacing: 0.04em;
}
[dir="rtl"] .season-public {
  border-left: 1px solid var(--color-border);
  border-right: 4px solid var(--color-gold);
}

/* Navigation épisode précédent/suivant */
.episode-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

/* ---------- Médias vidéo (Émissions, Séries, Dessins animés) ---------- */
.media-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .media-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1500px) { .media-grid { grid-template-columns: repeat(5, 1fr); } }

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}
.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}
.media-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-beige);
  overflow: hidden;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  color: var(--color-gold);
  font-size: 3rem;
}
.media-duration {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.media-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--color-gold);
  color: var(--color-anthracite);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.0);
  color: white;
  font-size: 3rem;
  opacity: 0;
  transition: all 0.25s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.media-card:hover .media-play-overlay {
  opacity: 1;
  background: rgba(27,94,32,0.4);
}
.media-info { padding: 1rem 1.1rem 1.2rem; }
.media-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.media-excerpt {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.media-meta {
  font-size: 0.78rem;
  color: var(--color-gray-light);
  letter-spacing: 0.02em;
}

/* Lecteur vidéo plein largeur */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
}
.video-placeholder p { color: rgba(255,255,255,0.8); margin: 0.5rem 0 0; }

.video-fallback {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-anthracite));
  padding: 2rem;
}

.video-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--color-beige);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* ---------- Éclairages (articles savants) ---------- */
.eclairage-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .eclairage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .eclairage-grid { grid-template-columns: repeat(3, 1fr); } }

.eclairage-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-white-pure);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border-left: 4px solid var(--color-gold);
}
.eclairage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
  border-left-color: var(--color-gold-dark);
}
.eclairage-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  flex: 1;
}
.eclairage-card-pin {
  align-self: flex-start;
  background: var(--color-gold);
  color: var(--color-anthracite);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.eclairage-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: var(--color-anthracite);
}
.eclairage-card-excerpt {
  color: var(--color-gray);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eclairage-card-meta {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--color-gray-light);
  padding-top: 0.4rem;
}

/* ---------- Article éclairage (page détail) ---------- */
.eclairage-article {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-anthracite);
}
.eclairage-article p { margin: 0 0 1.1em; }
.eclairage-article p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  float: left;
  line-height: 0.9;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--color-gold-dark);
  font-weight: 600;
}
.eclairage-article--ar {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  line-height: 2.1;
  text-align: justify;
}
.eclairage-article--ar p:first-of-type::first-letter {
  font-size: 1em; float: none; padding: 0; /* lettrine ne s'applique pas à l'arabe */
  color: inherit; font-weight: inherit;
}
.eclairage-references {
  margin-top: 2.5rem;
  padding: 1.2rem 1.4rem;
  background: var(--color-beige);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.7;
}
.eclairage-references h3 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}
.eclairage-signature {
  margin-top: 2rem;
  text-align: end;
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* ---------- Carte « À propos de l'auteur » (en bas d'un éclairage) ---------- */
.eclairage-author-card {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.5rem 1.6rem;
  background: #FAF7EE;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
}
.eclairage-author-card-photo {
  flex-shrink: 0;
}
.eclairage-author-card-photo img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
  display: block;
}
.eclairage-author-card-photo-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}
.eclairage-author-card-body { flex: 1; min-width: 0; }
.eclairage-author-card-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  margin-bottom: 0.4rem;
}
.eclairage-author-card-name {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--color-anthracite);
}
.eclairage-author-card-role {
  color: var(--color-gray);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.eclairage-author-card-location {
  color: var(--color-gray);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.eclairage-author-card-bio {
  color: var(--color-anthracite);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0.7rem 0 0;
  text-align: justify;
  hyphens: none;
}
@media (max-width: 640px) {
  .eclairage-author-card { flex-direction: column; align-items: center; text-align: center; }
  .eclairage-author-card-body { text-align: center; }
  .eclairage-author-card-bio { text-align: justify; }
}

/* ---------- Justification universelle pour les textes longs ----------
   text-align: justify étire les espaces entre mots pour aligner les deux marges.
   Pas de césure automatique (hyphens) — couper les mots en milieu de ligne (« véri-diques »,
   « par-mi ») est typographiquement laid en français comme en arabe.
   word-break: keep-all empêche aussi toute coupure intra-mot par défaut du navigateur.
*/
.eclairage-article,
.eclairage-article p,
.eclairage-card-excerpt,
.emission-description,
.emission-description p,
.livre-article,
.livre-article p,
.long-text,
.long-text p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: keep-all;
}

/* ---------- Layout 2 colonnes générique (description à gauche / carte info à droite) ----------
   Utilisé par :
   - détail émission (description + carte présentateur)
   - détail événement (description + carte infos)
   - détail livre/section « Présentation » (présentation + carte enseignant)
   Classes : .emission-content-grid (conteneur), .emission-description (gauche), .presenter-card (droite)
   Nommage hérité du premier usage (émission) — gardé pour cohérence.
*/
.emission-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}
@media (min-width: 800px) {
  .emission-content-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    gap: 2rem;
  }
}
.emission-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray);
}
.emission-description p:last-child { margin-bottom: 0; }

.presenter-card {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  padding: 1.4rem 1.25rem 1.25rem;
  background: #FAF7EE;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}
.presenter-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
  margin: 0 auto 0.8rem;
  display: block;
}
.presenter-photo--placeholder {
  background: var(--color-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.presenter-label {
  font-size: 0.74rem;
  color: var(--color-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.presenter-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-anthracite);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.presenter-role {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.presenter-location {
  color: var(--color-gray);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.presenter-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--color-gold-dark);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.presenter-link:hover { color: var(--color-gold); }
/* En layout mobile, la carte ne reste plus sticky */
@media (max-width: 800px) {
  .presenter-card { position: static; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-menu, .btn-support { display: none !important; }
}
