/* ============================================================
   ACSR — Mosquée Rahma | Redesign "Al-Rahma Sanctuary"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --dark:          #0a1f12;
  --dark-2:        #0f2e1c;
  --dark-3:        #163d26;
  --green:         #1a5c32;
  --green-light:   #2d7a47;
  --gold:          #c8a84b;
  --gold-light:    #e0c068;
  --gold-pale:     #fdf6e3;
  --cream:         #f9f5ef;
  --cream-2:       #f0ebe1;
  --white:         #ffffff;
  --text:          #1a1a1a;
  --text-mid:      #4a4a4a;
  --text-light:    #888;
  --border:        #e2dbd0;
  --border-dark:   rgba(255,255,255,0.08);
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.15);
  --radius-sm:     4px;
  --radius-md:     10px;
  --radius-lg:     20px;
  --transition:    0.35s cubic-bezier(0.4,0,0.2,1);
  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-arabic:   'Noto Sans Arabic', 'Arial', sans-serif;
  --nav-height:    76px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }

/* ── Islamic Geometric Pattern (SVG inline) ── */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.4' opacity='0.07'%3E%3Cpolygon points='40,4 52,28 78,28 58,44 66,70 40,54 14,70 22,44 2,28 28,28'/%3E%3C/g%3E%3C/svg%3E");
}
.pattern-bg-gold {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23c8a84b' stroke-width='0.4' opacity='0.12'%3E%3Cpolygon points='40,4 52,28 78,28 58,44 66,70 40,54 14,70 22,44 2,28 28,28'/%3E%3C/g%3E%3C/svg%3E");
}
.pattern-bg-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%231a5c32' stroke-width='0.4' opacity='0.06'%3E%3Cpolygon points='40,4 52,28 78,28 58,44 66,70 40,54 14,70 22,44 2,28 28,28'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.section      { padding: 112px 0; }
.section-sm   { padding: 72px 0; }
.section-dark { background: var(--dark); }
.section-dark-2 { background: var(--dark-2); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

/* ── Overline (label au-dessus titre) ── */
.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.overline::before, .overline::after {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--gold); opacity: 0.6;
}
.overline-light { color: rgba(255,255,255,0.5); }
.overline-light::before, .overline-light::after { background: rgba(255,255,255,0.3); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.on-dark { background: transparent; }
.navbar.scrolled {
  background: rgba(9, 30, 17, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.navbar .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-links a {
  padding: 8px 16px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.72);
  position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* ── Nav Dropdowns ── */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 16px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.72); background: none; border: none;
  cursor: pointer; font-family: inherit; position: relative;
  transition: color var(--transition);
}
.nav-dropdown-btn::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown-btn.active { color: var(--white); }
.nav-dropdown:hover .nav-dropdown-btn::after,
.nav-dropdown-btn.active::after { transform: scaleX(1); }
.nav-dropdown-chevron { width: 11px; height: 11px; transition: transform var(--transition); flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  padding-top: 8px; /* pont invisible — évite le gap entre bouton et menu */
  background: transparent;
  min-width: 192px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}
.nav-dropdown-menu-inner {
  background: rgba(9,30,17,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu-inner a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; font-size: 0.83rem; font-weight: 500;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}
.nav-dropdown-menu-inner a:last-child { border-bottom: none; }
.nav-dropdown-menu-inner a:hover { color: var(--gold); background: rgba(255,255,255,0.04); padding-left: 26px; }
.nav-dropdown-menu-inner a.active { color: var(--gold); }
.nav-dropdown-menu-inner a::after { display: none !important; }
.nav-drop-icon { font-size: 0.7rem; opacity: 0.45; width: 14px; text-align: center; flex-shrink: 0; }

/* Mobile nav group accordion */
.nav-mobile-group-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 0; background: none; border: none; cursor: pointer;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8; font-family: inherit;
  border-bottom: 1px solid var(--border-dark);
}
.nav-mobile-chevron { width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.3s ease; stroke: var(--gold); }
.nav-mobile-group-btn[aria-expanded="false"] .nav-mobile-chevron { transform: rotate(-90deg); }
.nav-mobile-sub-group { overflow: hidden; max-height: 200px; transition: max-height 0.35s ease; display: flex; flex-direction: column; }
.nav-mobile-sub-group.closed { max-height: 0; }
.nav-mobile a.nav-sub { padding-left: 16px; color: rgba(255,255,255,0.5); font-size: 0.9rem; display: block; }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
  transition: border-color var(--transition), background var(--transition);
}
.lang-btn:hover { border-color: var(--gold); color: var(--white); }
.lang-btn svg { width: 14px; height: 14px; transition: transform var(--transition); }
.lang-selector.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--dark-2); border: 1px solid var(--border-dark);
  border-radius: var(--radius-md); box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  min-width: 150px; max-width: min(220px, calc(100vw - 24px));
  z-index: 1002;
  overflow: hidden;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.lang-selector.open .lang-dropdown { opacity: 1; transform: translateY(0); pointer-events: all; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.7); cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.lang-option.active { color: var(--gold); }
