/* ============================================================
   Fondation Giv'in Love — Design System
   Palette : Bleu #1E88E5 · Vert #43A047 · Doré #C9A227 · Gris clair
   ============================================================ */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
}

:root {
  --bleu: #1E88E5;
  --bleu-fonce: #1565C0;
  --bleu-nuit: #0D3B66;
  --vert: #43A047;
  --vert-fonce: #2E7D32;
  --or: #C9A227;
  --or-clair: #E8D48B;

  --bg: #ffffff;
  --bg-soft: #F5F8FB;
  --bg-card: #ffffff;
  --ink: #16232E;
  --ink-soft: #4A5A68;
  --ink-faint: #7B8A97;
  --line: #E3EAF1;
  --shadow: 0 10px 30px rgba(13, 59, 102, .08);
  --shadow-lg: 0 24px 60px rgba(13, 59, 102, .14);
  --hero-overlay: linear-gradient(180deg, rgba(10, 30, 50, .45), rgba(10, 30, 50, .62));

  --radius: 18px;
  --radius-sm: 12px;
  --font-title: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0E1720;
  --bg-soft: #121E29;
  --bg-card: #172532;
  --ink: #EAF2F8;
  --ink-soft: #A9BCCB;
  --ink-faint: #7D93A5;
  --line: #22384A;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  --hero-overlay: linear-gradient(180deg, rgba(5, 15, 26, .55), rgba(5, 15, 26, .72));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-fonce); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-title); font-weight: 600; font-size: .84rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bleu);
  margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--or); }
