/* =========================================================
   COJPS — Collectif des Jeunes pour la Promotion Sociale
   Feuille de style principale — v2 (refonte « UI/UX Pro Max »)

   Système de design :
   - Style : Accessible & Ethical + Bento Box Grid
   - Typo  : Poppins (titres) + Open Sans (texte), base 16px
   - Motif : Community Landing / Trust & Authority
   - Mouvement : Stagger List (scale .92 → 1, ~450ms, léger rebond)
   ========================================================= */

/* ---------- Polices : Poppins hébergée localement ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   1. Jetons
   ========================================================= */
:root {
  /* Couleurs de marque (logo COJPS) */
  --cojps-bleu: #0c3f80; --cojps-bleu-fonce: #082f60; --cojps-bleu-nuit: #0a3570; --cojps-bleu-ligne: #3a639a;
  --cojps-vert: #6aac0a; --cojps-feuille: #257a28;
  --cojps-orange: #f8810b; --cojps-ambre: #ff9f0a; --cojps-soleil: #fdbb1f;

  /* Rôles sémantiques */
  --bg: #f6f8fc;                 /* fond de page (bento : neutre clair) */
  --surface: #ffffff;            /* tuiles / cartes */
  --surface-alt: #eef3f9;
  --surface-sun: #fff5dc;
  --line: #dde5ef; --line-strong: #7d8ca0;
  --ink: #0f1a2a; --ink-body: #2f3b4d; --ink-muted: #4b5a6e;
  --primary: var(--cojps-bleu); --primary-hover: var(--cojps-bleu-fonce); --primary-soft: #e5edf8;
  --accent: var(--cojps-orange); --accent-hover: var(--cojps-ambre); --accent-text: #a84f00; --accent-soft: #fff0de;
  --success: #1f6b24; --success-soft: #e9f5dc;
  --danger: #b3261e; --danger-soft: #fdeceb;
  --on-dark: #dbe6f5;
  --footer-bg: #0f1a2a; --footer-ink: #c9d3e0; --footer-muted: #a8b6c8;
  --focus: #0c3f80;

  /* Typographie */
  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Espacements (échelle 8px, densité « spacieuse ») */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

  /* Formes & profondeur (bento) */
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(12,63,128,.05), 0 4px 6px rgba(12,63,128,.05);
  --shadow-2: 0 2px 4px rgba(12,63,128,.06), 0 12px 28px rgba(12,63,128,.12);
  --shadow-3: 0 4px 10px rgba(12,63,128,.08), 0 24px 48px rgba(12,63,128,.18);

  /* Mise en page */
  --container: 1200px;
  --gutter: 24px;
  --section-y: var(--space-24);
  --header-h: 80px;
  --bento-gap: 16px;

  /* Mouvement */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-back: cubic-bezier(.34,1.4,.64,1);   /* ≈ back.out(1.4) */
  --dur-fast: 180ms; --dur-base: 250ms; --dur-reveal: 450ms;

  /* Calques (z-index) */
  --z-header: 40; --z-progress: 50; --z-skip: 100;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink-body); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); text-wrap: balance; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
button, input, textarea, select { font: inherit; color: inherit; }
button, [role="button"], summary, label[for] { cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Focus clair et épais (Accessible & Ethical : 3px) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.bg-blue :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--cojps-soleil); }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: var(--z-skip); padding: 12px 20px; background: var(--primary); color: #fff; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: top var(--dur-fast); }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.bg-white { background: var(--surface); }
.bg-alt { background: var(--surface-alt); }
.bg-sun { background: var(--surface-sun); }
.bg-blue { background: var(--primary); color: var(--on-dark); }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; } .gap-48 { gap: 48px; }

/* =========================================================
   3. Typographie (échelle 12 · 14 · 16 · 18 · 24 · 32 · 40 · 56)
   ========================================================= */
