/* ==========================================================
   SMILE EN COLOMBIA — style.css
   Design system : Navy / Rouge / Jaune / Turquoise / Bleu
   Police : Gabarito (Google Fonts)
   ========================================================== */

/* ── 1. VARIABLES & RESET ─────────────────────────────────── */
:root {
  --navy:     #0D1B4B;
  --red:      #E8392E;
  --yellow:   #F5B731;
  --turquoise:#00C9A7;
  --blue:     #3B6FE0;
  --light:    #FFF9F0;
  --white:    #FFFFFF;
  --gray-100: #F8F8F8;
  --gray-200: #E8E8E8;
  --gray-600: #6B7280;

  --font: 'Gabarito', sans-serif;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm:  0 2px 12px rgba(13,27,75,.08);
  --shadow-md:  0 8px 32px rgba(13,27,75,.12);
  --shadow-lg:  0 16px 48px rgba(13,27,75,.18);
  --shadow-xl:  0 24px 64px rgba(13,27,75,.22);

  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.7s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--white);
  color: var(--navy);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── 2. BARRE DE PROGRESSION ──────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--red), var(--turquoise));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── 3. CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── 4. BOUTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.2);
  transform: scale(0);
  border-radius: inherit;
  transition: transform .4s ease;
}
.btn:active::after { transform: scale(2); opacity: 0; transition: 0s; }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(245,183,49,.4);
}
.btn-yellow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(245,183,49,.55);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-lg  { padding: 16px 40px; font-size: 1.05rem; }
.btn-xl  { padding: 20px 56px; font-size: 1.15rem; letter-spacing: .02em; }

/* Lien texte avec flèche */
.btn-text-link {
  font-weight: 600;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), opacity var(--transition);
}
.btn-text-link:hover { gap: 12px; opacity: .85; }

/* ── 5. NAVIGATION ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-110%);
  transition: transform .55s cubic-bezier(.34,1.45,.64,1),
              opacity .3s ease,
              background var(--transition),
              box-shadow var(--transition),
              padding var(--transition);
}

#navbar.scrolled {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  background: rgba(255,249,240,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(13,27,75,.1);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { display: block; height: 48px; width: auto; transition: transform var(--transition); }
.nav-logo:hover .logo-img { transform: scale(1.04); }
.footer-logo-link .logo-img { height: 52px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--transition);
}
.nav-link:hover { background: rgba(59,111,224,.08); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto; /* pousse tout à l'extrême droite */
}

.nav-cta { padding: 10px 24px; font-size: .95rem; }

/* ── Toggle langue flip 3D ───────────────────────────────── */
.lang-toggle {
  position: relative;
  width: 72px;
  height: 36px;
  perspective: 600px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.lang-toggle-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.34,1.25,.64,1);
}

/* Quand ES est actif : rotation Y 180° */
.lang-toggle.es-active .lang-toggle-inner {
  transform: rotateY(180deg);
}

/* Les deux faces */
.lang-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-family: var(--font);
  font-weight: 600;
  font-size: .82rem;
  color: var(--navy);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.lang-face svg { border-radius: 3px; overflow: hidden; flex-shrink: 0; }

/* Face ES : dos (retournée) */
.lang-face-es {
  transform: rotateY(180deg);
}

/* Hover */
.lang-toggle:hover .lang-face {
  border-color: var(--blue);
  background: rgba(59,111,224,.06);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── 6. BANNIÈRE COUVERTURE ────────────────────────────────── */
.banner-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}
.banner-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.banner-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F5B731 0%, #00C9A7 50%, #0D1B4B 100%);
  z-index: 0;
}

/* ── 7. SECTION HERO ──────────────────────────────────────── */
#hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 100px 0 0;
}

