/* ==========================================================================
   STYLE CSS - COMPLEXE MÉDINA TAÏBA (DAHIRA FITYANU SHEIKHY)
   Design System Institutionnel & Spirituel Haute Couture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@400;600;700;800&family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Palette de couleurs institutionnelles & nobles */
  --color-primary: #083328;        /* Vert Émeraude Profond */
  --color-primary-dark: #041c16;   /* Vert Nuit */
  --color-primary-light: #105240;  /* Vert Végétal Médina */
  --color-primary-surface: #edf6f2;
  
  --color-gold: #c59730;           /* Or Impérial */
  --color-gold-light: #e4bb61;     /* Or Clair */
  --color-gold-dark: #916817;      /* Bronze Sacré */
  --color-gold-subtle: rgba(197, 151, 48, 0.12);

  --color-bg: #f9f8f5;             /* Albâtre chaud */
  --color-surface: #ffffff;
  --color-surface-card: #ffffff;
  
  --color-text: #1a2722;
  --color-text-muted: #566760;
  --color-text-light: #f5f8f6;

  --color-border: rgba(8, 51, 40, 0.10);
  --color-border-gold: rgba(197, 151, 48, 0.30);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-arabic-title: 'Amiri', serif;
  --font-arabic-body: 'Cairo', 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 2px 8px rgba(8, 51, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(8, 51, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(8, 51, 40, 0.14);
  --shadow-gold: 0 6px 20px rgba(197, 151, 48, 0.28);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --header-height: 104px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Prise en charge RTL (Arabe) */
html[dir="rtl"] {
  font-family: var(--font-arabic-body);
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .brand-title,
html[dir="rtl"] .hadith-arabic {
  font-family: var(--font-arabic-title);
  letter-spacing: 0;
}

/* Reset général */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, input, select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVBAR INSTITUTIONNELLE (ZERO OVERFLOW GARANTI)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4, 28, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(197, 151, 48, 0.22);
}

/* Barre Institutionnelle Supérieure */
.top-institutional-bar {
  background: #02140f;
  border-bottom: 1px solid rgba(197, 151, 48, 0.20);
  height: 34px;
  display: flex;
  align-items: center;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-badge {
  color: var(--color-gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.top-bar-sep {
  color: rgba(197, 151, 48, 0.4);
}

.top-bar-text {
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-doc-link {
  color: var(--color-gold-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.top-doc-link:hover {
  color: #ffffff;
}

.nav-row {
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

/* Brand */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  height: 54px;
  width: auto;
  max-width: 76px;
  border-radius: 4px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--color-gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 4px;
  position: relative;
  letter-spacing: 0.2px;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Secondary items hidden on horizontal desktop bar to guarantee zero overflow */
.nav-desktop-secondary {
  display: none;
}

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 151, 48, 0.28);
  border-radius: 20px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1;
}

.lang-btn.active {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

/* CTA Don dans la navbar */
.btn-nav-donate {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
}

.btn-nav-donate:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 100%);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}
/* ==========================================================================
   HERO SECTION - INSTITUTIONAL ARCHITECTURAL FOUNDATION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 70px 0;
  background: linear-gradient(180deg, rgba(3, 22, 17, 0.88) 0%, rgba(6, 43, 33, 0.95) 100%),
              url('../assets/images/mosque_complex.jpg') center/cover no-repeat;
  color: #ffffff;
}

.hero-overlay-decor {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(197, 151, 48, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(197, 151, 48, 0.12);
  border: 1px solid rgba(197, 151, 48, 0.40);
  border-radius: var(--radius-sm);
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge .live-dot {
  display: none;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Hadith Calligraphique Cartouche */
.hadith-banner {
  background: rgba(2, 18, 14, 0.85);
  border: 1px solid rgba(197, 151, 48, 0.35);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin: 0 auto 36px auto;
  max-width: 840px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.hadith-banner::before {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #02120e;
  padding: 0 10px;
  color: var(--color-gold);
  font-size: 0.85rem;
}

.hadith-arabic {
  font-family: var(--font-arabic-title);
  font-size: 1.45rem;
  color: var(--color-gold-light);
  margin-bottom: 8px;
  line-height: 1.9;
  font-weight: 700;
}

.hadith-trans {
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  line-height: 1.6;
}

.hadith-source {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 100%);
  box-shadow: 0 8px 24px rgba(197, 151, 48, 0.45);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-hero-investor {
  background: rgba(197, 151, 48, 0.12);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-hero-investor:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Architectural Foundation Ledger */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(2, 18, 14, 0.88);
  border: 1px solid rgba(197, 151, 48, 0.32);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

.stat-card {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(197, 151, 48, 0.18);
  border-radius: 0;
  padding: 22px 14px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:last-child {
  border-right: none;
}

html[dir="rtl"] .stat-card {
  border-right: none;
  border-left: 1px solid rgba(197, 151, 48, 0.18);
}
html[dir="rtl"] .stat-card:last-child {
  border-left: none;
}

.stat-card:hover {
  background: rgba(197, 151, 48, 0.08);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-card h4 {
  font-size: 0.82rem;
  color: var(--color-gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

/* Trust Bar - Sceau et Garanties Légales */
.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

html[dir="rtl"] .hero-trust-strip {
  text-align: right;
}

.trust-card {
  background: rgba(2, 18, 14, 0.70);
  border: 1px solid rgba(197, 151, 48, 0.20);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.trust-card:hover {
  border-color: var(--color-gold);
  background: rgba(2, 18, 14, 0.92);
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.95;
}

.trust-info h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 2px;
  line-height: 1.2;
}

.trust-info p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
  margin: 0;
}

/* ==========================================================================
   ESPACE INVESTISSEURS & BAILLEURS INSTITUTIONNELS (STITCH DESIGN SYSTEM)
   ========================================================================== */
.investors-section {
  background-color: #ffffff;
}

.investor-macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.investor-kpi-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.investor-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.investor-kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.investor-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-serif);
  line-height: 1.2;
}

.investor-kpi-sub {
  font-size: 0.76rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-top: 4px;
}

/* Currency Switcher Bar */
.currency-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 51, 40, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.currency-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.currency-pills {
  display: flex;
  gap: 6px;
}

.currency-pill-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.currency-pill-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-primary);
}

.currency-pill-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Allocation Table */
.investor-allocation-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.allocation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(8, 51, 40, 0.06);
  gap: 16px;
}

.allocation-row:last-child {
  border-bottom: none;
}

.alloc-info {
  flex: 1;
}

.alloc-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.alloc-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.alloc-bar-wrap {
  width: 130px;
  height: 8px;
  background: rgba(8, 51, 40, 0.08);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.alloc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-gold));
  border-radius: 4px;
}

.alloc-amount {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  min-width: 140px;
  flex-shrink: 0;
}

html[dir="rtl"] .alloc-amount {
  text-align: left;
}

/* ODD / SDG Grid */
.sdg-section-wrap {
  margin-bottom: 40px;
}

.sdg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sdg-card {
  border-radius: var(--radius-md);
  padding: 20px 16px;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  transition: var(--transition-smooth);
}

.sdg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sdg-card-1 { background: linear-gradient(135deg, #c5192d, #a21323); } /* SDG 4 Quality Edu */
.sdg-card-2 { background: linear-gradient(135deg, #26bde2, #1b8ea9); } /* SDG 6 Clean Water */
.sdg-card-3 { background: linear-gradient(135deg, #dda63a, #ba8b2e); } /* SDG 2 Zero Hunger */
.sdg-card-4 { background: linear-gradient(135deg, #fcc30b, #cb9c04); color: #1a2722; } /* SDG 7 Clean Energy */

.sdg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.sdg-num {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.sdg-icon {
  font-size: 1.4rem;
}

.sdg-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}

.sdg-metric {
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.94;
}

/* Institutional Data Room */
.dataroom-wrap {
  background: var(--color-primary-surface);
  border: 1px solid rgba(8, 51, 40, 0.12);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.dataroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.dataroom-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.dataroom-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.doc-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(197, 151, 48, 0.12);
  color: var(--color-gold-dark);
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
}

.doc-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.doc-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.btn-doc-download {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.btn-doc-download:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

/* ==========================================================================
   SECTIONS GÉNÉRALES
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background-color: #f2efe8;
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--color-gold-dark);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  margin-bottom: 14px;
}

.section-badge::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--color-gold);
}

.section-badge::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--color-gold);
}

.section-dark .section-badge {
  color: var(--color-gold-light);
  background: transparent;
}

.section-dark .section-badge::before,
.section-dark .section-badge::after {
  background: var(--color-gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  color: var(--color-primary);
  line-height: 1.24;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  line-height: 1.68;
  max-width: 800px;
  margin: 0 auto;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   SECTION GUIDE & VISION
   ========================================================================== */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 46px;
  align-items: center;
}

.guide-image-wrap {
  position: relative;
}

.guide-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-gold);
  object-fit: cover;
  max-height: 520px;
}

.guide-badge-seal {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 96px;
  height: 96px;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  padding: 4px;
}

html[dir="rtl"] .guide-badge-seal {
  right: auto;
  left: -16px;
}

.guide-quote-box {
  background: #ffffff;
  border-left: 3px solid var(--color-gold);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  font-style: italic;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.65;
}

html[dir="rtl"] .guide-quote-box {
  border-left: none;
  border-right: 3px solid var(--color-gold);
}

.guide-paragraphs p {
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   SECTION HÉRITAGE & PAROLES DU FONDATEUR (MESSAGE & POÈME SACRÉ)
   ========================================================================== */
.founder-legacy-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border-gold);
}

.legacy-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px auto;
}

.legacy-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--color-primary);
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.25;
}

html[dir="rtl"] .legacy-title {
  font-family: var(--font-arabic-title);
  font-size: 2.1rem;
}

.legacy-subtitle {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.legacy-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-gold);
  box-shadow: 0 10px 30px rgba(8, 51, 40, 0.06);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legacy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(197, 151, 48, 0.16);
}

.legacy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-primary));
}

.legacy-card-top {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(197, 151, 48, 0.3);
}

.legacy-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 151, 48, 0.12);
  color: var(--color-gold-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.legacy-card-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

/* Bloc Arabe Calligraphique */
.legacy-arabic-wrapper,
.legacy-poem-wrapper {
  background: radial-gradient(circle at top, #faf7f0 0%, #f4ede0 100%);
  border: 1px solid rgba(197, 151, 48, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  margin-bottom: 22px;
  text-align: justify;
  text-align-last: right;
  position: relative;
}

html[dir="rtl"] .legacy-arabic-wrapper,
html[dir="rtl"] .legacy-poem-wrapper {
  text-align: justify;
  text-align-last: right;
}

.arabic-ornament-top {
  text-align: center;
  text-align-last: center;
  font-family: var(--font-arabic-title);
  font-size: 1.45rem;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
}

.arabic-p-lead {
  font-family: var(--font-arabic-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  text-align-last: center;
  margin-bottom: 12px;
}

.arabic-body-p {
  font-family: var(--font-arabic-title);
  font-size: 1.15rem;
  line-height: 2.15;
  color: #1a2822;
  margin-bottom: 14px;
  font-weight: 500;
}

.founder-sig-box {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(197, 151, 48, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

html[dir="rtl"] .founder-sig-box {
  align-items: flex-end;
}

.sig-name {
  font-family: var(--font-arabic-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.sig-title {
  font-size: 0.8rem;
  color: var(--color-gold-dark);
}

/* Poème Bayt Styling */
.arabic-poem-intro {
  text-align: center;
  text-align-last: center;
  font-family: var(--font-arabic-title);
  font-size: 1.25rem;
  color: var(--color-gold-dark);
  margin-bottom: 16px;
}

.poem-bayt-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.poem-bayt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(197, 151, 48, 0.18);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.poem-bayt-row:hover {
  background: #ffffff;
  border-color: var(--color-gold);
}

.shatr {
  flex: 1;
  font-family: var(--font-arabic-title);
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

.shatr.right {
  text-align: right;
  text-align-last: right;
}

.shatr.left {
  text-align: left;
  text-align-last: left;
}

html[dir="rtl"] .shatr.right {
  text-align: right;
  text-align-last: right;
}

html[dir="rtl"] .shatr.left {
  text-align: left;
  text-align-last: left;
}

.shatr-divider {
  color: var(--color-gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  padding: 0 4px;
}

.poem-author-sign {
  margin-top: 20px;
  text-align: center;
  text-align-last: center;
}

.author-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--color-border-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-ar {
  font-family: var(--font-arabic-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.author-sub-ar {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

/* Bloc Traduction */
.legacy-translation-wrapper {
  margin-top: auto;
  background: #fdfdfd;
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

html[dir="rtl"] .legacy-translation-wrapper {
  border-left: none;
  border-right: 3px solid var(--color-gold);
}

.trans-header {
  margin-bottom: 10px;
}

.trans-pill {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--color-gold-dark);
}

.trans-body p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 8px;
}

.trans-body p:last-child {
  margin-bottom: 0;
}

.poem-french-verses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.french-couplet {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(8, 51, 40, 0.08);
}

.french-couplet:last-of-type {
  border-bottom: none;
}

.verse-fr {
  font-size: 0.88rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

.verse-fr.indent {
  padding-left: 18px;
  color: var(--color-text-muted);
}

html[dir="rtl"] .verse-fr.indent {
  padding-left: 0;
  padding-right: 18px;
}

.french-author-tag {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-dark);
}

@media (max-width: 900px) {
  .legacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .shatr {
    font-size: 1rem;
    white-space: normal;
  }
  .poem-bayt-row {
    flex-direction: column;
    text-align: center !important;
    gap: 4px;
  }
  .shatr.right, .shatr.left {
    text-align: center !important;
    text-align-last: center !important;
  }
  .shatr-divider {
    display: none;
  }
}

/* ==========================================================================
   SECTION COMPOSANTES
   ========================================================================== */
.components-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.component-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(8, 51, 40, 0.07);
  border: 1.5px solid rgba(197, 151, 48, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.component-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
  z-index: 2;
  opacity: 0.85;
}

.component-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(8, 51, 40, 0.14);
  border-color: var(--color-gold);
}

.card-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #041c16;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(4, 28, 22, 0.6) 100%);
  pointer-events: none;
}

.component-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(4, 28, 22, 0.92);
  color: var(--color-gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--color-gold);
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html[dir="rtl"] .card-tag {
  left: auto;
  right: 16px;
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.68;
  margin-bottom: 22px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(197, 151, 48, 0.18);
  gap: 12px;
  flex-wrap: wrap;
}

.card-cost {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-gold-dark);
  font-size: 0.92rem;
  letter-spacing: 0.3px;
}

.btn-card-action {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-gold);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(197, 151, 48, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-card-action:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 151, 48, 0.4);
}

/* ==========================================================================
   SECTION DAARA 3D & PLANS
   ========================================================================== */
.daara-viewer-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.daara-tabs-nav {
  display: flex;
  background: var(--color-primary-dark);
  padding: 8px 12px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.daara-tabs-nav::-webkit-scrollbar {
  display: none;
}

.viewer-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(197, 151, 48, 0.22);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.viewer-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-gold);
}

.viewer-tab-btn.active {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold-light);
  font-weight: 700;
}

.daara-display-area {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
}

.daara-image-frame {
  background: #f0f4f2;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.daara-image-frame img {
  max-height: 440px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.daara-info-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.daara-info-panel p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.daara-spec-list {
  list-style: none;
  margin-bottom: 24px;
}

.daara-spec-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
}

html[dir="rtl"] .daara-spec-list li {
  padding-left: 0;
  padding-right: 24px;
}

.daara-spec-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold-dark);
  font-weight: 800;
}

html[dir="rtl"] .daara-spec-list li::before {
  left: auto;
  right: 0;
}

/* ==========================================================================
   SECTION PLAN DIRECTEUR & VISION LONG TERME (VILLAGE SAINT - 138 940 m²)
   ========================================================================== */
.masterplan-section {
  background: radial-gradient(circle at 50% 15%, rgba(16, 82, 64, 0.45) 0%, rgba(2, 20, 15, 0.98) 100%), #02140f;
  color: #ffffff;
  border-top: 1px solid rgba(197, 151, 48, 0.25);
  border-bottom: 1px solid rgba(197, 151, 48, 0.25);
  position: relative;
}

/* ==========================================================================
   SÉLECTEUR DE VUES ARCHITECTURAL (DUAL-VIEW SWITCHER HAUT DE GAMME)
   ========================================================================== */
.masterplan-view-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto 36px auto;
}

.mp-switch-tab {
  background: rgba(3, 26, 20, 0.82);
  border: 1.5px solid rgba(197, 151, 48, 0.28);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  color: #ffffff;
}

.mp-switch-tab:hover {
  background: rgba(8, 48, 38, 0.92);
  border-color: rgba(197, 151, 48, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mp-switch-tab.active {
  background: linear-gradient(135deg, rgba(16, 75, 59, 0.98) 0%, rgba(5, 34, 26, 0.98) 100%);
  border-color: var(--color-gold);
  box-shadow: 0 10px 34px rgba(197, 151, 48, 0.32), inset 0 0 24px rgba(197, 151, 48, 0.15);
}

.mp-switch-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 3px 3px 0 0;
}

.tab-chip {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #02120e;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 9px;
  border-radius: 10px;
  text-transform: uppercase;
}

.tab-chip.futuristic-chip {
  border-color: #26bde2;
  color: #5ed8f7;
}

.tab-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.tab-text {
  display: flex;
  flex-direction: column;
}

.tab-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.mp-switch-tab.active .tab-title {
  color: var(--color-gold-light);
}

.tab-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
}

@media (max-width: 720px) {
  .masterplan-view-switcher {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.masterplan-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.mp-stat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 151, 48, 0.22);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.mp-stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.mp-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold-light);
  line-height: 1.2;
  margin-bottom: 4px;
}

.mp-stat-label {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.3;
}

.map-interactive-container {
  background: #041c16;
  border: 1.5px solid rgba(197, 151, 48, 0.38);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.map-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #02120e;
  border-bottom: 1px solid rgba(197, 151, 48, 0.25);
  padding: 12px 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  flex-wrap: wrap;
  gap: 12px;
}

.map-coordinates {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-gold-light);
  max-width: 620px;
}

.map-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-mini-toggle {
  display: inline-flex;
  background: rgba(3, 26, 20, 0.9);
  border: 1px solid rgba(197, 151, 48, 0.32);
  border-radius: 20px;
  padding: 3px;
  gap: 3px;
}

.mini-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-toggle-btn:hover {
  color: #ffffff;
}

.mini-toggle-btn.active {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-map-expand {
  background: rgba(197, 151, 48, 0.15);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-map-expand:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

/* Lightbox Modal Header with Switcher */
.map-lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.map-lightbox-switcher {
  display: inline-flex;
  gap: 6px;
  background: rgba(2, 18, 14, 0.9);
  padding: 4px;
  border-radius: 24px;
  border: 1px solid rgba(197, 151, 48, 0.35);
}

.modal-mp-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-mp-tab:hover {
  color: #ffffff;
}

.modal-mp-tab.active {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-primary-dark);
  font-weight: 700;
}

.map-display-wrapper {
  position: relative;
  width: 100%;
  cursor: pointer;
  background: #010d0a;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.masterplan-img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.map-display-wrapper:hover .masterplan-img {
  transform: scale(1.02);
}

.map-hover-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 28, 22, 0.9);
  border: 1px solid var(--color-gold);
  padding: 8px 18px;
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.map-display-wrapper:hover .map-hover-hint {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

.map-zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: #031913;
  border-top: 1px solid rgba(197, 151, 48, 0.2);
}

.zone-pill-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition-smooth);
}