.overline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-text); }
.overline::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.overline--sun { color: var(--cojps-soleil); }
.h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: var(--primary); }
.h1 .hl { color: var(--accent-text); position: relative; white-space: nowrap; }
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.7; color: var(--ink-body); max-width: 60ch; }
.text { font-size: 17px; line-height: 1.7; color: var(--ink-muted); max-width: 65ch; }
.small-note { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head--row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }

/* =========================================================
   4. Boutons, badges, liens-flèches
   ========================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: .2px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), translate var(--dur-fast); }
.btn:active { translate: 0 1px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: translate var(--dur-fast); }
.btn:hover svg.arrow { translate: 3px 0; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: var(--shadow-2); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 6px 16px rgba(248,129,11,.28); }
.btn-accent:hover { background: var(--accent-hover); color: var(--ink); box-shadow: 0 10px 22px rgba(248,129,11,.36); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: translate var(--dur-fast); }
.link-arrow:hover svg { translate: 4px 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-neutral { background: var(--surface-alt); color: var(--ink-muted); }

/* Bande tricolore */
.tricolor { display: flex; height: 8px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: var(--cojps-bleu); }
.tricolor span:nth-child(2) { background: var(--cojps-vert); }
.tricolor span:nth-child(3) { background: var(--cojps-orange); }
.tricolor--bottom { position: absolute; left: 0; right: 0; bottom: 0; }

/* Icônes en pastille */
.icon-circle { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-circle svg { width: 26px; height: 26px; }
.tint-blue { background: var(--primary-soft); }
.tint-green { background: var(--success-soft); }
.tint-orange { background: var(--accent-soft); }
.tint-sun { background: var(--surface-sun); }

/* =========================================================
   5. En-tête
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); transition: box-shadow var(--dur-base); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(12,63,128,.08); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; border-radius: 8px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-size: 22px; line-height: 24px; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.brand-tagline { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }

.main-nav { display: flex; align-items: center; gap: 4px; font-family: var(--font-heading); font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.main-nav a:not(.btn):hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a[aria-current="page"], .main-nav a.is-active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.main-nav .btn { margin-left: 12px; }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; color: var(--primary); transition: background-color var(--dur-fast); }
.menu-toggle:hover { background: var(--primary-soft); }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* =========================================================
   6. Bento — système de tuiles
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: var(--bento-gap); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.tile h3 { font-size: 21px; line-height: 1.3; font-weight: 600; }
.tile p { font-size: 16px; line-height: 1.65; color: var(--ink-muted); }
.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }
.tile--photo { padding: 0; border: 0; justify-content: flex-end; color: #fff; min-height: 260px; }
.tile--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,0) 30%, rgba(10,22,40,.82) 100%); }
.tile--photo .tile-body { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile--photo h3, .tile--photo .h2 { color: #fff; }
.tile--photo p { color: #e7edf5; }
.tile--photo a { color: #fff; }
.tile--blue { background: var(--primary); border-color: var(--primary); color: var(--on-dark); }
.tile--blue h3, .tile--blue strong { color: #fff; }
.tile--blue p { color: var(--on-dark); }
.tile--sun { background: var(--surface-sun); border-color: #f6e2b0; }
.tile--orange { background: var(--accent); border-color: var(--accent); }
.tile--orange h3, .tile--orange p, .tile--orange strong { color: var(--ink); }
.tile--green { background: var(--cojps-feuille); border-color: var(--cojps-feuille); }
.tile--green h3, .tile--green strong { color: #fff; }
.tile--green p { color: #e6f3dc; }
.tile .tile-foot { margin-top: auto; }
@media (hover: hover) {
  .tile:hover { translate: 0 -4px; box-shadow: var(--shadow-2); }
  .tile--photo:hover > img { scale: 1.04; }
}

/* =========================================================
   7. Accueil — héros
   ========================================================= */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(253,187,31,.25), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(106,172,10,.12), transparent 60%),
  var(--surface-sun); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 72px 88px; }
