/* ============================================================
   EL NOUR — Association Nationale pour les Enfants Autistes
   Design moderne v2.0
   ============================================================ */

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

:root {
  --blue-900:  #0a1628;
  --blue-800:  #0d2244;
  --blue-700:  #0f3460;
  --blue-600:  #1565C0;
  --blue-500:  #1976D2;
  --blue-400:  #2196F3;
  --blue-300:  #64B5F6;
  --blue-100:  #E3F2FD;
  --blue-50:   #F0F8FF;
  --orange:    #FF5722;
  --orange-l:  #FF7043;
  --orange-bg: #FFF3EE;
  --green:     #0F9D58;
  --white:     #FFFFFF;
  --grey-50:   #F8FAFC;
  --grey-100:  #F1F5F9;
  --grey-200:  #E2E8F0;
  --grey-400:  #94A3B8;
  --grey-600:  #475569;
  --grey-800:  #1E293B;
  --text:      #0F172A;
  --text-2:    #334155;
  --text-3:    #64748B;
  --nav-h:     72px;
  --r-sm:      8px;
  --r-md:      14px;
  --r-lg:      22px;
  --r-xl:      36px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 4px 12px rgba(15,52,96,.08);
  --shadow-md: 0 8px 30px rgba(15,52,96,.12);
  --shadow-lg: 0 20px 60px rgba(15,52,96,.18);
  --glow:      0 0 0 4px rgba(21,101,192,.15);
  --t:         .28s cubic-bezier(.4,0,.2,1);

  /* === ALIASES — used in HTML inline styles across all pages === */
  --primary:       #1565C0;
  --primary-light: #E3F2FD;
  --primary-xlight:#F0F8FF;
  --accent:        #FF5722;
  --accent-light:  #FFF3EE;
  --text-mid:      #64748B;
  --text-light:    #94A3B8;
  --bg:            #F8FAFC;
  --border:        #E2E8F0;
  --radius-xl:     36px;
  --radius-lg:     22px;
  --radius-md:     14px;
  --radius-sm:     8px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===  TYPOGRAPHY === */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-3); line-height: 1.75; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: .35em 1.1em;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 1px solid rgba(21,101,192,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.section-title { margin-bottom: .65rem; }
.section-sub   { color: var(--text-3); max-width: 54ch; }
.text-center   { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* === LAYOUT === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity var(--t);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(21,101,192,.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(21,101,192,.42);
}

.btn-accent {
  background: linear-gradient(135deg, var(--orange), var(--orange-l));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,87,34,.30);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,87,34,.42);
}

.btn-outline {
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
}
.btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.7); }

.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .82rem; }

/* === TOPBAR === */
.topbar {
  background: var(--blue-800);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: .5rem 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar a { color: rgba(255,255,255,.75); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.5rem; }
.topbar-item { display: flex; align-items: center; gap: .35rem; }

/* === HEADER / NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--t);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(21,101,192,.3);
  flex-shrink: 0;
  display: block;
}
.nav-logo-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.1;
}
.nav-logo-text span { font-size: .68rem; color: var(--text-3); line-height: 1; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .28rem;
  padding: .55rem .7rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-600);
  background: var(--blue-50);
}
.nav-link.active { font-weight: 600; }
.nav-link .arrow {
  font-size: .65rem;
  color: var(--grey-400);
  transition: transform var(--t);
  margin-top: 1px;
}
.nav-item.open .arrow { transform: rotate(180deg); }

/* =====================================================
   DROPDOWN — FIX: invisible bridge above dropdown
   prevents the hover gap from closing the menu
   ===================================================== */
.dropdown {
  position: absolute;
  top: 100%;      /* NO gap — starts right at nav-item bottom */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 100;
}
/* Invisible bridge: 12px invisible area ABOVE dropdown so the
   mouse can travel from nav-link to dropdown without losing hover */
.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
/* JS adds .open class instead of pure :hover to allow for delay */
.nav-item.open .dropdown,
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.dropdown-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .85rem;
  border-radius: var(--r-sm);
  font-size: .84rem;
  color: var(--text-2);
  transition: var(--t);
}
.dropdown-link:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}
.dd-icon {
  font-size: .95rem;
  width: 28px;
  height: 28px;
  background: var(--blue-100);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Thin blue top border as visual anchor */
.dropdown::after {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
  border-radius: 2px;
}

/* Nav CTA */
.nav-cta { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.mobile-nav.open { max-height: 640px; }
.mobile-nav-link {
  display: block;
  padding: .7rem 1.5rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
  border-left: 3px solid transparent;
  transition: var(--t);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--blue-600);
  background: var(--blue-50);
  border-left-color: var(--blue-600);
}
.mobile-nav-section {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-400);
  padding: .9rem 1.5rem .3rem;
}
.mobile-nav-cta { padding: .75rem 1.5rem; }

