:root {
  --color-bg: #f5f4f1;
  --color-text: #23201b;
  --color-primary: #241f38;
  --color-primary-dark: #161225;
  --color-accent: #d99a2b;
  --color-card: #ffffff;
  --color-border: #e3e0d9;
  --color-muted: #6f695e;
  --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);
}

.cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.cta:hover { background: #b6841e; color: #fff; }

.site-header nav .cta {
  padding: 8px 16px;
}
.site-header nav .cta:hover { background: #b6841e; 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, #1f1b30, #4a4180);
  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-color: var(--color-primary);
  background-image: linear-gradient(135deg, rgba(31, 27, 48, 0.66), rgba(74, 65, 128, 0.58)), url('../img/hero-accueil.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-seances {
  background-image: linear-gradient(135deg, rgba(31, 27, 48, 0.66), rgba(74, 65, 128, 0.58)), url('../img/hero-seances.jpg');
}

.hero-photo.hero-films {
  background-image: linear-gradient(135deg, rgba(31, 27, 48, 0.66), rgba(74, 65, 128, 0.58)), url('../img/hero-films.jpg');
}

.hero-photo.hero-salles {
  background-image: linear-gradient(135deg, rgba(31, 27, 48, 0.66), rgba(74, 65, 128, 0.58)), url('../img/hero-salles.jpg');
}

.hero-photo.hero-actus {
  background-image: linear-gradient(135deg, rgba(31, 27, 48, 0.66), rgba(74, 65, 128, 0.58)), url('../img/hero-actus.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: #d9f0e6; color: #0f7a4b; }
.status-badge.soon { background: #f2ead9; color: #8d6f13; }

.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;
}

label.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Filtres avancés (annuaire des coachs) — panneau unique, sobre,
   étiquette au-dessus de chaque champ (langage inspiré de regieducentre.ch). */
.filters-panel {
  background: #e9eff1;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 16px;
}
.filter-field-wide { grid-column: 1 / -1; }

/* 8 champs, 4 par ligne : plus équilibré que 6 puis 2. */
@media (min-width: 760px) {
  .filters-grid { grid-template-columns: repeat(4, 1fr); }
}

.filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 7px;
}

.filter-field input[type="search"],
.filter-field select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.92rem;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
}
.filter-field select option:disabled { color: #bbb; }

.filter-dropdown { position: relative; }
.filter-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.92rem;
  background: #fff;
  cursor: pointer;
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
}
.filter-dropdown-toggle:hover { border-color: var(--color-primary); }
.filter-dropdown-toggle::after { content: "\25BE"; color: var(--color-muted); font-size: 0.75rem; margin-left: 8px; }

.filter-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 300px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 8px;
}
.filter-dropdown-panel.open { display: block; }

.filter-dropdown-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
}
.filter-dropdown-option:hover { background: var(--color-bg); }
.filter-dropdown-option input { margin: 0; }
.filter-dropdown-option-label { flex: 1; }
.filter-dropdown-option-count { color: var(--color-muted); font-size: 0.82rem; }
.filter-dropdown-option.option-disabled { opacity: 0.4; }
.filter-dropdown-option.option-disabled:hover { background: none; }

.price-slider {
  position: relative;
  height: 24px;
  margin-top: 2px;
}
.price-slider-track {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
}
.price-slider-range {
  position: absolute;
  top: 10px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}
.price-slider input[type="range"] {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  margin: 0;
  height: 12px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: pointer;
}
.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: pointer;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.price-slider input[type="range"]::-moz-range-track { background: transparent; }

.price-slider-wrap { width: 100%; }
.price-slider-wrap.disabled { opacity: 0.4; pointer-events: none; }
.price-value {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 600;
  white-space: nowrap;
  margin-top: 8px;
}

.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: #e9eff1;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
table.comparator th:hover { background: #dbe5e8; }
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: #fbf3ee; }

.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: #d9f0e6; 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: #e9eff1;
  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: #d9f0e6;
  color: #0a5e32;
  margin-top: 4px;
  text-decoration: none;
}
.badge-cert:hover { background: #c2e6d8; color: #0a5e32; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 220px;
}

.tag {
  background: #e9eff1;
  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;
}

/* Timeline (histoire) */
.timeline {
  margin: 36px 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.timeline-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.timeline-year {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-primary);
  overflow-wrap: break-word;
}
/* Libellés non numériques ("Aujourd'hui", "Années 1980") : trop larges en 2.3rem
   pour la colonne, ils débordaient sur le texte. */
.timeline-year.is-texte {
  font-size: 1.4rem;
  line-height: 1.2;
  padding-top: 4px;
}
.timeline-content h3 { margin: 0 0 8px; }
.timeline-content p { margin: 0; }
.timeline-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  margin: 12px 0;
}
.photo-credit {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: -4px 0 12px !important;
}
.photo-credit a { color: var(--color-muted); }

