/* ═══════════════════════════════════════════════════════════════
   mobile.css — COUCHE MOBILE KYMA (refonte mobile 2026-10)
   ---------------------------------------------------------------
   Chargé EN DERNIER sur chaque page (après styles.css et la feuille
   propre à la page). Ne contient que de l'affichage : aucun sélecteur
   ici ne change un comportement, un formulaire ou une donnée.

   Breakpoints (cohérents, volontairement peu nombreux) :
     ≤ 1079px  menu en tiroir (le menu desktop ne tient sur une ligne
               qu'à partir de 1080px : en dessous il passait sur deux
               lignes ou débordait — « Faire un don » sortait de l'écran)
     ≤ 768px   expérience mobile (cible principale 320–430px)
     ≤ 360px   petits téléphones : quelques resserrages

   Composants réutilisables (créés par mobile.js, inertes sur desktop) :
     .m-scroller  rangée horizontale scroll-snap + .m-dots
     .m-tabs      onglets (role=tablist) + panneaux .m-tab-off
     .m-collapse-btn / .m-collapse-body  section repliable
     .m-clamp / .m-clamp-btn             texte long « Lire la suite »

   Sommaire :
     0. Tokens
     1. Menu tiroir (≤1079)
     2. Système mobile (≤768) : base, typo, sections, boutons, vagues
     3. Composants
     4. Footer
     5. Accueil
     … pages (voir intertitres plus bas)
   ═══════════════════════════════════════════════════════════════ */

/* ── 0. TOKENS ─────────────────────────────────────────────── */
:root {
  --m-gutter: 16px;
  --m-sec: 40px;          /* padding vertical d'une section standard */
  --m-sec-sm: 28px;       /* section compacte */
  --m-radius: 14px;
  --m-radius-sm: 10px;
  --m-gap: 12px;
  --m-tap: 44px;          /* zone tactile minimale */
  --m-line: rgba(13, 39, 87, 0.08);
  --m-shadow: 0 1px 2px rgba(13, 39, 87, 0.05), 0 4px 14px rgba(13, 39, 87, 0.05);
  --m-safe-b: env(safe-area-inset-bottom, 0px);
  --m-safe-t: env(safe-area-inset-top, 0px);
}

/* Composants inertes hors mobile : les boutons ajoutés par mobile.js
   n'existent visuellement que ≤768px. */
.m-dots, .m-tabs, .m-collapse-btn, .m-clamp-btn, .m-nav-veil, .m-sticky-cta, .m-em-tabs, .m-only { display: none; }

/* ═══════════════ 1. MENU TIROIR (≤1079px) ═══════════════ */
@media (max-width: 1079px) {
  .burger {
    display: flex;
    width: var(--m-tap);
    height: var(--m-tap);
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(26, 86, 219, 0.14);
    border-radius: 12px;
    background: #fff;
    position: relative;
    z-index: 2;
  }
  .burger span { width: 18px; transition: transform 0.25s ease, opacity 0.2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100%, 400px);
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 0 10px;
    padding: 8px 20px calc(24px + var(--m-safe-b));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-top: 1px solid rgba(26, 86, 219, 0.1);
    box-shadow: -12px 0 40px rgba(13, 39, 87, 0.12);
    z-index: 1;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: auto; margin-left: 0 !important; list-style: none; }
  .nav-links li.m-nav-li-main,
  .nav-links li:not([class]) { grid-column: 1 / -1; }

  /* Liens principaux : rangées pleine largeur, chevron, 52px */
  .nav-links li.m-nav-li-main > a,
  .nav-links li:not([class]) > a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 4px;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--blue-dark);
    border-radius: 0;
    border-bottom: 1px solid var(--m-line);
    background: none;
  }
  .nav-links li.m-nav-li-main > a::after {
    content: "";
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(26, 86, 219, 0.45);
    border-top: 2px solid rgba(26, 86, 219, 0.45);
    transform: rotate(45deg);
  }
  .nav-links li.m-nav-li-main > a.active,
  .nav-links li.m-nav-li-main > a.active-page { color: var(--blue); }
  /* « Projets » : même rangée que les autres, son étoile conservée */
  .nav-links a.nav-projets {
    background: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--m-line) !important;
    border-radius: 0 !important;
    padding: 0 4px !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    font-size: 1.02rem !important;
    color: var(--blue-dark) !important;
  }
  .nav-links a.nav-projets svg { width: 15px; height: 15px; }

  /* Actions : Espace membre (pleine largeur) puis Don + Contact */
  .nav-links li.m-nav-li-login { grid-column: 1 / -1; order: 10; margin-top: 20px; }
  .nav-links li.m-nav-li-donate { order: 11; margin-top: 10px; }
  .nav-links li.m-nav-li-contact { order: 12; margin-top: 10px; }
  .nav-links a.nav-login,
  .nav-links a.nav-donate,
  .nav-links a.nav-cta {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 12px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
  }
  .nav-links a.nav-cta {
    background: var(--blue-pale) !important;
    color: var(--blue) !important;
  }

  .m-nav-veil {
    display: block;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(7, 24, 40, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 99;
  }
  html.m-nav-open .m-nav-veil { opacity: 1; pointer-events: auto; }
}

/* ═══════════════ 2. SYSTÈME MOBILE (≤768px) ═══════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 15px; }
  .container, .container--sm { padding-left: var(--m-gutter); padding-right: var(--m-gutter); }

  /* Header compact */
  .nav-inner { padding: 0 var(--m-gutter); padding-top: var(--m-safe-t); }
  .nav-logo { gap: 8px; min-height: var(--m-tap); }
  .nav-logo-img { width: 30px; height: 30px; }
  .nav-logo-text { font-size: 1.12rem; }

  /* Typographie */
  h1 { font-size: clamp(2rem, 9.4vw, 2.6rem); line-height: 1.02; margin-bottom: 14px; letter-spacing: -0.005em; }
  h2 { font-size: clamp(1.6rem, 7.2vw, 2rem); line-height: 1.06; margin-bottom: 10px; }
  h3 { font-size: 1.12rem; }
  .section-label { font-size: 0.68rem; margin-bottom: 8px; }
  .section-intro { font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
  .kicker { margin-bottom: 12px; }
  p { overflow-wrap: break-word; }

  /* Sections : fini les 96px */
  .section { padding: var(--m-sec) 0; }
  .section-compact { padding: var(--m-sec-sm) 0; }
  .section-white:has(+ .wave-divider),
  .section-blue-light:has(+ .wave-divider),
  .section-compact:has(+ .wave-divider) { padding-bottom: 16px; }
  .section-compact .section-intro { margin-bottom: 18px; }

  /* Vagues décoratives : gardées, mais basses */
  .wave-divider svg { height: 30px; }
  .wave-hero svg { height: 44px; }
  .contact-wave-deco { height: 70px; }

  /* Boutons : 44px mini, plus compacts */
  .btn-primary, .btn-outline, .btn-outline-blue, .btn-outline-light {
    min-height: var(--m-tap);
    padding: 11px 18px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
  }
  .btn-submit { min-height: 48px; padding: 12px; }

  /* Cartes : moins de padding, une seule ombre légère */
  .card { padding: 18px 16px; border-radius: var(--m-radius); }
  .card:hover, .pillar-card:hover, .membre-card:hover { transform: none; }

  /* Formulaires : 16px (pas de zoom iOS), champs confortables */
  input, select, textarea { font-size: 16px; }
  .fg input, .fg select, .fg textarea { min-height: var(--m-tap); }

  /* Animations d'apparition : plus courtes en mobile */
  .reveal { transition-duration: 0.35s !important; }
}

/* ═══════════════ 3. COMPOSANTS (≤768px) ═══════════════ */
@media (max-width: 768px) {
  /* ── Carrousel horizontal ── */
  .m-scroller {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 12px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--m-gutter);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--m-gutter)) !important;
    margin-right: calc(-1 * var(--m-gutter)) !important;
    padding: 4px var(--m-gutter) 8px !important;
  }
  .m-scroller::-webkit-scrollbar { display: none; }
  .m-scroller > * {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: start;
    margin: 0 !important;
  }
  .m-scroller--sm > * { flex-basis: 64%; max-width: 260px; }
  .m-scroller--xs > * { flex-basis: 44%; max-width: 190px; }
  .m-scroller:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
  .m-minw0 { min-width: 0 !important; }

  .m-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
  }
  .m-dots[hidden] { display: none; }
  .m-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
  }
  .m-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(26, 86, 219, 0.22);
    transition: width 0.2s ease, background 0.2s ease;
  }
  .m-dot.is-active::before { width: 18px; background: var(--blue); }
  .section-blue-dark .m-dot::before { background: rgba(255, 255, 255, 0.3); }
  .section-blue-dark .m-dot.is-active::before { background: #fff; }

  /* ── Onglets ── */
  .m-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 14px;
    background: var(--blue-pale);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .m-tabs::-webkit-scrollbar { display: none; }
  .m-tab {
    flex: 1 0 auto;
    min-height: var(--m-tap);
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-soft);
    font: 600 0.86rem/1.2 var(--font-body);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .m-tab[aria-selected="true"] {
    background: #fff;
    color: var(--blue-dark);
    box-shadow: 0 1px 3px rgba(13, 39, 87, 0.12);
  }
  .m-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
  .m-tab-sub { font-size: 0.74rem; font-weight: 700; color: var(--blue); }
  .m-tabbed > .m-tab-off { display: none !important; }
  .m-tabbed { grid-template-columns: 1fr !important; }

  /* ── Section repliable ── */
  .m-collapse-btn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 16px;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(26, 86, 219, 0.14);
    border-radius: 12px;
    color: var(--blue-dark);
    font: 600 0.95rem/1.25 var(--font-body);
    text-align: left;
    cursor: pointer;
    position: relative;
    padding-right: 46px;
  }
  .m-collapse-title { flex: 1 1 auto; }
  .m-collapse-sub { flex-basis: 100%; font-size: 0.78rem; font-weight: 500; color: var(--text-soft); }
  .m-collapse-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
  }
  .m-collapse-icon::before, .m-collapse-icon::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px;
    top: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transition: transform 0.2s ease;
  }
  .m-collapse-icon::after { transform: rotate(90deg); }
  .m-collapse-btn[aria-expanded="true"] .m-collapse-icon::after { transform: rotate(0deg); }
  .m-collapse-btn[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .m-collapse-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .m-collapse-body.m-closed { display: none !important; }
  .m-collapse-btn + .m-collapse-body:not(.m-closed) { margin-top: 0 !important; }
  .m-collapse-btn--dark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  .m-collapse-btn--dark .m-collapse-sub { color: rgba(255, 255, 255, 0.6); }
  .m-collapse-btn--dark .m-collapse-icon::before,
  .m-collapse-btn--dark .m-collapse-icon::after { background: var(--blue-light); }

  /* ── Texte long ── */
  .m-clamp:not(.m-clamp-open) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--m-lines, 3);
    line-clamp: var(--m-lines, 3);
    overflow: hidden;
    margin-bottom: 4px !important;
  }
  .m-clamp-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0;
    margin: 0 0 14px;
    border: 0;
    background: none;
    color: var(--blue);
    font: 600 0.85rem/1 var(--font-body);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .m-clamp-btn[hidden] { display: none; }
  .section-blue-dark .m-clamp-btn,
  .m-on-dark .m-clamp-btn,
  .pe .m-clamp-btn,
  .projets-initiatives .m-clamp-btn { color: var(--blue-light); }

  .m-only { display: revert; }
  .m-hide { display: none !important; }
}