.zone-pill-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

.zone-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zone-pill-card h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 700;
}

.zone-pill-card p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  margin: 0;
}

/* Modal Lightbox Plein Écran */
.map-lightbox-window {
  background: #02140f;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-lg);
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.map-lightbox-header {
  padding: 14px 20px;
  background: #041c16;
  border-bottom: 1px solid rgba(197, 151, 48, 0.3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-lightbox-body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #010b08;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.map-lightbox-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==========================================================================
   SECTION SIMULATEUR DE SADAQA
   ========================================================================== */
.lots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.lot-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.lot-card:hover, .lot-card.selected {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.lot-card.selected {
  background: #fcf9f2;
}

.lot-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.lot-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.lot-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  margin-bottom: 2px;
}

.lot-eq {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.lot-btn {
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 8px 14px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lot-card.selected .lot-btn, .lot-card:hover .lot-btn {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary-dark);
}

.custom-donation-box {
  background: #ffffff;
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.custom-input-group {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.custom-input-group input {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  width: 260px;
  text-align: center;
  color: var(--color-primary);
}

.custom-input-group input:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* ==========================================================================
   SECTION PHASES & BUDGET
   ========================================================================== */
.phases-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phase-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.phase-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
}

.phase-number {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 1rem;
}

.phase-card h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.phase-budget {
  color: var(--color-gold-light);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.phase-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ==========================================================================
   SECTION ÉQUIPE
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.team-photo-wrap {
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: #041c16;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-info {
  padding: 20px 16px;
}

.team-role {
  display: inline-block;
  color: var(--color-gold-dark);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.team-bio {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   MODAL DE PAIEMENT (NETTOYÉ, ÉLÉGANT, AUCUN UPLOAD VISIBLE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 24, 19, 0.84);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-gold);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: var(--transition-smooth);
}

html[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 16px;
}

.modal-close-btn:hover {
  background: var(--color-gold);
  color: #ffffff;
}

.modal-header {
  padding: 28px 24px 12px 24px;
  text-align: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.pay-tabs {
  display: flex;
  background: #f0f4f2;
  margin: 0 24px 20px 24px;
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
}

.pay-tab-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-tab-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pay-tab-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.pay-tab-emoji,
.pay-tab-svg {
  width: 20px;
  height: 20px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--color-gold-dark);
  transition: transform 0.2s ease;
}

.pay-tab-btn.active .pay-tab-svg {
  color: var(--color-primary-dark);
}

.qr-brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(197, 151, 48, 0.2);
  text-align: left;
}

html[dir="rtl"] .qr-brand-header {
  text-align: right;
}

.qr-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.qr-brand-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.qr-brand-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.pay-content-body {
  padding: 0 24px 28px 24px;
}

.qr-box-card {
  background: #faf9f6;
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.qr-image-display {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px auto;
  border-radius: 12px;
  padding: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merchant-code-display {
  background: #eef5f1;
  border: 1px solid var(--color-primary-light);
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  gap: 10px;
  margin-bottom: 10px;
}

.merchant-code-display strong {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.btn-copy-sm {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy-sm:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

.donor-form {
  background: #fbf9f5;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.form-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.bank-info-card {
  background: #f8faf9;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.88rem;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-label {
  color: var(--color-text-muted);
}

.bank-val {
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   ATTESTATION / REÇU
   ========================================================================== */
.receipt-paper {
  background: #fff;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 28px;
  background-image: radial-gradient(rgba(197, 151, 48, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  margin: 16px 0;
}

.receipt-header {
  text-align: center;
  border-bottom: 1.5px solid var(--color-gold);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.receipt-header h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-primary);
}

.receipt-body {
  margin-bottom: 18px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  font-size: 0.88rem;
}

.receipt-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
}

.receipt-stamp {
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  transform: rotate(-10deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #ffffff;
  padding: 70px 0 24px 0;
  border-top: 2px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 0.96rem;
  color: var(--color-gold-light);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-icon-svg {
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-primary-dark);
  color: #ffffff;
  border: 1px solid var(--color-gold);
  padding: 10px 20px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition-smooth);
}

html[dir="rtl"] .toast-notice {
  right: auto;
  left: 24px;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   NOUVEAUX COMPOSANTS (CONTACT, DRAWER, BARRE FLOTTANTE)
   ========================================================================== */

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  background: #ffffff;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(197, 151, 48, 0.12) 0%, rgba(13, 74, 53, 0.08) 100%);
  border: 1px solid rgba(197, 151, 48, 0.35);
  color: var(--color-gold-dark);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(13, 74, 53, 0.06);
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(197, 151, 48, 0.35);
  border-color: var(--color-gold);
}

.contact-card h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.contact-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact-text a {
  color: var(--color-primary-light);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.contact-text a:hover {
  color: var(--color-gold-dark);
}

/* Éléments exclusifs au Drawer Mobile (Masqués par défaut sur Desktop) */
.nav-backdrop {
  display: none;
}

.nav-drawer-header,
.nav-drawer-footer {
  display: none;
}

/* Barre Flottante Mobile (Masquée sur Desktop) */
.mobile-bottom-bar {
  display: none;
}

/* ==========================================================================
   ARCHITECTURE RESPONSIVE HAUTE PERFORMANCE (TABLETTES & MOBILES)
   ========================================================================== */

/* --- Tablettes & Drawer Navigation Mobile (<= 1150px) --- */
@media (max-width: 1150px) {
  .top-bar-text,
  .top-bar-sep {
    display: none;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  /* Grilles sur 2 colonnes ou 1 colonne */
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    border-bottom: 1px solid rgba(197, 151, 48, 0.18);
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
  .stat-card:nth-child(3) {
    border-bottom: none;
  }
  .stat-card:nth-child(4) {
    border-bottom: none;
    border-right: none;
  }
  
  .hero-trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .investor-macro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .masterplan-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .map-zones-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sdg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .lots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .dataroom-grid,
  .guide-grid,
  .components-grid,
  .daara-display-area,
  .phases-timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
    gap: 20px;
  }

  /* Hamburger Toggle */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 151, 48, 0.35);
    font-size: 1.35rem;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
  }
  .mobile-nav-toggle:active {
    transform: scale(0.95);
    background: var(--color-gold);
    color: var(--color-primary-dark);
  }

  /* Backdrop assombri */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 18, 14, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Drawer Mobile latéral fluide avec zéro débordement */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(330px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #05211a 0%, #02120e 100%);
    border-left: 2px solid var(--color-gold);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu .nav-desktop-secondary {
    display: block !important;
  }
  
  html[dir="rtl"] .nav-menu {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 2px solid var(--color-gold);
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.65);
    transform: translateX(-105%);
  }

  .nav-menu.active {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) !important;
  }

  /* Header interne du Drawer */
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    background: rgba(2, 20, 15, 0.96);
    border-bottom: 1px solid rgba(197, 151, 48, 0.25);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .drawer-logo {
    height: 42px;
    width: auto;
    max-width: 58px;
    border-radius: 4px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
  }
  .drawer-text {
    display: flex;
    flex-direction: column;
  }
  .drawer-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
  }
  .drawer-subtitle {
    font-size: 0.62rem;
    color: var(--color-gold-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .nav-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 151, 48, 0.35);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }
  .nav-drawer-close:hover,
  .nav-drawer-close:active {
    background: var(--color-gold);
    color: var(--color-primary-dark);
  }

  /* Liens dans le Drawer */
  .nav-menu > li:not(.nav-drawer-header):not(.nav-drawer-footer) {
    padding: 2px 14px;
  }
  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    border-bottom: 1px solid rgba(197, 151, 48, 0.12);
    transition: var(--transition-smooth);
    min-height: 44px;
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: rgba(197, 151, 48, 0.16);
    color: var(--color-gold-light);
    transform: translateX(4px);
  }
  html[dir="rtl"] .nav-menu .nav-link:hover,
  html[dir="rtl"] .nav-menu .nav-link.active {
    transform: translateX(-4px);
  }

  /* Footer interne du Drawer */
  .nav-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
    margin-top: auto;
    background: rgba(2, 20, 15, 0.98);
    border-top: 1px solid rgba(197, 151, 48, 0.25);
  }
  .btn-drawer-donate {
    width: 100%;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
  }
  .btn-drawer-donate:active {
    transform: scale(0.98);
  }
  .drawer-doc-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .drawer-doc-item {
    font-size: 0.78rem;
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
  }
}

/* --- Mobiles & Tablettes Portrait (<= 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .top-institutional-bar {
    display: none;
  }
  
  .nav-row {
    height: 64px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }
  
  .section-subtitle {
    font-size: 0.88rem;
    margin-bottom: 22px;
  }

  /* Barre Flottante d'Actions Rapides */
  .mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(3, 22, 17, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid var(--color-gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    z-index: 1000;
  }
  
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  
  .mobile-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    min-width: 70px;
    transition: var(--transition-smooth);
  }
  .mobile-bar-btn:active {
    transform: scale(0.94);
  }
  .mobile-bar-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-bar-icon svg {
    display: block;
  }
  .mobile-bar-donate {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    color: var(--color-primary-dark) !important;
    border-radius: 22px;
    padding: 8px 16px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(197, 151, 48, 0.4);
    transform: translateY(-4px);
  }
  .mobile-bar-donate .mobile-bar-icon {
    font-size: 1.05rem;
  }
  .mobile-bar-whatsapp {
    color: #25d366;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 82px 0 34px 0;
    min-height: auto;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hadith-banner {
    padding: 14px;
    margin-bottom: 26px;
  }
  .hadith-arabic {
    font-size: 1.15rem;
    line-height: 1.7;
  }
  .hadith-trans {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  
  /* CTAs Hero en colonne */
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 32px auto;
    gap: 10px;
  }
  .hero-ctas button,
  .hero-ctas a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  /* Guide / Vision */
  .guide-image-wrap {
    max-width: 280px;
    margin: 0 auto 20px auto;
  }
  .arch-frame {
    height: 320px;
  }
  .guide-badge-seal {
    width: 60px;
    height: 60px;
    bottom: -10px;
    right: -10px;
  }
  html[dir="rtl"] .guide-badge-seal {
    right: auto;
    left: -10px;
  }
  .guide-quote-box {
    padding: 14px 16px;
  }
  .guide-quote-box p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* Daara 3D Viewer */
  .daara-tabs-nav {
    padding: 6px 8px;
    gap: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .daara-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .viewer-tab-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }
  .daara-display-area {
    padding: 16px 14px;
    gap: 18px;
  }
  .daara-image-frame {
    min-height: 200px;
    height: 240px;
    padding: 8px;
  }
  .daara-image-frame img {
    max-height: 220px;
    object-fit: contain;
  }

  /* Masterplan Strip en 2 colonnes avec 1ère en vedette */
  .masterplan-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  .masterplan-stats-strip .mp-stat-item:first-child {
    grid-column: span 2;
    background: rgba(197, 151, 48, 0.16);
    border-color: var(--color-gold);
  }
  .mp-stat-item {
    padding: 12px 10px;
  }
  .mp-stat-num {
    font-size: 1.15rem;
  }
  .mp-stat-label {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  /* Carte interactive */
  .map-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 14px;
  }
  .map-coordinates {
    font-size: 0.72rem;
    line-height: 1.4;
  }
  .btn-map-expand {
    width: 100%;
    justify-content: center;
    padding: 8px;
  }
  .map-display-wrapper {
    height: 230px;
  }
  .map-hover-hint {
    font-size: 0.72rem;
    padding: 6px 12px;
    bottom: 8px;
    width: 90%;
    text-align: center;
    justify-content: center;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
    gap: 14px;
  }
  .contact-card {
    padding: 20px 16px;
  }
}

/* --- Smartphones Standards (<= 600px) --- */
@media (max-width: 600px) {
  .brand-title {
    font-size: 0.92rem;
  }
  .brand-subtitle {
    display: none;
  }
  .btn-nav-donate .btn-donate-text {
    display: none;
  }
  .btn-nav-donate {
    padding: 7px 10px;
    border-radius: 18px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 0.68rem;
  }
  
  .hero-title {
    font-size: 1.62rem;
  }
  .hero-trust-strip {
    grid-template-columns: 1fr;
  }
  .trust-card {
    padding: 10px 14px;
  }
  
  /* Lots de don */
  .lots-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lot-card {
    padding: 18px 16px;
  }
  .lot-price {
    font-size: 1.25rem;
  }
  .lot-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.85rem;
  }
  
  /* Don personnalisé */
  .custom-donation-box {
    padding: 18px 14px;
  }
  .custom-input-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 12px auto 0 auto;
    gap: 10px;
  }
  .custom-input-group input {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }
  .custom-input-group button {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  /* Devises */
  .currency-bar-wrap {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }
  .currency-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 300px;
  }
  .currency-pill-btn {
    padding: 7px 4px;
    font-size: 0.74rem;
    text-align: center;
  }

  /* Composantes footer */
  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }
  .btn-card-action {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  /* Allocation CAPEX */
  .allocation-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0;
  }
  .alloc-bar-wrap {
    width: 100%;
    height: 8px;
  }
  .alloc-amount {
    text-align: left;
    min-width: auto;
    font-size: 0.95rem;
  }
  html[dir="rtl"] .alloc-amount {
    text-align: right;
  }

  .sdg-grid {
    grid-template-columns: 1fr;
  }
  .map-zones-grid {
    grid-template-columns: 1fr;
  }

  /* Modals Touch-Friendly */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-window {
    max-height: 94vh;
    max-height: 94dvh;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
  }
  .modal-header {
    padding: 18px 14px 6px 14px;
  }
  .modal-header h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }
  #modal-lot-amount {
    font-size: 1.25rem !important;
  }
  .pay-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0 10px 12px 10px;
    padding: 3px;
  }
  .pay-tab-btn {
    padding: 8px 2px;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .pay-tab-img {
    width: 18px;
    height: 18px;
  }
  .pay-tab-emoji {
    font-size: 1rem;
  }
  .pay-content-body {
    padding: 0 12px 18px 12px;
  }
  .qr-box-card {
    padding: 14px 10px;
  }
  .qr-image-display img {
    max-width: 140px;
  }
  .merchant-code-display {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    font-size: 0.82rem;
  }
  .bank-info-card {
    padding: 12px 10px;
  }
  .bank-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px 0;
    font-size: 0.8rem;
  }

  /* Formulaires : 16px minimum pour empêcher le zoom forcé iOS Safari */
  .form-input {
    font-size: 16px !important;
    padding: 11px 12px;
  }
  .donor-form .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Reçu / Attestation mobile */
  .receipt-paper {
    padding: 16px 12px;
    margin: 8px 0;
  }
  .receipt-header h2 {
    font-size: 1.05rem;
  }
  .receipt-row {
    font-size: 0.8rem;
    padding: 6px 0;
  }
  .receipt-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .receipt-stamp {
    margin: 0 auto;
  }

  /* Lightbox HD */
  .map-lightbox-window {
    width: 98vw;
    height: 92vh;
    border-radius: var(--radius-md);
  }
  .map-lightbox-header {
    padding: 10px 12px;
  }
  .map-lightbox-header h3 {
    font-size: 0.88rem !important;
  }
  
  /* Toast */
  .toast-notice {
    left: 14px;
    right: 14px;
    bottom: 74px;
    width: calc(100% - 28px);
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding: 8px 14px;
  }
}