.kicker.k-center { justify-content: center; }
.kicker.k-center::after { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--or); }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 46em; }
.center .lead { margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--bleu); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-title); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--bleu); color: #fff; box-shadow: 0 10px 24px rgba(30, 136, 229, .35); }
.btn-primary:hover { background: var(--bleu-fonce); color: #fff; }
.btn-don { background: var(--vert); color: #fff; box-shadow: 0 10px 24px rgba(67, 160, 71, .35); }
.btn-don:hover { background: var(--vert-fonce); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-outline { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn-outline:hover { background: var(--bleu); color: #fff; }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding-block: 1rem;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(13, 59, 102, .08);
  padding-block: .45rem;
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-title); font-weight: 700; font-size: 1.12rem; color: #fff; }
.brand .brand-txt small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.scrolled .brand, .header-solid .brand { color: var(--ink); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bleu), var(--vert));
  color: #fff; box-shadow: 0 6px 16px rgba(30, 136, 229, .35);
}
.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: .55rem .8rem; border-radius: 10px;
  font-family: var(--font-title); font-weight: 500; font-size: .92rem; color: rgba(255, 255, 255, .92);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.scrolled .nav-links a, .header-solid .nav-links a { color: var(--ink-soft); }
.scrolled .nav-links a:hover, .header-solid .nav-links a:hover { background: var(--bg-soft); color: var(--bleu); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .16); }
.scrolled .nav-links a[aria-current="page"], .header-solid .nav-links a[aria-current="page"] { color: var(--bleu); background: color-mix(in srgb, var(--bleu) 10%, transparent); }
.nav-cta { margin-left: .4rem; }
.nav .btn-don { padding: .6rem 1.25rem; font-size: .9rem; }

.theme-toggle, .nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.scrolled .theme-toggle, .scrolled .nav-burger,
.header-solid .theme-toggle, .header-solid .nav-burger { border-color: var(--line); color: var(--ink); }
.theme-toggle:hover, .nav-burger:hover { background: rgba(128, 160, 190, .18); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-burger { display: none; }

/* Header sur pages sans hero photo (admin) */
.header-solid { position: sticky; background: var(--bg); box-shadow: 0 4px 18px rgba(13, 59, 102, .06); }

/* ---------- Menu mobile ---------- */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 90;
    flex-direction: column; justify-content: center; gap: .4rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 1.35rem; color: var(--ink) !important; padding: .8rem 1.6rem; opacity: 0; transform: translateY(12px); }
  .nav-links.open a { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .nav-links.open li:nth-child(1) a { transition-delay: .05s; } .nav-links.open li:nth-child(2) a { transition-delay: .1s; }
  .nav-links.open li:nth-child(3) a { transition-delay: .15s; } .nav-links.open li:nth-child(4) a { transition-delay: .2s; }
  .nav-links.open li:nth-child(5) a { transition-delay: .25s; } .nav-links.open li:nth-child(6) a { transition-delay: .3s; }
  .nav-links.open li:nth-child(7) a { transition-delay: .35s; } .nav-links.open li:nth-child(8) a { transition-delay: .4s; }
  .nav-burger { display: grid; margin-left: auto; position: relative; z-index: 95; }
  .nav-cta { display: none; }
  .nav .theme-toggle { margin-left: 0; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-burger { border-color: var(--line); color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.hero-inner { padding-block: 8rem 6rem; max-width: 780px; }
.hero .kicker { color: var(--or-clair); }
.hero h1 { color: #fff; text-wrap: balance; }
.hero .lead { color: rgba(255, 255, 255, .9); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 2rem; translate: -50% 0;
  color: rgba(255,255,255,.85); display: grid; justify-items: center; gap: .3rem; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
}
.hero-scroll .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 4px; height: 8px; border-radius: 3px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: .2; } }

/* Hero de page interne */
.hero-page { min-height: 62svh; }
.hero-page .hero-inner { padding-block: 9rem 4.5rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .86rem; }
.breadcrumbs a { color: rgba(255,255,255,.8); }
.breadcrumbs li + li::before { content: "›"; margin-right: .45rem; color: rgba(255,255,255,.55); }
.breadcrumbs [aria-current] { color: var(--or-clair); }

/* ---------- Bandeau statistiques ---------- */
.stats { position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem;
  margin-top: -4.2rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.7rem 1.5rem; text-align: center;
}
.stat-num { font-family: var(--font-title); font-weight: 700; font-size: 2.35rem; color: var(--bleu); line-height: 1.1; }
.stat-num .suffix { color: var(--or); }
.stat-label { font-size: .92rem; color: var(--ink-soft); margin-top: .35rem; }
.stat-card:nth-child(2) .stat-num { color: var(--vert); }
.stat-card:nth-child(4) .stat-num { color: var(--vert); }

/* ---------- Grilles / cartes ---------- */
.grid-2 { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.grid-3 { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 1.5rem 1.5rem 1.6rem; }
.card-body p { font-size: .95rem; margin-bottom: .9rem; }
.card-link { font-family: var(--font-title); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.card-link .arr { transition: transform .25s var(--ease); }
.card-link:hover .arr { transform: translateX(4px); }

.chip {
  position: absolute; top: 1rem; left: 1rem;
  background: color-mix(in srgb, var(--bleu-nuit) 72%, transparent); color: #fff;
  backdrop-filter: blur(6px);
  font-family: var(--font-title); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--bleu) 12%, transparent); color: var(--bleu); margin-bottom: 1.1rem;
}
.icon-badge.green { background: color-mix(in srgb, var(--vert) 13%, transparent); color: var(--vert); }
.icon-badge.gold { background: color-mix(in srgb, var(--or) 15%, transparent); color: var(--or); }

/* Cartes d'action avec image de fond */
.action-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.action-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.action-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.action-card:hover img { transform: scale(1.08); }
.action-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(190deg, rgba(10,30,50,.05) 30%, rgba(10,30,50,.86) 88%);
  transition: background .4s var(--ease);
}
.action-body { padding: 1.7rem; width: 100%; }
.action-body h3 { color: #fff; display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.action-body h3 svg { flex: none; color: var(--or-clair); }
.action-body p { color: rgba(255,255,255,.86); font-size: .93rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s var(--ease); }
.action-card:hover p, .action-card:focus-within p { max-height: 200px; opacity: 1; margin-top: .5rem; }
.action-body .card-link { color: var(--or-clair); margin-top: .7rem; }

/* ---------- Split image/texte ---------- */
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.media-frame .frame-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  display: flex; align-items: center; gap: .9rem;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent); backdrop-filter: blur(10px);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; box-shadow: var(--shadow);
}
.frame-badge strong { font-family: var(--font-title); color: var(--ink); display: block; line-height: 1.3; }
.frame-badge span { font-size: .85rem; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { flex: none; margin-top: .22em; color: var(--vert); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 2.5rem 0; padding-left: 0; list-style: none; display: grid; gap: 2rem; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--bleu), var(--vert), var(--or)); }
.timeline li { position: relative; padding-left: 76px; }
.timeline .dot {
  position: absolute; left: 8px; top: 0; width: 39px; height: 39px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-card); border: 3px solid var(--bleu);
  color: var(--bleu); font-family: var(--font-title); font-weight: 700; font-size: .8rem;
  box-shadow: var(--shadow);
}
.timeline li:nth-child(2n) .dot { border-color: var(--vert); color: var(--vert); }
.timeline li:nth-child(3n) .dot { border-color: var(--or); color: var(--or); }
.timeline h3 { margin-bottom: .3rem; }
.timeline .tl-year { font-family: var(--font-title); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bleu); }