.lang-option .flag { font-size: 1rem; }

/* Donate button nav */
.btn-donate-nav {
  padding: 9px 22px;
  background: var(--gold);
  color: var(--dark) !important;
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-donate-nav:hover {
  background: var(--gold-light); color: var(--dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,168,75,0.4);
}

/* Admin lock button */
.btn-admin-lock {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.btn-admin-lock:hover { color: var(--gold); background: rgba(200,168,75,0.1); }
.btn-admin-lock i { font-size: 0.85rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 10px; margin: 0;
  min-width: 44px; min-height: 44px; box-sizing: border-box;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column;
  position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: var(--dark); border-bottom: 1px solid var(--border-dark);
  padding: 16px max(24px, env(safe-area-inset-right)) max(28px, calc(16px + env(safe-area-inset-bottom))) max(24px, env(safe-area-inset-left));
  gap: 2px; z-index: 999;
  max-height: calc(100vh - var(--nav-height) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 13px 0; font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .btn-donate-nav { margin-top: 12px; text-align: center; display: block; padding: 14px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold); color: var(--dark);
}
.btn-gold:hover { box-shadow: 0 8px 28px rgba(200,168,75,0.45); background: var(--gold-light); }
.btn-white {
  background: var(--white); color: var(--dark);
}
.btn-white:hover { box-shadow: 0 8px 28px rgba(255,255,255,0.2); }
.btn-outline-white {
  background: transparent; border: 1px solid rgba(255,255,255,0.4); color: var(--white);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-gold {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
}
.btn-outline-gold:hover { background: rgba(200,168,75,0.1); }
.btn-dark {
  background: var(--dark); color: var(--white);
}
.btn-dark:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.btn-lg { padding: 17px 40px; font-size: 0.95rem; }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* ── Page Hero (pages intérieures) ── */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--dark); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.4' opacity='0.05'%3E%3Cpolygon points='40,4 52,28 78,28 58,44 66,70 40,54 14,70 22,44 2,28 28,28'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero .lead { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 560px; margin-top: 16px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  margin-bottom: 28px; font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.breadcrumb a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--gold); }

/* ── Gold divider ── */
.gold-line {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 24px 0;
}
.gold-line-center { margin: 24px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 96px; height: 3px; }

/* ── Stat large ── */
.stats-strip { background: var(--dark); }
.stats-strip .container-wide {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-block {
  padding: 52px 32px; text-align: center;
  border-right: 1px solid var(--border-dark);
  position: relative;
}
.stat-block:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-lbl { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ── Progress ── */
.progress-wrap { margin: 28px 0; }
.progress-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.progress-collected { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 300; color: var(--white); }
.progress-collected sup { font-size: 1rem; opacity: 0.6; }
.progress-goal-txt { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-align: right; }
.progress-goal-val { font-family: var(--font-heading); font-size: 1.2rem; color: rgba(255,255,255,0.7); }
.progress-track { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 2s cubic-bezier(0.4,0,0.2,1);
}
.progress-pct { font-size: 0.8rem; color: var(--gold); margin-top: 10px; letter-spacing: 0.05em; }

/* ── Prayer cards ── */
.prayer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.prayer-card {
  background: var(--dark-2); padding: 32px 20px; text-align: center;
  transition: background var(--transition);
  position: relative; overflow: hidden;
}
.prayer-card::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--transition);
}
.prayer-card:hover::before { width: 100%; }
.prayer-card.next { background: var(--dark-3); }
.prayer-card.next::before { width: 100%; }
.prayer-icon { font-size: 1.4rem; margin-bottom: 12px; opacity: 0.9; }
.prayer-name {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 10px;
}
.prayer-card.next .prayer-name { color: var(--gold); }
.prayer-time { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 300; color: var(--white); }
.prayer-badge {
  display: inline-block; margin-top: 8px;
  background: var(--gold); color: var(--dark);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}

/* ── Cards ── */
.card-dark {
  background: var(--dark-2); border: 1px solid var(--border-dark);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.card-dark:hover { transform: translateY(-4px); border-color: rgba(200,168,75,0.3); }
.card-light {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-light:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── News cards ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--dark-2); position: relative; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 28px; }
.news-tag {
  display: inline-block; padding: 4px 12px; border-radius: 2px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(200,168,75,0.12); color: var(--gold); margin-bottom: 12px;
}
.news-tag.green { background: rgba(26,92,50,0.1); color: var(--green); }
.news-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 10px; line-height: 1.45; }
.news-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; justify-content: space-between; }
.news-date { font-size: 0.78rem; color: var(--text-light); }
.news-read { font-size: 0.82rem; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 6px; transition: gap var(--transition); }
.news-read:hover { gap: 10px; }

/* ── Spec items ── */
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.spec-item {
  background: var(--dark-2); padding: 28px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: background var(--transition);
}
.spec-item:hover { background: var(--dark-3); }
.spec-num {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 300;
  color: var(--gold); line-height: 1; flex-shrink: 0; min-width: 48px;
}
.spec-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.spec-value { font-size: 0.95rem; color: rgba(255,255,255,0.8); font-weight: 500; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 48px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--gold), rgba(200,168,75,0.1)); }
.timeline-item { position: relative; margin-bottom: 56px; }
.timeline-item::before {
  content: ''; position: absolute; left: -54px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(200,168,75,0.2);
}
.timeline-item.upcoming::before { background: rgba(255,255,255,0.2); box-shadow: none; border: 1px solid rgba(255,255,255,0.2); }
.timeline-status { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.timeline-status.upcoming { color: rgba(255,255,255,0.3); }
.timeline-item h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 6px; }
.timeline-budget { font-family: var(--font-heading); font-size: 1.1rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; color: rgba(255,255,255,0.45); }