/* --- Petits Écrans & Compact Smartphones (<= 400px) --- */
@media (max-width: 400px) {
  .brand-logo {
    height: 36px;
    width: auto;
    max-width: 50px;
  }
  .brand-title {
    font-size: 0.82rem;
  }
  .nav-container {
    gap: 8px;
  }
  .nav-actions {
    gap: 6px;
  }
  .hero-title {
    font-size: 1.45rem;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .stat-card {
    padding: 8px 4px;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .stat-card h4 {
    font-size: 0.74rem;
  }
  .stat-card p {
    font-size: 0.64rem;
  }
  .investor-macro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .investor-kpi-card {
    padding: 10px 6px;
  }
  .investor-kpi-value {
    font-size: 0.95rem;
  }
  .investor-kpi-label {
    font-size: 0.66rem;
  }
  .mobile-bar-btn {
    padding: 4px 6px;
    min-width: 60px;
    font-size: 0.64rem;
  }
  .mobile-bar-donate {
    padding: 6px 12px;
  }
}

/* ==========================================================================
   SECTION GALERIE PHOTOS TERRAIN & RÉALITÉS VÉCUES
   ========================================================================== */
.gallery-section {
  background: radial-gradient(circle at 50% 30%, rgba(13, 56, 43, 0.45) 0%, #03140f 100%), #02110d;
  color: #ffffff;
  border-top: 1px solid rgba(197, 151, 48, 0.25);
  border-bottom: 1px solid rgba(197, 151, 48, 0.25);
  position: relative;
}

.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

@media (max-width: 768px) {
  .gallery-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 4px 10px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .gallery-filter-btn {
    flex-shrink: 0;
  }
}

.gallery-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 151, 48, 0.28);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-filter-btn:hover {
  background: rgba(197, 151, 48, 0.15);
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}

.gallery-filter-btn.active {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold-light);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(197, 151, 48, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 151, 48, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(197, 151, 48, 0.2);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb-wrap img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  background: rgba(197, 151, 48, 0.9);
  color: #03140f;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-cat-pill {
  background: rgba(3, 20, 15, 0.8);
  border: 1px solid rgba(197, 151, 48, 0.4);
  color: var(--color-gold-light);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.gallery-caption {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-caption h4 {
  font-size: 0.92rem;
  color: var(--color-gold-light);
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  line-height: 1.3;
}

.gallery-caption p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.45;
}

/* Lightbox Modal Photos */
.photo-lightbox-window {
  background: #03140f;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 94%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.28s ease;
}

.photo-lightbox-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.photo-lightbox-content img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #000000;
}

.photo-modal-details {
  padding: 18px 24px 22px 24px;
  background: #02110d;
  border-top: 1px solid rgba(197, 151, 48, 0.2);
}

.photo-modal-details h3 {
  color: var(--color-gold-light);
  font-size: 1.15rem;
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
}

.photo-modal-details p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


