/* ============================================================
   CIMG OYONNAX — main.css v16.0
   Charte Graphique IGMG 2019
   Couleur principale : #009972 | Typographie : Open Sans / PT Serif
============================================================ */

/* ---- VARIABLES ---- */
:root {
  /* Palette IGMG principale */
  --green:        #009972;
  --green-dark:   #007a5a;
  --green-deeper: #005940;
  --green-75:     #40b395;
  --green-50:     #80ccb9;
  --green-25:     #bfe6dc;

  /* Couleurs secondaires IGMG */
  --turquoise:    #00adba;
  --blue:         #01438f;
  --orange:       #f59d15;
  --lila:         #5c2684;

  /* Neutres */
  --black:        #000000;
  --white:        #ffffff;
  --gray-50:      #f8f9fa;
  --gray-100:     #f0f2f1;
  --gray-200:     #e2e8e6;
  --gray-300:     #c8d4d0;
  --gray-500:     #6b7c78;
  --gray-700:     #374340;
  --text:         #1a1a1a;
  --text-muted:   #555e5a;

  /* Ombres */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.13);

  /* Layout */
  --radius:       4px;
  --radius-lg:    8px;
  --container:    1200px;
  --nav-h:        72px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: clip; /* clip évite le scroll container qui bloque les touch events sur Android */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  justify-content: space-between;
  gap: 2rem;
}
#navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--green-25);
}

/* Logo */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
  font-family: 'Open Sans', Arial, sans-serif;
}

.logo-cimg {
  display: block !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 6px;
  color: #009972 !important;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo-oyonnax {
  display: block !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 5px;
  color: #1a1a1a !important;
  text-transform: uppercase;
  margin-top: 4px;
}

.logo-milli {
  display: block !important;
  font-size: 7px !important;
  font-weight: 300 !important;
  letter-spacing: 2px;
  color: #999 !important;
  text-transform: uppercase;
  margin-top: 5px;
  border-top: 0.5px solid #ddd;
  padding-top: 4px;
}

/* Version sur fond sombre (hero, sections vertes) */
.hero .logo-cimg,
.nav--scrolled-dark .logo-cimg { color: #009972 !important; }
.hero .logo-oyonnax,
.nav--scrolled-dark .logo-oyonnax { color: #ffffff !important; }
.hero .logo-milli,
.nav--scrolled-dark .logo-milli { color: #555 !important; border-top-color: #333; }

@media (max-width: 768px) {
  .logo-cimg { font-size: 18px !important; letter-spacing: 4px; }
  .logo-oyonnax { font-size: 9px !important; letter-spacing: 4px; }
  .logo-milli { font-size: 6.5px !important; }
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 100%;
  height: 2px;
  background: var(--green);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { right: 0; }
.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.4rem !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  transition: background 0.2s ease !important;
  border: none !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
}

/* Lien actif (section en vue) */
.nav-links a.active-link {
  color: var(--green);
}
.nav-links a.active-link::after {
  right: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-hamburger:hover {
  border-color: var(--green);
  background: var(--green-25);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 0 auto;
  /* Chaque barre a sa propre position de départ */
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.25s ease,
              background 0.25s ease;
}
/* Espacement entre les barres via margin-top */
.nav-hamburger span:nth-child(1) { margin-bottom: 5px; }
.nav-hamburger span:nth-child(3) { margin-top: 5px; }

/* État actif — croix animée */
.nav-hamburger.active { border-color: var(--green); background: var(--green-25); }
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--green);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--green);
}

/* Overlay sombre derrière le menu mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Verrouillage scroll body */
body.menu-open { overflow: hidden; }

/* ============================================================
   BOUTONS
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,153,114,0.3);
  color: var(--white);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* ============================================================
   COMMUNS SECTIONS
============================================================ */
section { padding: 6rem 3rem; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
  flex-shrink: 0;
}
.section-eyebrow--white { color: rgba(255,255,255,0.7); }
.section-eyebrow--white::before { background: rgba(255,255,255,0.7); }

.section-title {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--black);
  margin-bottom: 1.1rem;
}
.section-title span {
  color: var(--green);
  font-weight: 600;
}
.section-title--white { color: var(--white); }
.section-title--white span { color: var(--green-25); }