/* ═══════════════ 4. FOOTER (≤768px) ═══════════════ */
@media (max-width: 768px) {
  .footer { padding: 24px 0 calc(20px + var(--m-safe-b)); }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 -8px;
  }
  .footer-links a {
    display: flex;
    align-items: center;
    min-height: var(--m-tap);
    padding: 0 8px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
  }
  .footer-legal {
    text-align: left;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-credit { color: rgba(255, 255, 255, 0.7); }
}
@media (max-width: 360px) {
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════════ 5. ACCUEIL (index.html) ═══════════════ */
@media (max-width: 768px) {
  /* Héro : bandeau photo recadré + promesse + 2 CTA côte à côte.
     Premier écran utile : titre et actions visibles sans défiler. */
  .hero { min-height: 0; }
  .hero-bg-shape { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 16px;
    padding-bottom: 20px;
  }
  .hero-logo-wrap {
    order: -1;
    width: 100%;
    margin: 0;
    border-radius: 18px;
    animation: none;
    box-shadow: 0 10px 30px rgba(26, 86, 219, 0.14);
  }
  .hero-logo-wrap::before { padding-top: 54%; }
  .hero-logo { border-radius: 18px; object-position: center 32%; }
  .hero-text { text-align: left; }
  .hero-text h1 { margin-bottom: 10px; }
  .hero-lead { font-size: 0.98rem; line-height: 1.55; margin: 0 0 18px; max-width: none; }
  .hero-btns { flex-wrap: nowrap; gap: 10px; justify-content: stretch; }
  .hero-btns > a { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }
  .hero-strip { padding: 10px 0; }

  /* Pourquoi KYMA : 3 axes en carrousel compact */
  #pourquoi-kyma { padding-top: 20px; }
  #pourquoi-kyma .section-intro { margin-bottom: 4px; }
  .pourquoi-kyma-grid { margin-top: 10px; }
  .pourquoi-kyma-card { padding: 18px 16px 16px; border-radius: var(--m-radius); box-shadow: var(--m-shadow); }
  .pourquoi-kyma-card h3 { font-size: 1.1rem; }
  .pourquoi-kyma-card p { font-size: 0.86rem; line-height: 1.5; }
  .pourquoi-kyma-num { top: 16px; right: 16px; font-size: 1.3rem; }

  /* Rejoindre : Fonds + Club côte à côte en mini-cartes */
  #rejoindre-kyma .section-intro { margin-bottom: 4px; }
  .rejoindre-subblock { margin-bottom: 18px; margin-top: 14px; }
  .rejoindre-panel { padding: 16px 12px 14px; border-radius: 16px; margin-left: calc(-1 * 6px); margin-right: calc(-1 * 6px); }
  .rejoindre-subhead { font-size: 1.25rem; margin-bottom: 12px; }
  .pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pillar-card { padding: 14px 12px 12px; border-radius: 14px; gap: 2px; }
  .pillar-card .card-icon-photo,
  .pillar-card .card-icon { width: 40px; height: 40px; margin-bottom: 8px; }
  .pillar-card h3 { font-size: 1.06rem; margin-bottom: 4px; line-height: 1.1; }
  .pillar-card > p:not(.pillar-note) { font-size: 0.8rem; line-height: 1.45; margin-bottom: 8px; }
  .pillar-note { font-size: 0.66rem; padding: 4px 7px; margin-bottom: 10px !important; }
  .pillar-card .btn-outline-blue { width: 100%; font-size: 0.78rem; padding: 9px 6px; min-height: 40px; }

  /* Membres : onglets passif / cotisant (cotisant par défaut) */
  #rejoindre .m-tabs--cards { margin-top: 4px; }
  #rejoindre .contrib-grid { gap: 0; }
  #rejoindre .membre-card { padding: 18px 16px; gap: 12px; border-radius: 16px; }
  #rejoindre .mc-badge { top: -10px; }
  #rejoindre .mc-list li { font-size: 0.86rem; }
  #rejoindre .mc-btn { min-height: 46px; }

  /* Fonds : simulateur conservé, « en bref » replié */
  #fonds-detail .fonds-detail-grid { gap: 12px; }
  #fonds-detail .m-collapse-btn { margin-top: 2px; }
  #fonds-detail .fonds-brief { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
  .fonds-detail-cta { width: 100%; margin-top: 16px; }

  /* Équipe : 2 cartes en carrousel, bio repliable */
  #fondateurs .card-founder { padding: 18px 16px; }
  #fondateurs .m-scroller > * { flex-basis: 86%; }

  /* Partenaires : logos en 2 colonnes, actions côte à côte */
  .partners-header { margin-bottom: 18px; gap: 12px; }
  .partners-header-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .partners-header-actions > a { width: 100%; padding-left: 8px; padding-right: 8px; font-size: 0.82rem; }
  .partners-logos-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .partner-logo-only { width: 92px; height: 92px; }
  .partner-logo-only img { height: 64px; max-width: 78px; }

  /* Contact : coordonnées compactes, carte et documents repliés */
  #contact .contact-grid { gap: 18px; grid-template-columns: minmax(0, 1fr); }
  #contact .contact-grid > * { min-width: 0; }
  #contact .contact-aside { display: flex; flex-direction: column; gap: 10px; }
  #contact .contact-coords > * { min-width: 0; }
  #contact .contact-map { order: 3; }
  #contact .contact-map iframe { height: 170px; }
  #contact .contact-bottom-row { display: contents; }
  #contact .contact-coords { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #contact .contact-coords .contact-info-block { margin: 0; }
  #contact .contact-coords p { font-size: 0.82rem; line-height: 1.45; }
  #contact .contact-email { font-size: 0.82rem; overflow-wrap: anywhere; white-space: normal; }
  #contact .m-collapse-btn:has(+ .contact-map) { order: 2; }
  #contact .m-collapse-btn:has(+ .docs-list) { order: 4; }
  #contact .contact-map.m-collapse-body,
  #contact .docs-list.m-collapse-body { order: 3; padding: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16); border-top: 0; border-radius: 0 0 12px 12px; }
  #contact .docs-list.m-collapse-body { order: 5; }
  #contact .docs-list .contact-info-title { display: none; }
  #contact .doc-link { min-height: var(--m-tap); display: flex; align-items: center; }
  #contact .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  #contact .contact-form { gap: 12px; }
}
@media (max-width: 360px) {
  .hero-btns > a { font-size: 0.84rem; }
  .pillar-card > p:not(.pillar-note) { font-size: 0.78rem; }
}

/* ═══════════════ 6. ACTION FIXE BAS D'ÉCRAN (≤768px) ═══════════════ */
@media (max-width: 768px) {
  .m-sticky-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px var(--m-gutter) calc(10px + var(--m-safe-b));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(26, 86, 219, 0.12);
    box-shadow: 0 -6px 24px rgba(13, 39, 87, 0.08);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .m-sticky-cta.is-shown { transform: none; }
  .m-sticky-cta-note {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.74rem;
    line-height: 1.3;
    color: var(--text-soft);
  }
  .m-sticky-cta-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
  }
  .m-sticky-cta-btn:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
  html.m-has-sticky .footer { padding-bottom: calc(84px + var(--m-safe-b)); }
}

/* ═══════════════ 7. HÉROS SOMBRES PARTAGÉS (≤768px) ═══════════════
   .club-hero-v2 (KYMA Club) et .fonds-hero-v2 (Fonds) partagent
   eyebrow / titre / texte / actions. */
@media (max-width: 768px) {
  .club-hero-eyebrow { margin-bottom: 10px; gap: 10px; }
  .club-hero-eyebrow span:first-child { font-size: 0.68rem; }
  .club-hero-eyebrow-line { width: 28px; }
  .club-hero-v2-title { font-size: clamp(1.95rem, 8.6vw, 2.4rem); line-height: 1.02; margin-bottom: 10px; }
  .club-hero-v2-title br { display: none; }
  .club-hero-v2-title-accent { display: block; }
  .club-hero-v2-subtitle { font-size: 1rem; margin-bottom: 8px; }
  .club-hero-v2-text { font-size: 0.93rem; line-height: 1.5; margin-bottom: 16px; }
  .club-hero-v2-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .club-hero-v2-actions > a {
    min-height: var(--m-tap);
    padding: 10px 8px;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
  }
  .btn-primary-light { min-height: var(--m-tap); }
}

