:root {
  --color-bg: #f5f7f7;
  --color-text: #1c2422;
  --color-primary: #0f3d3e;
  --color-primary-dark: #0a2b2c;
  --color-accent: #ff5d3a;
  --color-card: #ffffff;
  --color-border: #e1e7e6;
  --color-muted: #5e6b69;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.site-header {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
}
.logo .dot { color: var(--color-accent); }

.site-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a.active {
  color: var(--color-primary-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent);
}

.site-header nav .cta {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.site-header nav .cta:hover { background: #e2491f; color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1.3rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--color-text);
}

.hero {
  background: linear-gradient(135deg, #0f3d3e, #16615f);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.hero h1 { font-size: 2rem; margin: 0 0 12px; }
.hero p { font-size: 1.1rem; max-width: 680px; margin: 0 auto; opacity: 0.95; }

.hero-photo {
  background-image: linear-gradient(135deg, rgba(15, 61, 62, 0.62), rgba(22, 97, 95, 0.55)), url('../img/hero-gym.jpg');
  background-size: cover;
  background-position: center;
  padding: 96px 0;
}
.hero-photo h1, .hero-photo p { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }

.hero-photo.hero-coachs {
  background-color: #123d3e;
  background-image: linear-gradient(135deg, rgba(15, 61, 62, 0.62), rgba(22, 97, 95, 0.55)), url('../img/hero-coachs.jpg');
  background-size: cover, contain;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.hero-photo.hero-infos {
  background-image: linear-gradient(135deg, rgba(15, 61, 62, 0.62), rgba(22, 97, 95, 0.55)), url('../img/hero-infos.jpg');
}

.hero-photo.hero-boutiques {
  background-image: linear-gradient(135deg, rgba(15, 61, 62, 0.62), rgba(22, 97, 95, 0.55)), url('../img/hero-boutiques.jpg');
}
.hero .disclaimer {
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.85;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

main {
  padding: 48px 20px;
}

section { margin-bottom: 56px; }

h2 { font-size: 1.5rem; margin-bottom: 18px; }

/* Pillars (homepage) */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pillar-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.pillar-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.pillar-card p { font-size: 0.92rem; color: var(--color-muted); flex-grow: 1; }

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.status-badge.live { background: #dff3ea; color: #0f7a4b; }
.status-badge.soon { background: #f1ecdc; color: #9a7b00; }

.pillar-card .pillar-link {
  margin-top: 12px;
  font-weight: 600;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.filters input, .filters select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: #fff;
}

.filters label.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

#search-input { flex: 1; min-width: 220px; }

.result-count {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Comparator table (salles) */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
}

table.comparator {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 0.88rem;
}

table.comparator th, table.comparator td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

table.comparator th {
  background: #eef3f2;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
table.comparator th:hover { background: #e3ebe9; }
table.comparator th .sort-indicator { opacity: 0.5; font-size: 0.75em; }

table.comparator tr:last-child td { border-bottom: none; }
table.comparator tr.coup-de-coeur { background: #fff8f3; }

.salle-name { font-weight: 600; }
.salle-clubs { font-size: 0.8rem; color: var(--color-muted); margin-top: 2px; }

.ribbon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--color-accent);
  padding: 2px 7px;
  border-radius: 5px;
  margin-bottom: 4px;
}

.badge-gamme {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-gamme.low-cost { background: #dff3ea; color: #0f7a4b; }
.badge-gamme.intermediaire { background: #e3edfb; color: #1c5fb0; }
.badge-gamme.premium { background: #f3e6fb; color: #7a2db0; }
.badge-gamme.luxe { background: #2b2420; color: #f0d9a8; }

.badge-access {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3f2;
  color: var(--color-primary-dark);
  margin-top: 4px;
}

.badge-cert {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dff3ea;
  color: #0a5e32;
  margin-top: 4px;
  text-decoration: none;
}
.badge-cert:hover { background: #c5eadb; color: #0a5e32; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 220px;
}

.tag {
  background: #eef3f2;
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.map-container {
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 12px;
}

/* Provider cards (coachs) */
.provider-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.provider-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}

.provider-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.provider-card .meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.provider-card .tags { margin-bottom: 10px; max-width: none; }

.provider-card p.description {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.provider-card .contact {
  font-size: 0.85rem;
}

.badge-unverified {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #9a6b00;
  background: #fff3da;
  padding: 3px 8px;
  border-radius: 999px;
}

/* CTA blocks */
.cta-block {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.cta-block .cta {
  display: inline-block;
  margin-top: 14px;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.cta-block .cta:hover { background: #e2491f; color: #fff; }

.note-box {
  background: #eef3f2;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
}

.draft-banner {
  background: #f1ecdc;
  color: #6b4f00;
  border: 1px solid #e3d9b0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 28px;
}

.profile-preview {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.profile-preview h1 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.profile-preview .meta {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.profile-preview .tags {
  max-width: none;
  margin-bottom: 18px;
}

.profile-preview p {
  margin: 0 0 14px;
}

.profile-preview .placeholder {
  color: var(--color-muted);
  font-style: italic;
  font-size: 0.88rem;
}

/* Infos page */
.highlight-box {
  border: 1px solid #b8d4d3;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: rgba(15, 61, 62, 0.05);
  margin-bottom: 18px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  counter-reset: steps;
}
.steps-list li {
  counter-increment: steps;
  padding: 10px 0 10px 44px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.insurer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.insurer-tag {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Route cards (infos page) */
.route-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}
.route-card h3 { margin: 0 0 6px; font-size: 1rem; }
.route-card .meta { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 8px; }
.route-card .tags { margin-bottom: 8px; max-width: none; }
.route-card p { font-size: 0.88rem; margin: 0 0 10px; }

/* Magasins page */
.magasins-section h2 { margin-top: 0; }

.store-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}
.store-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.store-card .meta { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 8px; }
.store-card .tags { margin-bottom: 10px; max-width: none; }
.store-card p.description { font-size: 0.9rem; margin-bottom: 10px; }
.store-card .contact { font-size: 0.85rem; }

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--color-card);
  color: var(--color-text);
}
.filter-tab:hover { border-color: var(--color-primary); }
.filter-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.coming-soon {
  text-align: center;
  padding: 40px 20px;
}
.coming-soon h2 { margin-bottom: 10px; }
.coming-soon p { color: var(--color-muted); max-width: 560px; margin: 0 auto 20px; }

.site-footer {
  text-align: center;
  padding: 24px 0;
  color: #8a958f;
  font-size: 0.85rem;
}
.footer-partner {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #a0aba6;
}
.footer-partner a { color: #a0aba6; text-decoration: underline; }
.footer-partner a:hover { color: var(--color-primary); }

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .map-container { height: 300px; }

  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
    padding-top: 8px;
  }
  .site-header nav.nav-open { display: flex; }
  .site-header nav a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--color-border);
  }
  .site-header nav .cta {
    margin-top: 10px;
    text-align: center;
  }

  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 1rem; }
  .hero-photo { padding: 56px 0; }

  main { padding: 32px 16px; }

  .filters { flex-direction: column; align-items: stretch; }
  .filters input, .filters select { width: 100%; }

  /* Comparator table -> stacked cards */
  .table-scroll { overflow-x: visible; border: none; background: none; }
  table.comparator { min-width: 0; width: 100%; font-size: 0.9rem; }
  table.comparator thead { display: none; }
  table.comparator, table.comparator tbody, table.comparator tr, table.comparator td {
    display: block;
    width: 100%;
  }
  table.comparator tr {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 14px;
  }
  table.comparator td {
    border-bottom: none;
    padding: 7px 0;
  }
  table.comparator td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-muted);
    margin-bottom: 2px;
  }
  table.comparator .tags { max-width: none; }

  .cta-block { padding: 24px 18px; }
  .profile-preview { padding: 18px; }
}