/* Orbs flottantes */
.orbs-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .13;
  will-change: transform;
}
.orb-1 {
  width: 420px; height: 420px;
  background: var(--blue);
  top: -80px; left: -100px;
  animation: orbFloat1 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 300px; height: 300px;
  background: var(--turquoise);
  top: 30%; right: -60px;
  animation: orbFloat2 10s ease-in-out infinite alternate;
}
.orb-3 {
  width: 250px; height: 250px;
  background: var(--yellow);
  bottom: 80px; left: 30%;
  animation: orbFloat3 12s ease-in-out infinite alternate;
}
.orb-4 {
  width: 180px; height: 180px;
  background: var(--red);
  top: 15%; left: 55%;
  animation: orbFloat4 9s ease-in-out infinite alternate;
}
.orb-5 {
  width: 350px; height: 350px;
  background: #6B4EFF;
  bottom: -100px; right: 20%;
  animation: orbFloat1 16s ease-in-out infinite alternate-reverse;
  opacity: .08;
}

@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-20px, 40px) scale(.95); }
  100% { transform: translate(30px, 20px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50px, 30px) scale(1.12); }
  100% { transform: translate(20px, -40px) scale(.9); }
}
@keyframes orbFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(30px, -50px) scale(1.1); }
  100% { transform: translate(-40px, 20px) scale(.95); }
}
@keyframes orbFloat4 {
  0%   { transform: translate(0, 0) scale(1); }
  60%  { transform: translate(-25px, 35px) scale(1.15); }
  100% { transform: translate(35px, -25px) scale(.9); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid rgba(245,183,49,.5);
  color: var(--yellow);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,183,49,.0); }
  50%       { box-shadow: 0 0 0 6px rgba(245,183,49,.08); }
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

.highlight-yellow {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}
/* Soulignement animé sous le mot mis en valeur */
.highlight-yellow::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 1s .8s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes underlineGrow { to { transform: scaleX(1); } }

.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Stats hero */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  backdrop-filter: blur(8px);
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}
.hero-stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  letter-spacing: .02em;
}
.hero-stat-div {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Image hero */
.hero-image-wrapper {
  position: relative;
}
.hero-img-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
}
.hero-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hero-img-frame:hover img { transform: scale(1.03); }

.img-placeholder-frame {
  background: linear-gradient(135deg, var(--blue) 0%, var(--turquoise) 100%);
}

/* Décorations autour de l'image hero */
.hero-img-deco {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.hero-img-deco-1 {
  width: 180px; height: 180px;
  background: var(--yellow);
  opacity: 1;
  bottom: -30px; right: -30px;
  animation: decoFloat 8s ease-in-out infinite alternate;
}
.hero-img-deco-2 {
  width: 100px; height: 100px;
  background: var(--red);
  opacity: 1;
  top: -20px; left: -20px;
  animation: decoFloat 6s ease-in-out infinite alternate-reverse;
}
@keyframes decoFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(10px, -15px) scale(1.1); }
}

/* Wave de transition */
.wave-bottom {
  position: relative;
  line-height: 0;
  margin-top: -2px;
}
.wave-bottom svg { display: block; width: 100%; }

/* ── 8. SECTION STATS ─────────────────────────────────────── */
#stats {
  background: var(--light);
  padding: 100px 0;
}
#stats .section-tag { margin-bottom: 16px; }
#stats .section-title { margin-bottom: 56px; }

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 32px;
  flex: 1;
}
.stat-bar {
  height: 5px;
  background: var(--bar-color, var(--blue));
  border-radius: 0;
  margin-top: auto;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s .3s cubic-bezier(.4,0,.2,1);
}
.stat-card.visible .stat-bar { transform: scaleX(1); }

/* ── 9. SECTION MISSION ───────────────────────────────────── */
#mission {
  background: var(--white);
  padding: 100px 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Collage photos */
.mission-photos {
  position: relative;
  height: 560px;
}
.mission-photo-main {
  position: absolute;
  top: 0; left: 0;
  width: 82%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
}
.mission-photo-main img { width: 100%; height: 100%; object-fit: cover; }

.mission-photo-sec {
  position: absolute;
  bottom: 0; right: 0;
  width: 62%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 2;
  background: linear-gradient(135deg, var(--yellow), var(--red));
  transition: transform var(--transition), box-shadow var(--transition);
}
.mission-photo-sec:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 32px 72px rgba(13,27,75,.28); }
.mission-photo-sec img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Texte mission */
.mission-content .section-tag { display: inline-block; margin-bottom: 16px; }
.section-title.red { color: var(--red); }