/* ═══════════════ 8. FONDS D'ENTRAIDE (fonds.html) ═══════════════ */
@media (max-width: 768px) {
  /* Héro : message d'abord, photo en bandeau court en dessous */
  .fonds-hero-v2 { padding: calc(var(--nav-h) + 18px) 0 18px; }
  .fonds-hero-v2-inner { gap: 16px; }
  .fonds-hero-v2-right { order: 2; max-width: none; margin: 0; }
  .fonds-hero-v2-backdrop, .fonds-hero-v2-tick { display: none; }
  .fonds-hero-v2-right .fonds-hero-photo { transform: none; border-radius: 16px; box-shadow: none; max-width: none; }
  .fonds-hero-photo::before { padding-top: 38%; }
  .fonds-hero-photo img { object-position: center 60%; }
  .fonds-goals-section { padding: 0; }

  /* À quoi sert le Fonds : 3 lignes compactes icône + texte */
  .fonds-goals-content-section { padding-top: 24px; }
  .fonds-goals-content-section .three-cols { grid-template-columns: 1fr; gap: 8px; margin-bottom: 0; }
  .fonds-goals-content-section .card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 12px 14px;
  }
  .fonds-goals-content-section .card .card-icon-photo { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .fonds-goals-content-section .card h3 { font-size: 1.02rem; margin: 0 0 2px; }
  .fonds-goals-content-section .card p { font-size: 0.83rem; line-height: 1.45; }

  /* Étapes : frise compacte avec fil vertical */
  .fonds-after-wave-section { padding-top: 24px; }
  #fonctionnement .steps { gap: 0; position: relative; }
  #fonctionnement .step { gap: 12px; padding-bottom: 14px; position: relative; }
  #fonctionnement .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 30px;
    bottom: 2px;
    width: 2px;
    background: rgba(26, 86, 219, 0.18);
  }
  #fonctionnement .step-n { width: 28px; height: 28px; min-width: 28px; font-size: 0.8rem; }
  #fonctionnement .step strong { font-size: 0.92rem; margin-bottom: 2px; }
  #fonctionnement .step p { font-size: 0.84rem; }

  /* Règles : visibles, resserrées ; liens côte à côte */
  .fonds-after-wave-section .check-list { gap: 9px; margin-bottom: 18px !important; }
  .fonds-after-wave-section .check-list li { font-size: 0.88rem; gap: 10px; }
  .fonds-after-wave-section .check-list + div { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .fonds-after-wave-section .check-list + div > a { width: 100%; font-size: 0.8rem; padding: 9px 8px; }

  /* CTA final compact */
  .club-cta-section { padding: 36px 0; }
  .club-cta-section h2 { font-size: 1.55rem; }
  .club-cta-lead { margin: 8px auto 18px; font-size: 0.93rem; }
}

/* ═══════════════ 9. ADHÉSION (adhesion.html) ═══════════════ */
@media (max-width: 768px) {
  .adh-hero { padding-top: calc(var(--nav-h) + 18px); }
  .adh-hero-grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 6px; }
  .adh-hero-right { order: 2; max-width: none; margin: 0; }
  .adh-hero-backdrop, .adh-hero-tick { display: none; }
  .adh-hero-photo { transform: none; border-radius: 16px; box-shadow: none; }
  .adh-hero-photo::before { padding-top: 36%; }
  .adh-hero-photo img { object-position: center 45%; }
  .adh-hero .wave-hero svg { height: 40px; }
  .adh-hero .m-clamp-btn { color: var(--blue-light); margin-top: 0; }
  .adh-hero-download-btn, .adh-hero-how-btn { padding: 10px 8px !important; font-size: 0.84rem !important; }

  .section:has(.adhesion-grid) { padding-top: 22px; }
  .adhesion-grid { gap: 22px; }

  /* Étapes : frise horizontale, une carte par étape */
  .adhesion-steps::before { display: none; }
  .m-scroller--steps > * { flex-basis: 80%; max-width: 320px; }
  .adhesion-step {
    flex-direction: column;
    gap: 10px;
    padding: 16px !important;
    background: var(--off-white);
    border: 1px solid rgba(26, 86, 219, 0.1);
    border-radius: var(--m-radius);
  }
  .adhesion-step-num { width: 32px; height: 32px; font-size: 0.95rem; box-shadow: none; }
  .adhesion-step-body { padding-top: 0; }
  .adhesion-step-body h3 { font-size: 1.04rem; margin-bottom: 6px; }
  .adhesion-step-body p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 0; }

  .adhesion-activation-note { margin-top: 14px; padding: 12px 14px; }
  .adhesion-activation-note p { font-size: 0.84rem; line-height: 1.5; }
  .adhesion-cta-main { margin-top: 14px; }
  .adhesion-cta-main .btn-primary { width: 100%; justify-content: center; }

  /* Ce que vous obtenez : grille 2 colonnes compacte */
  .adhesion-recap { padding: 16px 14px; }
  .adhesion-avantages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .adhesion-avantages li { flex-direction: column; gap: 6px; }
  .aa-icon { width: 34px; height: 34px; min-width: 34px; }
  .adhesion-avantages strong { font-size: 0.83rem; }
  .adhesion-avantages span { font-size: 0.74rem; display: block; color: rgba(255, 255, 255, 0.62); }
  .adhesion-note { font-size: 0.74rem; }
}

/* ═══════════════ 10. STICKY : overflow-x clip (≤768px) ═══════════════
   overflow-x:hidden sur html/body empêche position:sticky de
   fonctionner. clip garde exactement la même protection contre le
   défilement horizontal sans casser sticky. */
@supports (overflow: clip) {
  @media (max-width: 768px) {
    html, body { overflow-x: clip; }
  }
}

