/* =====================================================================
   Fighting Squad — design system app (charte fightingsquad.ch)
   ===================================================================== */
@font-face {
  font-family: "Varien";
  src: url("fonts/Varien.6af7273548d8.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Varien";
  src: url("fonts/Varien-Italic.c0d6f142cd5b.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000;
  --bg: #0b0a08;
  --surface: #17140f;
  --surface-2: #201c15;
  --border: #2c2721;
  --gold: #cea54b;
  --gold-soft: #cca45b;
  --white: #fff;
  --text: #ece7dd;
  --muted: #9a9284;
  --ok: #4caf6d;
  --ko: #e64949;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(rgba(206, 165, 75, 0.055) 1px, transparent 1.5px) 0 0 / 26px 26px,
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Varien", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
h1 { font-style: italic; font-size: 1.9rem; margin: 0.4rem 0 1rem; }
h2 {
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(206, 165, 75, 0.35);
  display: inline-block;
}
section { margin-bottom: 1.6rem; }
main a { color: var(--gold); }

/* ---- Barre du haut ---- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.65rem 1.4rem;
  padding-top: calc(0.65rem + env(safe-area-inset-top));
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .brand img { height: 32px; display: block; }
.top-links { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.top-links a {
  color: var(--text);
  text-decoration: none;
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}
.top-links a:hover { color: var(--gold); }
.top-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.inline { display: inline; margin: 0; }
.linklike {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--muted); cursor: pointer;
  width: 38px; height: 38px; font-size: 1.05rem;
  transition: color 0.15s, border-color 0.15s;
}
.linklike:hover { color: var(--ko); border-color: var(--ko); }
.lang-form { display: inline-flex; gap: 0.25rem; margin-right: 0.5rem; }
.lang-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--muted); cursor: pointer;
  padding: 0.35rem 0.55rem; font-size: 0.72rem;
  font-family: "Varien", system-ui, sans-serif; letter-spacing: 0.08em;
}
.lang-btn.active { color: var(--gold); border-color: var(--gold); }
.lang-btn:hover { color: var(--gold); }

/* ---- Navigation basse (mobile, façon app) ---- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--muted); text-decoration: none;
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.62rem;
  transition: color 0.15s;
}
.bottom-nav a span { font-size: 1.25rem; line-height: 1; }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a.active span { transform: translateY(-1px); }

.container {
  max-width: 1100px;
  margin: 1.6rem auto;
  padding: 0 1.4rem;
}

/* ---- Cartes & stats ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kpi {
  font-family: "Varien", system-ui, sans-serif;
  font-style: italic;
  font-size: 1.9rem;
  color: var(--gold);
}
.kpi.ok { color: var(--ok); }
.kpi.ko { color: var(--ko); }
.kpi.paused { color: #d69a3c; }
.card small { color: var(--muted); text-transform: none; letter-spacing: normal; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.4rem;
  text-align: center;
  display: flex; flex-direction: column; gap: 0.1rem;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem;
}
.stat .kpi { font-size: 1.6rem; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.4rem 0; }
@media (max-width: 700px) { .columns { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

/* ---- Profil ---- */
.profile-card {
  display: flex; align-items: center; gap: 1.4rem;
  background: linear-gradient(150deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.profile-card h1 { margin: 0 0 0.25rem; font-size: 1.6rem; }
.profile-photo-wrap { position: relative; flex-shrink: 0; }
.profile-photo, .avatar.avatar-profile {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.avatar.avatar-profile {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  color: var(--gold);
  font-family: "Varien", system-ui, sans-serif;
  font-size: 2rem;
}
.photo-form { position: absolute; right: -4px; bottom: -4px; }
.photo-edit {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--gold); color: var(--black);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  border: 2px solid var(--bg);
  transition: transform 0.15s;
}
.photo-edit:hover { transform: scale(1.08); }
.photo-edit input { display: none; }
.profile-id { min-width: 0; }
.contact-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.7rem; }

/* ---- Ceintures ---- */
.grades-row { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-end; }
.belt-wrap { margin-top: 0.6rem; }
.belt {
  position: relative;
  height: 26px;
  max-width: 250px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.belt-bar {
  position: absolute; top: 0; bottom: 0; right: 14%;
  width: 27%;
  background: #101010;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.belt-stripe { width: 5px; height: 72%; background: #f5f5f5; border-radius: 1px; }
.belt-label {
  display: block; margin-top: 0.3rem;
  font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.belt-WHITE { background: #e8e6e0; }
.belt-GREY { background: #8d9096; }
.belt-YELLOW { background: #f5c92c; }
.belt-ORANGE { background: #f08a2c; }
.belt-GREEN { background: #2a9d54; }
.belt-BLUE { background: #2f6fd0; }
.belt-PURPLE { background: #7b4fd0; }
.belt-BROWN { background: #6c4a2f; }
.belt-BLACK { background: #161616; }
.belt-BLACK .belt-bar { background: #a02310; }
.glove { width: 76px; height: auto; display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45)); }
.grad-list { display: flex; flex-direction: column; gap: 0.9rem; }
.grad-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.grad-item .belt-wrap { margin-top: 0; }

/* ---- Boutons ---- */
.cta {
  display: block;
  background: var(--gold); color: var(--black) !important;
  text-decoration: none; text-align: center;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-s);
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin: 1.2rem 0 1.6rem;
  box-shadow: 0 8px 22px rgba(206, 165, 75, 0.22);
  transition: transform 0.15s, background 0.15s;
}
.cta::after { content: " →"; }
.cta:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn {
  margin-top: 1.4rem; width: 100%; padding: 0.85rem;
  background: var(--gold); color: var(--black);
  border: none; border-radius: var(--radius-s);
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.95rem; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-small {
  display: inline-block;
  background: var(--gold); color: var(--black);
  padding: 0.55rem 1rem; border-radius: var(--radius-s);
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.8rem; text-decoration: none;
  transition: background 0.15s;
}
.btn-small:hover { background: var(--gold-soft); }
.btn-line {
  display: inline-block;
  background: var(--gold); color: var(--black);
  border: none; border-radius: var(--radius-s);
  padding: 0.45rem 0.95rem;
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.75rem; cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.btn-line:hover { background: var(--gold-soft); }
.btn-line.cancel { background: transparent; border: 1px solid var(--ko); color: var(--ko); }
.btn-line.cancel:hover { background: rgba(230, 73, 73, 0.12); }

/* ---- Tableaux ---- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); }
th {
  background: var(--surface-2);
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s; }
ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }
.muted { color: var(--muted); }
.error { color: var(--ko); }
.late { color: var(--ko); font-weight: 600; }

.booking .day-row td {
  background: var(--surface-2);
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); font-size: 0.78rem;
}
.tag {
  border: 1px solid var(--gold); color: var(--gold);
  border-radius: 4px; padding: 0.08rem 0.4rem;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.tag.special { border-color: #d69a3c; color: #d69a3c; }
.ok-tag { border-color: var(--ok); color: var(--ok); }
.cancel-tag { border-color: var(--ko); color: var(--ko); }
.fill-cell { display: flex; align-items: center; gap: 0.6rem; min-width: 120px; }
.fill-bar {
  flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2);
  overflow: hidden; min-width: 54px;
  border: 1px solid var(--border);
}
.fill { height: 100%; background: var(--gold); border-radius: 3px; }
.full { color: var(--ko); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }

/* ---- Messages flash ---- */
.flash {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-s);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.flash.success { border-color: var(--ok); color: var(--ok); }
.flash.error { border-color: var(--ko); color: var(--ko); }

/* ---- Avatars ---- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ---- Connexion / inscription ---- */
.login-box {
  max-width: 400px; margin: 8vh auto;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.login-box label {
  display: block; margin: 0.9rem 0 0.3rem;
  font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.login-box input {
  width: 100%; padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 1rem;
}
.login-box input:focus { outline: none; border-color: var(--gold); }
.signup-hint { margin-top: 1.2rem; text-align: center; color: var(--muted); }

/* ---- Annuaire membres (staff) ---- */
.filter-bar { margin-bottom: 1.2rem; }
.filter-bar input[type="search"] {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  color: var(--text); font-size: 1rem;
  margin-bottom: 0.7rem;
}
.filter-bar input[type="search"]:focus { outline: none; border-color: var(--gold); }
.chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--gold); color: var(--black); border-color: var(--gold); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.8rem; }
.member-tile {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-decoration: none; color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.member-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.tile-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.tile-avatar { width: 52px; height: 52px; font-size: 1rem; }
.tile-body { flex: 1; min-width: 0; }
.tile-body .muted { font-size: 0.8rem; }
.tile-arrow { color: var(--gold); font-size: 1.2rem; }

/* ---- Icônes maison (traits dorés, style logo FS) ---- */
.icon { display: inline-block; vertical-align: -4px; flex-shrink: 0; }
h2 .icon { color: var(--gold); margin-right: 0.35rem; vertical-align: -4px; }
.icon.ok { color: var(--ok); }
.icon.ko { color: var(--ko); }
.bottom-nav .icon { width: 22px; height: 22px; }
.btn-small .icon, .btn-line .icon { vertical-align: -3px; margin-right: 0.15rem; }
.flash .icon { margin-right: 0.25rem; }
.linklike .icon { vertical-align: -4px; }
.photo-edit .icon { color: var(--black); }
.product-photo.placeholder { color: var(--gold); }
.tile-avatar .icon { color: var(--gold); vertical-align: middle; }
.lt-value .icon { vertical-align: middle; }
#fullscreen-btn .icon { vertical-align: middle; }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  font-family: "Varien", system-ui, sans-serif;
  font-size: 0.95rem;
  border: 1.5px solid currentColor;
}
.rank-badge.rank-1 { color: var(--gold); background: rgba(206, 165, 75, 0.14); }
.rank-badge.rank-2 { color: #b9bec7; background: rgba(185, 190, 199, 0.1); }
.rank-badge.rank-3 { color: #c77b45; background: rgba(199, 123, 69, 0.1); }

/* ---- Tuiles d'information (dashboard : retards, pauses, passages…) ---- */
.list-tile {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.55rem;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.list-tile:hover { border-color: var(--gold); transform: translateY(-1px); }
.lt-body { flex: 1; min-width: 0; }
.lt-body .muted { font-size: 0.8rem; }
.lt-value {
  font-family: "Varien", system-ui, sans-serif; font-style: italic;
  color: var(--gold); white-space: nowrap; font-size: 0.95rem;
}
.lt-value.late { color: var(--ko); }
.tile-photo.small { width: 42px; height: 42px; }
.date-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Varien", system-ui, sans-serif;
  line-height: 1.1;
}
.date-badge .d { font-size: 1.25rem; }
.date-badge .m { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em; }
.empty-note {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.sub-list { display: flex; flex-direction: column; gap: 0.8rem; }
.sub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
}
.sub-card.current { border-color: rgba(206, 165, 75, 0.55); }
.sub-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.25rem; }

/* ---- Dashboard ---- */
.page-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.head-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.daily-pass-form { display: flex; gap: 0.4rem; align-items: center; }
.daily-pass-form select {
  padding: 0.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-s); color: var(--text);
}
.daily-pass-form button { border: none; cursor: pointer; }

/* ---- Événements ---- */
.event-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.6rem; }
.event-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.event-date {
  font-family: "Varien", system-ui, sans-serif; font-style: italic;
  color: var(--gold); text-transform: uppercase; min-width: 7.5rem;
}
.event-body { flex: 1; min-width: 0; }
.event-body p { margin: 0.3rem 0; }
.propose-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.propose-form input {
  flex: 1 1 180px; padding: 0.65rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-s); color: var(--text);
}
.propose-form input:focus { outline: none; border-color: var(--gold); }
.pending-card { flex-wrap: wrap; }
.validate-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.validate-form select {
  padding: 0.55rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); max-width: 300px;
}
.validate-form select:focus { outline: none; border-color: var(--gold); }

/* ---- Classement ---- */
.period-tabs { display: flex; gap: 0.5rem; margin: 1rem 0 1.2rem; }
.period-tabs a {
  padding: 0.5rem 1.1rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); text-decoration: none;
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  transition: all 0.15s;
}
.period-tabs a.active { background: var(--gold); color: var(--black); border-color: var(--gold); }
.ranking .rank { width: 3rem; text-align: center; font-size: 1.1rem; }
.ranking .count {
  font-family: "Varien", system-ui, sans-serif; font-style: italic;
  color: var(--gold); font-size: 1.15rem;
}
.ranking tr.podium-1 td { background: rgba(206, 165, 75, 0.1); }
.ranking tr.podium-2 td { background: rgba(206, 165, 75, 0.06); }
.ranking tr.podium-3 td { background: rgba(206, 165, 75, 0.03); }

/* ---- Le club ---- */
.club-head { text-align: center; margin: 0.5rem 0 1.5rem; }
.club-logo { width: min(340px, 80vw); }
.club-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; margin-bottom: 1.5rem; }
.club-link {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.club-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---- Séances (tuiles unifiées) ---- */
.day-head {
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); font-size: 0.82rem;
  margin: 1.1rem 0 0.5rem;
}
.occ-tile {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.55rem;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.occ-tile.linked:hover { border-color: var(--gold); transform: translateY(-2px); }
.occ-cancelled { opacity: 0.55; border-style: dashed; }
.occ-time {
  font-family: "Varien", system-ui, sans-serif; font-style: italic;
  font-size: 1.15rem; color: var(--gold);
  min-width: 3.6rem; text-align: center;
  display: flex; flex-direction: column;
}
.occ-time .muted { font-size: 0.7rem; font-style: normal; }
.occ-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.occ-body .fill-cell { flex-basis: 100%; margin-top: 0.2rem; }
.occ-action { flex-shrink: 0; }
.member-tile.static:hover { border-color: var(--border); transform: none; }
.trial-input {
  padding: 0.55rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text);
}
.trial-input:focus { outline: none; border-color: var(--gold); }

/* ---- Boutique ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.15s;
}
.product-card[open], .product-card:hover { border-color: var(--gold); }
.product-card.sold-out { opacity: 0.6; }
.product-card summary { list-style: none; cursor: pointer; }
.product-card summary::-webkit-details-marker { display: none; }
.product-card summary, .summary-like { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem; }
.product-photo {
  width: 72px; height: 72px;
  border-radius: var(--radius-s);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.product-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.product-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.product-price {
  font-family: "Varien", system-ui, sans-serif; font-style: italic;
  color: var(--gold); font-size: 1.1rem;
}
.product-actions {
  border-top: 1px solid var(--border);
  padding: 0.8rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.product-actions select {
  padding: 0.5rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); max-width: 100%;
}
.shop-notice { display: block; text-decoration: none; }
.size-badges { display: inline-flex; gap: 0.3rem; flex-wrap: wrap; }
.prospect-form { flex-direction: column; align-items: stretch; }
.prospect-fields { display: flex; flex-direction: column; gap: 0.5rem; }
.prospect-select, .new-prospect input {
  padding: 0.65rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  color: var(--text); font-size: 0.95rem; width: 100%;
}
.prospect-select:focus, .new-prospect input:focus { outline: none; border-color: var(--gold); }
.new-prospect { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem; }
.show-more { display: block; margin: 0.3rem auto 0; }

/* ---- Kiosque (tablette à l'entrée) ---- */
body.kiosk {
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh; text-align: center;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}
.kiosk-logo { width: min(340px, 62vw, 40vh); margin-bottom: 0.4rem; }
.kiosk .hint {
  color: var(--gold);
  margin-top: 0;
  font-family: "Varien", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.85rem, 2.2vmin, 1.2rem);
}
#display {
  font-size: clamp(2.4rem, 7vmin, 4rem);
  letter-spacing: 0.5rem; margin: 1.1rem 0;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.keys {
  display: grid;
  grid-template-columns: repeat(3, clamp(88px, 22vmin, 150px));
  gap: clamp(10px, 1.8vmin, 18px);
  justify-content: center;
}
.keys button {
  height: clamp(70px, 16vmin, 120px);
  font-size: clamp(1.5rem, 4.5vmin, 2.4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface); color: var(--white);
  cursor: pointer;
  font-family: "Varien", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.keys button:active { background: var(--surface-2); border-color: var(--gold); }
#clear { color: var(--ko); }
#go { background: var(--gold); color: var(--black); border-color: var(--gold); }
#go:active { background: var(--gold-soft); }
#fullscreen-btn {
  position: fixed; top: 12px; right: 12px;
  width: 44px; height: 44px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  font-size: 1.3rem; cursor: pointer; opacity: 0.6;
}
#fullscreen-btn:hover { opacity: 1; color: var(--gold); }
#kiosk-exit {
  position: fixed; top: 12px; left: 12px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  cursor: pointer; opacity: 0.6;
}
#kiosk-exit:hover { opacity: 1; color: var(--gold); }
.hidden { display: none !important; }
#result.granted, #result.denied {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
}
#result.granted { background: #14522c; }
#result.denied { background: #8c1f28; }
#result-icon svg { width: clamp(80px, 17vmin, 130px); height: auto; display: block; }
#result-name {
  font-size: clamp(2rem, 6.5vmin, 3.6rem);
  font-family: "Varien", system-ui, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  padding: 0 1rem;
}
#result-reason { font-size: clamp(1.15rem, 3.4vmin, 1.8rem); padding: 0 1.2rem; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .top-links { display: none; }
  .bottom-nav { display: flex; }
  body:not(.kiosk) main.container { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 1.2rem); }
}
@media (max-width: 700px) {
  .container { margin: 1rem auto; padding: 0 0.9rem; }
  h1 { font-size: 1.45rem; }
  .topbar { padding: 0.55rem 0.9rem; padding-top: calc(0.55rem + env(safe-area-inset-top)); }
  .topbar .brand img { height: 27px; }

  section > table, .booking {
    display: block; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: var(--radius);
  }
  th, td { padding: 0.55rem 0.65rem; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .card { padding: 0.9rem; }
  .kpi { font-size: 1.45rem; }
  .stat-row { gap: 0.45rem; }
  .stat .kpi { font-size: 1.3rem; }

  .profile-card { padding: 1.1rem; gap: 1rem; }
  .profile-photo, .avatar.avatar-profile { width: 84px; height: 84px; }
  .avatar.avatar-profile { font-size: 1.5rem; }
  .profile-card h1 { font-size: 1.25rem; }
  .belt { max-width: 210px; }

  .btn-line { padding: 0.55rem 1rem; font-size: 0.8rem; }
  .btn-small { padding: 0.65rem 1rem; }
  .period-tabs a { padding: 0.55rem 1rem; flex: 1; text-align: center; }

  .event-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .event-date { min-width: 0; }
  .page-head, .head-actions { width: 100%; }
  .head-actions > *, .daily-pass-form { width: 100%; }
  .daily-pass-form select { flex: 1; }
  .validate-form select { max-width: none; width: 100%; }
  .propose-form input { flex-basis: 100%; }
  .member-grid { grid-template-columns: 1fr; }
}

/* ---- Profil staff + page Squad ---- */
.stacked-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; width: 100%;
}
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 0.85rem; color: var(--muted); }
.form-grid input, .form-grid select {
  background: var(--black); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 10px 12px; font-size: 1rem;
}
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: var(--gold); }
.checkline { display: flex; align-items: center; gap: 8px; color: var(--text); }
.checkline input { accent-color: var(--gold); width: 18px; height: 18px; }
.btn-small.danger { border-color: var(--ko); color: var(--ko); background: transparent; }
.grade-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.squad-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.squad-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.squad-card h3 { margin: 0; }
.squad-photo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
}
.avatar.squad-avatar {
  width: 110px; height: 110px; font-size: 2rem; display: flex;
  align-items: center; justify-content: center;
}
.squad-card .grades-row { justify-content: center; }