/* ── Why list ── */
.why-list { list-style: none; padding: 0; }
.why-list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border-dark);
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
}
.why-list li:last-child { border-bottom: none; }
.why-num {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 300;
  color: var(--gold); flex-shrink: 0; min-width: 28px; line-height: 1.4;
}

/* ── Form ── */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }
.form-label-dark { color: rgba(255,255,255,0.4); }
.form-control {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; background: var(--white); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,168,75,0.12); }
.form-control::placeholder { color: #bbb; }
textarea.form-control { resize: vertical; min-height: 150px; }
.form-control-dark {
  background: rgba(255,255,255,0.05); border-color: var(--border-dark); color: var(--white);
}
.form-control-dark::placeholder { color: rgba(255,255,255,0.25); }
.form-control-dark:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,168,75,0.1); }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; display: none; }
.form-alert.success { background: rgba(26,92,50,0.15); color: #2d7a47; border-left: 3px solid var(--green); }
.form-alert.error   { background: rgba(192,57,43,0.1); color: #c0392b; border-left: 3px solid #c0392b; }
.form-alert.show    { display: block; }

/* ── Info contacts ── */
.info-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border-dark);
}
.info-row:last-child { border-bottom: none; }
.info-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.info-icon svg { width: 18px; height: 18px; color: var(--gold); }
.info-lbl { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
.info-val { font-size: 0.92rem; color: rgba(255,255,255,0.75); white-space: pre-line; }
.info-val a { color: var(--gold); transition: opacity var(--transition); }
.info-val a:hover { opacity: 0.75; }

/* ── Values ── */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.value-item {
  padding: 48px 32px; background: var(--dark-2);
  border-top: 2px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.value-item:hover { border-color: var(--gold); background: var(--dark-3); }
.value-num { font-family: var(--font-heading); font-size: 3rem; font-weight: 300; color: rgba(200,168,75,0.2); margin-bottom: 16px; }
.value-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.value-desc { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ── Donate amounts ── */
.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.amount-btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark); background: transparent;
  font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.5);
  cursor: pointer; transition: all var(--transition);
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--gold); background: rgba(200,168,75,0.12); color: var(--gold);
}

/* ── Prayer table ── */
.prayer-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.prayer-table {
  width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.85rem;
}
.prayer-table th {
  background: var(--dark-2); color: rgba(255,255,255,0.4);
  padding: 14px 18px; text-align: center;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--border-dark);
}
.prayer-table td {
  padding: 12px 18px; text-align: center;
  color: rgba(255,255,255,0.6); border-bottom: 1px solid var(--border-dark);
  transition: background var(--transition);
}
.prayer-table tr:hover td { background: rgba(255,255,255,0.03); }
.prayer-table tr.today td { background: rgba(200,168,75,0.08); color: rgba(255,255,255,0.9); }
.prayer-table tr.today td:first-child { color: var(--gold); font-weight: 600; }