/* ═══════════════ 11. KYMA CLUB (kyma-club.html) ═══════════════ */
@media (max-width: 768px) {
  /* Héro : promesse + mini tableau de bord (exemple de solde,
     Boutique, Partenaires) au lieu d'une grande composition 3D */
  .club-hero-v2 { padding-top: calc(var(--nav-h) + 18px); }
  .club-hero-v2 > .container { padding-bottom: 46px; }
  .club-hero-v2-grid { grid-template-columns: 1fr; gap: 18px; }
  .club-hero-v2 .m-clamp-btn { color: var(--blue-light); }
  .club-hero-v2-circle { display: none; }
  .club-hero-v2-right { display: block; }
  .club-hero-visual {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .club-hero-card-main {
    grid-column: 1 / -1;
    order: 0;
    transform: none;
    border-radius: 16px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "head caption" "value caption";
    align-items: center;
    column-gap: 12px;
    box-shadow: 0 8px 22px -10px rgba(3, 15, 40, 0.5);
  }
  .club-hero-card-main-head { grid-area: head; margin: 0; font-size: 0.8rem; justify-content: flex-start; gap: 8px; }
  .club-hero-card-main-chevron { display: none; }
  .club-hero-card-main-value { grid-area: value; font-size: 1.9rem; margin: 0; }
  .club-hero-card-main-k-wrap { display: none; }
  .club-hero-card-main-caption { grid-area: caption; text-align: right; font-size: 0.8rem; }
  .club-hero-mini-stack { display: contents; }
  .club-hero-mini-card { padding: 12px 30px 12px 12px; border-radius: 14px; gap: 6px; min-height: 96px; justify-content: flex-start; }
  .club-hero-mini-card-icon { width: 26px; height: 26px; }
  .club-hero-mini-card-body strong { font-size: 0.9rem; }
  .club-hero-mini-card-body span { font-size: 0.74rem; }
  .club-hero-mini-card-arrow { bottom: 10px; right: 10px; }

  /* Sous-navigation : barre d'onglets collante sous le header */
  .club-subnav-v2-wrap {
    position: sticky;
    top: var(--nav-h);
    z-index: 50;
    margin-top: -26px;
    padding: 0 var(--m-gutter);
  }
  .club-subnav-v2 {
    width: 100%;
    max-width: none;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .club-subnav-link {
    min-height: var(--m-tap);
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    font-size: 0.85rem;
    border-radius: 10px;
    scroll-snap-align: start;
  }
  .club-subnav-sep { display: none; }
  .club-subnav-cta {
    min-height: var(--m-tap);
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 0 14px;
    font-size: 0.84rem;
    border-radius: 10px;
    box-shadow: none;
  }
  #comment, #bareme, #recompenses, #faq-club { padding-top: 56px; }
  #comment.club-comment-section { padding-top: 36px; }

  /* Comment ça marche : 3 étapes en carrousel */
  .club-steps-row { margin-top: 14px; }
  .club-step-mini { padding: 16px 14px; gap: 12px; border-radius: var(--m-radius); }
  .club-step-mini-icon { width: 46px !important; height: 46px !important; min-width: 46px; }
  .club-step-mini h3 { font-size: 1rem; margin-bottom: 4px; }
  .club-step-mini p { font-size: 0.84rem; line-height: 1.45; }
  .club-welcome-note { margin-top: 10px; font-size: 0.88rem; }
  .club-reglement-btn { width: 100%; margin-top: 10px; }

  /* Barème : 6 mini-cartes en 2 colonnes */
  .club-bareme-grid-compact { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .club-bareme-grid-compact .club-bareme-card { flex-direction: column; gap: 8px; padding: 12px; }
  .club-bareme-grid-compact .club-bareme-icon { width: 34px; height: 34px; }
  .club-bareme-grid-compact .club-bareme-card h3 { font-size: 0.88rem; line-height: 1.2; }
  .club-bareme-grid-compact .club-bareme-card p { font-size: 0.78rem; line-height: 1.45; }
  #bareme .section-intro { margin-bottom: 4px; }

  /* Récompenses : exemple + accès boutique côte à côte */
  .club-recompenses-row { grid-template-columns: 132px 1fr; gap: 14px; margin-top: 12px; align-items: center; }
  .club-reward-card { padding: 16px 12px 12px; }
  .club-reward-pts { font-size: 1.6rem; }
  .club-reward-card h3 { font-size: 0.86rem; }
  .club-reward-card .club-reward-cond { font-size: 0.72rem; margin-bottom: 0; }
  .club-recompenses-lead { font-size: 0.86rem; line-height: 1.5; margin-bottom: 12px; text-align: left; }
  .club-recompenses-info { text-align: left; }
  .club-recompenses-info .btn-primary { width: 100%; padding-left: 8px; padding-right: 8px; font-size: 0.84rem; }

  /* FAQ : déjà en accordéon, rendu plus serré */
  #faq-club h2 { margin-bottom: 14px !important; }
  .club-faq-list { gap: 8px; }
  .club-faq-trigger { min-height: 52px; padding: 12px 14px; font-size: 0.9rem; gap: 12px; }
  .club-faq-body { font-size: 0.86rem; }
}
@media (max-width: 360px) {
  .club-recompenses-row { grid-template-columns: 1fr; }
}

/* ═══════════════ 12. PROJETS (projets.html) ═══════════════ */
@media (max-width: 768px) {
  .projets-hero { min-height: 0; padding: calc(var(--nav-h) + 16px) 0 58px; }
  .projets-hero .page-back { margin-bottom: 10px; }
  .projets-hero-eyebrow { font-size: 0.68rem; margin-bottom: 10px; letter-spacing: 0.16em; }
  .projets-hero-title { font-size: clamp(2rem, 9.2vw, 2.5rem) !important; line-height: 1.02 !important; }
  .projets-hero-lead { font-size: 0.95rem !important; line-height: 1.5; margin-bottom: 4px !important; }
  .projets-hero .m-clamp-btn { color: var(--blue-light); }
  .projets-hero-cta { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; margin-top: 4px; }
  .projets-hero-cta > a { width: 100% !important; padding: 10px 8px !important; font-size: 0.86rem; }

  .projets-section, .projets-initiatives, .projets-distinct { padding: 30px 0 !important; }
  .pe { border-radius: 18px; }
  .pe-media { min-height: 170px !important; }
  .pe-badge { top: 12px; left: 12px; font-size: 0.66rem; padding: 5px 10px; }
  .pe-body { padding: 18px 16px 18px !important; gap: 10px; }
  .pe-title { font-size: 1.7rem; }
  .pe-progress { padding: 14px 14px; gap: 8px; }
  .pe-actions { flex-direction: row !important; align-items: center !important; gap: 12px !important; }
  .pe-actions .btn-primary { width: auto !important; flex: 1 1 auto; }
  .pe-learn { font-size: 0.8rem; text-align: left !important; flex: 0 1 44%; }

  .projets-init-grid { gap: 10px; }
  .projets-init-grid.m-scroller > * { flex-basis: 84%; }
  .projets-init-cta { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; margin-top: 16px !important; }
  .projets-init-cta > a { width: 100% !important; padding: 10px 8px !important; font-size: 0.84rem; }

  /* Projet KYMA vs Initiative membre : comparaison côte à côte */
  .projets-distinct-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .projets-distinct-col { padding: 16px 12px; border-radius: 14px; }
  .projets-distinct-col p { font-size: 0.8rem; line-height: 1.45; }
  .projets-distinct-tag { font-size: 0.62rem; }
  .projets-distinct-icon { width: 30px; height: 30px; margin-bottom: 8px; }

  .projets-final { padding: 52px 0 44px !important; }
  .projets-final-lead { font-size: 0.93rem; margin-bottom: 18px; }
  .projets-final-cta { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
  .projets-final-cta > a { width: 100% !important; padding: 10px 8px !important; font-size: 0.86rem; }
  .projets-final-cta > a:first-child { grid-column: 1 / -1; }
}

/* ═══════════════ 13. HÉROS SIMPLES PARTAGÉS (≤768px) ═══════════════
   .page-hero (partenaires, boutique, tarifs, adhésion-flow) et
   .partner-hero-compact (vitrine + fiches partenaires). */
@media (max-width: 768px) {
  .page-hero { padding-top: calc(var(--nav-h) + 18px); }
  .page-hero .hero-lead { font-size: 0.93rem; line-height: 1.5; margin-bottom: 14px; }
  .page-hero h1 { margin-bottom: 8px; }
  .page-back { margin-bottom: 10px; min-height: 32px; font-size: 0.8rem; }
  .partner-hero-compact { padding-top: calc(var(--nav-h) + 14px); }
  .partner-hero-compact > .container { padding-bottom: 18px; }
  .partner-hero-title { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .partner-hero-thanks { font-size: 0.9rem; line-height: 1.5; }
  .partner-hero-compact .wave-hero svg,
  .page-hero .wave-hero svg { height: 36px; }

  /* Fiche partenaire : logo + nom + description sur une rangée */
  .partner-hero-row { flex-direction: row; flex-wrap: nowrap; gap: 14px; margin-top: 6px; align-items: center; text-align: left; justify-content: flex-start; }
  .partner-page-grid { padding-top: 22px; }
  .partner-page-about { padding-left: 14px; }
  .partner-page-about p { font-size: 0.9rem; line-height: 1.6; }
  .partner-hero-logo { width: 60px; height: 60px; border-radius: 14px; }
  .partner-hero-info .partner-hero-title { font-size: 1.6rem; }
  .partner-hero-desc { font-size: 0.84rem; margin: 0; line-height: 1.4; }
  .partner-page-grid { gap: 18px !important; }
  .partner-info-chips { gap: 6px; }
  .partner-info-chip { font-size: 0.8rem; }
  .partner-avantage-card { padding: 16px 14px; }
  .partner-avantage-list li { padding: 10px 0; }

  /* Vitrine : cartes partenaires compactes */
  .vitrine-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .vitrine-card { padding: 12px 14px; gap: 12px; min-height: 76px; }
  .vitrine-logo { width: 54px !important; height: 54px !important; flex-shrink: 0; }
  .vitrine-name { font-size: 1.05rem; }
  .vitrine-category { font-size: 0.8rem; }
  .partner-thanks { margin-top: 16px; padding: 12px 14px; }
  .vitrine-cta { margin-top: 16px; }
  .vitrine-cta .btn-primary { width: 100%; }

  /* Devenir partenaire : paliers en onglets */
  .paliers-grid { gap: 0; }
  .palier-card { padding: 18px 16px; }
  .palier-card-featured { transform: none; }
  .palier-list li { font-size: 0.86rem; }
  .palier-note { margin-top: 14px; font-size: 0.82rem; }
  .partenaire-cta-section .btn-large,
  .partenaire-cta-section .btn-primary { width: 100%; font-size: 0.86rem; overflow-wrap: anywhere; }
}

/* ═══════════════ 14. ONGLETS « PUCES » (≤768px) ═══════════════
   Variante défilable des onglets quand il y a beaucoup d'entrées
   (références d'aide par sport, filtres…). */
@media (max-width: 768px) {
  .m-tabs--chips {
    background: none;
    padding: 2px var(--m-gutter) 6px;
    margin-left: calc(-1 * var(--m-gutter));
    margin-right: calc(-1 * var(--m-gutter));
    gap: 8px;
    scroll-snap-type: x proximity;
  }
  .m-tabs--chips .m-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(26, 86, 219, 0.18);
    color: var(--blue-dark);
    font-size: 0.85rem;
    scroll-snap-align: start;
  }
  .m-tabs--chips .m-tab[aria-selected="true"] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(26, 86, 219, 0.5);
  }
}

/* ═══════════════ 15. RÉFÉRENCES D'AIDE (tarifs.html) ═══════════════ */
@media (max-width: 768px) {
  .page-hero .club-hero-lead { font-size: 0.93rem; line-height: 1.5; margin: 0 0 6px; color: rgba(255, 255, 255, 0.7); }
  .pxref-cap-note { font-size: 0.82rem; padding: 10px 12px; }
  .section:has(#pxrefGrid) { padding-top: 22px; }
  .pxref-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .pxref-card { padding: 16px 16px 12px; border-radius: var(--m-radius); }
  .pxref-sport { display: none; } /* le nom du sport est dans l'onglet actif */
  .m-tabbed:not(:has(.m-tab-off)) .pxref-sport { display: block; }
  .pxref-packmin { padding: 10px 12px; border-radius: 10px; }
  .pxref-packdesc-label { display: inline; margin-right: 4px; }
  .pxref-packdesc-list { display: inline; padding: 0; margin: 0; }
  .pxref-packdesc-list li { display: inline; list-style: none; font-size: 0.8rem; }
  .pxref-packdesc-list li:not(:last-child)::after { content: " · "; color: var(--text-muted); }
  .pxref-articles { gap: 0; margin-top: 10px; }
  .pxref-article {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 0 !important;
  }
  .pxref-article-name { font-size: 0.88rem; }
  .pxref-article-amount { flex-shrink: 0; white-space: nowrap; }
  .pxref-special-list { margin-top: 12px; gap: 8px; }
  .pxref-special-item { padding: 12px 14px; }
}

/* ═══════════════ 16. DON (don.html) ═══════════════ */
@media (max-width: 768px) {
  .don-hero { padding-top: calc(var(--nav-h) + 16px) !important; padding-bottom: 22px !important; }
  .don-hero-title { font-size: clamp(1.9rem, 8.4vw, 2.3rem) !important; }
  .don-hero-lead { font-size: 0.92rem; line-height: 1.5; }
  .don-main { padding-top: 16px !important; }
  .don-layout { gap: 14px !important; grid-template-columns: minmax(0, 1fr) !important; }
  .don-layout > *, .don-form, .don-block, .don-choice, .don-radio, .don-choice-body, .don-radio-body { min-width: 0; }
  .don-choice-body strong, .don-radio-body strong, .don-choice-body span, .don-radio-body span { overflow-wrap: anywhere; }
  .don-block { padding: 16px 14px !important; border-radius: var(--m-radius) !important; }
  .don-block-title { margin-bottom: 12px !important; }
  /* Montants : 5 puces sur une seule rangée */
  .don-presets { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; margin-bottom: 10px !important; }
  .don-preset { padding: 0 2px !important; min-height: 46px; font-size: 0.92rem !important; }
  /* Choix : deux options côte à côte, comparables d'un coup d'œil */
  .don-choices:not(.don-identity-choice) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .don-identity-choice { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .don-choice, .don-radio { align-items: flex-start; padding: 12px 10px !important; gap: 8px !important; min-height: 64px; }
  .don-choice input, .don-radio input { margin-top: 3px; }
  .don-choice-body strong, .don-radio-body strong { font-size: 0.9rem !important; line-height: 1.25; }
  .don-choice-body span, .don-radio-body span { font-size: 0.78rem !important; line-height: 1.35; }
  .don-fees-note { font-size: 0.78rem; }
  .don-summary-card { padding: 16px 14px !important; }
  .don-cta { min-height: 50px; }
}
@media (max-width: 340px) {
  .don-presets { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* ═══════════════ 17. INITIATIVES (initiatives.html) ═══════════════ */
@media (max-width: 768px) {
  .init-page-hero { padding-top: calc(var(--nav-h) + 18px) !important; padding-bottom: 26px !important; }
  .init-page-hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.4rem) !important; margin-bottom: 8px; }
  .init-hero-lead { font-size: 0.92rem !important; line-height: 1.5; margin-bottom: 16px !important; }
  /* 4 règles : grille 2 × 2 au lieu d'une colonne */
  .init-hero-rules { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; margin-top: 0 !important; }
  .init-rule {
    padding: 10px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  .init-rule-div { display: none !important; }
  .init-rule-num { font-size: 1.5rem !important; }
  .init-rule-text { max-width: none !important; font-size: 0.76rem !important; color: rgba(255, 255, 255, 0.66) !important; }

  .init-list-header { gap: 10px !important; margin-bottom: 12px !important; }
  .init-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--m-gutter)) 12px; padding: 2px var(--m-gutter); }
  .init-filters::-webkit-scrollbar { display: none; }
  .init-filter-btn { flex: 0 0 auto; min-height: 40px; padding: 0 16px; font-size: 0.84rem; }
  .init-grid { gap: 10px; }

  /* Fiche initiative : feuille montante plein écran */
  .init-modal { align-items: flex-end !important; padding: 0 !important; }
  .init-modal-box {
    max-width: none !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    border-radius: 18px 18px 0 0 !important;
    padding-bottom: var(--m-safe-b);
    overscroll-behavior: contain;
  }
  .init-modal-close { width: var(--m-tap); height: var(--m-tap); display: inline-flex; align-items: center; justify-content: center; }
  .init-modal-image { max-height: 200px !important; }
}

/* ═══════════════ 18. ESPACE MEMBRE (espace-membre.html) ═══════════════
   Mini tableau de bord : barre du haut compacte + onglets horizontaux
   collants (chaque puce déclenche le bouton existant de la barre
   latérale, qui reste disponible via le menu). */
@media (max-width: 768px) {
  .em-dashboard { align-content: start; grid-template-rows: auto; }
  .em-mobile-topbar {
    min-height: 52px;
    padding: 6px 12px;
    padding-top: calc(6px + var(--m-safe-t));
    gap: 10px;
  }
  .em-mobile-menu-btn { width: var(--m-tap); height: var(--m-tap); }

  .m-em-tabs {
    display: flex;
    gap: 6px;
    position: sticky;
    top: 52px;
    z-index: 140;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(13, 39, 87, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .m-em-tabs::-webkit-scrollbar { display: none; }
  .m-em-tab {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(26, 86, 219, 0.16);
    background: #fff;
    color: var(--blue-dark);
    font: 600 0.84rem/1 var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
  }
  .m-em-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
  .m-em-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

  .em-main { padding: 14px var(--m-gutter) calc(28px + var(--m-safe-b)) !important; min-width: 0; }
  .em-context-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--m-gutter)) 14px !important;
    padding: 0 var(--m-gutter) 10px !important;
    gap: 4px !important;
  }
  .em-context-nav::-webkit-scrollbar { display: none; }
  .em-context-nav a { flex: 0 0 auto; white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center; }
  .em-tab-header { margin-bottom: 14px !important; gap: 10px; }
  .em-tab-header h1, .em-tab-header h2 { font-size: 1.7rem !important; line-height: 1.05; }
  .em-section { margin-bottom: 20px !important; }
  .em-section-sub { font-size: 0.86rem; }

  /* Carte membre : plus basse */
  .em-member-card { padding: 16px !important; border-radius: 16px !important; }
  .em-mc-body { margin: 10px 0 !important; }
  .em-mc-fullname { font-size: 1.15rem !important; }

  /* Boutons d'action génériques : 44px */
  .em-btn-primary, .em-btn-secondary, .em-btn-outline { min-height: var(--m-tap); }

  /* Documents : liste compacte */
  .em-doc-item { padding: 10px 12px !important; gap: 10px !important; min-height: 56px; }
  .em-doc-icon { width: 36px !important; height: 36px !important; flex-shrink: 0; }
  .em-doc-name { font-size: 0.88rem !important; }
  .em-doc-date { font-size: 0.74rem !important; }

  /* Modales : feuille montante */
  .em-modal { align-items: flex-end !important; padding: 0 !important; }
  .em-modal > div, .em-modal-box, .em-modal-content {
    width: 100% !important;
    max-width: none !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    overflow-y: auto;
    border-radius: 18px 18px 0 0 !important;
    padding-bottom: calc(16px + var(--m-safe-b)) !important;
    overscroll-behavior: contain;
  }
}
@media (max-width: 768px) {
  /* Champs : jamais plus larges que leur colonne */
  .em-main input, .em-main select, .em-main textarea { max-width: 100%; min-width: 0; }
  .em-field { min-width: 0; }
  .em-club-form-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 420px) and (max-width: 768px) {
  /* Assez large : champs courts du formulaire K-points sur 2 colonnes */
  .em-club-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .em-club-form-grid > .em-field:has(textarea),
  .em-club-form-grid > .em-field:has(input[type="file"]),
  .em-club-form-grid > .em-field-full { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .em-dons-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .em-dons-stat { padding: 10px 8px !important; text-align: center; }
  .em-dons-stat strong, .em-dons-stat > :first-child { font-size: 1rem !important; }
  .em-dons-stat span, .em-dons-stat > :last-child { font-size: 0.7rem !important; }
}

/* ═══════════════ 19. BOUTIQUE (boutique.html) ═══════════════ */
@media (max-width: 768px) {
  /* Solde + panier + espace membre sur une rangée compacte */
  .club-stats-band { padding: 14px 0 !important; }
  .boutique-balance-row {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 4px 10px !important;
  }
  .boutique-balance-label { font-size: 0.78rem !important; }
  .boutique-balance-num { font-size: 1.7rem !important; line-height: 1; white-space: nowrap; }
  .boutique-balance-actions { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin-top: 8px; }
  .boutique-balance-actions > a { min-height: 44px; padding: 0 10px !important; font-size: 0.84rem !important; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }

  /* Filtres : une seule rangée défilante, collante */
  .boutique-filters-band { padding: 8px 0 !important; }
  .boutique-filters { flex-wrap: nowrap !important; scrollbar-width: none; margin: 0 calc(-1 * var(--m-gutter)); padding: 2px var(--m-gutter); }
  .boutique-filters::-webkit-scrollbar { display: none; }
  .boutique-filter-chip { min-height: 40px; flex: 0 0 auto; font-size: 0.82rem !important; }

  /* Offres : grille 2 colonnes, visuel bas */
  #boutiqueSections { padding-top: 0; }
  .section:has(#boutiqueSections) { padding-top: 20px; }
  .boutique-partner-section { margin-bottom: 24px !important; }
  .boutique-partner-header { margin-bottom: 10px !important; gap: 10px !important; }
  .boutique-category-logo { width: 36px !important; height: 36px !important; }
  .boutique-partner-name { font-size: 1.05rem !important; }
  .boutique-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .boutique-card { border-radius: 14px !important; }
  .boutique-card-media { aspect-ratio: 16 / 9 !important; }
  .boutique-card-media-placeholder { font-size: 1.5rem !important; }
  .boutique-card-body { padding: 10px !important; }
  .boutique-card-top { flex-wrap: wrap; gap: 4px !important; margin-bottom: 6px !important; }
  .boutique-card-partner { font-size: 0.6rem !important; padding: 2px 7px !important; }
  .boutique-card-pts { font-size: 0.92rem !important; }
  .boutique-card-title { font-size: 0.86rem !important; line-height: 1.25; margin-bottom: 4px !important; }
  .boutique-card-desc {
    font-size: 0.74rem !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 8px !important;
  }
  .boutique-card .btn-outline-blue { min-height: 40px; padding: 8px 6px !important; font-size: 0.78rem !important; margin-top: auto; }
}
@media (max-width: 340px) {
  .boutique-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════ 20. TABLEAUX → CARTES (≤768px) ═══════════════
   .m-table-cards est posé par mobile.js ; chaque cellule porte
   data-m-label (repris de l'en-tête de colonne). */
@media (max-width: 768px) {
  .m-table-cards { min-width: 0 !important; width: 100%; border-collapse: separate; }
  .m-table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .m-table-cards, .m-table-cards tbody { display: block; }
  .m-table-cards tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px;
    margin: 0 0 8px;
    background: #fff;
    border: 1px solid #e3ecf9 !important;
    border-radius: 12px;
  }
  .m-table-cards tbody td {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 !important;
    white-space: normal !important;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
    border: 0 !important;
  }
  .m-table-cards tbody td[data-m-label]::before {
    content: attr(data-m-label);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a9cc4;
  }
  .m-table-cards tbody td[data-m-full],
  .m-table-cards tbody td[colspan] { grid-column: 1 / -1; }
  .m-table-cards tbody td:empty { display: none; }
  .m-table-cards tbody tr:has(> td:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
  .m-table-cards tbody tr:has(> td:nth-child(6)) td { font-size: 0.82rem; }
  .admin-dons-table-wrap:has(.m-table-cards) { overflow: visible; border: 0; border-radius: 0; }
}

/* ═══════════════ 21. ADMIN (admin.html) ═══════════════ */
@media (max-width: 768px) {
  .admin-topbar { padding: 6px 12px !important; padding-top: calc(6px + var(--m-safe-t)) !important; min-height: 56px; box-sizing: border-box; gap: 8px; }
  .admin-topbar-back, .admin-topbar-logout { min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .admin-main { padding: 14px var(--m-gutter) calc(40px + var(--m-safe-b)) !important; }
  .admin-page-header { margin-bottom: 12px !important; }
  .admin-page-header h1 { font-size: 1.6rem !important; }
  .admin-page-header p { font-size: 0.82rem; }

  /* Onglets : barre collante, puces défilantes, sans barre de défilement */
  .admin-tabs {
    position: sticky;
    top: calc(56px + var(--m-safe-t)); /* sous la barre du haut, elle-même collante */
    z-index: 60;
    gap: 6px !important;
    padding: 8px var(--m-gutter) !important;
    margin: 0 calc(-1 * var(--m-gutter)) 14px;
    background: rgba(246, 249, 255, 0.97) !important;
    border-bottom: 1px solid rgba(26, 86, 219, 0.1);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px !important;
    border: 1px solid rgba(26, 86, 219, 0.16) !important;
    border-radius: 999px;
    background: #fff !important;
    color: var(--blue-dark) !important;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .admin-tab.active { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; }

  /* Chiffres clés : 3 par ligne */
  .admin-dons-summary { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; margin-bottom: 16px !important; }
  .admin-dons-summary > * { padding: 10px 6px !important; min-width: 0; }
  .admin-dons-summary > * > :first-child { font-size: 1.05rem !important; overflow-wrap: anywhere; }
  .admin-dons-summary > * > :last-child { font-size: 0.66rem !important; }
  .admin-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .admin-dons-block { margin-bottom: 18px !important; }
  .admin-dons-topmember { grid-template-columns: 22px 1fr auto auto; gap: 8px; font-size: 0.84rem; }

  /* Filtres : une rangée défilante */
  .admin-filter-chips, .admin-dons-topfilter {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--m-gutter));
    margin-right: calc(-1 * var(--m-gutter));
    padding: 2px var(--m-gutter) 6px !important;
  }
  .admin-filter-chips::-webkit-scrollbar, .admin-dons-topfilter::-webkit-scrollbar { display: none; }
  .admin-filter-chip { flex: 0 0 auto; min-height: 38px; }

  /* Modales : feuille montante */
  .admin-modal { align-items: flex-end !important; padding: 0 !important; }
  .admin-modal-box, .admin-modal-box-lg {
    max-width: none !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 20px 16px calc(20px + var(--m-safe-b)) !important;
    overscroll-behavior: contain;
  }
  .admin-modal-close { width: var(--m-tap); height: var(--m-tap); top: 8px !important; right: 8px !important; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 768px) {
  .mp-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .mp-stat-chip { padding: 10px 8px !important; min-width: 0; }
  .mp-stat-chip > :first-child { font-size: 1rem !important; overflow-wrap: anywhere; }
  .mp-stat-label { font-size: 0.66rem !important; }
  .admin-modal .mp-tabs { top: -20px; position: sticky; }
}

/* ═══════════════ 22. SONDAGE (sondage.html) ═══════════════
   Affichage seulement : champs, noms, validation et envoi inchangés. */
@media (max-width: 768px) {
  .sondage-topbar { padding: 10px var(--m-gutter); padding-top: calc(10px + var(--m-safe-t)); }
  .sondage-main { padding: 12px 10px calc(32px + var(--m-safe-b)); }
  .sondage-card { padding: 20px 14px; border-radius: 16px; box-shadow: none; }
  .sondage-title { font-size: 1.5rem; }
  .sondage-description, .sondage-intro { font-size: 0.9rem; line-height: 1.5; }
  .sondage-anonymity-note { font-size: 0.82rem; }
  .sondage-question { margin-bottom: 20px; padding-top: 16px; border-top: 1px solid #eef3fb; }
  .sondage-question-label { font-size: 0.96rem; line-height: 1.35; margin-bottom: 8px; }
  .sondage-choice-list { gap: 6px; }
  .sondage-choice-row { min-height: var(--m-tap); padding: 9px 12px; gap: 10px; }
  .sondage-choice-row span { font-size: 0.9rem; line-height: 1.3; }
  /* Listes de réponses courtes : 2 colonnes (classe posée par mobile.js) */
  .sondage-choice-list.m-choices-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sondage-choice-list.m-choices-2col > :not(.sondage-choice-row) { grid-column: 1 / -1; }
  .sondage-choice-list.m-choices-2col .sondage-choice-row { padding: 9px 10px; }
  .sondage-other { margin-left: 0; }
  .sondage-textarea { font-size: 16px; }
  .sondage-submit { min-height: 52px; }
}
@media (max-width: 340px) {
  .sondage-choice-list.m-choices-2col { grid-template-columns: 1fr; }
}

/* ═══════════════ 23. HEADER SANS BOUTON MENU (≤1079px) ═══════════════
   Pages du parcours d'adhésion (demande, paiement, confirmation) :
   menu simplifié sans burger. Leurs liens étaient invisibles sous
   640px (aucun moyen de les ouvrir) → rangée compacte défilante. */
@media (max-width: 1079px) {
  .nav-inner:not(:has(.burger)) { gap: 10px; }
  .nav-inner:not(:has(.burger)) .nav-links {
    position: static;
    transform: none !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    gap: 2px;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .nav-inner:not(:has(.burger)) .nav-links::-webkit-scrollbar { display: none; }
  .nav-inner:not(:has(.burger)) .nav-links li { width: auto; flex: 0 0 auto; grid-column: auto; margin: 0 !important; }
  .nav-inner:not(:has(.burger)) .nav-links a {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-height: 40px;
    padding: 0 9px !important;
    margin: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 500;
    border: 0 !important;
    white-space: nowrap;
  }
  .nav-inner:not(:has(.burger)) .nav-links a::after { content: none !important; }
  .nav-inner:not(:has(.burger)) .nav-links a.nav-cta { padding: 0 12px !important; border-radius: 8px !important; }
}

/* ═══════════════ 24. MOUVEMENT RÉDUIT ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  .nav-links, .m-nav-veil, .m-sticky-cta, .burger span, .m-dot::before,
  .m-collapse-icon::before, .m-collapse-icon::after { transition: none !important; }
  .m-scroller, .m-tabs, .m-em-tabs, .club-subnav-v2 { scroll-behavior: auto !important; }
}

/* ═══════════════ 25. PAYSAGE TÉLÉPHONE (≤768px, hauteur ≤500px) ═══════════════
   Les bandeaux photo des héros ne doivent pas remplir tout l'écran. */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .hero-logo-wrap, .fonds-hero-photo, .adh-hero-photo { height: 36vh; }
  .hero-logo-wrap::before, .fonds-hero-photo::before, .adh-hero-photo::before { display: none; }
  .projets-hero { padding-bottom: 40px; }
  .pe-media { min-height: 140px !important; }
  .m-sticky-cta { padding-top: 6px; padding-bottom: calc(6px + var(--m-safe-b)); }
  .m-sticky-cta-btn { min-height: 40px; }
  .nav-links { padding-bottom: calc(12px + var(--m-safe-b)); }
}

/* ═══════════════════════════════════════════════════════════════
   26. RETOURS UTILISATEUR (2026-10-20, captures téléphone)
   Bloc volontairement placé en dernier : il remplace les réglages
   précédents des mêmes composants.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Champs de formulaire : jamais coupés par le bord de l'écran
     (le champ « Nom » du contact débordait : grille 1fr 1fr dimensionnée
     sur la largeur naturelle des champs) ── */
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fg { min-width: 0; }
  .fg input, .fg select, .fg textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  #contact .contact-form { min-width: 0; width: 100%; }

  /* ── Contact : plan replié avec une icône carte (plus de « + »),
     documents visibles en grille 2 × 2 ── */
  .m-collapse-btn--map { padding-left: 46px; }
  .m-collapse-btn--map::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background: var(--blue-light);
    -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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* chevron au lieu du « + » */
  .m-collapse-btn--map .m-collapse-icon::before,
  .m-collapse-btn--map .m-collapse-icon::after { content: none; }
  .m-collapse-btn--map .m-collapse-icon {
    width: 9px; height: 9px; margin-top: -7px; right: 20px;
    border-right: 2px solid var(--blue-light);
    border-bottom: 2px solid var(--blue-light);
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin-top 0.2s ease;
  }
  .m-collapse-btn--map[aria-expanded="true"] .m-collapse-icon { transform: rotate(-135deg); margin-top: -2px; }

  #contact .docs-list {
    order: 4;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    margin-top: 4px;
  }
  #contact .docs-list .contact-info-title { display: block; grid-column: 1 / -1; margin: 6px 0 2px; }
  #contact .doc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  #contact .doc-link svg { width: 18px; height: 18px; }

  /* ── Rejoindre : Fonds / KYMA Club en 2 colonnes plus nettes ──
     icône à côté du titre, texte, puis lien d'action discret. */
  .rejoindre-panel { padding: 14px 10px 12px; margin-left: 0; margin-right: 0; border-radius: 16px; }
  .rejoindre-subhead { font-size: 1.15rem; margin-bottom: 10px; padding-left: 2px; }
  .pillars-grid { gap: 8px; }
  .pillar-card {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    padding: 12px 10px 10px;
    border-radius: 12px;
    border-top-width: 3px;
  }
  .pillar-card .card-icon-photo,
  .pillar-card .card-icon { width: 30px; height: 30px; margin: 0; }
  .pillar-card h3 { font-size: 0.98rem; margin: 0; line-height: 1.1; }
  .pillar-card > p:not(.pillar-note) { grid-column: 1 / -1; font-size: 0.78rem; line-height: 1.4; margin: 0; }
  .pillar-card .pillar-note { grid-column: 1 / -1; margin: 0 !important; font-size: 0.64rem; }
  .pillar-card .btn-outline-blue {
    grid-column: 1 / -1;
    align-self: end;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin-top: 2px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: var(--blue-pale);
    font-size: 0.76rem;
    text-align: left;
    gap: 6px;
  }
  .pillar-card .btn-outline-blue::after { content: "→"; flex-shrink: 0; }
  .pillar-card-club .btn-outline-blue { background: rgba(26, 86, 219, 0.1); }

  /* ── Simulateur : beaucoup plus compact ── */
  #fonds-detail .fonds-block-label { margin-bottom: 6px; }
  #fonds-detail .fonds-calc {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    padding: 12px;
  }
  #fonds-detail .fonds-calc > * { grid-column: 1 / -1; min-width: 0; }
  #fonds-detail .fonds-calc-input-row { grid-column: 1; margin: 0; gap: 4px; }
  #fonds-detail .fonds-calc-input { font-size: 1.6rem; width: 62px; padding: 0; }
  #fonds-detail .fonds-calc-chf { font-size: 0.9rem; }
  #fonds-detail .fonds-calc-slider { grid-column: 2; margin: 0; min-height: 32px; }
  #fonds-detail .fonds-calc-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 8px 0 6px; }
  #fonds-detail .fonds-preset { min-height: 34px; padding: 0; font-size: 0.8rem; }
  #fonds-detail .fonds-calc-results { gap: 4px; margin-top: 2px; }
  #fonds-detail .fonds-calc-intro { font-size: 0.72rem; margin: 0 0 2px; font-style: normal; }
  #fonds-detail .fonds-calc-ou { display: none; }
  #fonds-detail .fonds-calc-block { padding: 6px 10px; border-radius: 8px; }
  #fonds-detail .fonds-calc-block-title { font-size: 0.78rem; }
  #fonds-detail .fonds-calc-block-total { font-size: 0.82rem; }
  #fonds-detail .fonds-calc-block-desc { font-size: 0.68rem; margin-top: 1px; font-style: normal; line-height: 1.3; }
  #fonds-detail .fonds-calc-more { margin-top: 4px; }
  #fonds-detail .fonds-calc-more-trigger { padding: 8px 4px; min-height: 40px; font-size: 0.78rem; }
  #fonds-detail .fonds-calc-catalogue-link {
    margin-top: 4px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
  }
  #fonds-detail .fonds-detail-cta { margin-top: 12px; }

  /* ── Fonds : « Quelques règles essentielles » compact ── */
  .fonds-after-wave-section .check-list {
    gap: 0;
    padding: 4px 12px;
    margin-bottom: 12px !important;
    background: #fff;
    border: 1px solid rgba(26, 86, 219, 0.12);
    border-radius: 14px;
  }
  .fonds-after-wave-section .check-list li {
    gap: 9px;
    padding: 9px 0;
    font-size: 0.83rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(13, 39, 87, 0.06);
  }
  .fonds-after-wave-section .check-list li:last-child { border-bottom: 0; }
  .fonds-after-wave-section .check-list li::before { width: 16px; height: 16px; min-width: 16px; background-size: 9px; }
  /* le critère d'éligibilité, mis en évidence */
  .fonds-after-wave-section .check-list li:nth-child(4) { font-weight: 600; color: var(--blue-dark); }
  .fonds-after-wave-section .check-list + div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    border: 1px solid rgba(26, 86, 219, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }
  .fonds-after-wave-section .check-list + div > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0.84rem !important;
    text-align: left;
  }
  .fonds-after-wave-section .check-list + div > a + a { border-top: 1px solid rgba(13, 39, 87, 0.06) !important; }
  .fonds-after-wave-section .check-list + div > a::after { content: "→"; }
  .fonds-after-wave-section .check-list + div > a[download]::after { content: "PDF ↓"; font-size: 0.72rem; font-weight: 700; }
  .fonds-after-wave-section .fonds-tarifs-microtext { margin-top: 6px; font-size: 0.74rem; }
  .fonds-after-wave-section h2 { margin-bottom: 12px; }

  /* ── KYMA Club : héros entièrement recomposé ──
     texte complet → 2 actions → 2 accès rapides (Boutique, Partenaires).
     L'exemple de solde « 1'250 » (purement illustratif) n'est plus
     affiché sur mobile. */
  .club-hero-v2 { padding-top: calc(var(--nav-h) + 20px); }
  .club-hero-v2 > .container { padding-bottom: 40px; }
  .club-hero-v2-grid { gap: 14px; }
  .club-hero-v2-subtitle { margin-bottom: 6px; }
  .club-hero-v2-text { margin-bottom: 14px; color: rgba(255, 255, 255, 0.75); }
  .club-hero-card-main { display: none !important; }
  .club-hero-visual { display: block; }
  .club-hero-mini-stack {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .club-hero-mini-card {
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    min-height: 0;
    padding: 12px 12px 12px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(96, 165, 250, 0.28) !important;
  }
  .club-hero-mini-card-icon { width: 26px; height: 26px; }
  .club-hero-mini-card-body strong { font-size: 0.88rem; margin-bottom: 2px; }
  .club-hero-mini-card-body span { font-size: 0.72rem; line-height: 1.35; color: rgba(255, 255, 255, 0.68); }
  .club-hero-mini-card-arrow { display: none; }
  .club-subnav-v2-wrap { margin-top: -22px; }
}

/* ═══════════════ 13. ALLÈGEMENT MOBILE (lot 2026-10-24) ═══════════════
   Mobile uniquement — le desktop n'est pas touché. */
@media (max-width: 768px) {
  /* Fonds d'entraide : micro-textes redondants retirés
     (« aide maximale par sport », « demande sans compte KYMA ») ;
     la phrase « La demande se fait depuis votre compte » reçoit
     .m-hide via mobile.js. */
  .fonds-tarifs-microtext { display: none !important; }

  /* Accueil — Rejoindre : sans paragraphe d'intro, Fonds + Club en
     deux lignes compactes (icône · titre · flèche), carte entière
     cliquable via le lien existant étiré par-dessus. */
  #rejoindre-kyma .section-intro { display: none; }
  #rejoindre-kyma h2 { margin-bottom: 0; }
  #rejoindre-kyma .rejoindre-panel {
    padding: 0;
    margin: 14px 0 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  #rejoindre-kyma .rejoindre-panel .rejoindre-subhead { display: none; }
  #rejoindre-kyma .pillars-grid { grid-template-columns: 1fr; gap: 8px; }
  #rejoindre-kyma .pillar-card {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 14px;
    border-top-width: 0;
    border-left: 4px solid var(--blue);
  }
  #rejoindre-kyma .pillar-card-fonds { border-left-color: var(--blue-dark); }
  #rejoindre-kyma .pillar-card .card-icon,
  #rejoindre-kyma .pillar-card .card-icon-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    margin: 0;
  }
  #rejoindre-kyma .pillar-card h3 { grid-column: 2; margin: 0; font-size: 1rem; }
  #rejoindre-kyma .pillar-card-fonds h3 { grid-row: 1 / span 2; }
  #rejoindre-kyma .pillar-card > p:not(.pillar-note) { display: none; }
  #rejoindre-kyma .pillar-note { grid-column: 2; justify-self: start; margin: 4px 0 0 !important; }
  #rejoindre-kyma .pillar-card::after {
    content: "→";
    grid-column: 3;
    grid-row: 1 / span 2;
    color: var(--blue);
    font-weight: 700;
  }
  #rejoindre-kyma .pillar-card .btn-outline-blue {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    opacity: 0;
  }
  #rejoindre-kyma .pillar-card .btn-outline-blue:focus-visible { opacity: 1; outline: 2px solid var(--blue); outline-offset: 2px; color: transparent; }

  /* Accueil — Fonds : calculateur replié (mobile.js), « Le Fonds en
     bref » retiré ; le CTA vers fonds.html reste. */
  #fonds-detail .fonds-detail-sim > .fonds-block-label { display: none; }
  #fonds-detail .fonds-brief { display: none !important; }
  #fonds-detail .fonds-calc.m-collapse-body { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }

  /* KYMA Club — héros simplifié : titre, accroche, 2 actions et
     2 accès rapides sur une ligne (sans paragraphe ni sous-textes). */
  .club-hero-v2 > .container { padding-bottom: 34px; }
  .club-hero-v2-text { display: none; }
  .club-hero-v2-subtitle { margin-bottom: 14px; }
  .club-hero-mini-card { align-items: center; padding: 10px 12px; }
  .club-hero-mini-card-body strong { margin-bottom: 0; }
  .club-hero-mini-card-body span { display: none; }
}

