/* ============================================================
   MUTUELLE STW D'EPARGNE PRÉVOYANCE ET CRÉDIT
   Style Global v2 — Design 2026 — Niveau Moderne
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  --green-deep: #0A5C36;
  --green-mid: #1A8A52;
  --green-light: #2EB872;
  --green-pale: #E8F5EE;
  --blue-deep: #0D3B6E;
  --blue-mid: #1565C0;
  --blue-light: #4A90D9;
  --gold: #C9A84C;
  --gold-light: #F0D080;
  --white: #FAFCFB;
  --black: #0E1410;
  --gray-100: #F4F6F4;
  --gray-200: #E2E8E2;
  --gray-500: #6B7B6E;
  --gray-700: #3A4A3C;
  --font-display: 'DM Serif Display', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(10,92,54,0.08), 0 1px 3px rgba(10,92,54,0.05);
  --shadow-md: 0 8px 32px rgba(10,92,54,0.12), 0 2px 8px rgba(10,92,54,0.06);
  --shadow-lg: 0 24px 64px rgba(10,92,54,0.15), 0 8px 24px rgba(10,92,54,0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
p { font-size: clamp(0.93rem, 1.1vw, 1.03rem); color: var(--gray-700); }

/* ── Header ── */
#main-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,252,251,0.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(10,92,54,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
#main-header.scrolled { box-shadow: var(--shadow-md); }
#main-header.hidden { transform: translateY(-100%); }

.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--green-deep); flex-shrink: 0; }
.logo-mark { width: 44px; height: 44px; background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; color: white; font-weight: 400; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text span:first-child { font-size: 0.95rem; font-weight: 700; }
.logo-text span:last-child { font-size: 0.72rem; font-weight: 400; color: var(--gray-500); letter-spacing: 0.04em; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a { position: relative; padding: 0.5rem 0.9rem; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); border-radius: 8px; transition: color var(--transition), background var(--transition); }
.main-nav a::after { content: ''; position: absolute; bottom: 2px; left: 0.9rem; right: 0.9rem; height: 2px; background: var(--green-mid); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); border-radius: 2px; }
.main-nav a:hover { color: var(--green-deep); background: var(--green-pale); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--green-deep); }
.main-nav a.active::after { transform: scaleX(1); }

.header-cta { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)) !important; color: white !important; padding: 0.6rem 1.4rem !important; border-radius: 50px !important; font-weight: 600 !important; box-shadow: 0 4px 16px rgba(10,92,54,0.25); transition: transform var(--transition), box-shadow var(--transition) !important; }
.header-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(10,92,54,0.35) !important; background: var(--green-deep) !important; }
.header-cta::after { display: none !important; }

#progress-bar { position: fixed; top: 0; left: 0; height: 3px; z-index: 1001; background: linear-gradient(90deg, var(--green-mid), var(--gold)); width: 0%; transition: width 0.1s linear; will-change: width; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: background var(--transition); }
.burger:hover { background: var(--green-pale); }
.burger span { width: 24px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); display: block; }
.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 { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: rgba(250,252,251,0.98); backdrop-filter: blur(20px); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 999; display: flex; flex-direction: column; padding: 2rem clamp(1rem,6vw,3rem); gap: 0.5rem; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; color: var(--gray-700); padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); transition: color var(--transition), padding-left var(--transition); }
.mobile-nav a:hover { color: var(--green-deep); padding-left: 1rem; }
.mobile-nav .mobile-cta { margin-top: 1.5rem; background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); color: white !important; padding: 1rem 2rem !important; border-radius: 50px; text-align: center; border-bottom: none !important; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 1rem !important; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* ── Section Headers ── */
.section-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 0.75rem; }
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--green-mid); border-radius: 2px; }
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header.centered { text-align: center; }
.section-header h2 { color: var(--black); margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; }
.section-header.centered p { margin: 0 auto; }

/* ── HERO ACCUEIL ── */
.hero { min-height: 100dvh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 72px; }

/* Hero background avec image réelle + overlay */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1600&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}
/* Overlay dégradé sur l'image hero */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10,92,54,0.82) 0%, rgba(13,59,110,0.65) 50%, rgba(10,92,54,0.45) 100%);
}

.hero-pattern { position: absolute; inset: 0; z-index: 1; background-image: repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(255,255,255,0.03) 40px,rgba(255,255,255,0.03) 41px); }

.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; padding: clamp(3rem,6vw,5rem) 0; }

.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; backdrop-filter: blur(8px); }
.hero-badge i { color: var(--gold-light); }

.hero-title { margin-bottom: 1.25rem; overflow: hidden; }
.hero-title .line { display: block; color: white; transform: translateY(100%); opacity: 0; animation: revealLine 0.8s cubic-bezier(0.4,0,0.2,1) forwards; }
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.4s; }
.hero-title .line:nth-child(3) { animation-delay: 0.6s; color: var(--gold-light); font-style: italic; }
@keyframes revealLine { to { transform: translateY(0); opacity: 1; } }

