/* ==========================================================================
   MAPOU LAB - Design system
   Structure inspiree du style Ritovex / Atlas, palette Mapou Lab.
   Un seul fichier : pas de Bootstrap, pas de librairie d'icones.
   ========================================================================== */

:root {
  /* Palette Mapou Lab */
  --brand: #6a341b;          /* brun mapou - couleur primaire */
  --brand-dark: #4d2413;
  --brand-light: #8d5433;
  --accent: #e46f3a;         /* orange - accent principal */
  --accent-hot: #ff8c00;     /* orange vif - surlignage */
  --accent-soft: #fbe3d4;
  --green: #20b86d;
  --yellow: #ffb840;

  /* Neutres chauds */
  --ink: #26150e;            /* presque noir, nuance brune */
  --body: #5c4b42;
  --muted: #94837a;
  --soft: #faf5f1;
  --soft-2: #f3eae3;
  --line: #ece1d9;
  --white: #fff;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 84px;
  --top-h: 40px;
  --shadow: 0 24px 60px rgba(38, 21, 14, .12);
  --shadow-sm: 0 8px 24px rgba(38, 21, 14, .08);
  --font: 'Satoshi', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
.nav, .tags, .page-list, .clean { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
strong, b { color: var(--ink); font-weight: 700; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1338px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 1120px; }
.hl { color: var(--accent-hot); font-weight: 700; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Barre de progression de lecture ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent-hot));
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  border: 1px solid var(--brand); border-radius: var(--radius-sm);
  background: var(--brand); color: var(--white);
  font-size: 16px; font-weight: 700; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--brand); border-color: var(--brand); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--brand); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(38, 21, 14, .2); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--brand); }
.btn--green { background: var(--green); border-color: var(--green); }
.btn--green:hover { background: var(--brand); border-color: var(--brand); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* roulement de texte, construit par mapou.js */
.btn-roll { position: relative; display: block; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.btn-roll span { display: block; transition: transform .45s var(--ease); }
.btn:hover .btn-roll span { transform: translateY(-100%); }

.link-circle { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.link-circle-icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid var(--ink); border-radius: 50%;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease);
}
.link-circle-icon svg { width: 20px; height: 20px; }
.link-circle:hover .link-circle-icon { background: var(--ink); color: var(--white); transform: rotate(45deg); }
.link-circle--light { color: #fff; }
.link-circle--light .link-circle-icon { border-color: rgba(255, 255, 255, .45); }
.link-circle--light:hover .link-circle-icon { background: #fff; color: var(--ink); }

.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; }
.read-more svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.read-more:hover svg { transform: translateX(5px); }

/* ---------- Barre haute + navigation ---------- */

.topbar { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 14px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--top-h); }
.topbar-contact { display: flex; gap: 24px; }
.topbar-contact a, .topbar-contact span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-contact svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.topbar-contact a:hover { color: #fff; }
.topbar-social { display: flex; align-items: center; gap: 6px; }
.topbar-social > span { margin-right: 6px; white-space: nowrap; }
.topbar-social a {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.topbar-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; }

.navbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.navbar.is-scrolled { box-shadow: 0 10px 30px rgba(38, 21, 14, .07); }
.navbar-inner { display: flex; align-items: stretch; height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 12px; padding-right: 28px; border-right: 1px solid var(--line); color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: var(--brand); }
.brand-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; justify-content: center; gap: 26px; flex: 1; padding: 0 20px; margin: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--ink); font-size: 16px; font-weight: 700; white-space: nowrap; }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-link:hover::after, .nav-item.is-active > .nav-link::after { transform: scaleX(1); transform-origin: left; }
.nav-item.is-active > .nav-link { color: var(--brand); font-weight: 700; }
.nav-link .caret { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav-item:hover .caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute; top: 100%; left: -18px; z-index: 5;
  min-width: 232px; padding: 10px; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: opacity .25s ease, transform .3s var(--ease), visibility .25s;
}
.nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); font-size: 16px; font-weight: 700; transition: background-color .25s, color .25s, padding-left .25s var(--ease); }
.sub-menu a:hover { background: var(--soft); color: var(--accent); padding-left: 20px; }