/* ═══════════════ 27. RETOURS UTILISATEUR (lot 2026-10-26) ═══════════════
   Mobile uniquement — le desktop n'est pas touché. Placé en dernier :
   remplace les réglages précédents des mêmes composants. */
@media (max-width: 768px) {

  /* ── Accueil — Rejoindre : Fonds et KYMA Club plus aérés ── */
  #rejoindre-kyma .pillars-grid { gap: 14px; }
  #rejoindre-kyma .rejoindre-panel { margin-bottom: 28px; }
  #rejoindre-kyma .pillar-card { padding: 14px 16px; }

  /* ── Accueil — Simulateur : ouvert, une carte simple pilotée par
     5 montants (le champ et le curseur restent dans la page, masqués
     en mobile ; mêmes boutons, même calcul). ── */
  #fonds-detail .fonds-detail-sim > .fonds-block-label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.72rem;
  }
  #fonds-detail .fonds-calc {
    display: block;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(26, 86, 219, 0.12);
    box-shadow: var(--m-shadow);
  }
  #fonds-detail .fonds-calc-input-row,
  #fonds-detail .fonds-calc-slider { display: none !important; }
  #fonds-detail .fonds-calc-presets {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 12px;
  }
  #fonds-detail .fonds-calc-presets::before {
    content: "Montant de l'aide (CHF)";
    grid-column: 1 / -1;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 2px;
  }
  #fonds-detail .fonds-preset { min-height: 40px; border-radius: 10px; font-size: 0.86rem; font-weight: 700; }
  #fonds-detail .fonds-calc-results { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  #fonds-detail .fonds-calc-intro {
    margin: 0 0 2px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--blue-dark);
  }
  #fonds-detail .fonds-calc-block { padding: 9px 12px; border-radius: 10px; }
  #fonds-detail .fonds-calc-block-title { font-size: 0.82rem; }
  #fonds-detail .fonds-calc-block-total { font-size: 0.86rem; }
  #fonds-detail .fonds-calc-more { margin-top: 6px; }
  #fonds-detail .fonds-calc-catalogue-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(13, 39, 87, 0.06);
  }

  /* ── Contact : documents officiels retirés (affichés en pied de page) ── */
  #contact .docs-list { display: none !important; }

  /* ── Pied de page condensé : marque, liens des pages, documents
     officiels en petit, mentions ── */
  .footer { padding: 18px 0 calc(14px + var(--m-safe-b)); }
  .footer-inner { gap: 10px; }
  .footer-logo-img { width: 24px; height: 24px; }
  .footer-name { font-size: 0.78rem; }
  .footer-sub { font-size: 0.6rem; }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    margin: 0;
  }
  .footer-links a { min-height: 34px; padding: 0; font-size: 0.8rem; }
  .m-footer-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .m-footer-docs-title {
    flex-basis: 100%;
    margin: 0 0 2px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
  }
  .m-footer-docs a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
  }
  .footer-legal { padding-top: 8px; font-size: 0.66rem; }

  /* ── Espace membre : plus de liens du site en haut, seulement la
     navigation de l'espace membre (barre + onglets) ── */
  .em-context-nav { display: none !important; }

  /* ── Espace membre — KYMA Club ──
     ordre : solde → demander des K-points (replié) → boutique →
     règles (replié) → historique. */
  #tab-club.active { display: flex; flex-direction: column; }
  #tab-club .em-club-hero { display: contents; }
  #clubDataSections[style*="block"] { display: contents !important; }
  #tab-club.active > *,
  #tab-club .em-club-hero > *,
  #clubDataSections > * { margin-top: 0 !important; margin-bottom: 12px !important; }
  #tab-club .m-collapse-btn[aria-expanded="true"] { margin-bottom: 0 !important; }
  #tab-club .em-tab-header { margin-bottom: 4px !important; }
  #tab-club > .em-section-sub { font-size: 0.84rem; line-height: 1.5; }

  #tab-club .em-club-kbar { order: 1; }
  #clubDataSections > .m-collapse-btn { order: 2; }
  #clubDataSections > .em-club-card { order: 3; }
  #tab-club .em-club-shop { order: 4; }
  #tab-club .em-club-hero > .m-collapse-btn { order: 5; }
  #tab-club .em-club-rules-card { order: 6; }
  #clubDataSections > .em-section { order: 7; }

  /* Solde : vraie carte, chiffre bien visible */
  #tab-club .em-club-kbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2px 12px;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1A56DB 0%, #0D2757 100%);
    box-shadow: 0 8px 22px rgba(26, 86, 219, 0.22);
  }
  #tab-club .em-club-kbar-label { grid-column: 1; color: rgba(255, 255, 255, 0.75); font-size: 0.7rem; }
  #tab-club .em-club-kbar-val {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: #fff;
    font-size: 2.4rem;
  }
  #tab-club .em-club-kbar-note { grid-column: 1; flex-basis: auto; color: rgba(255, 255, 255, 0.6); font-size: 0.7rem; }

  /* Demander des K-points : carte d'action, formulaire fermé par défaut */
  .m-collapse-btn--cta {
    min-height: 64px;
    padding: 12px 52px 12px 58px;
    border: 1px solid rgba(26, 86, 219, 0.22);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--m-shadow);
    scroll-margin-top: 120px;
  }
  .m-collapse-btn--cta::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 10px;
    background: var(--blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A56DB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / 18px no-repeat;
  }
  .m-collapse-btn--cta .m-collapse-title { font-size: 0.98rem; font-weight: 700; }
  .m-collapse-btn--cta .m-collapse-icon {
    right: 14px;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--blue);
  }
  .m-collapse-btn--cta .m-collapse-icon::before,
  .m-collapse-btn--cta .m-collapse-icon::after { left: 8px; right: 8px; top: 13px; background: #fff; }
  .m-collapse-btn--cta[aria-expanded="true"] { border-bottom-color: rgba(13, 39, 87, 0.06); box-shadow: none; }
  #clubDataSections > .em-club-card.m-collapse-body {
    border: 1px solid rgba(26, 86, 219, 0.22);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    padding: 12px 14px 16px !important;
  }
  #clubDataSections > .em-club-card.m-collapse-body .em-club-card-head { display: none; }
  #reqSubmit { width: 100%; }

  /* Boutique : une ligne compacte, carte entière cliquable */
  #tab-club .em-club-shop {
    position: relative;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }
  #tab-club .em-club-shop-icon { width: 36px; height: 36px; margin: 0; }
  #tab-club .em-club-shop-body { min-width: 0; }
  #tab-club .em-club-shop-body strong { margin: 0; }
  #tab-club .em-club-shop-body span { display: block; font-size: 0.72rem; }
  #tab-club .em-club-shop::after { content: "→"; color: #fff; font-weight: 700; }
  #tab-club .em-club-shop .em-btn-primary {
    position: absolute;
    inset: 0;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: inherit;
    background: transparent;
    color: transparent;
    font-size: 0;
    box-shadow: none;
  }
  #tab-club .em-club-shop .em-btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

  /* ── Espace membre — Mes demandes : un onglet par type ── */
  .m-tabs--dem { margin: 0 0 14px; }
  #tab-demandes > .em-section { margin-bottom: 0 !important; }
  /* le titre de section est déjà dans l'onglet */
  #tab-demandes > .em-section:first-of-type > .em-club-list-head { display: none; }
  #tab-demandes > .em-section:last-of-type { display: flex; flex-direction: column; gap: 12px; }
  #tab-demandes > .em-section:last-of-type > * { margin: 0 !important; }
  #tab-demandes > .em-section:last-of-type > .em-club-list-head { order: 1; display: block; }
  #tab-demandes > .em-section:last-of-type > .em-club-list-head > div { display: none; }
  #fundReqFormWrap { order: 2; }
  #fondsRequestsList { order: 3; }
  #tab-demandes .em-demandes-info { order: 4; padding: 10px 12px; gap: 10px; font-size: 0.76rem; line-height: 1.45; }
  #tab-demandes .em-demandes-info svg { width: 16px; height: 16px; flex-shrink: 0; }
  #fundReqToggleFormBtn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 12px;
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    font-weight: 700;
  }
  #fundReqToggleFormBtn:hover { background: var(--blue-dark); color: #fff; }
  #fundReqFormWrap .em-btn-secondary, #fundReqSubmit { width: 100%; justify-content: center; }

  /* cartes de demande : titre, infos, statut, chevron */
  #tab-demandes .em-club-requests, #tab-demandes .em-demandes-list { display: flex; flex-direction: column; gap: 8px; }
  #tab-demandes .em-club-request-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px 10px;
    padding: 12px 34px 12px 14px;
    border-radius: 14px;
    box-shadow: var(--m-shadow);
  }
  #tab-demandes .em-club-request-item::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid var(--em-muted);
    border-bottom: 2px solid var(--em-muted);
    transform: rotate(-45deg);
  }
  #tab-demandes .em-club-request-title { font-size: 0.9rem; margin-bottom: 3px; line-height: 1.3; }
  #tab-demandes .em-club-request-meta { font-size: 0.74rem; line-height: 1.4; }
  #tab-demandes .em-club-request-meta strong { color: #0e9f6e; }
  #tab-demandes .em-club-request-item > .em-badge { font-size: 0.66rem; white-space: nowrap; }
  #tab-demandes .em-club-empty { padding: 20px 16px; font-size: 0.84rem; }

  .m-dem-new {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    border: 1.5px dashed rgba(26, 86, 219, 0.35);
    border-radius: 12px;
    background: transparent;
    color: var(--blue);
    font: 700 0.86rem/1.2 var(--font-body);
    cursor: pointer;
  }
  .m-dem-new:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
}