.hero-subtitle { font-size: clamp(1rem,1.4vw,1.1rem); color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 2rem; opacity: 0; animation: fadeUp 0.7s ease 1s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; animation: fadeUp 0.7s ease 1.2s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; opacity: 0; animation: fadeUp 0.7s ease 1.4s forwards; }
.stat-number { font-family: var(--font-display); font-size: 2rem; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }

.hero-visual { position: relative; opacity: 0; animation: fadeUp 0.9s ease 0.6s forwards; }

.hero-card-main { background: white; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); position: relative; overflow: hidden; }
.hero-card-main::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green-mid), var(--gold)); }

.hero-card-img {
  width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--green-pale), var(--gray-200));
}

.hero-card-info h4 { color: var(--green-deep); margin-bottom: 0.2rem; font-size: 1rem; }
.hero-card-info p { font-size: 0.85rem; color: var(--gray-500); }

.hero-card-float { position: absolute; background: white; border-radius: var(--radius); padding: 0.9rem 1.1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.65rem; }
.hero-card-float-1 { top: -1.2rem; right: -1.2rem; animation: float1 4s ease-in-out infinite; }
.hero-card-float-2 { bottom: 3.5rem; left: -1.5rem; animation: float2 5s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }

.float-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.float-icon.green { background: var(--green-pale); color: var(--green-deep); }
.float-icon.gold { background: #FBF3DC; color: var(--gold); }
.float-text span:first-child { display: block; font-size: 0.7rem; color: var(--gray-500); }
.float-text strong { font-size: 0.88rem; color: var(--black); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.8rem; border-radius: 50px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); position: relative; overflow: hidden; will-change: transform; }
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.15); opacity: 0; transition: opacity var(--transition); border-radius: inherit; }
.btn:hover::after { opacity: 1; }
.btn-primary { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); color: white; box-shadow: 0 4px 20px rgba(10,92,54,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(10,92,54,0.4); }
.btn-secondary { background: transparent; color: var(--green-deep); border: 2px solid var(--green-mid); }
.btn-secondary:hover { background: var(--green-pale); transform: translateY(-3px); }
.btn-white { background: white; color: var(--green-deep); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--black); box-shadow: 0 4px 20px rgba(201,168,76,0.3); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(201,168,76,0.4); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.4); transform: scale(0); animation: ripple 0.6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Mission Strip ── */
.mission-strip { background: linear-gradient(135deg, var(--green-deep), var(--blue-deep)); color: white; padding: 2.5rem 0; }
.mission-strip .container { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; justify-content: center; }
.mission-item { display: flex; align-items: center; gap: 0.75rem; }
.mission-item i { font-size: 1.5rem; color: var(--gold-light); }
.mission-item strong { display: block; font-weight: 600; font-size: 0.95rem; }
.mission-item span { font-size: 0.82rem; opacity: 0.75; }
.mission-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ── Services ── */
.services-section { background: var(--gray-100); }
.services-bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.service-card { background: white; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform var(--transition), box-shadow var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green-mid), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured { grid-column: span 2; background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); color: white; border-color: transparent; }
.service-card.featured p { color: rgba(255,255,255,0.8); }
.service-card.featured .service-icon { background: rgba(255,255,255,0.15); color: white; }
.service-card.featured::before { display: none; }
.service-card.blue-accent { background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid)); color: white; border-color: transparent; }
.service-card.blue-accent p { color: rgba(255,255,255,0.8); }
.service-card.blue-accent .service-icon { background: rgba(255,255,255,0.15); color: white; }
.service-card.blue-accent::before { display: none; }
.service-icon { width: 52px; height: 52px; background: var(--green-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--green-deep); margin-bottom: 1.25rem; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.92rem; line-height: 1.7; }
.service-epargne-list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.epargne-tag { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; padding: 0.3rem 0.8rem; font-size: 0.78rem; font-weight: 500; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.about-img-stack { position: relative; }
.about-img-main { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--green-pale), var(--gray-200)); }
.about-img-float { position: absolute; bottom: -2rem; right: -2rem; width: 200px; height: 160px; object-fit: cover; border-radius: var(--radius); border: 4px solid white; box-shadow: var(--shadow-md); background: var(--gray-200); }
.about-badge-year { position: absolute; top: 1.5rem; left: 1.5rem; background: white; border-radius: var(--radius); padding: 0.75rem 1rem; box-shadow: var(--shadow-md); text-align: center; }
.about-badge-year .year { font-family: var(--font-display); font-size: 2rem; color: var(--green-deep); line-height: 1; }
.about-badge-year .year-label { font-size: 0.72rem; color: var(--gray-500); }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.value-item { background: var(--gray-100); border-radius: var(--radius); padding: 1rem 1.25rem; border-left: 3px solid var(--green-mid); }
.value-item i { color: var(--green-mid); margin-bottom: 0.4rem; }
.value-item strong { display: block; font-size: 0.88rem; color: var(--black); margin-bottom: 0.2rem; }
.value-item span { font-size: 0.8rem; color: var(--gray-500); }

