/* ============================================================
   SIRAJWAY — SHARED DESIGN SYSTEM v2.0
   Le chemin de la lumière · The path of light · طريق النور
   ============================================================
   Usage : <link rel="stylesheet" href="/assets/shared.css">
   Polices requises (dans chaque page HTML) :
   <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap" rel="stylesheet">
   ============================================================ */

/* ─── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Palette identitaire commune */
  --black:          #060810;
  --black2:         #0d1018;
  --black3:         #131720;
  --navy:           #0a0e1a;

  --gold:           #D4AA50;
  --gold-l:         #F0CB6A;
  --gold-d:         #A8842A;
  --gold-xd:        #6B5218;

  --cream:          #F5EFE0;
  --cream2:         #D8CFBC;
  --cream3:         #B8AFA0;
  --text-muted:     #8A8278;

  --border:         rgba(212,170,80,0.20);
  --border2:        rgba(212,170,80,0.40);
  --border3:        rgba(212,170,80,0.08);

  /* Couleurs accent par module */
  --color-home:         #D4AA50;   /* or — accueil */
  --color-decouvrir:    #C4940A;   /* or chaud — portail découverte */
  --color-quranlink:    #2D7D5A;   /* vert émeraude */
  --color-quranmap:     #1A3A5C;   /* bleu nuit profond */
  --color-hadith:       #2A8A8A;   /* turquoise */
  --color-sirah:        #8B6340;   /* brun doré */
  --color-fiqh:         #1C5F7A;   /* bleu pétrole */
  --color-dua:          #6B3FA0;   /* violet */
  --color-academy:      #3B3F9E;   /* indigo */
  --color-islamed:      #C4621A;   /* orange */
  --color-mediatheque:  #7A1C3B;   /* rouge bordeaux */
  --color-assistant:    #007A8A;   /* cyan profond */
  --color-zakat:        #5C7A1C;   /* vert olive */
  --color-prophetes:    #7A4A1C;   /* brun cuivré */
  --color-questions:    #4A1C7A;   /* violet nuit */
  --color-journey:      #1E8A5A;   /* vert jade — module "365-Jours" (croissance quotidienne) */

  /* Module actif — surchargé par chaque page */
  --module-color:       var(--gold);
  --module-color-rgb:   212, 170, 80;

  /* Typographie */
  --font-display:   'Cinzel', 'Times New Roman', serif;
  --font-body:      'Cormorant Garamond', 'Georgia', serif;
  --font-arabic:    'Noto Naskh Arabic', 'Arabic Typesetting', serif;
  --font-ui:        'Cinzel', serif;

  /* Échelle typographique fluide */
  --text-xs:    clamp(0.70rem,  1.2vw, 0.80rem);
  --text-sm:    clamp(0.85rem,  1.4vw, 0.95rem);
  --text-base:  clamp(1.00rem,  1.6vw, 1.10rem);
  --text-md:    clamp(1.10rem,  1.8vw, 1.25rem);
  --text-lg:    clamp(1.25rem,  2.0vw, 1.50rem);
  --text-xl:    clamp(1.50rem,  2.5vw, 2.00rem);
  --text-2xl:   clamp(2.00rem,  3.5vw, 3.00rem);
  --text-3xl:   clamp(2.50rem,  5.0vw, 4.50rem);
  --text-4xl:   clamp(3.00rem,  7.0vw, 6.00rem);

  /* Espacement */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Rayons */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in:    cubic-bezier(0.4, 0.0, 1, 1);
  --ease-inout: cubic-bezier(0.4, 0.0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-xslow:  700ms;

  /* Ombres */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 20px rgba(212,170,80,0.15);
  --shadow-gold-lg: 0 0 40px rgba(212,170,80,0.25);

  /* Z-index */
  --z-below:   -1;
  --z-base:     0;
  --z-above:    10;
  --z-nav:      100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-toast:    400;
}

/* ─── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Direction RTL pour l'arabe */
[lang="ar"], [dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}

/* ── Taille de police arabe augmentée (+15%) site-wide ─────────
   Appliqué à tous les éléments utilisant la police arabe pour
   une meilleure lisibilité et cohérence visuelle               */
