/* Gym Central Bridge — composants du portail (palette Area : noir + jaune Area) */
.gcb {
  --gcb-bg: #3b444b;
  --gcb-card: #343c42;
  --gcb-line: #2a2a2a;
  --gcb-text: #f4f4f4;
  --gcb-muted: #9a9a9a;
  --gcb-gold: #ffd600;
  --gcb-gold-dark: #e6c200;
  --gcb-red: #ff5d5d;
  --gcb-orange: #ffb547;
  --gcb-radius: 16px;
  color: var(--gcb-text);
  font-family: Montserrat, "Cairo", system-ui, sans-serif;
  margin: 0 auto;
  max-width: 1200px;
}
.gcb[dir="rtl"] { font-family: "Cairo", Montserrat, system-ui, sans-serif; }
.gcb *, .gcb *::before, .gcb *::after { box-sizing: border-box; }
.gcb h2, .gcb h3, .gcb h4 { color: var(--gcb-text); margin: 0 0 .5em; letter-spacing: .02em; }
.gcb h2 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.7rem; }
.gcb a { color: var(--gcb-gold); }
.gcb-muted { color: var(--gcb-muted); }
.gcb-small { font-size: .85rem; }
.gcb-center { text-align: center; }
.gcb-right { text-align: end; }
.gcb-nowrap { white-space: nowrap; }

.gcb-card { background: var(--gcb-card); border: 1px solid var(--gcb-line); border-radius: var(--gcb-radius); padding: 24px; margin-bottom: 20px; }
.gcb-narrow { max-width: 480px; margin-inline: auto; }
.gcb-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.gcb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }

.gcb label { display: block; font-size: .85rem; color: var(--gcb-muted); margin-bottom: 12px; }
.gcb input, .gcb select, .gcb textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--gcb-line); background: #2f363c; color: var(--gcb-text); font-size: 1rem;
}
.gcb input:focus, .gcb select:focus { outline: 2px solid var(--gcb-gold); outline-offset: 1px; border-color: transparent; }
.gcb input[type="checkbox"], .gcb input[type="radio"] { display: inline-block; width: auto; margin: 0 6px 0 0; }
.gcb .gcb-check { color: var(--gcb-text); display: flex; gap: 8px; align-items: flex-start; }
.gcb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gcb-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .gcb-form-grid { grid-template-columns: 1fr; } }

.gcb-btn, .gcb button.gcb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--gcb-gold); color: #3b444b !important; border: 0; border-radius: 999px;
  padding: 12px 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; font-size: .9rem;
  transition: transform .15s, background .15s;
}
.gcb-btn:hover { background: var(--gcb-gold-dark); transform: translateY(-1px); }
.gcb-btn-sm { padding: 8px 16px; font-size: .78rem; }
.gcb-btn-lg { padding: 16px 34px; font-size: 1rem; width: 100%; }
.gcb-btn-ghost { background: transparent; color: var(--gcb-gold) !important; border: 1px solid var(--gcb-gold); }
.gcb-link { background: none; border: 0; color: var(--gcb-gold); cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }

.gcb-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.gcb-success { background: rgba(255, 214, 0, .12); border: 1px solid var(--gcb-gold); color: var(--gcb-gold); }
.gcb-error { background: rgba(255, 93, 93, .1); border: 1px solid var(--gcb-red); color: #ffb3b3; }

.gcb-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.gcb-badge-ok { background: var(--gcb-gold); color: #3b444b; }
.gcb-badge-warn { background: var(--gcb-orange); color: #3b444b; }
.gcb-badge-muted { background: #333; color: #ccc; }

.gcb-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.gcb-table { width: 100%; border-collapse: collapse; color: var(--gcb-text); }
.gcb-table th, .gcb-table td { padding: 12px 10px; border-bottom: 1px solid var(--gcb-line); text-align: start; vertical-align: top; background: transparent; }
.gcb-table th { color: var(--gcb-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.gcb-table tfoot th { color: var(--gcb-text); font-size: 1.1rem; }
.gcb-table form { display: inline-block; margin: 0 4px 4px 0; }

/* Espace adhérent */
.gcb-hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gcb-member-code { background: var(--gcb-gold); color: #3b444b; border-radius: var(--gcb-radius); padding: 12px 22px; text-align: center; }
.gcb-member-code small { display: block; font-weight: 700; text-transform: uppercase; font-size: .7rem; }
.gcb-member-code strong { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: .08em; }
.gcb-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--gcb-line); margin-bottom: 22px; align-items: center; }
.gcb-tabs a { padding: 10px 16px; color: var(--gcb-muted); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; }
.gcb-tabs a.is-active, .gcb-tabs a:hover { color: var(--gcb-text); border-bottom-color: var(--gcb-gold); }
.gcb-logout { margin-inline-start: auto; }
.gcb-sub .gcb-big { font-size: 2.4rem; font-weight: 800; color: var(--gcb-gold); margin: 0; }
.gcb-sub .gcb-big small { font-size: .9rem; color: var(--gcb-muted); font-weight: 500; }
.gcb-progress { height: 6px; border-radius: 6px; background: #4a545b; overflow: hidden; margin: 10px 0; }
.gcb-progress span { display: block; height: 100%; background: var(--gcb-gold); }
.gcb-list { list-style: none; padding: 0; }
.gcb-list li { padding: 10px 0; border-bottom: 1px solid var(--gcb-line); }
.gcb-inline { display: inline-block; }
.gcb-inline summary { cursor: pointer; color: var(--gcb-gold); font-size: .85rem; }
.gcb-inline form { display: block; background: #2f363c; padding: 12px; border-radius: 10px; margin-top: 8px; min-width: 240px; }
.gcb-forgot { margin-top: 16px; }
.gcb-forgot summary { cursor: pointer; color: var(--gcb-gold); }

/* Formules */
.gcb-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gcb-plan { background: var(--gcb-card); border: 1px solid var(--gcb-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.gcb-plan:hover { transform: translateY(-4px); border-color: var(--gcb-gold); }
.gcb-plan.is-featured { background: linear-gradient(160deg, #241c08 0%, #343c42 60%); border-color: var(--gcb-gold); }
.gcb-plan header small { color: var(--gcb-gold); text-transform: uppercase; font-weight: 700; font-size: .72rem; letter-spacing: .1em; }
.gcb-plan h3 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: 0; }
.gcb-price { font-size: 2rem; font-weight: 800; color: var(--gcb-gold); margin: 6px 0 14px; }
.gcb-price small { font-size: .85rem; color: var(--gcb-muted); font-weight: 500; }
.gcb-plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.gcb-plan li { padding: 6px 0 6px 22px; position: relative; color: #d8d8d8; }
.gcb[dir="rtl"] .gcb-plan li { padding: 6px 22px 6px 0; }
.gcb-plan li::before { content: "✓"; color: var(--gcb-gold); position: absolute; inset-inline-start: 0; font-weight: 800; }

/* Produits / contenus */
.gcb-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.gcb-product { background: var(--gcb-card); border: 1px solid var(--gcb-line); border-radius: var(--gcb-radius); padding: 16px; }
.gcb-product img, .gcb-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #4a545b; margin-bottom: 10px; }
.gcb-product form { display: flex; gap: 8px; align-items: center; }
.gcb-product input[type="number"] { width: 70px; margin: 0; }
.gcb-contents { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.gcb-content { background: var(--gcb-card); border-radius: 20px; overflow: hidden; border: 1px solid var(--gcb-line); }
.gcb-thumb { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.gcb-content-body { padding: 20px; }
.gcb-tag { display: inline-block; background: var(--gcb-gold); color: #3b444b; font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.gcb-kind-promotion .gcb-tag { background: var(--gcb-orange); }

/* Planning */
.gcb-day { margin: 22px 0 8px; text-transform: capitalize; color: var(--gcb-gold); }
.gcb-slot { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--gcb-card); border-radius: 12px; margin-bottom: 8px; border-inline-start: 4px solid var(--c); }
.gcb-time { font-weight: 800; font-size: 1.1rem; }
.gcb-what small { display: block; color: var(--gcb-muted); }
.gcb-places { color: var(--gcb-muted); font-size: .85rem; }
.gcb-slot form { margin: 0; }
@media (max-width: 600px) { .gcb-slot { grid-template-columns: 60px 1fr; } .gcb-places, .gcb-slot form { grid-column: 2; } }

/* Panier / paiement */
.gcb-checkout { max-width: 460px; margin-inline-start: auto; text-align: center; }
.gcb-cards-logos { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.gcb-cards-logos span { border: 1px solid var(--gcb-line); border-radius: 8px; padding: 6px 14px; font-weight: 800; color: var(--gcb-text); }
.gcb-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 12px; font-weight: 800; }
.gcb-pay-ok .gcb-icon { background: var(--gcb-gold); color: #3b444b; }
.gcb-pay-ko .gcb-icon { background: var(--gcb-red); color: #fff; }
.gcb-cart-badge { position: relative; display: inline-flex; font-size: 1.3rem; text-decoration: none; }
.gcb-cart-badge span { position: absolute; top: -8px; inset-inline-end: -10px; background: #ffd600; color: #3b444b; border-radius: 999px; font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; display: grid; place-items: center; }

/* Reçu imprimable */
.gcb-receipt { background: #fff; color: #2f363c; border-radius: var(--gcb-radius); padding: 32px; max-width: 760px; margin: 0 auto; }
.gcb-receipt h3, .gcb-receipt .gcb-table, .gcb-receipt .gcb-table th { color: #2f363c; }
.gcb-receipt .gcb-table th, .gcb-receipt .gcb-table td { border-color: #ddd; }
.gcb-receipt-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid #3b444b; padding-bottom: 14px; margin-bottom: 14px; }
@media print {
  body * { visibility: hidden; }
  .gcb-receipt, .gcb-receipt * { visibility: visible; }
  .gcb-receipt { position: absolute; inset: 0; }
  .gcb-noprint { display: none; }
}

/* ---------- Composants posés sur le fond clair des pages du thème ----------
   Texte sombre sur la page ; les cartes restent noires (charte Area) avec leur propre texte clair. */
.gcb { color: #343c42; --gcb-page-text: #343c42; --gcb-page-muted: #6b6b6b; --gcb-page-line: #e3e3e3; }
.gcb > h2, .gcb > h3, .gcb-hello h2, .gcb-tab-body > h3, .gcb-day { color: #3b444b; }
.gcb-hello .gcb-muted, .gcb-tab-body > .gcb-muted, .gcb-tab-body > p.gcb-muted { color: var(--gcb-page-muted); }
.gcb-tabs { border-bottom-color: var(--gcb-page-line); }
.gcb-tabs a { color: #6b6b6b; }
.gcb-tabs a.is-active, .gcb-tabs a:hover { color: #3b444b; }
.gcb .gcb-link { color: #3b444b; text-decoration-color: var(--gcb-gold); text-decoration-thickness: 2px; }
.gcb > .gcb-table-wrap .gcb-table, .gcb-tab-body > .gcb-table-wrap .gcb-table, .gcb-cart-page .gcb-table { color: #343c42; }
.gcb > .gcb-table-wrap .gcb-table th, .gcb-tab-body .gcb-table th, .gcb-cart-page .gcb-table th { color: #6b6b6b; }
.gcb > .gcb-table-wrap .gcb-table td, .gcb > .gcb-table-wrap .gcb-table th, .gcb-tab-body .gcb-table td, .gcb-tab-body .gcb-table th { border-color: var(--gcb-page-line); }
.gcb-cart-page .gcb-table tfoot th { color: #3b444b; }
.gcb-tab-body > .gcb-list li, .gcb > .gcb-list li { border-color: var(--gcb-page-line); color: #343c42; }
.gcb-success { background: var(--gcb-gold); border-color: var(--gcb-gold); color: #3b444b; }
.gcb-error { color: #a40000; background: #fff0f0; }
.gcb-cards-logos span { color: #343c42; border-color: #cfcfcf; }
.gcb-checkout .gcb-muted { color: #6b6b6b; }
.gcb-tab-body details.gcb-inline form { background: #f4f4f1; }
.gcb-tab-body details.gcb-inline input { background: #fff; color: #343c42; border-color: #d8d8d8; }
/* Cartes noires : texte clair */
.gcb-card, .gcb-plan, .gcb-product, .gcb-content, .gcb-slot { color: var(--gcb-text); }
.gcb-card h3, .gcb-card h4, .gcb-plan h3, .gcb-product h4, .gcb-content h3 { color: #fff; }
.gcb-card .gcb-muted, .gcb-product .gcb-muted, .gcb-content .gcb-muted { color: var(--gcb-muted); }
.gcb-card .gcb-link { color: var(--gcb-gold); }
/* ---------- Clubs, fiche club, activités, planning public (concept « réseau de clubs ») ---------- */
.gcb [hidden] { display: none !important; }
.gcb-finder { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.gcb-finder input { margin: 0; flex: 1; max-width: 520px; background: #fff; color: #343c42; border: 2px solid #3b444b; border-radius: 999px; padding: 14px 22px; font-size: 1rem; }
.gcb-finder span { color: #6b6b6b; font-weight: 600; white-space: nowrap; }
.gcb-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.gcb-club { background: var(--gcb-card); border-radius: var(--gcb-radius); overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--c); transition: transform .25s, box-shadow .25s; }
.gcb-club:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.gcb-club-photo { display: block; aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.gcb-club-hours { position: absolute; inset-inline-start: 14px; bottom: 14px; background: var(--gcb-gold); color: #3b444b; font-weight: 800; font-size: .78rem; padding: 5px 11px; border-radius: 999px; }
.gcb-club-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcb-club-body h3 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.25rem; line-height: 1.15; margin: 0; }
.gcb-club-body h3 a { color: #fff; text-decoration: none; }
.gcb-club-body .gcb-muted { margin: 0; font-size: .9rem; }
.gcb-chips { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.gcb-chips li { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #232323; color: #e8e8e8; }
.gcb-club-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gcb-club-actions .gcb-link { color: var(--gcb-gold); font-weight: 700; font-size: .9rem; text-decoration: none; }

.gcb-club-hero { border-radius: 24px; padding: clamp(28px, 5vw, 56px); background-size: cover; background-position: center; color: #fff; margin-bottom: 36px; border-inline-start: 8px solid var(--c); }
.gcb-club-hero h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.05; color: #fff; margin: 10px 0 22px; }
.gcb-back { color: var(--gcb-gold) !important; font-weight: 700; text-decoration: none; font-size: .9rem; }
.gcb-club-info { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 28px; }
.gcb-club-info dt { color: var(--gcb-gold); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.gcb-club-info dd { margin: 4px 0 0; font-weight: 600; color: #fff; }
.gcb-club-info dd a { color: #fff; }
.gcb-club-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.gcb-section-title { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.7rem !important; color: #3b444b !important; margin: 40px 0 18px !important; }

.gcb-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gcb-acts-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gcb-act { background: var(--gcb-card); border-radius: var(--gcb-radius); overflow: hidden; color: var(--gcb-text); }
.gcb-act-photo { aspect-ratio: 4/5; background-size: cover; background-position: center top; border-bottom: 4px solid var(--c); }
.gcb-act-body { padding: 16px 18px 18px; }
.gcb-act-body h4 { color: #fff !important; font-size: 1.1rem; margin: 0 0 2px; }
.gcb-act-body small { color: var(--gcb-gold); font-weight: 700; }
.gcb-act-body p { color: #bdbdbd; font-size: .9rem; margin: 10px 0 0; }
.gcb-act-clubs b { color: #fff; display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.gcb-act-clubs a { color: var(--gcb-gold); }

.gcb-club-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.gcb-club-tabs a { white-space: nowrap; padding: 10px 18px; border-radius: 999px; border: 2px solid #3b444b; color: #3b444b !important; font-weight: 700; text-decoration: none; font-size: .9rem; }
.gcb-club-tabs a.is-active, .gcb-club-tabs a:hover { background: #3b444b; color: var(--gcb-gold) !important; }
.gcb-act-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.gcb-act-filter button { border: 1px solid #d6d6d0; background: #fff; color: #343c42; border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.gcb-act-filter button[style]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-inline-end: 6px; }
.gcb-act-filter button.is-active { background: var(--gcb-gold); border-color: var(--gcb-gold); color: #3b444b; }
.gcb-week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.gcb-week-day { background: #f4f4f1; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.gcb-week-day h4 { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 4px 4px !important; color: #3b444b !important; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }
.gcb-week-day h4 small { font-family: Montserrat, sans-serif; font-size: .75rem; color: #6b6b6b; }
.gcb-week-day.is-today { background: #3b444b; }
.gcb-week-day.is-today h4 { color: var(--gcb-gold) !important; }
.gcb-week-empty { color: #8a8a8a; font-size: .82rem; text-align: center; margin: 18px 0; }
.gcb-class { background: #fff; color: #343c42; border-radius: 12px; padding: 10px 12px; border-inline-start: 5px solid var(--c); display: flex; flex-direction: column; gap: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.gcb-class-time { font-weight: 800; font-size: .82rem; color: #3b444b; }
.gcb-class strong { font-size: .95rem; color: #3b444b; }
.gcb-class small { color: #6b6b6b; font-size: .76rem; }
.gcb-class-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: .76rem; font-weight: 700; color: #6b5a00; }
.gcb-class-foot .is-full { color: #a40000; }
.gcb-class-foot form { display: flex; align-items: center; gap: 6px; margin: 0; }
.gcb-class-foot .gcb-link, .gcb-class-foot a { color: #3b444b; font-weight: 800; }
.gcb-class-foot .gcb-btn-sm { padding: 6px 12px; font-size: .75rem; }
@media (max-width: 700px) { .gcb-week { grid-template-columns: repeat(7, 78vw); scroll-snap-type: x mandatory; } .gcb-week-day { scroll-snap-align: start; } .gcb-finder { flex-direction: column; align-items: stretch; } }
/* Le thème stylise tous les boutons : on reprend la main sur le filtre du planning */
.gcb .gcb-act-filter button { background: #fff !important; color: #343c42 !important; border: 1px solid #d6d6d0 !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; padding: 7px 14px !important; font-size: .82rem !important; line-height: 1.2 !important; min-height: 0 !important; }
.gcb .gcb-act-filter button.is-active { background: var(--gcb-gold) !important; border-color: var(--gcb-gold) !important; color: #3b444b !important; }
.gcb .gcb-act-filter button:hover { border-color: #3b444b !important; }
.gcb-class-foot > span { white-space: nowrap; }