/* ── Members ── */
.members-section { background: var(--green-deep); color: white; }
.members-section .section-label { color: var(--gold-light); }
.members-section .section-label::before { background: var(--gold-light); }
.members-section h2 { color: white; }
.members-section .section-header p { color: rgba(255,255,255,0.7); }
.members-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.member-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; transition: background var(--transition), transform var(--transition); }
.member-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.member-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.member-card:nth-child(1) .member-icon { background: rgba(201,168,76,0.3); color: var(--gold-light); }
.member-card:nth-child(2) .member-icon { background: rgba(46,184,114,0.3); color: var(--green-light); }
.member-card:nth-child(3) .member-icon { background: rgba(74,144,217,0.3); color: var(--blue-light); }
.member-card:nth-child(4) .member-icon { background: rgba(255,255,255,0.2); color: white; }
.member-card h4 { color: white; margin-bottom: 0.5rem; }
.member-card p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: auto auto; gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--gray-200); min-height: 200px; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform 0.5s ease; display: block; }
.gallery-item.large img { min-height: 420px; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,92,54,0.85), transparent 60%); opacity: 0; transition: opacity var(--transition); display: flex; align-items: flex-end; padding: 1.25rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-size: 0.9rem; font-weight: 500; }

/* ── Galerie page — masonry grid ── */
.gallery-masonry { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery-masonry-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--gray-200); }
.gallery-masonry-item img { width: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; min-height: 180px; }
.gallery-masonry-item:hover img { transform: scale(1.06); }
.gallery-masonry-item .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,92,54,0.85), transparent 60%); opacity: 0; transition: opacity var(--transition); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; }
.gallery-masonry-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay small { color: rgba(255,255,255,0.65); font-size: 0.78rem; }