.ar-text,
[class*="-ar"],
[class*="_ar"],
.arabic,
[data-ar],
.mod-card__ar {
  font-family: var(--font-arabic);
  font-size: 1.15em;
  line-height: 1.9;
  letter-spacing: 0;
}
/* Versets coraniques et textes arabes proéminents */
.verset-ar,
.prophet-verset-ar,
.prophet-name-ar,
.hadith-arabic,
.dua-arabic,
.quran-ar,
.sirah-arabic,
.arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.2em;
  line-height: 2;
  letter-spacing: 0;
}
/* Badges et petits textes arabes */
.badge-ar,
.nav-link[data-ar],
.lbl[data-ar] {
  font-family: var(--font-arabic);
  font-size: 1.1em;
}
/* Titres arabes dans les cartes */
.mod-card__ar {
  font-size: 1.25rem;
  line-height: 1.7;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ─── 3. NAVIGATION COMMUNE ─────────────────────────────────── */

/* Barre principale */
.sw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-base) var(--ease-out);
}

.sw-nav.scrolled {
  background: rgba(6, 8, 16, 0.98);
  border-bottom-color: var(--border2);
}

/* Logo */
.sw-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  margin-right: var(--space-8);
}

.sw-nav__logo-text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.10rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.sw-nav__logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--module-color);
  box-shadow: 0 0 8px var(--module-color);
  flex-shrink: 0;
}

/* Navigation centrale */
.sw-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.sw-nav__item {
  position: relative;
}

.sw-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.0vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream3);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
  white-space: nowrap;
}

.sw-nav__link:hover,
.sw-nav__link.active {
  color: var(--gold-l);
  background: rgba(212,170,80,0.08);
}

.sw-nav__link .sw-nav__arrow {
  font-size: 0.6em;
  opacity: 0.6;
  transition: transform var(--duration-fast);
}

.sw-nav__item:hover .sw-nav__arrow {
  transform: rotate(180deg);
}

/* Module badge dans nav */
.sw-nav__module-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--module-color);
  flex-shrink: 0;
}

/* Dropdown */
.sw-nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 260px;
  background: var(--black2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  z-index: var(--z-nav);
}

.sw-nav__item:hover .sw-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sw-nav__dropdown-group {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border3);
}

.sw-nav__dropdown-group:last-child {
  border-bottom: none;
}

.sw-nav__dropdown-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
}

.sw-nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--cream2);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.sw-nav__dropdown-link:hover {
  background: rgba(212,170,80,0.08);
  color: var(--gold-l);
  padding-left: var(--space-4);
}

.sw-nav__dropdown-link .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Fin droite : langue + hamburger */
.sw-nav__end {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
  flex-shrink: 0;
}

/* Sélecteur de langue */
.sw-lang {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(212,170,80,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-2);
}

.sw-lang__btn {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.0vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--cream3);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast);
}

.sw-lang__btn:hover,
.sw-lang__btn.active {
  background: var(--gold);
  color: var(--black);
}

/* Hamburger (mobile) */
.sw-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.sw-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-inout);
}

.sw-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sw-hamburger.open span:nth-child(2) { opacity: 0; }
.sw-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer mobile */
.sw-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black2);
  z-index: calc(var(--z-nav) - 1);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-inout);
  padding: var(--space-6) var(--space-6) var(--space-16);
  border-top: 1px solid var(--border);
}

.sw-drawer.open {
  transform: translateX(0);
}

.sw-drawer__section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border3);
}

.sw-drawer__section:last-child {
  border-bottom: none;
}

.sw-drawer__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.sw-drawer__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--cream2);
  border-bottom: 1px solid var(--border3);
  transition: color var(--duration-fast);
}

.sw-drawer__link:hover { color: var(--gold-l); }

/* ─── 4. BARRE DE MODULE (breadcrumb contextuel) ─────────────── */
.sw-module-bar {
  position: sticky;
  top: 64px;
  z-index: calc(var(--z-nav) - 1);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 var(--space-8);
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--module-color-rgb), 0.20);
  gap: var(--space-4);
}

.sw-module-bar__name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--module-color, var(--gold));
}

.sw-module-bar__sep {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.sw-module-bar__current {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--cream3);
}