/* ---------- Témoignages ---------- */
.quote-card { position: relative; padding: 2rem 1.8rem 1.8rem; }
.quote-card::before {
  content: "“"; position: absolute; top: .4rem; left: 1.4rem;
  font-family: var(--font-title); font-size: 4.4rem; line-height: 1; color: color-mix(in srgb, var(--or) 45%, transparent);
}
.quote-card blockquote { margin: 1.4rem 0 1.3rem; font-size: 1.02rem; color: var(--ink-soft); font-style: italic; }
.quote-who { display: flex; align-items: center; gap: .9rem; }
.quote-who img, .quote-who .avatar-fallback { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--bleu), var(--vert)); color: #fff; font-family: var(--font-title); font-weight: 700; }
.quote-who strong { font-family: var(--font-title); display: block; line-height: 1.25; }
.quote-who span { font-size: .84rem; color: var(--ink-faint); }

/* ---------- Galerie masonry ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 0 0 2.2rem; }
.filter-btn {
  font-family: var(--font-title); font-weight: 600; font-size: .88rem;
  padding: .55rem 1.25rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg-card); color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--bleu); color: var(--bleu); }
.filter-btn.active { background: var(--bleu); border-color: var(--bleu); color: #fff; box-shadow: 0 8px 20px rgba(30,136,229,.3); }

.masonry { columns: 3 300px; column-gap: 1.1rem; }
.masonry-item {
  position: relative; break-inside: avoid; margin-bottom: 1.1rem; border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); border: 0; padding: 0; width: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .4s var(--ease);
  background: var(--bg-card);
}
.masonry-item img { width: 100%; transition: transform .6s var(--ease); }
.masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-item figcaption {
  position: absolute; inset: auto 0 0; padding: 2.2rem 1.1rem .9rem; color: #fff; font-size: .88rem; text-align: left;
  background: linear-gradient(transparent, rgba(10,30,50,.78));
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.masonry-item:hover figcaption { opacity: 1; transform: none; }
.masonry-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 2rem;
  background: rgba(6, 16, 26, .92); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; margin-top: 1rem; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.2rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.2rem; top: 50%; translate: 0 -50%; }

/* ---------- Actualités ---------- */
.news-tools { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.search-box { position: relative; flex: 1 1 260px; max-width: 420px; }
.search-box input {
  width: 100%; padding: .8rem 1.1rem .8rem 2.9rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg-card); color: var(--ink); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bleu) 18%, transparent); }
.search-box svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--ink-faint); pointer-events: none; }
.news-meta { display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--ink-faint); margin-bottom: .55rem; }
.news-cat { font-family: var(--font-title); font-weight: 600; color: var(--vert); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; background: color-mix(in srgb, var(--vert) 12%, transparent); padding: .22rem .7rem; border-radius: 999px; }
.news-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); display: none; }

/* ---------- Dons ---------- */
.don-box { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .7rem; margin: 1.1rem 0 1.3rem; }
.amount-btn {
  font-family: var(--font-title); font-weight: 700; font-size: 1.08rem;
  padding: .95rem .4rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid var(--line); background: var(--bg); color: var(--ink);
  transition: all .22s var(--ease);
}
.amount-btn:hover { border-color: var(--vert); }
.amount-btn.active { background: var(--vert); border-color: var(--vert); color: #fff; box-shadow: 0 8px 20px rgba(67,160,71,.32); }
.freq-switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .28rem; gap: .25rem; }
.freq-switch button {
  font-family: var(--font-title); font-weight: 600; font-size: .9rem; border: 0; cursor: pointer;
  padding: .55rem 1.3rem; border-radius: 999px; background: transparent; color: var(--ink-soft); transition: all .22s;
}
.freq-switch button.active { background: var(--bleu); color: #fff; box-shadow: 0 6px 14px rgba(30,136,229,.3); }
.pay-methods { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.pay-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .45rem .9rem;
  font-size: .84rem; font-weight: 600; color: var(--ink-soft); background: var(--bg);
}
.impact-line { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--vert) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--vert) 40%, transparent); font-size: .95rem; color: var(--ink-soft); }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-title); font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.field label .req { color: #E53935; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1.05rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg-card); color: var(--ink); font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bleu) 16%, transparent);
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--ink-faint); }
.form-success {
  display: none; align-items: flex-start; gap: .8rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--vert) 12%, transparent); border: 1px solid color-mix(in srgb, var(--vert) 40%, transparent);
  color: var(--ink); margin-top: 1.2rem;
}
.form-success.show { display: flex; }
.form-success svg { color: var(--vert); flex: none; margin-top: .2em; }