/* Image skeleton loader */
.img-placeholder {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Donation ── */
.donation-section { background: linear-gradient(135deg, var(--gold) 0%, #A07828 100%); color: white; }
.donation-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.donation-text h2 { color: white; margin-bottom: 1rem; }
.donation-text p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.donation-card { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(10px); }
.donation-card h4 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.donation-items { display: flex; flex-direction: column; gap: 0.75rem; }
.donation-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: rgba(255,255,255,0.1); border-radius: var(--radius); font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.donation-item i { color: rgba(255,255,255,0.7); width: 20px; text-align: center; }

/* ── Stats ── */
.stats-section { background: var(--gray-100); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform var(--transition), box-shadow var(--transition); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .count-number { font-family: var(--font-display); font-size: 3rem; color: var(--green-deep); line-height: 1; }
.stat-card .count-suffix { font-size: 1.5rem; color: var(--gold); font-weight: 600; }
.stat-card .stat-desc { font-size: 0.88rem; color: var(--gray-500); margin-top: 0.5rem; }

/* ── Contact PAGE ── */
/* Layout: colonne info+maps | colonne formulaire compact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block { }
.contact-info-block h2 { margin-bottom: 0.75rem; }
.contact-info-block > p { margin-bottom: 1.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.9rem 1rem; background: var(--gray-100); border-radius: var(--radius); }
.contact-detail-icon { width: 38px; height: 38px; background: var(--green-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--green-deep); font-size: 0.9rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: 0.78rem; color: var(--gray-500); margin-bottom: 0.15rem; }
.contact-detail-text span { font-size: 0.88rem; color: var(--black); }

.social-links { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.social-link { width: 40px; height: 40px; background: var(--green-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--green-deep); font-size: 1rem; transition: background var(--transition), transform var(--transition), color var(--transition); }
.social-link:hover { background: var(--green-mid); color: white; transform: translateY(-3px); }

/* Maps grand format */
.maps-block { margin-top: 1.5rem; }
.maps-block h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.maps-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.maps-wrapper iframe { width: 100%; height: 340px; border: none; display: block; }

/* Formulaire compact */
.contact-form-wrapper { background: white; border-radius: var(--radius-lg); padding: 2rem 2.25rem; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); position: sticky; top: 92px; }
.contact-form-wrapper h3 { margin-bottom: 0.5rem; font-size: 1.6rem; }
.contact-form-wrapper .form-intro { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.3rem; }
.form-control { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem; color: var(--black); background: var(--gray-100); transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); outline: none; }
.form-control:focus { border-color: var(--green-mid); background: white; box-shadow: 0 0 0 3px rgba(26,138,82,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-control::placeholder { color: var(--gray-500); }
select.form-control { cursor: pointer; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative; overflow: hidden;
  color: white;
}

/* Chaque page hero a sa propre image */
.page-hero.hero-about {
  background-image: url('https://images.unsplash.com/photo-1491438590914-bc09fcaaf77a?w=1600&q=85&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.page-hero.hero-services {
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1600&q=85&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.page-hero.hero-gallery {
  background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?w=1600&q=85&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.page-hero.hero-contact {
  background-image: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?w=1600&q=85&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.page-hero.hero-inscription {
  background-image: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1600&q=85&auto=format&fit=crop');
  background-size: cover; background-position: center;
}
.page-hero.hero-legal {
  background: linear-gradient(135deg, var(--green-deep), var(--blue-deep));
}

/* Overlay unifié sur tous les page-hero */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,92,54,0.80) 0%, rgba(13,59,110,0.65) 60%, rgba(10,92,54,0.50) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 0.75rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 560px; font-size: 1.05rem; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb i { font-size: 0.6rem; }

/* ── Inscription Form ── */
.inscription-section { background: var(--gray-100); }
.inscription-form-card { background: white; border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3.5rem); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); max-width: 860px; margin: 0 auto; }
.form-section-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--green-deep); margin: 2rem 0 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--green-pale); display: flex; align-items: center; gap: 0.5rem; }
.form-section-title i { color: var(--green-mid); }
.form-note { background: var(--green-pale); border-left: 3px solid var(--green-mid); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.9rem 1.2rem; font-size: 0.86rem; color: var(--green-deep); margin: 1.25rem 0; }

/* ── Policy Pages ── */
.policy-section { }
.policy-content { max-width: 780px; margin: 0 auto; }
.policy-content h2 { font-size: 1.5rem; color: var(--green-deep); margin: 2.5rem 0 0.75rem; }
.policy-content h3 { font-size: 1.15rem; color: var(--black); margin: 1.5rem 0 0.5rem; }
.policy-content p { margin-bottom: 1rem; }
.policy-content ul { list-style: disc; padding-left: 1.5rem; }
.policy-content ul li { margin-bottom: 0.4rem; color: var(--gray-700); font-size: 0.95rem; }

/* ── Footer COMPLET ── */
footer { background: var(--black); color: white; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-mark { background: linear-gradient(135deg, var(--green-mid), var(--green-light)); }
.footer-brand .logo-text span { color: white; }
.footer-brand .logo-text span:last-child { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.7; margin-top: 1rem; margin-bottom: 1.25rem; max-width: 280px; }
.footer-brand .social-links { flex-wrap: wrap; }
.footer-brand .social-link { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.footer-brand .social-link:hover { background: var(--green-mid); color: white; }

.footer-col h5 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition), padding-left var(--transition); }
.footer-col ul a:hover { color: var(--green-light); padding-left: 0.3rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.footer-contact-item i { color: var(--green-light); font-size: 0.85rem; margin-top: 0.25rem; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-hours { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 0.75rem 1rem; margin-top: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 0.5rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--green-light); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-lang { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-kinerty { color: rgba(255,255,255,0.3); font-size: 0.78rem; }
.footer-kinerty a { color: rgba(255,255,255,0.45); }
.footer-kinerty a:hover { color: var(--green-light); }

/* ── WhatsApp & Back to Top ── */
#whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; box-shadow: 0 4px 24px rgba(37,211,102,0.4); z-index: 9999; transition: transform var(--transition), box-shadow var(--transition); will-change: transform; animation: pulse-wa 3s infinite; }
#whatsapp-float:hover { transform: scale(1.15); box-shadow: 0 8px 32px rgba(37,211,102,0.5); animation: none; }
@keyframes pulse-wa { 0%,100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 40px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.1); } }
#back-to-top { position: fixed; bottom: 5.5rem; right: 2rem; width: 44px; height: 44px; background: white; border: 1.5px solid var(--gray-200); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--green-deep); box-shadow: var(--shadow-md); z-index: 998; opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition); cursor: pointer; }
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-4px); background: var(--green-pale); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-stack { margin-bottom: 2rem; }
  .services-bento { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-column: span 2; }
  .members-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-wrapper { position: static; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-cta-desktop { display: none; }
  .services-bento { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-column: span 2; }
  .gallery-masonry { grid-template-columns: 1fr 1fr; }
  .donation-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mission-strip .container { flex-direction: column; gap: 1.5rem; }
  .mission-divider { width: 40px; height: 1px; }
  .members-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-img-float { display: none; }
  .maps-wrapper iframe { height: 250px; }
}
@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
  .gallery-masonry { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 0.75rem; }
}