/* ─── 5. LAYOUT COMMUN ───────────────────────────────────────── */
.sw-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.sw-container--narrow {
  max-width: 860px;
}

.sw-container--wide {
  max-width: 1440px;
}

.sw-section {
  padding: var(--space-20) 0;
}

.sw-section--sm {
  padding: var(--space-12) 0;
}

.sw-section--lg {
  padding: var(--space-24) 0;
}

/* Page wrapper (après nav 64px) */
.sw-page {
  padding-top: 64px;
  min-height: 100vh;
}

/* ─── 6. TYPOGRAPHIE ─────────────────────────────────────────── */
.sw-heading-display {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--cream);
}

.sw-heading-1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--cream);
}

.sw-heading-2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--cream);
}

.sw-heading-3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
}

.sw-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--module-color, var(--gold));
}

.sw-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--cream2);
}

.sw-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 2.2;
  direction: rtl;
  text-align: right;
  color: var(--gold-l);
}

.sw-arabic--sm {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.sw-gold { color: var(--gold); }
.sw-gold-l { color: var(--gold-l); }
.sw-muted { color: var(--text-muted); }

/* ─── 7. COMPOSANTS UI ───────────────────────────────────────── */

/* Boutons */
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.sw-btn--primary {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}
.sw-btn--primary:hover {
  background: var(--gold-l);
  border-color: var(--gold-l);
  box-shadow: 0 0 24px rgba(212,170,80,0.35);
  transform: translateY(-1px);
}

.sw-btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border2);
}
.sw-btn--outline:hover {
  background: rgba(212,170,80,0.08);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.sw-btn--module {
  background: rgba(var(--module-color-rgb), 0.12);
  color: var(--module-color, var(--gold));
  border: 1px solid rgba(var(--module-color-rgb), 0.30);
}
.sw-btn--module:hover {
  background: rgba(var(--module-color-rgb), 0.22);
  border-color: var(--module-color);
}

.sw-btn--ghost {
  background: transparent;
  color: var(--cream2);
  border: 1px solid var(--border);
}
.sw-btn--ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--cream);
}

/* Cards */
.sw-card {
  background: var(--black2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.sw-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.sw-card--module {
  border-color: rgba(var(--module-color-rgb), 0.20);
}
.sw-card--module:hover {
  border-color: rgba(var(--module-color-rgb), 0.50);
  box-shadow: 0 8px 32px rgba(var(--module-color-rgb), 0.12);
}

/* Trait décoratif en haut de card */
.sw-card--module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(var(--module-color-rgb), 0.6),
    transparent
  );
  opacity: 0;
  transition: opacity var(--duration-base);
}
.sw-card--module:hover::before {
  opacity: 1;
}

/* Séparateur */
.sw-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

.sw-divider--gold {
  border-top-color: var(--border2);
  position: relative;
}
.sw-divider--gold::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--black);
  padding: 0 var(--space-3);
  color: var(--gold);
  font-size: 0.75rem;
}

/* Badge tag */
.sw-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid;
}

.sw-tag--module {
  background: rgba(var(--module-color-rgb), 0.10);
  color: var(--module-color, var(--gold));
  border-color: rgba(var(--module-color-rgb), 0.25);
}

.sw-tag--gold {
  background: rgba(212,170,80,0.10);
  color: var(--gold);
  border-color: rgba(212,170,80,0.25);
}

.sw-tag--live {
  background: rgba(45,125,90,0.15);
  color: #4CAF82;
  border-color: rgba(45,125,90,0.30);
}

/* Icône décorative */
.sw-ornament {
  display: inline-block;
  color: var(--gold);
  opacity: 0.6;
  font-size: var(--text-base);
}

/* ─── 8. FOND & EFFETS DÉCORATIFS ────────────────────────────── */

/* Grain de fond (texture) */
.sw-grain::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: var(--z-overlay);
}