.contact-info { display: grid; gap: 1.2rem; }
.contact-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-row .icon-badge { width: 46px; height: 46px; border-radius: 13px; margin: 0; }
.contact-row strong { font-family: var(--font-title); display: block; }
.contact-row span, .contact-row a { color: var(--ink-soft); font-size: .95rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA bandeau ---------- */
.cta-banner {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; isolation: isolate;
  color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center;
}
.cta-banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(13,59,102,.88), rgba(21,101,72,.82)); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.88); max-width: 40em; margin-inline: auto; }

/* ---------- Réseaux sociaux ---------- */
.socials { display: flex; gap: .6rem; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #E6EEF5;
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--bleu); border-color: var(--bleu); color: #fff; transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bleu-nuit); color: #C6D4E2; margin-top: 0; }
[data-theme="dark"] .site-footer { background: #0A121B; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; padding-block: 4rem 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer p { color: #9FB3C8; font-size: .93rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { color: #9FB3C8; font-size: .93rem; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: .3rem; }
.newsletter-form { display: flex; gap: .5rem; margin-top: .9rem; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; font: inherit;
}
.newsletter-form input::placeholder { color: #7E93A8; }
.newsletter-form input:focus { outline: none; border-color: var(--bleu); }
.newsletter-form .btn { padding: .7rem 1.2rem; }
.newsletter-ok { display: none; margin-top: .8rem; color: #7FD48A; font-size: .9rem; }
.newsletter-ok.show { display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .85rem; color: #8AA0B5;
}
.footer-bottom a { color: #8AA0B5; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-family: var(--font-title); font-weight: 700; margin-bottom: 1rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animations reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .4s; } .d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .action-card p { max-height: none; opacity: 1; }
}

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100svh - 70px); }
.admin-nav { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 1.6rem 1rem; }
.admin-nav button {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left;
  font: inherit; font-family: var(--font-title); font-weight: 500; font-size: .94rem;
  padding: .75rem 1rem; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background .2s, color .2s;
}
.admin-nav button:hover { background: color-mix(in srgb, var(--bleu) 8%, transparent); color: var(--bleu); }
.admin-nav button.active { background: var(--bleu); color: #fff; box-shadow: 0 6px 16px rgba(30,136,229,.3); }
.admin-main { padding: clamp(1.4rem, 3.5vw, 2.6rem); }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.admin-list { display: grid; gap: .8rem; margin-top: 1.4rem; }
.admin-item {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem;
}
.admin-item strong { font-family: var(--font-title); }
.admin-item small { display: block; color: var(--ink-faint); }
.admin-del { border: 0; background: transparent; color: #E53935; cursor: pointer; font-size: .85rem; font-weight: 600; }
.login-card { max-width: 430px; margin: 4rem auto; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { display: flex; overflow-x: auto; gap: .4rem; border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem; } .admin-nav button { width: auto; white-space: nowrap; } }


/* ---------- Logo officiel ---------- */
.brand-logo-img {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: #fff; padding: 3px; object-fit: contain;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.footer-slogan {
  font-family: var(--font-title); font-style: italic;
  color: var(--or-clair) !important; font-size: .96rem !important;
  margin-top: -.2rem;
}

/* ---------- Divers ---------- */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--bleu); color: #fff; box-shadow: 0 10px 24px rgba(30,136,229,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--bleu-fonce); }

::selection { background: color-mix(in srgb, var(--bleu) 30%, transparent); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