.mission-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.mission-list-label {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 10px !important;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mission-list li {
  color: var(--gray-600);
  font-size: 1.0rem;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.mission-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.mission-goal {
  color: var(--navy) !important;
  font-weight: 600;
  font-style: italic;
  margin-top: 4px;
}

.mission-quote {
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  background: rgba(232,57,46,.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 32px;
}

.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-tag {
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--light);
  border: 1.5px solid var(--gray-200);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: default;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.pill-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ── 10. SECTION IMPACT DON ───────────────────────────────── */
#impact-don {
  background: var(--light);
  padding: 100px 0;
}
#impact-don .section-tag { margin-bottom: 16px; }
#impact-don .section-title { margin-bottom: 56px; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.impact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  padding: 0 0 32px;
}
.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.impact-bar-top {
  height: 6px;
  background: var(--bar-color, var(--yellow));
  width: 100%;
  margin-bottom: 28px;
}

.impact-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0 28px;
  margin-bottom: 12px;
}

.impact-desc {
  padding: 0 28px;
  color: var(--gray-600);
  font-size: .98rem;
  line-height: 1.65;
  flex: 1;
}

.impact-icon {
  padding: 20px 28px 0;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bar-color, var(--navy));
}
.impact-icon svg {
  display: block;
}

/* ── 11. SECTION DON ─────────────────────────────────────── */
#don {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
}

.don-inner { position: relative; z-index: 1; }

#don .section-title.white { color: var(--white); margin-bottom: 16px; }

.don-subtitle {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Boutons montants */
.don-amounts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.25);
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.amount-btn:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}
.amount-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  box-shadow: 0 6px 24px rgba(245,183,49,.4);
  transform: translateY(-2px);
}

/* Champ montant libre */
.don-custom {
  margin-bottom: 36px;
}
.don-custom input {
  padding: 14px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  text-align: center;
  width: 220px;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.don-custom input::placeholder { color: rgba(255,255,255,.45); }
.don-custom input:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,.12);
}
/* Masquer les flèches number input */
.don-custom input::-webkit-inner-spin-button,
.don-custom input::-webkit-outer-spin-button { -webkit-appearance: none; }

#don-cta { margin-bottom: 28px; }

.don-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.don-note-pill {
  color: var(--turquoise);
  font-weight: 600;
  font-size: .9rem;
}
.don-note-sep { color: rgba(255,255,255,.3); font-size: 1.1rem; }

/* ── 12. SECTION GALERIE ─────────────────────────────────── */
#galerie {
  background: var(--white);
  padding: 100px 0;
}
#galerie .section-tag { margin-bottom: 16px; }
#galerie .section-title { margin-bottom: 48px; }

.galerie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.gal-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
}
.gal-large { grid-row: span 2; }

.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  display: block;
}
.gal-item:hover img { transform: scale(1.07); }

.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,75,.5);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.gal-item:hover .gal-overlay { opacity: 1; }

/* Placeholder galerie si pas de photo */
.gal-placeholder { background: linear-gradient(135deg, #2a3f8a, #00C9A7); }
.gal-placeholder img { display: none; }

/* ── 13. SECTION MÉCÉNAT + DON (fusionnés) ──────────────── */
#mecenat {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
#mecenat .section-tag  { margin-bottom: 16px; }
#mecenat .section-title { margin-bottom: 48px; }

/* ── Grille 5 cartes ── */
.mec5-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

/* ── Carte mécénat — design blanc élégant ── */
.mec5-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(255,255,255,.12);
  cursor: default;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .4s cubic-bezier(.34,1.3,.64,1),
              box-shadow .4s ease,
              background .3s ease,
              border-color .3s ease;
}
.mec5-card:hover {
  transform: scale(1.08) translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
  background: var(--mec-color);
  border-color: var(--mec-color);
  z-index: 2;
}

/* Barre colorée en haut */
.mec5-header {
  height: 5px;
  background: var(--mec-color, var(--blue));
  flex-shrink: 0;
  transition: height .3s ease;
}
.mec5-card:hover .mec5-header { height: 0; }

/* Corps de carte */
.mec5-body {
  padding: 22px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Nom du tier — coloré au repos, blanc au hover */
.mec5-tier {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mec-color);
  transition: color .3s ease;
}
.mec5-card:hover .mec5-tier { color: rgba(255,255,255,.85); }

.mec5-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  transition: color .3s ease;
}
.mec5-card:hover .mec5-amount { color: var(--white); }