.source-list {
  margin: 16px 0 0;
  padding-left: 20px;
  line-height: 1.9;
}

/* Extrait de la page histoire, en accueil */
.histoire-teaser {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 34px;
  margin: 36px 0;
}
.histoire-teaser h2 { margin: 0 0 6px; color: #fff; font-size: 1.4rem; }
.histoire-teaser .teaser-intro {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 640px;
}
.teaser-jalons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 26px;
}
.teaser-jalon img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.teaser-jalon .teaser-annee {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.teaser-jalon p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}
.teaser-jalon .teaser-credit {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}
.teaser-jalon .teaser-credit a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}
.histoire-teaser .teaser-lien {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.histoire-teaser .teaser-lien:hover { background: #b6841e; color: #fff; }

/* Tableau de données statique (nutrition) — même langage visuel que le
   comparateur, mais sans le curseur "cliquable" des en-têtes triables. */
table.table-data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 16px;
}
table.table-data th, table.table-data td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
table.table-data th {
  background: #e9eff1;
  font-weight: 600;
}
table.table-data tr:last-child td { border-bottom: none; }
table.table-data .dose { font-weight: 700; color: var(--color-primary); white-space: nowrap; }

/* Bloc "deux points de vue" : consensus dominant vs principale objection */
.debat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.debat-vue {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--color-card);
}
.debat-vue.dominant { border-left: 4px solid var(--color-primary); }
.debat-vue.objection { border-left: 4px solid var(--color-accent); }
.debat-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.debat-vue.dominant .debat-label { color: var(--color-primary); }
.debat-vue.objection .debat-label { color: var(--color-accent); }
.debat-vue h4 { margin: 0 0 8px; font-size: 0.98rem; }
.debat-vue p { margin: 0 0 8px; font-size: 0.9rem; }
.debat-vue p:last-child { margin-bottom: 0; }
.debat-source { font-size: 0.82rem; color: var(--color-muted); }

/* Bloc dépliable "en savoir plus" */
details.plus {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  padding: 0;
  margin: 16px 0;
}
details.plus > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  list-style: none;
}
details.plus > summary::-webkit-details-marker { display: none; }
details.plus > summary::before { content: "＋ "; font-weight: 700; }
details.plus[open] > summary::before { content: "− "; }
details.plus > summary:hover { background: #f1f5f6; }
details.plus .plus-corps {
  padding: 0 18px 16px;
  font-size: 0.92rem;
}
details.plus .plus-corps > *:first-child { margin-top: 0; }

/* Provider cards (salles) */
.provider-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.salle-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}

.salle-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.salle-card .meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.salle-card .tags { margin-bottom: 10px; max-width: none; }

.salle-card p.description {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.salle-card .contact {
  font-size: 0.85rem;
}

.badge-unverified {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #8a5f16;
  background: #fbeed4;
  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: #b6841e; color: #fff; }

.cta-block .cta-secondary-intro {
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}
.cta-block .cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.cta-block .cta-group .cta { margin-top: 0; }

.note-box {
  background: #e9eff1;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
}

.draft-banner {
  background: #f2ead9;
  color: #6b4a12;
  border: 1px solid #e0d3ae;
  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 #a9c9d2;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: rgba(15, 61, 62, 0.05);
  margin-bottom: 18px;
}

/* Quiz */
.quiz-question {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.quiz-question h3 { margin: 0 0 12px; font-size: 1rem; }
.quiz-option {
  display: block;
  padding: 8px 0;
  font-size: 0.95rem;
  cursor: pointer;
}
.quiz-option input { margin-right: 10px; }
#quiz-results { margin-top: 24px; }

.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: #87959a;
  font-size: 0.85rem;
}
.footer-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--color-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.footer-partner {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9dacb1;
}
.footer-partner a { color: #9dacb1; text-decoration: underline; }
.footer-partner a:hover { color: var(--color-primary); }

.footer-address {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9dacb1;
}

/* Bande de chiffres clés (accueil) */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 4px;
}
.stat {
  background: var(--color-card);
  padding: 20px 18px;
}
.stat .stat-valeur {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.stat .stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.35;
}

/* Sommaire interne des pages longues (pathologies, techniques, remboursements) */
.sommaire {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.sommaire h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0 0 10px;
}
.sommaire ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.sommaire li { font-size: 0.92rem; padding: 2px 0; break-inside: avoid; }

/* Badges propres au cinéma : la version du film (VOST, VF) est la première
   question que se pose le spectateur genevois, suivie de l'art et essai,
   de l'accessibilité et de la fraîcheur de la sortie. */
.badge-version {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3edfb;
  color: #1c5fb0;
  text-decoration: none;
}
.badge-art {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e6fb;
  color: #7a2db0;
  text-decoration: none;
}
.badge-pmr {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d9f0e6;
  color: #0a5e34;
}
.badge-nouveau {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fbeed4;
  color: #8a5f16;
}
.badge-ville {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  margin-right: 5px;
}

/* Rappel systématique : les horaires sont ceux publiés par chaque salle. */
.hor-disclaimer {
  background: #fbeed4;
  border: 1px solid #e0d3ae;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #6b4a12;
  margin: 22px 0 0;
}

/* Origine d'un chiffre, sous un tableau ou un encart. */
.src-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 8px;
}
.src-note a { color: var(--color-muted); text-decoration: underline; }

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .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;
  }
}