/* === HERO === */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background: linear-gradient(135deg, #1565C0 0%, #1E88E5 50%, #42A5F5 100%);
}
/* Background: dark gradient overlay on top of whatever photo is set via JS */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(21,101,192,.35) 0%,
    rgba(30,136,229,.15) 50%,
    transparent 100%);
}
/* Dot pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(33,150,243,.18); top: -120px; right: -80px; animation: orbFloat 8s ease-in-out infinite; }
.hero-orb-2 { width: 350px; height: 350px; background: rgba(255,87,34,.12); bottom: -80px; left: 5%; animation: orbFloat 10s ease-in-out infinite reverse; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.06); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: flex-end;
  padding-top: 2.5rem;
  padding-bottom: 0;
}
.hero-content { color: var(--white); padding-bottom: 2.5rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .9rem .4rem .5rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #60A5FA, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 48ch;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

/* Hero visual side */
.hero-visual { display: grid; gap: .75rem; }
.hero-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 150px;
  gap: .6rem;
}
.hero-img-grid img {
  border-radius: var(--r-md) var(--r-md) 0 0;
  width: 100%;
  height: 100%;
  transition: transform .5s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.hero-img-grid img:first-child {
  grid-column: 1 / -1;
  height: 200px;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.hero-img-grid img:nth-child(2) { border-radius: 0; }
.hero-img-grid img:nth-child(3) { border-radius: 0; }
.hero-img-grid img:hover { transform: scale(1.03); }
.hero-card-float {
  position: absolute;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .65rem;
  z-index: 3;
}
.hero-card-float .fi { font-size: 1.3rem; flex-shrink: 0; }
.hero-card-float strong { font-size: .85rem; color: var(--text); display: block; }
.hero-card-float span  { font-size: .75rem; color: var(--text-3); }

/* === STATS BAR === */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid var(--grey-200);
  transition: var(--t);
  cursor: default;
}
.stat-item:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm), var(--glow);
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: .65rem;
  display: block;
}
.stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label { font-size: .82rem; color: var(--text-3); font-weight: 500; }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-500) 100%);
  color: var(--white);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(33,150,243,.2) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.8); max-width: 55ch; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* === CARD BASE === */
.card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--grey-200);
  transition: var(--t);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--blue-300);
}

/* === ABOUT SECTION === */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: center;
}
.about-images {
  position: relative;
  padding: 1.5rem 1.5rem 2.5rem 0;
}
.about-img-main {
  border-radius: var(--r-lg);
  width: 100%;
  height: 440px;
  box-shadow: var(--shadow-lg);
}
.about-img-thumb {
  position: absolute;
  bottom: 0;
  right: -1.5rem;
  width: 165px;
  height: 130px;
  border-radius: var(--r-md);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.about-badge-float {
  position: absolute;
  top: 1rem;
  left: -1.5rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--grey-200);
}
.about-badge-float .val { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg,var(--blue-700),var(--blue-400)); -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text; }
.about-badge-float .lbl { font-size: .72rem; color: var(--text-3); margin-top: .15rem; }
.values-list { display: flex; flex-direction: column; gap: .85rem; margin: 1.75rem 0 2rem; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.1rem;
  background: var(--grey-50);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--blue-600);
  transition: var(--t);
}
.value-item:hover { background: var(--blue-50); }
.value-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .05rem; }
.value-item h4 { font-size: .9rem; margin-bottom: .2rem; }
.value-item p  { font-size: .84rem; margin: 0; }