.hero-content { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.hero-content .btn-row { padding-top: 8px; }
.hero-trust { display: flex; align-items: center; gap: 14px; padding-top: 8px; font-size: 14px; color: var(--ink-muted); }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface-sun); margin-left: -10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: #fff; }
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust strong { color: var(--ink); }

.hero-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 150px); gap: 14px; position: relative; }
.hero-bento .hb { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.hero-bento img { width: 100%; height: 100%; object-fit: cover; }
.hb-main { grid-column: 1 / 3; grid-row: 1 / 3; }
.hb-stat { background: var(--primary); color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.hb-stat strong { display: block; font-family: var(--font-heading); font-size: 22px; line-height: 1.15; font-weight: 700; }
.hb-stat span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--on-dark); }
.hb-stat svg { width: 28px; height: 28px; color: var(--cojps-soleil); }
.hb-logo { background: #fff; display: flex; align-items: center; justify-content: center; }
.hb-logo img { width: 70%; height: 70%; object-fit: contain; }
.hb-wide { grid-column: 2 / 4; }
.hero-sun { position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; z-index: -1; opacity: .9; }

/* Bande de preuves (Trust & Authority) */
.proof { position: relative; z-index: 2; margin-top: -44px; }
.proof .bento { grid-auto-rows: auto; }
.stat { flex-direction: row; align-items: center; gap: 16px; padding: 22px 24px; }
.stat strong { display: block; font-family: var(--font-heading); font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--primary); }
.stat span { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

/* =========================================================
   8. Cartes d'activité
   ========================================================= */
.grid { display: grid; gap: 24px; }
.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; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.card--flat { box-shadow: none; }
.card-body { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card-overline { font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-text); }
.card-meta { font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--accent-text); }
.card-title { font-size: 19px; line-height: 1.4; font-weight: 600; }
.card-text { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.card-place { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-muted); }
.card-place svg { width: 16px; height: 16px; flex-shrink: 0; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (hover: hover) { .card:hover { translate: 0 -4px; box-shadow: var(--shadow-2); } }

.card-date { position: relative; height: 200px; background: var(--primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.card-date::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); right: -90px; top: -90px; }
.card-date .day-name { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cojps-soleil); }
.card-date .day { font-family: var(--font-heading); font-size: 64px; line-height: 1; font-weight: 700; }
.card-date .month { font-size: 15px; font-weight: 500; color: var(--on-dark); }

.card-media { position: relative; height: 200px; background: var(--surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-muted); font-size: 14px; font-weight: 500; text-align: center; padding: 16px; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(12,63,128,.035) 14px 28px); }
.card-placeholder .ph-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); display: flex; align-items: center; justify-content: center; }
.card-placeholder .ph-icon svg { width: 24px; height: 24px; }
.date-chip { position: absolute; left: 16px; top: 16px; min-width: 56px; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-2); display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--font-heading); }
.date-chip .day { font-size: 22px; line-height: 26px; font-weight: 700; color: var(--primary); }
.date-chip .month { font-size: 12px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; }

/* =========================================================
   9. Galerie bento
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: var(--bento-gap); }
.gallery > * { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
@media (hover: hover) { .gallery > *:hover img { scale: 1.05; } }

/* =========================================================
   10. Adhésion
   ========================================================= */