.navbar-side { display: flex; align-items: center; gap: 20px; padding-left: 28px; border-left: 1px solid var(--line); }
.nav-call { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.nav-call-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); transition: background-color .3s, color .3s, border-color .3s; }
.nav-call-icon svg { width: 18px; height: 18px; }
.nav-call:hover .nav-call-icon { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-call-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.nav-call-text small { font-size: 12px; color: var(--muted); }
.nav-call-text strong { font-size: 15px; }
.nav-cta-mobile { display: none; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section--sm { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .72); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5 { color: var(--white); }
.section--dark strong, .section--dark b { color: var(--white); }
.section--brand { background: var(--brand); color: rgba(255, 255, 255, .82); }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand .section-title span { color: var(--yellow); }
.section--brand .section-text { color: rgba(255, 255, 255, .82); }
.section--flush { padding-top: 0; overflow: hidden; }
.section--tight { padding-bottom: 0; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.section-head { margin-bottom: 64px; }
.section-head--center { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: 48px; line-height: 1.22; }
.section-title span { color: var(--accent); }
.section-text { margin-top: 18px; font-size: 20px; line-height: 1.65; }
.section-head--center .section-text { max-width: 640px; margin-left: auto; margin-right: auto; }
.text-justify { text-align: justify; text-justify: inter-word; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 5px 14px; border-radius: 100px;
  background: var(--soft); color: var(--brand);
  font-size: 15px; font-weight: 700; line-height: 1.5;
}
.eyebrow-dot { flex: none; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; }
.eyebrow--white { background: var(--white); }
.eyebrow--dark { background: rgba(255, 255, 255, .1); color: var(--white); }
.eyebrow--dark .eyebrow-dot { border-color: var(--accent); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 110px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: 72px; }
.hero-title { font-size: 60px; line-height: 1.16; }
.hero-title span { color: var(--accent); }
.hero-text { max-width: 600px; margin-top: 22px; font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 132px; }
.hero-meta b { display: block; font-size: 42px; font-weight: 900; line-height: 1.1; letter-spacing: -.03em; color: var(--brand); }
.hero-meta span { font-size: 16px; font-weight: 700; color: var(--ink); }

.hero-media { position: relative; padding: 28px 28px 0 0; }
.hero-media-accent { position: absolute; top: 0; right: 0; width: 52%; height: 48%; border-radius: var(--radius-lg); background: var(--accent-soft); }
.hero-media-frame { position: relative; aspect-ratio: 5 / 5.4; overflow: hidden; border-radius: var(--radius-lg); background: var(--soft-2); }
.hero-media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 44px; width: min(320px, 82%);
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); font-size: 14px; line-height: 1.5;
}
.hero-badge-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hero-badge-label { color: var(--ink); font-weight: 1200; }
.hero-badge-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.hero-badge-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-badge-list { padding: 0; list-style: none; }
.hero-badge-list li { position: relative; padding: 3px 0 3px 22px; }
.hero-badge-list li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 10px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Bandeaux defilants ---------- */

.strip { position: relative; padding: 0 0 12px; border-top: 1px solid var(--line); }
.strip-label { display: flex; justify-content: center; margin-top: -15px; margin-bottom: 26px; }
.strip-label span { padding: 3px 18px; border: 1px solid var(--line); border-radius: 100px; background: var(--white); color: var(--brand); font-size: 14px; font-weight: 700; }
.strip--dark { padding: 34px 0; border: 0; background: var(--ink); }

.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee.is-ready .marquee-track { animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-item { flex: none; display: inline-flex; align-items: center; white-space: nowrap; }
.marquee--light .marquee-item, .marquee--dark .marquee-item { font-weight: 700; letter-spacing: -.02em; }
.marquee--light .marquee-item { color: var(--ink); font-size: 26px; }
.marquee--dark .marquee-item { color: var(--white); font-size: 32px; }
.marquee--light .marquee-item::after, .marquee--dark .marquee-item::after {
  content: ''; width: 8px; height: 8px; margin: 0 40px; border-radius: 50%; background: var(--accent);
}

/* ---------- Piliers + compteurs ---------- */

.split-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pillar { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pillar:first-child { border-top: 1px solid var(--line); }
.pillar-index { flex: none; width: 48px; color: var(--accent-soft); font-size: 26px; font-weight: 700; line-height: 1.4; }
.pillar-label { display: block; margin-bottom: 4px; color: var(--accent); font-size: 14px; font-weight: 700; }
.pillar-title { margin-bottom: 6px; font-size: 28px; line-height: 1.3; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--radius-lg); background: var(--line); }
.stat { padding: 48px 40px; background: var(--soft); }
.stat-value { display: flex; align-items: baseline; gap: 8px; color: var(--brand); font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.stat-unit { font-size: 28px; font-weight: 700; letter-spacing: 0; color: var(--accent); }
.stat-label { margin-top: 16px; line-height: 1.45; font-size: 18px; font-weight: 700; color: var(--ink); }

.odo { display: inline-flex; overflow: hidden; height: 1em; }
.odo-digit { display: block; height: 1em; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.8s var(--ease); }
.odo-strip span { display: block; height: 1em; line-height: 1em; }

/* ---------- Accordeon sombre (piliers / programmes) ---------- */

.services { border-top: 1px solid rgba(255, 255, 255, .16); }
.service { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.service-head { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 24px; width: 100%; padding: 32px 0; text-align: left; }
.service-number { color: rgba(255, 255, 255, .35); font-size: 24px; font-weight: 700; transition: color .35s var(--ease); }
.service-name { color: var(--white); font-size: 38px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; transition: transform .45s var(--ease); }
.service-arrow { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: var(--white); transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease); }
.service-arrow svg { width: 22px; height: 22px; }
.service.is-open .service-number { color: var(--accent); }
.service.is-open .service-name { transform: translateX(10px); }
.service.is-open .service-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.js .service-body { display: none; }
.service-body-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; padding: 0 70px 36px 134px; }
.service-body-inner p { max-width: 700px; font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.tags li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px; color: var(--white); font-size: 14px; line-height: 1.4; white-space: nowrap; }

/* ---------- Accordeon clair (FAQ) ---------- */

.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 0; text-align: left; color: var(--accent); font-size: 22px; font-weight: 700; letter-spacing: -.02em; transition: color .3s; }
.accordion-head:hover { color: var(--brand); }
.accordion-head .sign { flex: none; position: relative; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.accordion-head .sign::before, .accordion-head .sign::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: background-color .3s, transform .3s var(--ease); }
.accordion-head .sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-item.is-open .accordion-head { color: var(--accent); }
.accordion-item.is-open .accordion-body-inner { color: var(--body); }
.accordion-item.is-open .sign { background: var(--accent); border-color: var(--accent); }
.accordion-item.is-open .sign::before, .accordion-item.is-open .sign::after { background: #fff; }
.accordion-item.is-open .sign::after { transform: translate(-50%, -50%) rotate(0); }
.js .accordion-body { display: none; }
.accordion-body-inner { padding: 0 54px 26px 0; font-size: 17px; }

/* ---------- Onglets (mission / vision / valeurs) ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding: 0; list-style: none; }
.tab-btn { padding: 9px 20px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 100px; color: rgba(255, 255, 255, .85); font-size: 16px; font-weight: 700; transition: background-color .3s, color .3s, border-color .3s; }
.tab-btn:hover { border-color: var(--accent); color: #fff; }
.tab-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.tab-panel { display: none; font-size: 19px; line-height: 1.7; }
.tab-panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
.tab-panel ul { padding: 0; list-style: none; }
.tab-panel li { position: relative; padding: 5px 0 5px 26px; }
.tab-panel li::before { content: ''; position: absolute; left: 0; top: 15px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Video ---------- */

.video-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 11; background: var(--ink); }
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.video-play {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: 86px; height: 86px; margin: -43px 0 0 -43px;
  border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 rgba(228, 111, 58, .5); animation: pulse 2.6s infinite;
  transition: transform .35s var(--ease);
}
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-play:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 111, 58, .5); }
  70% { box-shadow: 0 0 0 26px rgba(228, 111, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 111, 58, 0); }
}