/* === AUTISM PREVIEW === */
.autism-preview {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-600) 100%);
  position: relative;
  overflow: hidden;
}
.autism-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.autism-preview .section-label { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.autism-preview .section-title { color: var(--white); }
.autism-preview .section-sub   { color: rgba(255,255,255,.72); }
.autism-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.autism-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(8px);
  transition: var(--t);
}
.autism-card:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-4px);
}
.autism-card-icon { font-size: 2.4rem; margin-bottom: 1rem; display: block; }
.autism-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: .5rem; }
.autism-card p  { color: rgba(255,255,255,.7); font-size: .88rem; }
.autism-card .btn { margin-top: 1.25rem; }

/* === ACTIVITIES PREVIEW === */
.activities-preview { background: var(--grey-50); }
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.activity-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: var(--t);
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.activity-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .5s ease;
}
.activity-card:hover .activity-card-img { transform: scale(1.05); }
.activity-card-body { padding: 1.5rem; }
.activity-card-tag {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.activity-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.activity-card p  { font-size: .86rem; margin: 0 0 1.1rem; }

/* === HOW TO HELP === */
.help-section { background: var(--white); }
.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.help-card {
  background: var(--grey-50);
  border-radius: var(--r-md);
  padding: 2.25rem 1.75rem;
  text-align: center;
  border: 1px solid var(--grey-200);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.help-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.help-card:hover::before { transform: scaleX(1); }
.help-card.featured {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-color: transparent;
}
.help-card.featured::before { display: none; }
.help-card-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 1.25rem;
  transition: var(--t);
}
.help-card:hover .help-card-icon { transform: scale(1.1); }
.help-card.featured .help-card-icon { background: rgba(255,255,255,.15); }
.help-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.help-card p  { font-size: .88rem; margin-bottom: 1.5rem; }
.help-card.featured h3, .help-card.featured p { color: rgba(255,255,255,.9); }

/* === EVENTS PREVIEW === */
.events-preview { background: var(--grey-50); }
.events-list { display: flex; flex-direction: column; gap: .9rem; margin-top: 2rem; }
.event-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--grey-200);
  transition: var(--t);
}
.event-item:hover {
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--blue-600);
  transform: translateX(4px);
}
.event-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-sm);
  padding: .6rem .85rem;
  min-width: 58px;
}
.event-date .day   { font-size: 1.5rem; font-weight: 800; color: var(--blue-600); line-height: 1; }
.event-date .month { font-size: .68rem; text-transform: uppercase; color: var(--blue-400); font-weight: 700; }
.event-info h4 { margin-bottom: .2rem; font-size: .95rem; }
.event-info p  { font-size: .84rem; margin: 0; }
.event-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  padding: .28rem .8rem;
  border-radius: 100px;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
}
.event-badge.sortie  { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.event-badge.atelier { background: var(--orange-bg); color: var(--orange); border-color: #FFCDD2; }

/* === DONATE BANNER === */
.donate-banner {
  background: linear-gradient(135deg, #E64A19 0%, var(--orange) 40%, #FF8C69 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.donate-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.donate-banner .container { position: relative; z-index: 1; }
.donate-banner h2 { color: var(--white); margin-bottom: .75rem; }
.donate-banner p  { color: rgba(255,255,255,.88); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.donate-amounts { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.donate-amount {
  padding: .55rem 1.3rem;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 100px;
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--t);
}
.donate-amount:hover, .donate-amount.active {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}

/* === GALLERY GRID (HOME PREVIEW) === */
.gallery-preview { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: .75rem;
  margin-top: 2rem;
}
.gallery-item {
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  transition: transform .5s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.55) 0%, transparent 55%);
  opacity: 0;
  transition: var(--t);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }

/* === NEWSLETTER === */
.newsletter {
  background: var(--blue-50);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 64px 0;
}
.newsletter .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.newsletter-text { flex: 1; }
.newsletter-text h2 { font-size: 1.75rem; }
.newsletter-form {
  flex: 1;
  display: flex;
  gap: .65rem;
}
.newsletter-input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: 2px solid var(--grey-200);
  border-radius: 100px;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--t);
  font-family: inherit;
}
.newsletter-input:focus { border-color: var(--blue-500); box-shadow: var(--glow); }

/* === FOOTER === */
.site-footer {
  background: linear-gradient(to bottom, #09111f 0%, #050c18 100%);
  color: rgba(255,255,255,.7);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-top {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .nav-logo-text strong { color: var(--white); }
.footer-brand .nav-logo-text span   { color: rgba(255,255,255,.4); }
.footer-brand-desc {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  margin: 1rem 0 1.5rem;
  line-height: 1.75;
}
.footer-socials { display: flex; gap: .5rem; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: var(--t);
}
.footer-social:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h4 {
  color: var(--white);
  font-size: .88rem;
  margin-bottom: 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-col ul li a::before { content: '›'; color: var(--blue-300); font-size: 1.1rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .65rem;
}
.footer-contact-item .icon { color: var(--blue-300); font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.38);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color .2s; }
.footer-bottom a:hover { color: var(--white); }

/* === AUTISM PAGE === */
.autism-what { background: var(--white); }
.autism-what-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: start;
}
.autism-what-img {
  border-radius: var(--r-lg);
  width: 100%;
  height: 420px;
  box-shadow: var(--shadow-lg);
}
.autism-fact-box {
  background: var(--blue-50);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-top: 2rem;
  border-left: 4px solid var(--blue-600);
}
.autism-fact-box p { color: var(--text-2); font-size: .92rem; }

.signs-section { background: var(--grey-50); }
.signs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.sign-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.75rem;
  border: 1px solid var(--grey-200);
  display: flex;
  gap: 1rem;
  transition: var(--t);
}
.sign-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-300); }
.sign-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.sign-card h4 { margin-bottom: .35rem; font-size: .95rem; }
.sign-card p  { font-size: .85rem; margin: 0; }