.membership { position: relative; overflow: hidden; }
.membership::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -220px; top: -260px; background: radial-gradient(circle, rgba(253,187,31,.16), transparent 65%); pointer-events: none; }
.membership-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.membership-intro { display: flex; flex-direction: column; gap: 16px; }
.membership-intro h2 { color: #fff; }
.membership-intro > p { font-size: 17px; line-height: 1.7; color: var(--on-dark); max-width: 62ch; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 16px; }
.plan { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; transition: translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(248,129,11,.25); }
.plan .plan-tag { align-self: flex-start; font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: var(--ink-muted); background: var(--surface-alt); padding: 3px 10px; border-radius: var(--radius-pill); }
.plan--featured .plan-tag { background: var(--accent); color: var(--ink); }
.plan h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.plan .price { font-family: var(--font-heading); font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--primary); }
.plan .plan-desc { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
@media (hover: hover) { .plan:hover { translate: 0 -4px; box-shadow: var(--shadow-3); } .plan--featured:hover { box-shadow: 0 0 0 4px rgba(248,129,11,.25), var(--shadow-3); } }

/* Badge de membre (couleurs fixes, format CR80) */
.member-badge-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.member-badge-wrap > span { font-size: 14px; color: var(--on-dark); }
.member-badge { position: relative; width: 324px; height: 514px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 24px 48px rgba(0,0,0,.3); display: flex; flex-direction: column; align-items: center; color: var(--ink); font-family: var(--font-heading); rotate: 3deg; transition: rotate .4s var(--ease-back); }
.member-badge:hover { rotate: 0deg; }
.member-badge .mb-logo { width: 76px; height: 68px; object-fit: contain; margin-top: 28px; }
.member-badge .mb-name { font-size: 26px; line-height: 28px; font-weight: 700; color: var(--cojps-bleu); letter-spacing: .5px; }
.member-badge .mb-org { margin-top: 6px; font-size: 10.5px; line-height: 14px; font-weight: 700; text-align: center; padding: 0 12px; }
.member-badge .mb-photo { margin-top: 14px; width: 136px; height: 124px; border: 3px solid var(--cojps-bleu); border-radius: 16px; background: var(--primary-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 500; color: var(--ink-muted); }
.member-badge .mb-photo svg { width: 56px; height: 56px; }
.member-badge .mb-role { margin-top: 10px; min-width: 128px; padding: 3px 20px; border-radius: 6px; background: var(--cojps-feuille); color: #fff; font-size: 15px; line-height: 22px; font-weight: 700; font-style: italic; text-align: center; }
.member-badge .mb-person { margin-top: 6px; font-size: 17px; line-height: 24px; font-weight: 700; }
.member-badge .mb-line { font-size: 11.5px; line-height: 17px; font-weight: 700; }
.member-badge .mb-line:first-of-type { margin-top: 4px; }
.member-badge .mb-sign { position: absolute; right: 16px; top: 408px; width: 76px; border-top: 1.5px solid var(--ink); padding-top: 2px; font-size: 7px; font-weight: 700; text-align: center; }
.member-badge .mb-arc { position: absolute; left: -50px; bottom: -40px; width: 424px; height: 116px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--cojps-bleu); }
.member-badge .mb-contact { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 11.5px; line-height: 16px; font-weight: 600; }
.member-badge .mb-contact span { display: flex; align-items: center; gap: 6px; }
.member-badge .mb-contact svg { width: 14px; height: 14px; }

.tiers-block { position: relative; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--cojps-bleu-ligne); display: flex; flex-direction: column; gap: 20px; }
.tiers-block h3 { font-size: 22px; line-height: 1.35; font-weight: 600; color: #fff; }
.tiers-block > p { font-size: 16px; line-height: 1.65; color: var(--on-dark); max-width: 70ch; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tier { background: var(--cojps-bleu-nuit); border: 1px solid var(--cojps-bleu-ligne); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 16px; align-items: center; transition: translate var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.tier-medal { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tier-medal svg { width: 24px; height: 24px; }
.tier strong { display: block; font-family: var(--font-heading); font-size: 17px; line-height: 1.4; font-weight: 600; color: #fff; }
.tier span { display: block; font-size: 14px; line-height: 1.45; color: var(--on-dark); }
@media (hover: hover) { .tier:hover { translate: 0 -4px; border-color: var(--cojps-soleil); } }
.tiers-block .btn-row { padding-top: 8px; }

/* =========================================================
   11. Équipe
   ========================================================= */
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 28px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); transition: translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.avatar { width: 104px; height: 104px; border-radius: 50%; padding: 4px; }
.avatar > * { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--primary-soft); object-fit: cover; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--primary); }
.ring-blue { background: var(--cojps-bleu); }
.ring-green { background: var(--cojps-vert); }
.ring-orange { background: var(--cojps-orange); }
.member strong { display: block; font-family: var(--font-heading); font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.member .role { display: block; font-size: 14px; line-height: 1.45; color: var(--accent-text); font-weight: 600; }
@media (hover: hover) { .member:hover { translate: 0 -4px; box-shadow: var(--shadow-2); } }
.member-note { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-sun); border: 1px solid #f6e2b0; }
.member-note strong { font-family: var(--font-heading); font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.member-note span { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

/* =========================================================
   12. Contact & formulaire
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.contact-item .ci-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--ink); }
.contact-item span, .contact-item address { display: block; font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.contact-item a { color: inherit; text-decoration: none; white-space: nowrap; }
.contact-item a:hover { color: var(--primary); text-decoration: underline; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-2); }
.form-card h3 { font-size: 22px; line-height: 1.35; font-weight: 600; }
.form-card .form-intro { font-size: 15px; color: var(--ink-muted); margin-top: -12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--danger); }
.field .hint { font-size: 13px; color: var(--ink-muted); }
.field input, .field textarea { width: 100%; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; color: var(--ink); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field input { height: 50px; }
.field textarea { padding-block: 14px; resize: vertical; min-height: 132px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #6b7a8f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.field .error { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--danger); }
.field .error svg { width: 16px; height: 16px; flex-shrink: 0; }
.form-card .btn { align-self: flex-start; }
.form-status:empty { display: none; }
.form-status { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--success-soft); color: var(--success); font-size: 15px; font-weight: 500; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.form-status.is-error { background: var(--danger-soft); color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   13. Pages intérieures
   ========================================================= */
.page-hero { position: relative; background: var(--primary); color: var(--on-dark); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; left: -260px; bottom: -420px; background: radial-gradient(circle, rgba(106,172,10,.22), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; padding-block: 72px 96px; display: flex; gap: 72px; align-items: center; }
.page-hero-content { flex: 1; display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: #fff; max-width: 780px; }
.page-hero .lead { color: var(--on-dark); max-width: 62ch; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; color: var(--on-dark); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { color: #fff; }
.page-hero-emblem { position: relative; width: 340px; height: 340px; flex-shrink: 0; }
.page-hero-emblem svg { position: absolute; inset: 0; width: 340px; height: 340px; }
.page-hero-emblem .disc { position: absolute; left: 60px; top: 60px; width: 220px; height: 220px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.page-hero-emblem .disc img { width: 160px; height: 160px; object-fit: contain; }
.page-hero--compact .container { padding-block: 64px 80px; }
.page-hero--compact .sun-deco { position: absolute; right: var(--gutter); top: 40px; width: 280px; height: 280px; }

/* Mission */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.why-grid img { margin-top: 16px; width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.75; color: var(--ink-body); max-width: 62ch; }
.prose p:first-child { font-family: var(--font-heading); font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--primary); }

.axis-head { display: flex; align-items: center; justify-content: space-between; }
.axis-num { font-family: var(--font-heading); font-size: 44px; line-height: 1; font-weight: 700; color: var(--line); }
.tile--banded { padding: 0; }
.tile--banded .band { height: 8px; flex-shrink: 0; }
.tile--banded .tile-inner { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.checklist { list-style: none; padding: 16px 0 0; margin-top: auto; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.checklist svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.band-blue { background: var(--cojps-bleu); } .band-green { background: var(--cojps-vert); } .band-orange { background: var(--cojps-orange); }

.values { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 72px; align-items: center; }
.values-list { display: flex; flex-direction: column; gap: 16px; }
.engagement { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: rgba(255,255,255,.7); border: 1px solid #f6e2b0; border-radius: var(--radius-md); font-family: var(--font-heading); font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.engagement .num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--ink); }
.quote-card { background: #fff; border-radius: var(--radius-lg); padding: 48px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-2); }
.quote-card blockquote { font-family: var(--font-heading); font-size: 22px; line-height: 1.6; font-weight: 500; color: var(--primary); }
.quote-card figcaption { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

.organ .o-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.organ .o-icon svg { width: 24px; height: 24px; }
.organ h3 { font-size: 18px; }
.organ p { font-size: 15px; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cojps-bleu), var(--cojps-vert), var(--cojps-orange)); opacity: .35; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; border: 5px solid var(--surface-alt); box-shadow: 0 0 0 1px var(--line); }
.timeline .tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.timeline .date { font-family: var(--font-heading); font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--accent-text); }
.timeline strong { font-family: var(--font-heading); font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.timeline p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; background: var(--primary); color: var(--on-dark); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; box-shadow: var(--shadow-3); }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -200px; background: radial-gradient(circle, rgba(253,187,31,.28), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band > div:first-child { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; }
.cta-band p { color: var(--on-dark); font-size: 17px; line-height: 1.65; }
.cta-band .btn-row { flex-shrink: 0; }
.cta-band--sun { background: var(--surface-sun); color: var(--ink-body); border: 1px solid #f6e2b0; box-shadow: none; }
.cta-band--sun h2 { color: var(--primary); }
.cta-band--sun p { color: var(--ink-muted); }

/* Activités — filtres */
.filters { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.filters .container { padding-block: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters-label { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--ink-muted); margin-right: 6px; white-space: nowrap; flex-shrink: 0; }
.filter-btn { flex-shrink: 0; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-heading); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-btn[aria-pressed="true"]::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.list-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.list-head h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.25; font-weight: 700; }
.list-head span { font-size: 15px; color: var(--ink-muted); }
.empty-state { padding: 32px; border-radius: var(--radius-lg); border: 1.5px dashed var(--line-strong); background: var(--surface); font-size: 16px; color: var(--ink-muted); text-align: center; }

/* Visionneuse de photos d'une activité */
.viewer { width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--footer-bg); color: #fff; box-shadow: var(--shadow-3); }
.viewer::backdrop { background: rgba(10,22,40,.8); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 24px; }
.viewer-head h2 { color: #fff; font-size: 18px; }
.viewer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.viewer-close:hover { background: rgba(255,255,255,.16); }
.viewer-close svg { width: 22px; height: 22px; }
.viewer-stage { margin: 0; background: #000; }
.viewer-stage img { width: 100%; max-height: 68dvh; object-fit: contain; }
.viewer-stage figcaption { padding: 10px 24px 0; font-size: 15px; color: var(--footer-ink); }
.viewer-stage figcaption:empty { display: none; }
.viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.viewer-count { font-size: 14px; color: var(--footer-muted); }
.viewer .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.viewer .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* =========================================================
   14. Pied de page
   ========================================================= */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); }
.footer-grid { padding-block: 72px 56px; display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 48px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand .logo-box { width: 72px; height: 72px; flex-shrink: 0; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; }
.footer-brand .logo-box img { width: 58px; height: 58px; object-fit: contain; }
.footer-brand strong { display: block; font-family: var(--font-heading); font-size: 26px; line-height: 30px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.footer-brand span { display: block; font-size: 14px; line-height: 1.4; }
.footer-about { font-size: 15px; line-height: 1.7; color: var(--footer-muted); max-width: 380px; }
.motto { align-self: flex-start; display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill); background: #1b2a40; color: var(--cojps-soleil); font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: .6px; }
.footer-title { font-family: var(--font-heading); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cojps-soleil); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--footer-ink); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; font-style: normal; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid #3a4d68; color: #fff; text-decoration: none; font-family: var(--font-heading); font-size: 13px; font-weight: 600; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.socials a:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
.footer-cta-text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--footer-muted); }
.footer-bottom { padding-block: 24px 32px; border-top: 1px solid #26395a; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--footer-muted); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.footer-bottom a svg { width: 16px; height: 16px; }

/* =========================================================
   15. Responsive — 1024 / 768 / 480
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav a:not(.btn) { padding: 0 10px; }
  .membership-top { gap: 40px; }
  .footer-grid { gap: 36px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; --section-y: 80px; }
  .menu-toggle { display: inline-flex; }
  .brand img { width: 44px; height: 44px; }
  .brand-tagline { display: none; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 32px; background: var(--surface); overflow-y: auto; translate: 100% 0; visibility: hidden; transition: translate .3s var(--ease-out), visibility .3s; font-size: 18px; }
  .menu-open .main-nav { translate: 0 0; visibility: visible; }
  .main-nav a:not(.btn) { min-height: 56px; padding: 0 16px; border-radius: var(--radius-md); }
  .main-nav .btn { margin: 16px 0 0; min-height: 56px; font-size: 16px; }
  body.menu-open { overflow: hidden; }

  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 80px; }
  .hero-bento { max-width: 640px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .membership-top { grid-template-columns: 1fr; }
  .member-badge-wrap { justify-self: center; }
  .contact-grid, .why-grid, .values { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .page-hero .container { gap: 32px; }
  .page-hero-emblem { scale: .7; margin: -50px; }
  .page-hero--compact .sun-deco { opacity: .3; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: 64px; --gutter: 20px; --bento-gap: 12px; }
  .lead { font-size: 17px; }
  .text, .prose { font-size: 16px; }
  .prose p:first-child { font-size: 19px; }

  .hero-bento { grid-template-rows: repeat(3, 110px); gap: 10px; }
  .hb-stat { padding: 14px; }
  .hb-stat strong { font-size: 19px; }
  .hb-stat span { font-size: 12px; }
  .hb-stat svg { display: none; }
  .hero-sun { width: 150px; height: 150px; right: -30px; top: -40px; }
  .proof { margin-top: -40px; }

  .grid-2, .grid-3, .plans { grid-template-columns: 1fr; }
  .grid-4.team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .member { padding: 20px 12px; }
  .avatar { width: 84px; height: 84px; }
  .avatar > * { font-size: 24px; }
  .member strong { font-size: 15px; }
  .member .role { font-size: 13px; }
  .member-note { grid-column: 1 / -1; }
  .tiers { grid-template-columns: 1fr; }
  .tile { padding: 22px; }
  .tile--banded .tile-inner { padding: 22px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }

  .member-badge { rotate: 0deg; }
  .quote-card { padding: 28px; }
  .quote-card blockquote { font-size: 18px; }
  .timeline { grid-template-columns: 1fr; gap: 16px; padding-left: 42px; }
  .timeline::before { left: 12px; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; background: linear-gradient(180deg, var(--cojps-bleu), var(--cojps-vert), var(--cojps-orange)); }
  .timeline .dot { position: absolute; left: -42px; top: 18px; }
  .page-hero .container { padding-block: 40px 64px; flex-direction: column-reverse; align-items: flex-start; }
  .page-hero-emblem { scale: .45; margin: -94px; align-self: center; }
  .page-hero--compact .sun-deco { width: 160px; height: 160px; top: 16px; right: -24px; }
  .filters .container { flex-wrap: nowrap; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
  .filters .container::-webkit-scrollbar { display: none; }
  .form-card { padding: 24px; }
  .cta-band { padding: 32px 24px; border-radius: var(--radius-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .row-2 { grid-row: auto; }
  .proof .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
  .stat .icon-circle { width: 40px; height: 40px; border-radius: 12px; }
  .stat .icon-circle svg { width: 20px; height: 20px; }
  .stat strong { font-size: 19px; }
  .stat span { font-size: 13px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .form-card .btn { align-self: stretch; }
  .member-badge-wrap { scale: .88; margin-block: -30px; }
  .hero-trust { flex-wrap: wrap; }
}

/* =========================================================
   16. Animations (Stagger List)
   Activées seulement si JS : classe .js-anim sur <html>.
   Propriétés `translate` / `scale` indépendantes → pas de conflit
   avec d'autres `transform`.
   ========================================================= */
.js-anim .reveal {
  opacity: 0;
  translate: 0 16px;
  scale: .96;
  transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-back), scale var(--dur-reveal) var(--ease-back);
  transition-delay: var(--delay, 0s);
}
.js-anim .reveal--left { translate: -32px 0; scale: 1; }
.js-anim .reveal--right { translate: 32px 0; scale: 1; }
.js-anim .reveal--zoom { translate: 0 16px; scale: .92; }
.js-anim .reveal.is-visible { opacity: 1; translate: 0 0; scale: 1; }
.js-anim .reveal:not(.is-visible) { pointer-events: none; }

/* Entrée du héros au chargement */
.js-anim .hero-content > *,
.js-anim .page-hero-content > * { opacity: 0; translate: 0 20px; animation: rise .7s var(--ease-out) forwards; }
.js-anim .hero-content > :nth-child(2), .js-anim .page-hero-content > :nth-child(2) { animation-delay: .08s; }
.js-anim .hero-content > :nth-child(3), .js-anim .page-hero-content > :nth-child(3) { animation-delay: .16s; }
.js-anim .hero-content > :nth-child(4), .js-anim .page-hero-content > :nth-child(4) { animation-delay: .24s; }
.js-anim .hero-content > :nth-child(5), .js-anim .page-hero-content > :nth-child(5) { animation-delay: .32s; }
.js-anim .hero-bento .hb { opacity: 0; scale: .92; animation: pop .55s var(--ease-back) forwards; }
.js-anim .hero-bento .hb:nth-child(2) { animation-delay: .15s; }
.js-anim .hero-bento .hb:nth-child(3) { animation-delay: .22s; }
.js-anim .hero-bento .hb:nth-child(4) { animation-delay: .29s; }
.js-anim .hero-bento .hb:nth-child(5) { animation-delay: .36s; }
.js-anim .hero-bento .hb:nth-child(6) { animation-delay: .43s; }
.hero-sun g, .page-hero-emblem svg g, .sun-deco g { transform-box: view-box; }
.js-anim .hero-sun g { animation: rays 1.2s .4s var(--ease-out) both; transform-origin: 150px 150px; }
.js-anim .page-hero-emblem svg g { animation: spin-in 1.2s .2s var(--ease-out) both; transform-origin: 170px 170px; }
.js-anim .page-hero-emblem .disc { animation: pop .8s .1s var(--ease-back) both; }
.js-anim .sun-deco g { animation: rays 1.2s .3s var(--ease-out) both; transform-origin: 150px 150px; }
.js-anim .tricolor span { transform-origin: left; animation: grow .9s .4s var(--ease-out) both; }
.js-anim .tricolor span:nth-child(2) { animation-delay: .55s; }
.js-anim .tricolor span:nth-child(3) { animation-delay: .7s; }

@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes rays { from { opacity: 0; transform: rotate(-25deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-60deg); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Barre de progression de lecture */
.scroll-progress { position: fixed; top: 0; left: 0; z-index: var(--z-progress); height: 3px; width: 100%; background: linear-gradient(90deg, var(--cojps-bleu), var(--cojps-vert), var(--cojps-orange)); transform-origin: left; transform: scaleX(var(--progress, 0)); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-anim .reveal, .js-anim .hero-content > *, .js-anim .page-hero-content > *, .js-anim .hero-bento .hb { opacity: 1 !important; translate: none !important; scale: none !important; }
  .member-badge { rotate: 0deg; }
  .scroll-progress { display: none; }
}