/* ---------- Mosaique d'images ---------- */

.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mosaic-col { display: grid; gap: 20px; align-content: start; }
.mosaic-col--offset { padding-top: 54px; }
.mosaic figure { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; background: var(--soft-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic .tall { aspect-ratio: 3 / 4; }
.mosaic .wide { aspect-ratio: 4 / 3; }
.badge-years {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 104px; height: 104px;
  border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 1.1;
}
.badge-years b { display: block; color: #fff; font-size: 32px; }
.badge-years span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.pin-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
}
.pin-card .ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); }
.pin-card .ico svg { width: 22px; height: 22px; }
.pin-card h5 { font-size: 16px; line-height: 1.4; }

/* ---------- Compteurs en ligne ---------- */

.counter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.counter-item { display: flex; align-items: center; gap: 16px; }
.counter-item .ico { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); }
.counter-item .ico svg { width: 28px; height: 28px; }
.counter-item--green .ico { background: rgba(32, 184, 109, .14); color: var(--green); }
.counter-item b { display: block; color: var(--brand); font-size: 40px; font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.counter-item span { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- Cartes ---------- */

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--soft-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-date {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  text-align: center; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em;
}
.card-date b { display: block; color: #fff; font-size: 20px; letter-spacing: 0; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 26px 26px 28px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.card-meta li, .card-meta span { display: inline-flex; align-items: center; gap: 7px; }
.card-meta svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.card-title { margin-bottom: 10px; font-size: 24px; line-height: 1.35; }
.card-title a:hover { color: var(--accent); }
.card-body p { font-size: 16.5px; }
.card-foot { margin-top: auto; padding-top: 20px; }
.card-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 100px; background: var(--soft); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.empty-state { padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--soft); text-align: center; }
.empty-state h4 { margin-bottom: 8px; font-size: 22px; }

/* ---------- Progression ---------- */

.progress { height: 8px; margin: 16px 0 6px; overflow: hidden; border-radius: 100px; background: var(--soft-2); }
.progress-bar { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width 1.4s var(--ease); }
.progress-bar--green { background: linear-gradient(90deg, var(--green), #6fd9a4); }
.progress-bar--yellow { background: linear-gradient(90deg, var(--yellow), #ffd384); }

/* ---------- Etapes collantes ---------- */

.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
.process-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.process-intro .section-text { max-width: 470px; margin-bottom: 36px; }
.step {
  position: sticky; top: calc(var(--nav-h) + 40px + var(--i) * 22px);
  margin-bottom: 28px; padding: 40px; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: 0 -12px 40px rgba(38, 21, 14, .06);
}
.step:last-child { margin-bottom: 0; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.step-label { padding: 5px 15px; border-radius: 100px; background: var(--soft); color: var(--brand); font-size: 15px; font-weight: 700; }
.step-number { color: var(--soft-2); font-size: 48px; font-weight: 700; line-height: 1; transition: color .35s var(--ease); }
.step:hover .step-number { color: var(--accent); }
.step-title { margin-bottom: 10px; font-size: 30px; line-height: 1.3; }

/* ---------- Avantages membres ---------- */

.perk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.perk { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.perk:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.perk .ico { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); }
.perk .ico svg { width: 28px; height: 28px; }
.perk:nth-child(2) .ico { background: rgba(32, 184, 109, .14); color: var(--green); }
.perk:nth-child(3) .ico { background: rgba(255, 184, 64, .2); color: #b87400; }
.perk h4 { margin-bottom: 10px; font-size: 22px; line-height: 1.35; }
.perk p { font-size: 16.5px; }

/* ---------- Carrousel jQuery ---------- */

.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; }
.carousel-track.is-centered { justify-content: center; }
.carousel-slide { flex: none; padding: 0 12px; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.carousel-btn { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--soft-2); transition: width .3s var(--ease), background-color .3s, border-radius .3s; }
.carousel-dot.is-active { width: 30px; border-radius: 6px; background: var(--accent); }

/* Carrousel de la galerie : vignettes de meme hauteur, legende toujours lisible. */
.carousel--galerie .gallery-item { aspect-ratio: 4 / 3; cursor: zoom-in; }
.carousel--galerie .gallery-item::after { opacity: 1; }
.carousel--galerie .gallery-cap { opacity: 1; transform: none; }

/* ---------- Ambassadeurs ---------- */

.person { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.person-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1.1; background: var(--soft-2); }
.person-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.person:hover .person-media img { transform: scale(1.06); }
.person-body { padding: 20px 22px 24px; }
.person-body h5 { font-size: 18px; line-height: 1.3; }
.person-body span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.person-body .read-more { margin-top: 14px; font-size: 14px; }
.person-social { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; gap: 8px; opacity: 0; transform: translateX(14px); transition: opacity .35s ease, transform .4s var(--ease); }
.person:hover .person-social { opacity: 1; transform: none; }
.person-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--brand); box-shadow: var(--shadow-sm); transition: background-color .3s, color .3s; }
.person-social a:hover { background: var(--accent); color: #fff; }
.person-social svg { width: 15px; height: 15px; }

/* ---------- Temoignages ---------- */

.quote { display: flex; flex-direction: column; width: 440px; margin-right: 24px; padding: 34px; border-radius: var(--radius-lg); background: var(--soft); white-space: normal; }
.quote-mark { width: 36px; height: 36px; margin-bottom: 16px; color: var(--accent); }
.quote blockquote { flex: 1; color: var(--ink); font-size: 18px; line-height: 1.65; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote figcaption strong { display: block; font-size: 17px; line-height: 1.4; }
.quote figcaption small { font-size: 14px; color: var(--muted); }
.quote-avatar { display: grid; place-items: center; flex: none; width: 54px; height: 54px; overflow: hidden; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA ---------- */

.section--cta { padding: 0; }
.cta { position: relative; overflow: hidden; padding: 86px 40px; border-radius: var(--radius-lg); background: var(--ink); text-align: center; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta-inner { position: relative; z-index: 2; }
.cta-kicker { margin-bottom: 14px; color: var(--accent); font-weight: 700; }
.cta-title { max-width: 760px; margin: 0 auto 36px; color: var(--white); font-size: 46px; line-height: 1.22; }
.cta-title span { color: var(--accent); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }

/* ---------- Partenaires ---------- */

.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 64px; }
.partners img { height: 104px; width: auto; max-width: 220px; object-fit: contain; transition: transform .35s var(--ease); }
.partners img:hover { transform: translateY(-5px) scale(1.04); }

/* ---------- Formulaires ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel { padding: 44px; border-radius: var(--radius-lg); }
.panel--soft { background: var(--soft); }
.panel--line { border: 1px solid var(--line); }
.panel--dark { background: var(--ink); color: rgba(255, 255, 255, .72); }
.panel--dark h3, .panel--dark h4 { color: var(--white); }
.panel h3 { margin-bottom: 10px; font-size: 30px; line-height: 1.3; }
.panel-intro { margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label, .field > label { color: var(--ink); font-size: 16px; font-weight: 700; }
.field input, .field select, .field textarea, .form-control {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: inherit; line-height: 1.5;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea, textarea.form-control { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder, .form-control::placeholder { color: #b3a49b; }
.field input:focus, .field select:focus, .field textarea:focus, .form-control:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 111, 58, .14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d6432f; }
/* Liste deroulante encore inactive : elle attend le choix precedent. */
.field select:disabled { background: var(--soft-2); color: var(--muted); cursor: not-allowed; }
.field[hidden] { display: none; }
.field-error { color: #c0351f; font-size: 14px; }
.form-note { margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.form-note--success { border-left: 3px solid var(--green); }
.form-note--error { border-left: 3px solid #d6432f; }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.newsletter-form { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 12px; max-width: 780px; margin: 0 auto; }
.newsletter-feedback { max-width: 780px; margin: 20px auto 0; }
.form-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.contact-list { margin-top: 30px; }
.contact-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.contact-list dt { color: var(--accent); font-size: 14px; font-weight: 700; line-height: 1.9; }
.contact-list dd { color: var(--white); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-list dd a:hover { color: var(--accent); }
.contact-list small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .6); font-size: 14px; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.info-card { padding: 34px 30px; border-radius: var(--radius-lg); background: var(--soft); text-align: center; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm); }
.info-card .ico svg { width: 26px; height: 26px; }
.info-card h5 { margin-bottom: 10px; font-size: 19px; }
.info-card a:hover { color: var(--accent); }
.map-frame { height: 440px; overflow: hidden; background: var(--soft-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Banniere de page ---------- */

.page-banner { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.page-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-banner-inner { position: relative; z-index: 2; padding: 90px 0 94px; text-align: center; }
.page-banner h1 { color: #fff; font-size: 52px; line-height: 1.18; }
.page-banner h1 span { color: var(--accent); }
.page-banner p { max-width: 680px; margin: 18px auto 0; color: rgba(255, 255, 255, .82); font-size: 20px; line-height: 1.6; }
.page-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.page-list li { display: inline-flex; align-items: center; gap: 10px; }
.page-list li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page-list a:hover { color: #fff; }

/* ---------- Pagination ---------- */

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; padding: 0; list-style: none; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 700;
  transition: background-color .3s, color .3s, border-color .3s;
}
.pagination a:hover { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination svg { width: 16px; height: 16px; }

/* ---------- Article ---------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.article-body { font-size: 18px; }
.article-body > * + * { margin-top: 20px; }
.article-body h2, .article-body h3, .article-body h4 { margin-top: 36px; font-size: 26px; line-height: 1.3; }
.article-body img { border-radius: var(--radius); margin: 28px 0; height: auto; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { padding: 3px 0; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-cover { overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 32px; aspect-ratio: 16 / 9; background: var(--soft-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-quote { padding: 30px 34px; border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--soft); color: var(--ink); font-size: 19px; font-style: italic; }

.sidebar { display: grid; gap: 28px; position: sticky; top: calc(var(--nav-h) + 28px); }
.widget { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.widget--dark { background: var(--ink); border-color: transparent; color: rgba(255, 255, 255, .75); }
.widget--dark h4, .widget--dark h5 { color: #fff; }
.widget-title { margin-bottom: 20px; font-size: 19px; }
.widget-search { display: flex; gap: 8px; }
.widget-search input { flex: 1; min-width: 0; }
.widget-search button { display: grid; place-items: center; width: 50px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; transition: background-color .3s; }
.widget-search button:hover { background: var(--accent); }
.widget-search svg { width: 18px; height: 18px; }
.widget-list { padding: 0; list-style: none; }
.widget-list li { border-bottom: 1px solid var(--line); }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; transition: color .3s, padding-left .3s var(--ease); }
.widget-list a:hover { color: var(--accent); padding-left: 6px; }
.mini-post { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-post:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-post:first-child { padding-top: 0; }
.mini-post-img { flex: none; width: 78px; height: 72px; overflow: hidden; border-radius: var(--radius-sm); background: var(--soft-2); }
.mini-post-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-post h6 { font-size: 15px; line-height: 1.4; }
.mini-post h6 a:hover { color: var(--accent); }
.mini-post small { color: var(--muted); font-size: 13px; }

.comment { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-avatar { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-head small { color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: rgba(255, 255, 255, .72); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 58px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-lead { max-width: 640px; color: var(--white); font-size: 28px; font-weight: 700; line-height: 1.35; }
.footer-lead span { color: var(--accent); }
.footer-mail { color: var(--white); font-size: 19px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .4); transition: color .3s, border-color .3s; overflow-wrap: anywhere; }
.footer-mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 58px 0; }
.footer-grid h4 { margin-bottom: 18px; color: var(--white); font-size: 18px; }
.footer-col a, .footer-col span { display: block; padding: 5px 0; overflow-wrap: anywhere; transition: color .3s, transform .35s var(--ease); }
.footer-col a:hover { color: var(--white); transform: translateX(6px); }
.footer-about p { margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
/* Le logo est sombre : sur le pied de page fonce, on le pose sur une pastille claire. */
.footer-brand img { height: 46px; width: auto; padding: 6px 12px; border-radius: 12px; background: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .3s, transform .3s var(--ease); }
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer-gallery a { display: block; padding: 0; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1; }
.footer-gallery a:hover { transform: none; }
.footer-gallery img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s var(--ease), opacity .3s; }
.footer-gallery a:hover img { transform: scale(1.12); opacity: 1; }
.footer-news { display: flex; gap: 8px; margin-top: 16px; }
.footer-news input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.footer-news input::placeholder { color: rgba(255, 255, 255, .5); }
.footer-news button { flex: none; padding: 0 18px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-weight: 700; transition: background-color .3s; }
.footer-news button:hover { background: var(--brand-light); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; }
.footer-bottom a:hover { color: var(--accent); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, visibility .3s, transform .35s var(--ease), background-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal au scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Utilitaires / compatibilite ---------- */

.d-none { display: none !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.alert { padding: 15px 20px; margin-bottom: 20px; border-radius: var(--radius-sm); background: var(--soft); border-left: 3px solid var(--accent); color: var(--ink); }
.alert-success { background: rgba(32, 184, 109, .1); border-left-color: var(--green); }
.alert-danger, .alert-error { background: rgba(214, 67, 47, .08); border-left-color: #d6432f; }
.alert-warning { background: rgba(255, 184, 64, .14); border-left-color: var(--yellow); }
.alert-info, .alert-secondary { background: rgba(228, 111, 58, .09); border-left-color: var(--accent); }
.messages-stack { padding: 24px 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .nav { gap: 20px; }
  .section-title { font-size: 42px; }
}

@media (max-width: 1100px) {
  :root { --nav-h: 74px; }
  .nav-toggle { display: block; }
  .nav-call-text { display: none; }
  .navbar-side { margin-left: auto; padding-left: 0; border-left: 0; gap: 12px; }
  .brand { border-right: 0; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    padding: 12px 24px 24px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(38, 21, 14, .1);
  }
  .nav-item { display: block; }
  .nav-link { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  /* Sans JavaScript, le sous-menu reste deroule : il est toujours atteignable.
     Avec JavaScript, c'est jQuery qui l'ouvre et le ferme. */
  .sub-menu {
    position: static; display: block; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 4px 0 10px 14px; border: 0; border-radius: 0; box-shadow: none;
  }
  .js .sub-menu { display: none; }
  .nav-item.is-open .caret { transform: rotate(180deg); }
  .nav-cta-mobile { display: flex; margin-top: 20px; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(40px); }

  .section { padding: 88px 0; }
  .section--flush, .section--cta { padding-top: 0; }
  .section--cta { padding-bottom: 0; }
  .hero { padding: 48px 0 88px; }
  .hero-grid, .split-grid, .split-grid--even, .process-grid, .contact-grid, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-title { font-size: 46px; }
  .section-title, .cta-title, .page-banner h1 { font-size: 38px; }
  .process-intro, .sidebar { position: static; }
  .grid--4, .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-name { font-size: 28px; }
  .service-head { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .service-body-inner { grid-template-columns: minmax(0, 1fr); padding: 0 0 32px 80px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-contact { display: none; }
  .partners { gap: 44px; }
  .partners img { height: 84px; }
}

@media (max-width: 860px) {
  .grid--2, .grid--3, .grid--4, .info-grid, .perk-grid { grid-template-columns: minmax(0, 1fr); }
  .counter-row { grid-template-columns: minmax(0, 1fr); }
  .mosaic-col--offset { padding-top: 0; }
  /* La barre de navigation garde le logo, le don et le menu : le reste passe
     dans le menu deroulant. */
  .nav-call { display: none; }
  .navbar-side .btn { height: 44px; padding: 0 18px; font-size: 15px; }
}

@media (max-width: 560px) {
  .brand-text { display: none; }          /* le logo porte deja le nom */
  .brand img { height: 44px; }
  .navbar-side .btn { display: none; }    /* repris dans le menu mobile */
  .topbar-inner { justify-content: center; }
  .topbar-social > span { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section--flush, .section--cta { padding-top: 0; }
  .section-head { margin-bottom: 40px; }
  .hero-title { font-size: 34px; line-height: 1.2; }
  .section-title, .cta-title, .page-banner h1 { font-size: 29px; }
  .section-text, .hero-text { font-size: 16px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-media { padding: 16px 16px 0 0; }
  .hero-badge { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 0 0 16px; }
  .page-banner-inner { padding: 60px 0 64px; }
  .stat { padding: 26px 20px; }
  .stat-value { font-size: 42px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .pillar { gap: 16px; }
  .pillar-index { width: 32px; font-size: 18px; }
  .pillar-title { font-size: 21px; }
  .service-head { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 22px 0; }
  .service-number { font-size: 16px; }
  .service-name { font-size: 21px; }
  .service-arrow { width: 44px; height: 44px; }
  .service-body-inner { padding: 0 0 26px 48px; }
  .service-body-inner p { font-size: 16px; }
  .accordion-head { font-size: 17px; }
  .accordion-body-inner { padding: 0 0 22px; }
  .step, .panel, .perk, .widget, .info-card { padding: 26px 22px; }
  .step-title { font-size: 22px; }
  .quote { width: 290px; padding: 26px 22px; }
  .quote blockquote { font-size: 16px; }
  .marquee--light .marquee-item { font-size: 19px; }
  .marquee--dark .marquee-item { font-size: 22px; }
  .marquee--light .marquee-item::after, .marquee--dark .marquee-item::after { margin: 0 22px; }
  .cta { padding: 52px 20px; }
  .form-grid, .newsletter-form { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-lead { font-size: 22px; }
  .footer-mail { font-size: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0; }
  .badge-years { width: 82px; height: 82px; }
  .badge-years b { font-size: 24px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee.is-ready .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .btn-roll span, .odo-strip { transition: none; }
  .video-play { animation: none; }
}

/* ==========================================================================
   GALERIE + LIGHTBOX (pilotes par jQuery)
   ========================================================================== */

.gallery-filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 0 44px; padding: 0; list-style: none;
}
.filter-btn {
  padding: 9px 20px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--white); color: var(--ink); font-size: 15px; font-weight: 700;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-btn .count { margin-left: 7px; font-size: 12px; opacity: .65; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}
/* la mosaique (masonry) est calculee par mapou.js */
.js .gallery-grid { grid-auto-rows: 10px; }
.gallery-cell { padding: 10px; }
.gallery-cell.is-hidden { display: none; }
.gallery-cell.is-leaving { opacity: 0; transform: scale(.94); }
.js .gallery-cell { transition: opacity .35s ease, transform .35s var(--ease); }

.gallery-item {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--ar, 1.34);
  overflow: hidden; border-radius: var(--radius-lg); background: var(--soft-2);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(38, 21, 14, .88) 0%, rgba(38, 21, 14, .25) 45%, transparent 75%);
  opacity: 0; transition: opacity .4s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 24px 24px 22px; color: #fff;
  transform: translateY(14px); opacity: 0;
  transition: transform .45s var(--ease), opacity .4s ease;
}
.gallery-item:hover .gallery-cap { transform: none; opacity: 1; }
.gallery-cap small { display: block; margin-bottom: 5px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.gallery-cap strong { display: block; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.3; }
.gallery-cap p { margin-top: 5px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.gallery-zoom {
  position: absolute; right: 18px; top: 18px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--brand);
  opacity: 0; transform: scale(.6); transition: opacity .35s, transform .4s var(--ease);
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: none; }
.gallery-zoom svg { width: 18px; height: 18px; }

.gallery-actions { display: flex; justify-content: center; margin-top: 44px; }
.gallery-count { margin-bottom: 26px; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 10, 6, .94);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: min(1180px, 92vw); max-height: 86vh;
}
.lightbox-figure {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 40vh; max-height: 70vh; margin: 0;
}
.lightbox-figure img {
  max-width: 100%; max-height: 70vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .4s ease, transform .5s var(--ease);
  transform: scale(.96);
}
.lightbox-figure img.is-loaded { opacity: 1; transform: none; }
.lightbox-spinner {
  position: absolute; width: 42px; height: 42px;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
}
.lightbox-figure.is-ready .lightbox-spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox-caption { width: 100%; margin-top: 22px; color: rgba(255, 255, 255, .72); text-align: center; }
.lightbox-caption strong { display: block; color: #fff; font-size: 20px; line-height: 1.35; }
.lightbox-caption p { margin-top: 6px; font-size: 15px; }
.lightbox-counter { margin-top: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; z-index: 3; display: grid; place-items: center;
  width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .06);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { top: 50%; left: 24px; margin-top: -26px; }
.lightbox-next { top: 50%; right: 24px; margin-top: -26px; }
.lightbox-prev:hover { transform: translateX(-3px); }
.lightbox-next:hover { transform: translateX(3px); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }

.lightbox-thumbs {
  display: flex; gap: 8px; max-width: 100%; margin-top: 22px;
  padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin;
}
.lightbox-thumb {
  flex: none; width: 74px; height: 54px; overflow: hidden; border-radius: 6px;
  opacity: .42; transition: opacity .3s, transform .3s var(--ease), box-shadow .3s;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb:hover { opacity: .85; }
.lightbox-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--accent); transform: translateY(-2px); }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .lightbox-thumbs { display: none; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-cap { opacity: 1; transform: none; }
  .gallery-item::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img, .lightbox-figure img { transition: none; }
  .lightbox-spinner { animation: none; }
}