.mec5-desc {
  font-size: .83rem;
  color: var(--gray-600);
  line-height: 1.55;
  transition: color .3s ease;
}
.mec5-card:hover .mec5-desc { color: rgba(255,255,255,.8); }

/* ── Séparateur compact ── */
.mec-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  margin: 12px auto;
}

/* ── Bloc don intégré ── */
.don-inner {
  position: relative;
  z-index: 1;
  padding-top: 0;
}
#mecenat #don {
  background: transparent;
  overflow: visible;
  padding-top: 24px;
  padding-bottom: 0;
}
#mecenat .section-title         { margin-bottom: 32px; }
#mecenat .don-inner .section-title { margin-bottom: 10px; margin-top: 0; }

/* ── 14. FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 80px 0 0;
  color: rgba(255,255,255,.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 64px;
  padding-bottom: 64px;
}

.footer-logo-link { display: inline-block; margin-bottom: 20px; }

.footer-desc {
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
  max-width: 320px;
}

.footer-nav h3,
.footer-contact h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .03em;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--yellow); padding-left: 4px; }

.footer-contact { font-style: normal; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
}
.footer-legal { font-size: .8rem; }

/* ── 15. UTILITIES & SECTIONS ──────────────────────────────── */
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(59,111,224,.1);
  border: 1.5px solid rgba(59,111,224,.25);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tag-light {
  background: rgba(245,183,49,.15);
  border-color: rgba(245,183,49,.35);
  color: var(--yellow);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.section-title.white { color: var(--white); }

/* ── 16. ANIMATIONS REVEAL (scroll) ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais cascade */
.d1 { transition-delay: .05s; }
.d2 { transition-delay: .15s; }
.d3 { transition-delay: .25s; }
.d4 { transition-delay: .35s; }
.d5 { transition-delay: .45s; }

/* ── 17. MAGNETIC BUTTON (via JS) ──────────────────────────── */
.btn-magnetic {
  transition: transform .3s cubic-bezier(.4,0,.2,1),
              box-shadow .3s cubic-bezier(.4,0,.2,1);
}

/* ── 18. RESPONSIVE — 1024px ────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 48px; }
  .mission-grid { gap: 48px; }
}

/* ── 19. RESPONSIVE — 768px ─────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Nav mobile */
  .nav-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,249,240,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 999;
  }
  .nav-menu.open { opacity: 1; pointer-events: all; }
  .nav-link { font-size: 1.4rem; padding: 12px 24px; }
  .nav-right { display: none; }
  .hamburger { display: flex; z-index: 1001; }
  #navbar .nav-inner { justify-content: space-between; }

  /* Bannière */
  .banner-wrapper { height: 280px; }

  /* Hero */
  #hero { padding: 100px 0 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-bottom: 60px;
  }
  .hero-content { order: 1; }
  .hero-image-wrapper { order: 0; max-width: 360px; margin: 0 auto; }
  .hero-stats { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-subtitle { margin: 0 auto 36px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Mission */
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
  .mission-photos { height: 380px; }
  .mission-content { text-align: center; }
  .mission-tags { justify-content: center; }

  /* Impact */
  .impact-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Don */
  .don-amounts { gap: 8px; }
  .amount-btn { padding: 12px 20px; font-size: .95rem; }

  /* Galerie */
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .gal-large { grid-row: span 1; }

  /* Mécénat 5 cartes → 2 colonnes sur mobile */
  .mec5-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

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

/* ── 20. RESPONSIVE — 480px ─────────────────────────────────── */
@media (max-width: 480px) {
  .hero-grid { gap: 32px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .hero-stat-div { width: 80px; height: 1px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .galerie-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 240px);
  }
  .gal-large { grid-row: span 1; }
  .mec5-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .banner-wrapper { height: 200px; }
  .btn-xl { padding: 16px 40px; font-size: 1.05rem; }
}

/* ── 21. PRÉFÉRENCES ACCESSIBILITÉ ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