/* Halo radial de module */
.sw-halo {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--module-color-rgb), 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Ligne dorée décorative */
.sw-line-gold {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Géométrie islamique SVG (motif de fond) */
.sw-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AA50' stroke-width='0.3' opacity='0.07'%3E%3Cpolygon points='30,5 55,20 55,45 30,55 5,45 5,20'/%3E%3Cpolygon points='30,15 47,24 47,40 30,48 13,40 13,24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ─── 9. FOOTER COMMUN ───────────────────────────────────────── */
.sw-footer {
  background: var(--black2);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.sw-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.sw-footer__brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: var(--space-4);
  max-width: 280px;
}

.sw-footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.sw-footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--cream3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border3);
  transition: color var(--duration-fast);
}

.sw-footer__col a:hover { color: var(--gold-l); }

.sw-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.10em;
}

.sw-footer__tagline {
  font-family: var(--font-arabic);
  font-size: var(--text-sm);
  color: var(--gold);
  opacity: 0.7;
}

/* ─── 10. ANIMATIONS ─────────────────────────────────────────── */
@keyframes sw-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sw-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sw-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212,170,80,0.15); }
  50%       { box-shadow: 0 0 40px rgba(212,170,80,0.35); }
}

@keyframes sw-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes sw-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.sw-anim-fadeUp { animation: sw-fadeUp var(--duration-slow) var(--ease-out) both; }
.sw-anim-fadeIn { animation: sw-fadeIn var(--duration-slow) var(--ease-out) both; }

/* Stagger delays */
.sw-delay-1 { animation-delay: 100ms; }
.sw-delay-2 { animation-delay: 200ms; }
.sw-delay-3 { animation-delay: 300ms; }
.sw-delay-4 { animation-delay: 400ms; }
.sw-delay-5 { animation-delay: 500ms; }
.sw-delay-6 { animation-delay: 600ms; }

/* ─── 11. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sw-nav__menu { display: none; }
  .sw-hamburger { display: flex; }

  .sw-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .sw-nav { padding: 0 var(--space-5); }
  .sw-container { padding: 0 var(--space-5); }
  .sw-module-bar { padding: 0 var(--space-5); }
  .sw-section { padding: var(--space-12) 0; }
  .sw-section--lg { padding: var(--space-16) 0; }

  .sw-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .sw-footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sw-nav { height: 56px; }
  .sw-page { padding-top: 56px; }
  .sw-drawer { top: 56px; }
  .sw-module-bar { top: 56px; }
}

/* ─── 12. UTILITAIRES ─────────────────────────────────────────── */

/* Skip-to-content — WCAG 2.4.1 Bypass Blocks */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--gold, #D4AA50);
  color: #060810;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 99999;
  transition: top 0.15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #060810;
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col    { display: flex; flex-direction: column; }
.gap-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.w-full { width: 100%; }
.hidden { display: none !important; }

/* Couleur de module en variable locale (override par page) */
.mod-quranlink   { --module-color: var(--color-quranlink);   --module-color-rgb: 45,125,90; }
.mod-quranmap    { --module-color: var(--color-quranmap);    --module-color-rgb: 26,58,92; }
.mod-hadith      { --module-color: var(--color-hadith);      --module-color-rgb: 42,138,138; }
.mod-sirah       { --module-color: var(--color-sirah);       --module-color-rgb: 139,99,64; }
.mod-fiqh        { --module-color: var(--color-fiqh);        --module-color-rgb: 28,95,122; }
.mod-dua         { --module-color: var(--color-dua);         --module-color-rgb: 107,63,160; }
.mod-academy     { --module-color: var(--color-academy);     --module-color-rgb: 59,63,158; }
.mod-islamed     { --module-color: var(--color-islamed);     --module-color-rgb: 196,98,26; }
.mod-mediatheque { --module-color: var(--color-mediatheque); --module-color-rgb: 122,28,59; }
.mod-assistant   { --module-color: var(--color-assistant);   --module-color-rgb: 0,122,138; }
.mod-zakat       { --module-color: var(--color-zakat);       --module-color-rgb: 92,122,28; }
.mod-decouvrir   { --module-color: var(--color-decouvrir);   --module-color-rgb: 196,148,10; }
.mod-prophetes   { --module-color: var(--color-prophetes);   --module-color-rgb: 122,74,28; }
.mod-questions   { --module-color: var(--color-questions);   --module-color-rgb: 74,28,122; }
.mod-journey     { --module-color: var(--color-journey);     --module-color-rgb: 30,138,90; }