.tips-section { background: var(--white); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.tip-card {
  background: var(--grey-50);
  border-radius: var(--r-md);
  padding: 1.75rem;
  text-align: center;
  border: 1px solid var(--grey-200);
  transition: var(--t);
}
.tip-card:hover { background: var(--blue-50); transform: translateY(-3px); border-color: var(--blue-300); }
.tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: .95rem;
  margin: 0 auto 1rem;
}
.tip-card h4 { margin-bottom: .5rem; font-size: .95rem; }
.tip-card p  { font-size: .86rem; }

.resource-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.resource-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--t);
}
.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--blue-600);
  transform: translateX(4px);
}
.resource-icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.resource-card h4 { margin-bottom: .3rem; font-size: .95rem; }
.resource-card p  { font-size: .84rem; margin: 0; }

/* === ACTIVITIES PAGE === */
.activities-tabs { background: var(--white); padding-top: 0; }
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--grey-200);
  margin-bottom: 3rem;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-top: 2rem;
}
.tab-btn {
  padding: .8rem 1.5rem;
  font-weight: 600;
  font-size: .86rem;
  color: var(--text-3);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--blue-600); }
.tab-btn.active { color: var(--blue-600); border-bottom-color: var(--blue-600); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp .35s ease; }

.photo-masonry { columns: 3; gap: 1rem; }
.photo-masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.photo-masonry-item img { width: 100%; height: auto; transition: transform .4s ease; display: block; }
.photo-masonry-item:hover img { transform: scale(1.04); }
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.65) 0%, transparent 55%);
  opacity: 0;
  transition: var(--t);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.photo-masonry-item:hover .photo-overlay { opacity: 1; }
.photo-overlay-text { color: var(--white); font-size: .8rem; font-weight: 600; }

/* === EVENTS PAGE === */
.events-filters { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn {
  padding: .42rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--white);
  cursor: pointer;
  transition: var(--t);
}
.filter-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.filter-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

.events-two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.event-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  margin-bottom: 1.5rem;
  transition: var(--t);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-300); }
