/* ==========================================================================
   Pages publiques des clubs : thème CLAIR (demande n° 171).
   Chargée en dernier sur les pages d'un club (body.theme-light). Fond sable très clair, texte noir chaud
   contrasté (WCAG AA), or en accent, noir réservé aux ruptures : en-tête, hero, bandeau d'appel (le pied de page est clair).
   L'accueil de la marque (apex) garde son habillage sombre.
   ========================================================================== */

body.theme-light {
    color-scheme: light;
    --bg: #faf7f2;
    --surface: #ffffff;
    --surface-2: #f4eee5;
    --black: #efe8dd;
    --line: rgba(38, 37, 36, .12);
    --line-2: #cbbfb0;
    --ink: #201e1d;
    --muted: #5a5249;
    /* Or lisible sur fond clair (contraste 5,3:1 sur le sable) ; l'or de la charte reste pour les aplats et filets */
    --gold-hi: #84581a;
    --on-gold: #2e2d2c;
    --danger: #b3321a;
    --ok: #1f6b3a;
}

/* ---------- Zones noires conservées : en-tête, hero, bandeaux, pied de page ---------- */
body.theme-light .site-header,
body.theme-light .hero,
body.theme-light .signup-head,
body.theme-light .cta-band--dark,
body.theme-light .pioneers,
body.theme-light .launch {
    color-scheme: dark;
    --bg: #2e2d2c;
    --black: #262524;
    --surface: #383635;
    --surface-2: #42403e;
    --line: rgba(243, 238, 231, .14);
    --line-2: #5a5755;
    --ink: #f3eee7;
    --muted: #b7ada2;
    --gold-hi: #dab380;
    color: var(--ink);
}
body.theme-light .hero { background-color: #262524; }
body.theme-light .pioneers,
body.theme-light .cta-band--dark,
body.theme-light .signup-head,
body.theme-light .launch { background: #2e2d2c; }

/* Sections « noires » et « sombres » du gabarit : sable clair, alternées avec le papier */
body.theme-light .section--dark { background: var(--bg); }
body.theme-light .section--black { background: var(--surface-2); }
body.theme-light .section--paper { background: #f1eadf; }
body.theme-light .section--black.pioneers { background: #2e2d2c; }

/* ---------- Boutons : l'or reste, le survol ne vire pas au texte brun ---------- */
body.theme-light .btn:hover { background: #d6ad78; }
body.theme-light .btn--dark { background: #2e2d2c; color: #f3eee7; }
body.theme-light .btn--dark:hover { background: #000; }
body.theme-light .btn.ghost,
body.theme-light .btn--ghost { color: var(--ink); border-color: #8d8174; }
body.theme-light .btn.ghost:hover,
body.theme-light .btn--ghost:hover { border-color: #2e2d2c; background: rgba(38, 37, 36, .05); }
body.theme-light .hero .btn.ghost,
body.theme-light .site-header .btn.ghost { border-color: var(--line-2); }
body.theme-light .btn--cta, body.theme-light .btn--cta:hover { color: #fff; }
body.theme-light .link-arrow { border-color: #8d8174; }

/* ---------- Onglets du club et barre du planning ---------- */
body.theme-light .club-tabs { background: #fff; border-bottom-color: var(--line); }
body.theme-light .club-tabs__tab { color: var(--muted); }
body.theme-light .club-tabs__tab:hover,
body.theme-light .club-tabs__tab.is-active { color: var(--ink); }
body.theme-light .planning__bar { background: rgba(250, 247, 242, .96); }
body.theme-light .weeks { background: #fff; }
body.theme-light .weeks__tab.is-active { background: var(--gold); color: var(--on-gold); }
body.theme-light .filter { background: #fff; border-color: #bfb3a4; }
body.theme-light .filter.is-active { background: #f1e2cb; border-color: #a57435; }
body.theme-light .slot__link:hover { background: rgba(38, 37, 36, .04); }
body.theme-light .slot--few .slot__spots { border-color: #a57435; }

/* Textes qui utilisaient un blanc cassé translucide */
body.theme-light .planning__lede,
body.theme-light .planning__empty p,
body.theme-light .howto li,
body.theme-light .session__desc,
body.theme-light .book__lede,
body.theme-light .app-push__text,
body.theme-light .deletion__facts ul,
body.theme-light .coaches__lede,
body.theme-light .coaches__empty,
body.theme-light .coach__bio { color: #3b3631; }

/* ---------- Fiche séance, réservation, coachs ---------- */
body.theme-light .session__book,
body.theme-light .precap,
body.theme-light .planning__empty { background: #fff; box-shadow: 0 1px 2px rgba(38, 37, 36, .05); }
body.theme-light .app-push { background: #fff; }
body.theme-light .sticky-book.is-ready { background: rgba(255, 255, 255, .97); }
body.theme-light .coach__photo { background: #efe8dd; }
body.theme-light .coach__initials { color: var(--gold-hi); }
body.theme-light .coach__tags li { border-color: #a57435; }
body.theme-light .input { background: #fff; border-color: #9c8f80; color: var(--ink); }
body.theme-light .activity-links a { background: #fff; border-color: #bfb3a4; }
body.theme-light .activity-links a:hover { border-color: #a57435; background: #fff; }
body.theme-light .err--box { background: #fbeae5; }

/* ---------- Formulaire d'inscription, cartes, plans ---------- */
body.theme-light .form-shell,
body.theme-light .club-feature,
body.theme-light .venue,
body.theme-light .notice,
body.theme-light .location__map { background: #fff; }
body.theme-light .field input,
body.theme-light .field select,
body.theme-light .field textarea { background: #fff; color: var(--ink); border-color: #9c8f80; }
body.theme-light .plan,
body.theme-light .chip { background: #fff; border-color: #bfb3a4; }
body.theme-light .total { background: #faf7f2; }

/* ---------- Pied de page : clair sur les clubs (le noir reste celui de la marque) ---------- */
body.theme-light .site-footer { background: #efe8dd; }
body.theme-light .site-footer a { text-decoration-color: #b98a4e; }

/* ---------- Textes en blanc cassé translucide du gabarit, passés en noir chaud sur fond clair ---------- */
body.theme-light :is(.space__body p, .spaces__note, .spaces-v3__list, .spaces-v3__note, .how__step, .gifts-mini__text,
    .tariffs__lede, .follow__lead, .activity__about p, .activity__points, .legal-page p, .legal-page li) { color: #3b3631; }
body.theme-light .section--paper :is(.space__body p, .how__step, .follow__lead) { color: var(--paper-muted); }
body.theme-light .tariff-table__table th,
body.theme-light .tariff-table__table td { color: #3b3631; }
body.theme-light .tariff-table__table thead th { color: var(--muted); }
body.theme-light .tariff-table__table .num { color: var(--ink); }
body.theme-light .media__label { color: var(--muted); }
body.theme-light :is(.spaces__note, .spaces-v3__note) { color: var(--muted); }