.section-desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 580px;
}
.section-desc--white { color: rgba(255,255,255,0.75); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: linear-gradient(148deg, var(--green-deeper) 0%, var(--green) 60%, var(--green-75) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Ornement géométrique islamique en filigrane */
.hero-ornament {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='white' stroke-width='0.7' opacity='0.11'%3E%3Cpolygon points='70,8 84,46 124,46 93,70 104,108 70,84 36,108 47,70 16,46 56,46'/%3E%3Ccircle cx='70' cy='70' r='62' stroke-dasharray='3 7'/%3E%3Crect x='28' y='28' width='84' height='84' transform='rotate(45 70 70)' rx='3'/%3E%3Ccircle cx='70' cy='70' r='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
  pointer-events: none;
}
.hero-ornament-large {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  opacity: 0.07;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-25);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--green-25);
  flex-shrink: 0;
}
.hero-arabic {
  font-family: 'PT Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.65);
  direction: rtl;
  text-align: right;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.hero-title {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.6rem;
}
.hero-title span {
  color: var(--green-25);
  font-weight: 700;
}
.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Carte horaires de prières */
.prayer-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  align-self: center;
}
.prayer-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-25);
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.prayer-list {
  list-style: none;
}
.prayer-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
}
.prayer-list li:last-child { border-bottom: none; }
.prayer-list .time {
  font-weight: 700;
  color: var(--green-25);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
}

/* ============================================================
   BANDEAU STATS
============================================================ */
.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}
.stats-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 3.2rem 2rem;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  background: var(--white);
  padding: 7rem 3rem;
}
.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: center;
}
.about-visual { position: relative; }
.about-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--green-25) 0%, var(--green-50) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--green-75);
}
.about-img-placeholder svg { opacity: 0.4; }
.about-img-placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 115px;
  height: 115px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
}
.about-badge strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.9;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.value-item {
  padding: 1.2rem 1.4rem;
  background: var(--gray-50);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.value-item h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.4rem;
}
.value-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   SERVICES
============================================================ */
.services {
  background: var(--green-25);
  position: relative;
  overflow: hidden;
}
/* Ornement en filigrane */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23009972' stroke-width='0.6' opacity='0.18'%3E%3Cpolygon points='45,6 55,32 82,32 61,49 68,76 45,60 22,76 29,49 8,32 35,32'/%3E%3Crect x='20' y='20' width='50' height='50' transform='rotate(45 45 45)' rx='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 90px;
  pointer-events: none;
}
.services-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-50);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 54px;
  height: 54px;
  background: var(--green-25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.855rem;
  line-height: 1.72;
  color: var(--text-muted);
}