.event-card-img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s ease; }
.event-card:hover .event-card-img { transform: scale(1.03); }
.event-card-body { padding: 1.5rem; }
.event-card-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.event-card-date { font-size: .78rem; font-weight: 600; color: var(--blue-500); display: flex; align-items: center; gap: .3rem; }
.event-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 100px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.event-tag.sortie { background: #ECFDF5; color: #059669; }
.event-tag.atelier { background: var(--orange-bg); color: var(--orange); }
.event-tag.event  { background: #F5F3FF; color: #7C3AED; }
.event-card h3 { margin-bottom: .5rem; font-size: 1.05rem; }
.event-card p  { font-size: .86rem; margin-bottom: .85rem; }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--grey-200); }
.event-location { font-size: .8rem; color: var(--grey-400); display: flex; align-items: center; gap: .3rem; }

.sidebar-widget {
  background: var(--grey-50);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--grey-200);
}
.sidebar-widget h4 { margin-bottom: 1.2rem; font-size: .95rem; }
.mini-event { display: flex; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--grey-200); }
.mini-event:last-child { border-bottom: none; }
.mini-event-date {
  flex-shrink: 0;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-sm);
  padding: .4rem .6rem;
  text-align: center;
  min-width: 44px;
}
.mini-event-date .d { font-size: 1.1rem; font-weight: 800; color: var(--blue-600); line-height: 1; }
.mini-event-date .m { font-size: .62rem; text-transform: uppercase; color: var(--blue-400); font-weight: 700; }
.mini-event-info h5 { font-size: .84rem; margin-bottom: .15rem; }
.mini-event-info p  { font-size: .78rem; margin: 0; }

/* === BOUTIQUE === */
.boutique-section { background: var(--white); }
.products-intro {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border-radius: var(--r-lg);
  padding: 2.5rem 3rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  border: 1px solid var(--blue-100);
}
.products-intro h2 { font-size: 1.55rem; margin-bottom: .4rem; }
.products-intro p  { margin: 0; font-size: .92rem; }
.products-intro-icon { font-size: 3.5rem; flex-shrink: 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: var(--t);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.product-img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img { transform: scale(1.06); }
.product-body { padding: 1.25rem 1.5rem 1.5rem; }
.product-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--orange-bg);
  color: var(--orange);
  padding: .2rem .7rem;
  border-radius: 100px;
  margin-bottom: .5rem;
}
.product-card h3 { font-size: .98rem; margin-bottom: .4rem; }
.product-card p  { font-size: .84rem; margin-bottom: .85rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; border-top: 1px solid var(--grey-200); }
.product-handmade { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--text-3); }

/* === AIDER PAGE === */
.help-ways-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.help-way-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2.5rem 2rem;
  border: 1.5px solid var(--grey-200);
  transition: var(--t);
}
.help-way-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-300); }
.help-way-card.highlight { border-color: var(--blue-400); border-width: 2px; }
.help-way-icon {
  width: 60px; height: 60px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}
.help-way-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.help-way-card p  { font-size: .88rem; margin-bottom: 1.5rem; }
.help-way-features { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.5rem; }
.help-feature { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-3); }
.help-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Donation section */
.donation-amounts-section { background: var(--grey-50); }
.donation-box { max-width: 640px; margin: 0 auto; text-align: center; }
.donation-amounts { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.donation-btn {
  padding: .75rem 1.65rem;
  border: 2px solid var(--grey-200);
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: .98rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: var(--t);
  min-width: 90px;
}
.donation-btn:hover, .donation-btn.active {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: var(--blue-50);
}
.donation-custom { display: flex; gap: .65rem; margin-bottom: 1.25rem; }
.donation-custom input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: 2px solid var(--grey-200);
  border-radius: var(--r-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--t);
  font-family: inherit;
}
.donation-custom input:focus { border-color: var(--blue-500); box-shadow: var(--glow); }
.donation-note { font-size: .8rem; color: var(--grey-400); margin-top: .75rem; }

/* Impact chips */
.impact-chips { display: flex; gap: .65rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0; }
.impact-chip {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  padding: .4rem .9rem;
}
.impact-chip strong { color: var(--blue-600); }