@media (max-width: 720px) {
  .map-container { height: 300px; }

  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline-year { font-size: 1.8rem; }
  .timeline-year.is-texte { font-size: 1.5rem; padding-top: 0; }

  .debat { grid-template-columns: 1fr; }

  .histoire-teaser { padding: 24px 20px; }
  .teaser-jalons { grid-template-columns: 1fr; gap: 20px; }

  table.table-data { font-size: 0.88rem; }
  table.table-data thead { display: none; }
  table.table-data, table.table-data tbody, table.table-data tr, table.table-data td {
    display: block;
    width: 100%;
  }
  table.table-data tr {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--color-card);
    padding: 4px 0;
  }
  table.table-data td { border-bottom: none; padding: 6px 14px; }
  table.table-data td[data-label]::before {
    content: attr(data-label) " : ";
    font-weight: 600;
    color: var(--color-muted);
  }

  .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, .filter-dropdown, .filter-dropdown-toggle { width: 100%; }

  .filters-panel { padding: 16px; }
  .filters-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-dropdown-panel { width: 100%; box-sizing: border-box; }
  .price-slider-wrap { width: 100%; }
  /* Recherche libre masquée sur téléphone : gagne une carte d'écran, le reste des
     filtres (spécialités, type...) suffit à circonscrire la liste. */
  .filter-field-search { display: none; }

  /* 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; }

  .sommaire { padding: 14px 16px; }
  .sommaire ol { columns: 1; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat .stat-valeur { font-size: 1.5rem; }
}

/* ===== Composants Ciné L-T ===== */

/* Onglets des jours (séances) */
.day-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.day-tab {
  padding: 9px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  background: var(--color-card);
  color: var(--color-text);
}
.day-tab .day-num { color: var(--color-muted); font-size: 0.8rem; }
.day-tab:hover { border-color: var(--color-primary); }
.day-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.day-tab.active .day-num { color: rgba(255, 255, 255, 0.75); }
.day-tab[data-empty="true"] { opacity: 0.55; }

/* Motif commun "sur cette page" réutilisé par les applis : hors-ligne du tri */
.app-intro {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 0 8px;
}

/* Groupes de séances par salle */
.seance-group {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}
.seance-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #eceae4;
  border-bottom: 1px solid var(--color-border);
}
.seance-group-header h3 { margin: 0; font-size: 1.05rem; }
.seance-group-header .sub { font-size: 0.8rem; color: var(--color-muted); }

.seance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
}
.seance-row:last-child { border-bottom: none; }
.seance-row:hover { background: #faf9f6; }
.seance-title { font-weight: 600; }
.seance-title a { color: var(--color-text); }
.seance-title a:hover { color: var(--color-primary); text-decoration: underline; }
.seance-sub { font-size: 0.8rem; color: var(--color-muted); margin-top: 2px; }

.time-pill {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.time-pill.special { background: var(--color-accent); color: #fff; }
.time-pill.space-between { margin-left: 6px; }

.seance-note { font-size: 0.8rem; color: var(--color-muted); margin-top: 3px; }

/* Fiches films */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.film-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.film-card .badge-nouveau { margin-left: 6px; vertical-align: middle; }
.film-card h3 { margin: 0 0 4px; font-size: 1.12rem; }
.film-card .film-meta { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 10px; }
.film-card .tags { margin-bottom: 10px; max-width: none; }
.film-card p { font-size: 0.88rem; margin: 0 0 12px; flex-grow: 1; }
.film-seances { font-size: 0.85rem; }
.film-seances .salle-ligne {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px dashed var(--color-border);
}
.film-seances .salle-ligne:first-of-type { border-top: none; }
.film-seances .salle-ligne strong { font-weight: 600; font-size: 0.87rem; }

/* État vide / chargement des applis */
.state-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--color-muted);
  font-size: 0.95rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

/* Bandeau "dernière mise à jour" des applis */
.fresh-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fresh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e8b57;
  display: inline-block;
}
.fresh-dot.stale { background: #c0392b; }

/* Grille de tags générique (quartiers, communes) refonte des insurer-tags */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