/* ── Tax box ── */
.tax-box {
  background: rgba(200,168,75,0.08); border: 1px solid rgba(200,168,75,0.2);
  border-radius: var(--radius-md); padding: 24px;
}
.tax-box h4 { color: var(--gold); font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 8px; }
.tax-box p { font-size: 0.88rem; color: rgba(255,255,255,0.55); }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; }
.footer h5 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--white); margin-bottom: 24px; letter-spacing: 0.05em; }
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border-dark); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p, .footer-bottom a { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-bottom a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 20px; }
.footer-bottom-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-bottom-copy .sep { color: rgba(255,255,255,0.12); font-size: 0.78rem; }
.footer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.25); }
.footer-credit a { color: #C9A84C; text-decoration: none; }
.footer-credit a:hover { color: #e0bf6e; }

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: max(32px, env(safe-area-inset-bottom, 0px) + 8px);
  right: max(32px, env(safe-area-inset-right, 0px) + 8px);
  z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(200,168,75,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ── Compare boxes ── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.compare-box { padding: 36px; }
.compare-box.old { background: rgba(192,57,43,0.06); border-top: 2px solid rgba(192,57,43,0.3); }
.compare-box.new { background: rgba(200,168,75,0.06); border-top: 2px solid var(--gold); }
.compare-box-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.compare-box.old .compare-box-title { color: rgba(192,57,43,0.7); }
.compare-box.new .compare-box-title { color: var(--gold); }
.compare-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-dark); font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.compare-row:last-child { border-bottom: none; }
.compare-row i { flex-shrink: 0; margin-top: 2px; }
.compare-box.old .compare-row i { color: rgba(192,57,43,0.7); }
.compare-box.new .compare-row i { color: var(--gold); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-gold   { color: var(--gold); }
.text-muted  { color: rgba(255,255,255,0.4); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col-32 { display: grid; grid-template-columns: 3fr 2fr; gap: 72px; align-items: start; }
.img-frame { border-radius: var(--radius-md); overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Counter ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.8s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .container-wide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .btn-donate-nav { display: none; }
  .hamburger { display: flex; }
  .navbar .container { gap: 12px; }
  .nav-logo img { height: 52px; }
  .two-col, .two-col-32 { grid-template-columns: 1fr; gap: 48px; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .page-hero { padding: calc(var(--nav-height) + 40px) 0 40px; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-card { padding: 24px 12px; }
  .prayer-time { font-size: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-strip .container-wide { grid-template-columns: repeat(2, 1fr); }
  .stat-block { border-right: none; border-bottom: 1px solid var(--border-dark); padding: 36px 20px; }
  .stat-block:last-child { border-bottom: none; }
  /* Langue : version compacte (reste accessible sur mobile) */
  .lang-btn {
    padding: 8px 10px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .lang-btn svg { width: 12px; height: 12px; }
  .lang-option { padding: 14px 14px; font-size: 0.82rem; }
  .back-to-top {
    right: max(16px, env(safe-area-inset-right, 0px) + 8px);
    bottom: max(16px, env(safe-area-inset-bottom, 0px) + 8px);
  }
  .btn { padding: 13px 24px; font-size: 0.85rem; }
  .btn-lg { padding: 15px 28px; font-size: 0.9rem; }
  .gold-line-center { margin: 16px auto; }
  .gold-line { margin: 16px 0; }
  .prayer-table { font-size: 0.78rem; }
  .prayer-table th, .prayer-table td { padding: 10px 8px; }
  .timeline { padding-left: 32px; }
  .two-col, .two-col-32 { gap: 32px; }
  .form-two-col { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .section { padding: 56px 0; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .prayer-card { padding: 20px 10px; }
  .prayer-icon { font-size: 1.1rem; }
  .prayer-time { font-size: 1.3rem; }
  .page-hero .lead { font-size: 0.95rem; }
  .btn-group-mobile { flex-direction: column; gap: 12px; }
  .btn-group-mobile .btn { width: 100%; justify-content: center; }
  .news-card-body { padding: 20px; }
  .spec-item { padding: 20px 16px; }
  .value-item { padding: 32px 20px; }
  .nav-mobile a { font-size: 0.95rem; }
  .nav-logo img { height: 46px; }
  .footer-brand p, .footer-contact a, .info-val { overflow-wrap: anywhere; word-break: break-word; }
}