/* Parrainage */
.parrainage-section { background: var(--white); }
.parrainage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.parrainage-card {
  background: var(--grey-50);
  border-radius: var(--r-md);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid var(--grey-200);
  transition: var(--t);
  position: relative;
}
.parrainage-card:hover { border-color: var(--blue-300); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.parrainage-card.recommended { border-color: var(--blue-600); background: var(--white); }
.parrainage-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 100px;
  white-space: nowrap;
}
.parrainage-price { font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg,var(--blue-700),var(--blue-400)); -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text; line-height: 1; margin: 1rem 0 .25rem; }
.parrainage-price span { font-size: .95rem; font-weight: 500; color: var(--text-3); -webkit-text-fill-color: var(--text-3); }
.parrainage-card h3 { font-size: .98rem; margin-bottom: .4rem; }
.parrainage-card p  { font-size: .84rem; margin-bottom: 1.5rem; }
.parrainage-features { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.75rem; text-align: left; }
.parrainage-feature { display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--text-3); }
.parrainage-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Payment methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.payment-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2rem 1.5rem;
  border: 2px solid var(--grey-200);
  text-align: center;
  transition: var(--t);
}
.payment-card:hover { border-color: var(--blue-400); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.payment-icon { font-size: 2.8rem; margin-bottom: 1rem; display: block; }
.payment-card h4 { font-size: 1rem; margin-bottom: .5rem; }
.payment-card p  { font-size: .84rem; margin-bottom: 1rem; }
.payment-step {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  color: var(--text-3);
  text-align: left;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--grey-200);
}
.payment-step:last-child { border-bottom: none; }
.payment-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* === GALLERY PAGE (gal-* system) === */
.gal-section { background: var(--white); padding: 64px 0 96px; }

/* Nav pills */
.gal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
  padding: .4rem;
  background: var(--grey-100);
  border-radius: 100px;
  width: fit-content;
  position: relative;
  z-index: 2;
}
.gal-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--t);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.gal-btn:hover { color: var(--blue-600); background: rgba(255,255,255,.7); }
.gal-btn.active {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: 0 2px 10px rgba(21,101,192,.14);
}
.gal-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 700;
  padding: 0 5px;
}
.gal-btn.active .gal-count {
  background: var(--blue-600);
  color: var(--white);
}

/* Panel */
.gal-panel { display: none; }
.gal-panel.active { display: block; animation: fadeInUp .3s ease both; }

.gal-panel-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: var(--blue-50);
  border-radius: var(--r-md);
  border: 1px solid var(--blue-100);
}
.gal-panel-icon { font-size: 2.5rem; flex-shrink: 0; }
.gal-panel-title { font-size: 1.4rem; margin-bottom: .25rem; }
.gal-desc { color: var(--text-3); font-size: .9rem; margin-bottom: 2rem; }
.gal-panel-header + .gal-grid { margin-top: 0; }

/* Masonry grid */
.gal-grid {
  columns: 4;
  column-gap: .85rem;
}
.gal-item {
  break-inside: avoid;
  margin-bottom: .85rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--grey-100);
  display: block;
}
.gal-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .45s ease;
}
.gal-item:hover img { transform: scale(1.05); }
.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.6) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: .75rem;
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-zoom {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

/* Responsive */
@media (max-width: 1024px) { .gal-grid { columns: 3; } }
@media (max-width: 768px)  {
  .gal-grid { columns: 2; }
  .gal-nav  { border-radius: var(--r-md); width: 100%; }
  .gal-btn  { flex: 1; justify-content: center; }
}
@media (max-width: 480px)  { .gal-grid { columns: 1; } }

/* Keep old .gallery-masonry for activities page */
.gallery-masonry { columns: 3; gap: 1rem; }
.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--grey-100);
}
.gallery-masonry-item img { width: 100%; height: auto; transition: transform .4s ease; display: block; }
.gallery-masonry-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--t);
  font-size: 1.75rem;
  color: var(--white);
}
.gallery-masonry-item:hover .gallery-item-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox-close {
  position: absolute;
  top: -3rem; right: 0;
  background: none; border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer; padding: .5rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 1.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }

/* === CONTACT PAGE === */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.contact-info-icon {
  width: 46px; height: 46px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: .88rem; margin-bottom: .3rem; }