/* ============================================================
   AGENDA
============================================================ */
.agenda { background: var(--white); }
.agenda-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}
/* Bouton agenda au-dessus de tout overlay de navigation */
#agenda .btn-primary, .agenda .btn-primary, .agenda-cta {
  position: relative;
  z-index: 1001;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.event-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  border: 1px solid var(--gray-200);
  transition: all 0.25s ease;
}
.event-item:hover {
  border-color: var(--green);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.event-date {
  text-align: center;
  border-right: 1px solid var(--gray-300);
  padding-right: 2rem;
}
.event-date .day {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.event-date .month {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}
.event-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.event-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.event-tag {
  background: var(--green-25);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ============================================================
   ADHÉSION
============================================================ */
.membership {
  background: var(--green);
  position: relative;
  overflow: hidden;
}
.membership::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110' viewBox='0 0 110 110'%3E%3Cg fill='none' stroke='white' stroke-width='0.6' opacity='0.08'%3E%3Cpolygon points='55,6 67,36 98,36 74,55 82,85 55,66 28,85 36,55 12,36 43,36'/%3E%3Crect x='22' y='22' width='66' height='66' transform='rotate(45 55 55)'/%3E%3Ccircle cx='55' cy='55' r='48' stroke-dasharray='4 8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 110px 110px;
  pointer-events: none;
}
.membership-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.membership-features {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.membership-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  font-weight: 400;
  line-height: 1.55;
}
.membership-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(255,255,255,0.2);
}
.membership-payment-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  font-style: italic;
}
.membership-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.plan-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  transition: all 0.25s ease;
  position: relative;
}
.plan-card:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
}
.plan-card.featured {
  background: var(--white);
  border-color: var(--white);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.9rem;
  border-radius: 20px;
}
.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.plan-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.plan-card.featured .plan-name { color: var(--black); }
.plan-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
}
.plan-card.featured .plan-price { color: var(--green); }
.plan-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.plan-card.featured .plan-desc { color: var(--text-muted); }
.plan-cta {
  display: block;
  text-align: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
}
.plan-cta:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
  color: var(--white);
}
.plan-card.featured .plan-cta {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.plan-card.featured .plan-cta:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* ============================================================
   CONTACT
============================================================ */
.contact { background: var(--gray-100); }
.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-item h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.contact-item p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-item a { color: var(--green); }
.contact-item a:hover { text-decoration: underline; }

/* Formulaire de contact */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.8rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,153,114,0.14);
}
.form-group textarea { min-height: 120px; }
.form-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}
.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Maps embed */
.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: #111111;
  padding: 5rem 3rem 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.footer-brand .logo-sub {
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.78;
  color: rgba(255,255,255,0.42);
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--green-50); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.28);
}
.footer-bottom a {
  color: var(--green-50);
  text-decoration: none;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  animation: reveal-fallback 0s 1.5s forwards;
}
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .prayer-card { display: none; }
  .hero-ornament-large { opacity: 0.04; }
  .about-inner { grid-template-columns: 1fr; gap: 4rem; }
  .membership-inner { grid-template-columns: 1fr; gap: 4rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MENU MOBILE — animation slide-down
   Technique : visibility + opacity + translateY (animable, contrairement à display)
============================================================ */
@media (max-width: 768px) {

  /* Navbar */
  #navbar { padding: 0 1.25rem; gap: 1rem; overflow: hidden; }
  /* Lever overflow quand le menu déroulant est ouvert */
  body.menu-open #navbar { overflow: visible; }
  .nav-hamburger { display: flex; }

  /* Menu : état fermé — invisible mais dans le DOM */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    background: var(--white);
    border-top: 2px solid var(--green-25);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 999;
    /* Animation : fermé */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity     0.3s cubic-bezier(0.4, 0, 0.2, 1),
      transform   0.3s cubic-bezier(0.4, 0, 0.2, 1),
      visibility  0.3s;
    pointer-events: none;
  }
  /* Menu : état ouvert */
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Items du menu mobile */
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: flex;
    align-items: center;
    padding: 0.9rem 0.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--text);
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { color: var(--green); background: none; }

  /* CTA Adhérer — pleine largeur en mobile */
  .nav-cta {
    display: block !important;
    text-align: center !important;
    padding: 0.9rem 1.5rem !important;
    margin-top: 0.75rem !important;
    border-radius: var(--radius) !important;
  }

  /* Overlay */
  .nav-overlay { display: block; }

  /* ---- Sections ---- */
  section { padding: 4rem 1.25rem; }
  .about  { padding: 4rem 1.25rem; }

  /* Stats */
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-num { font-size: 2.4rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 1.2rem; }

  /* Valeurs */
  .values-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 3.5rem; }
  .hero-inner { padding: 1.5rem 0; gap: 2rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-desc  { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline-white { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }

  /* Agenda */
  .agenda-header { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  #agenda .btn-primary, .agenda .btn-primary, .agenda-cta {
    position: relative;
    z-index: 1002;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    pointer-events: auto !important;
  }
  .event-item { grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.1rem 1.2rem; }
  .event-tag { display: none; }
  .event-date { padding-right: 1rem; }

  /* About badge */
  .about-badge { bottom: -0.5rem; right: -0.5rem; width: 88px; height: 88px; }
  .about-badge strong { font-size: 1.5rem; }
  .about-badge span  { font-size: 0.54rem; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Overlays décoratifs — ne jamais bloquer les touch events */
  body::before, body::after,
  .hero::before, .hero::after,
  .page-overlay, .site-overlay {
    pointer-events: none !important;
  }
}

@media (max-width: 480px) {
  #navbar { padding: 0 1rem; }
  section { padding: 3rem 1rem; }
  .about  { padding: 3rem 1rem; }
  .hero   { padding: calc(var(--nav-h) + 1rem) 1rem 3rem; }
  .hero-title { font-size: 2rem; }
  .hero-arabic { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stat-num { font-size: 2.2rem; }
  .contact-form { padding: 1.5rem; }
  .plan-header { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .event-item { grid-template-columns: 58px 1fr; }
  .event-date .day { font-size: 1.6rem; }
}

/* Override LiteSpeed Critical CSS — empêche que le cache serveur cache #membership */
#membership { display: block !important; }