/* ═══════════════ 28. PIED DE PAGE MOBILE (lot 2026-11-12) ═══════════════
   Remplace la mise en page « tout à la suite » : marque, puis deux
   colonnes de même style (Le site | Légal), puis les documents
   officiels repliés sur une seule ligne, puis le copyright.
   « Statuts » quitte la colonne légale (déjà dans les documents). */
@media (max-width: 768px) {
  .footer { padding: 26px 0 calc(18px + var(--m-safe-b)); }
  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 20px;
    align-items: start;
  }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 20px; }
  .footer-logo-img { width: 28px; height: 28px; }
  .footer-name { font-size: 0.8rem; }
  .footer-sub { font-size: 0.62rem; }

  /* Deux colonnes identiques */
  .footer-links,
  .footer-legal-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    order: initial;
    flex-basis: auto;
  }
  .footer-links { grid-column: 1; }
  .footer-legal-nav { grid-column: 2; }
  .footer-links::before,
  .footer-legal-nav::before {
    display: block;
    margin-bottom: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
  }
  .footer-links::before { content: "Le site"; }
  .footer-legal-nav::before { content: "Légal"; }
  .footer-links a,
  .footer-legal-nav a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 0.82rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.7);
  }
  .footer-legal-nav a[href*="Statuts"] { display: none; }

  /* Documents officiels : une ligne repliable */
  .m-footer-docs {
    grid-column: 1 / -1;
    display: block;
    margin-top: 18px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .m-footer-docs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    margin: 0;
    list-style: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.78);
  }
  .m-footer-docs-title::-webkit-details-marker { display: none; }
  .m-footer-docs-title::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: -3px 2px 0 auto;
    border-right: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    transition: transform 0.2s;
  }
  .m-footer-docs[open] > .m-footer-docs-title::after { transform: rotate(-135deg); margin-top: 3px; }
  .m-footer-docs-count {
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
  }
  .m-footer-docs-list { display: flex; flex-direction: column; padding: 0 0 8px; }
  .m-footer-docs a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
  }
  .m-footer-docs a::before {
    content: "PDF";
    flex: none;
    padding: 2px 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
  }

  /* Copyright */
  .footer-inner > .footer-legal {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 14px;
    border-top: 0;
    font-size: 0.66rem;
    line-height: 1.5;
    text-align: left;
    color: rgba(255, 255, 255, 0.38);
  }
}