.contact-info-item p  { font-size: .85rem; margin: 0; }
.contact-socials { display: flex; gap: .5rem; margin-top: 2rem; }
.contact-social {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--text-3);
  transition: var(--t);
}
.contact-social:hover { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }

.contact-form-wrap {
  background: var(--grey-50);
  border-radius: var(--r-lg);
  padding: 2.5rem 3rem;
  border: 1px solid var(--grey-200);
}
.form-title { font-size: 1.35rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.form-control {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--t);
  font-family: inherit;
}
.form-control:focus { border-color: var(--blue-500); box-shadow: var(--glow); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-check { display: flex; align-items: flex-start; gap: .65rem; font-size: .84rem; color: var(--text-3); }
.form-check input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--blue-600); flex-shrink: 0; }
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { color: var(--green); margin-bottom: .5rem; }

/* === ASSOCIATION PAGE === */
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
.mission-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2rem;
  border: 1px solid var(--grey-200);
  transition: var(--t);
}
.mission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-300); }
.mission-card-icon { font-size: 2.1rem; margin-bottom: 1rem; display: block; }
.mission-card h3 { margin-bottom: .5rem; }
.mission-card p  { font-size: .88rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  transition: var(--t);
}
.team-card:hover { background: var(--blue-50); transform: translateY(-4px); border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(21,101,192,.3);
}
.team-card h4 { margin-bottom: .2rem; }
.team-role { font-size: .75rem; font-weight: 700; color: var(--blue-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.team-card p { font-size: .84rem; margin: 0; }

.timeline { position: relative; padding-left: 2.5rem; margin-top: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-600), var(--blue-100));
}
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: .3rem;
  width: 14px; height: 14px;
  background: var(--blue-600);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.timeline-year { font-size: .78rem; font-weight: 700; color: var(--blue-500); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.timeline-item h4 { margin-bottom: .35rem; }
.timeline-item p  { font-size: .88rem; }

/* === SCROLL TOP === */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--t);
  z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-2px); }

/* === REVEAL ANIMATION === */
/* Safety: if JS fails to run, reveals degrade after 2s */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; animation: revealFallback 0s 2s forwards; }
.reveal.revealed { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(21,101,192,.32); }
  50%       { box-shadow: 0 4px 28px rgba(21,101,192,.55), 0 0 0 8px rgba(21,101,192,.08); }
}
@keyframes pulseAccent {
  0%, 100% { box-shadow: 0 4px 16px rgba(255,87,34,.30); }
  50%       { box-shadow: 0 4px 28px rgba(255,87,34,.52), 0 0 0 8px rgba(255,87,34,.08); }
}

/* Pulse on primary CTA buttons */
.hero-actions .btn-primary { animation: pulse 3s ease-in-out infinite; }
.hero-actions .btn-accent  { animation: pulseAccent 3s ease-in-out 1.5s infinite; }

/* Focus-visible accessibility */
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }

/* Smooth image loading — fade in on load */
img { transition: opacity .4s ease; }
img.img-loading { opacity: 0; }
img.img-ready   { opacity: 1; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 600px; margin: 0 auto; }
  .hero-stats   { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-desc    { margin: 0 auto 2rem; }
  .hero-visual  { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter .container { flex-direction: column; gap: 2rem; text-align: center; }
  .newsletter-form { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .about-grid, .autism-what-grid, .events-two-col,
  .contact-grid, .help-ways-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-images { display: none; }
  .autism-cards, .activities-grid, .help-cards,
  .parrainage-cards, .payment-methods { grid-template-columns: 1fr; }
  .signs-grid, .resource-cards, .mission-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-masonry, .gallery-masonry { columns: 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .topbar .topbar-right { display: none; }
  .products-intro { flex-direction: column; text-align: center; gap: 1.5rem; }
  .contact-form-wrap { padding: 1.75rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-stats { flex-direction: column; gap: 1rem; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .photo-masonry, .gallery-masonry { columns: 1; }
  .lightbox-prev { left: -2.5rem; }
  .lightbox-next { right: -2.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
