/*
Theme Name: Fitness Genève (thème enfant de Beaver Builder)
Description: Thème enfant de fitnessgeneve.ch : le CSS du site statique d'origine (repris tel quel, couleurs liées à la palette de Beaver) et la couche qui l'applique aux rangées et modules de Beaver Builder.
Template: bb-theme
Version: 1.0
Text Domain: fitnessgeneve
*/

/* ===========================================================================================================
   COUCHE WORDPRESS / BEAVER BUILDER, 1re partie : réglages généraux, placés AVANT le CSS d'origine (à égalité de
   spécificité, c'est le CSS d'origine qui l'emporte : .teaser-jalon p, .debat-vue p… gardent leurs marges).
   =========================================================================================================== */
/* Le thème de Beaver ramène la racine à 10 px : tous les « rem » du site (titres, listes, boutons) rétrécissaient. */
html { font-size: 100%; }
body, .fl-page { font-size: 16px; }
/* Textes (modules Texte) : paragraphes et listes comme dans le navigateur, sans marge au premier et au dernier élément. */
.fl-rich-text p { margin: 0 0 1em; }
.fl-rich-text ul, .fl-rich-text ol { margin: 1em 0; }
.fl-rich-text > :first-child { margin-top: 0; }
.fl-rich-text > :last-child { margin-bottom: 0; }
/* Titres écrits dans un texte (h4 des débats…) : gras comme dans le navigateur ; le thème de Beaver les met en graisse normale. */
.fl-rich-text h1, .fl-rich-text h2, .fl-rich-text h3, .fl-rich-text h4, .fl-rich-text h5, .fl-rich-text h6 { font-weight: 700; font-family: inherit; color: inherit; line-height: inherit; }

:root {
  --color-bg: var(--fl-global-fond, #f5f7f7);
  --color-text: var(--fl-global-texte, #1c2422);
  --color-primary: var(--fl-global-vert, #0f3d3e);
  --color-primary-dark: var(--fl-global-vert-fonce, #0a2b2c);
  --color-accent: var(--fl-global-accent, #ff5d3a);
  --color-card: var(--fl-global-carte, #ffffff);
  --color-border: var(--fl-global-bordure, #e1e7e6);
  --color-muted: var(--fl-global-muet, #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);
}

.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: #e2491f; color: #fff; }

.site-header nav .cta {
  padding: 8px 16px;
}
.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('/assets/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('/assets/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('/assets/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('/assets/img/hero-boutiques.jpg');
}

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

/* Page élastiques (19.10.2026) : photo achetée sur Depositphotos, recadrée en
   1920x640. Photo claire (fond bleu ciel, bande jaune) : pas de voile sombre,
   le texte passe en vert foncé, lisible sur le bleu comme sur le jaune. */
.hero-photo.hero-elastiques {
  background-color: #a9e0ea;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)), url('/assets/img/hero-elastiques.jpg');
  background-position: center 72%;
}
.hero-photo.hero-elastiques h1,
.hero-photo.hero-elastiques p {
  color: var(--color-primary);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}
.hero-photo.hero-elastiques p { opacity: 1; font-weight: 500; }

/* Introduction avec une illustration à droite ; une seule colonne sur téléphone. */
.intro-illustre {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.intro-illustre figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
}
.intro-illustre img { display: block; width: 100%; height: auto; border-radius: 6px; }
.intro-illustre figcaption {
  padding-top: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}
@media (max-width: 720px) {
  .intro-illustre { grid-template-columns: 1fr; gap: 20px; }
}

/* En attendant une photo dédiée (visuels de marque), on réutilise le même
   visuel que la page boutiques : remplacer l'URL par hero-vetements.jpg
   quand des photos de vêtements sont disponibles. */
.hero-photo.hero-vetements {
  background-image: linear-gradient(135deg, rgba(15, 61, 62, 0.62), rgba(22, 97, 95, 0.55)), url('/assets/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;
}

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: #eef3f2;
  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: #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;
}

/* 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: #e2491f; 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: #eef3f2;
  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: #f4f8f7; }
details.plus .plus-corps {
  padding: 0 18px 16px;
  font-size: 0.92rem;
}
details.plus .plus-corps > *:first-child { margin-top: 0; }

/* 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; }

.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: #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;
}

/* 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);
}

/* Options du système expert sans recommandation possible : jamais cliquables. */
.filter-tab.option-disabled,
.filter-tab.option-disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--color-border);
}

/* Alternatives en dessous des recommandations (mode critères des salles). */
.alternatives {
  margin-top: 22px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}
.alternatives .meta { margin-bottom: 8px; }
.alternatives-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alternatives-list li {
  font-size: 0.88rem;
  padding: 5px 0;
  border-bottom: 1px dashed var(--color-border);
}
.alternatives-list li:last-child { border-bottom: none; }

/* Bandeau des trois tests (accueil) : premier à gauche, deuxième centré,
   troisième à droite. */
.quiz-ctas {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
}
.quiz-ctas .cta { justify-self: center; }
.quiz-ctas .cta:first-child { justify-self: start; }
.quiz-ctas .cta:last-child { justify-self: end; }

.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); }

.footer-address {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #a0aba6;
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .quiz-ctas { grid-template-columns: 1fr; }

  .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; }
}

.salle-actu { margin-top: 6px; font-size: 0.82rem; color: #6b4f00; background: #f1ecdc; border-radius: 6px; padding: 4px 8px; }
.actu-box { background: #f1ecdc; border: 1px solid #e3d9b0; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; color: #4a3800; }
.actu-box .actu-date { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: #6b4f00; }
.actu-box h2, .actu-box h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.actu-box p { margin: 0 0 8px; font-size: 0.93rem; }
.actu-box p:last-child { margin-bottom: 0; }

/* ===== Page « exercices par muscle » (22.10.2026) ===== */
[hidden] { display: none !important; }

.hero-exercices {
  background: linear-gradient(135deg, #dff0f6 0%, #eaf6f8 45%, #fdf3df 100%);
  color: var(--color-primary);
  padding: 64px 0;
  text-align: center;
}
.hero-exercices h1 { font-size: 2rem; margin: 0 0 12px; }
.hero-exercices p { font-size: 1.1rem; max-width: 680px; margin: 0 auto; }

.selecteur {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 28px 0 8px;
  box-shadow: 0 2px 10px rgba(15, 61, 62, 0.07);
}
.selecteur h2 { margin: 0 0 4px; font-size: 1.15rem; }
.selecteur p { margin: 0 0 10px; font-size: 0.92rem; color: var(--color-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip {
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
}
.chip:hover { border-color: var(--color-primary); }
.chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.chip:focus-visible, .lien-bouton:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.selecteur-resultat { margin: 6px 0 0 !important; }
.lien-bouton { font: inherit; background: none; border: 0; color: var(--color-primary); text-decoration: underline; cursor: pointer; padding: 0 0 0 8px; }

.groupe { margin-top: 44px; }
.groupe h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.retour-selecteur { font-size: 0.85rem; font-weight: 400; }
.exos { display: grid; gap: 22px; margin-top: 18px; }
.exo {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.exo h3 { margin: 0 0 8px; font-size: 1.25rem; }
.exo-meta { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.exo-meta .tag { font-size: 0.78rem; }
.tag-position { background: var(--color-primary); color: #fff; }
.tag-niveau { background: #fff3d6; color: #7a5a00; }
.exo-muscles { margin: 0 0 12px; color: var(--color-muted); font-size: 0.92rem; }
.exo-etapes { margin: 12px 0; padding-left: 22px; }
.exo-etapes li { margin: 6px 0; }
.exo-point { margin: 8px 0; }
.exo-note { margin: 10px 0 0; padding: 10px 12px; background: #f3f8f8; border-left: 3px solid var(--color-primary); border-radius: 4px; font-size: 0.92rem; }
.exo-sources { font-size: 0.82rem; color: var(--color-muted); }
p.exo-sources { margin: 10px 0 0; }
.exo-sources a { font-weight: 600; }
.vide { margin-top: 14px; padding: 14px; background: #fff3d6; border-radius: var(--radius); }

.bd { display: grid; gap: 10px; margin: 10px 0 6px; }
.bd-1 { grid-template-columns: minmax(0, 460px); }
.bd-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.bd-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
.bd-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bd figure { margin: 0; position: relative; }
.bd img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--color-border); }
.bd-num {
  position: absolute; top: 8px; left: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bd-legendes { margin: 4px 0 10px; padding-left: 22px; font-size: 0.9rem; color: var(--color-muted); }
.bd-legendes li { margin: 3px 0; }

.source-num { padding-left: 28px; }
.source-num li::marker { font-weight: 700; color: var(--color-primary); }
.source-num li:target { background: #fff3d6; }

@media (max-width: 720px) {
  .hero-exercices h1 { font-size: 1.6rem; }
    .exo { padding: 16px 16px; }
  .bd-3, .bd-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Fiches repliables : titre et cartouches sur une ligne, le détail s'ouvre au clic (22.10.2026) */
.exo { padding: 0; }
.exo summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 14px 44px 14px 20px; cursor: pointer; list-style: none; position: relative;
}
.exo summary::-webkit-details-marker { display: none; }
.exo summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.exo[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.exo summary:hover h3 { text-decoration: underline; }
.exo summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; border-radius: var(--radius); }
.exo summary h3 { margin: 0; font-size: 1.1rem; }
.exo summary .exo-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.exo-corps { padding: 4px 22px 18px; border-top: 1px solid var(--color-border); }
.exos { gap: 10px; }
@media (max-width: 720px) {
  .exo summary { padding: 12px 40px 12px 14px; }
  .exo-corps { padding: 4px 14px 16px; }
}

/* Pages par muscle : accueil en cartes, fil d'Ariane, liens vers les autres muscles (22.10.2026) */
.fil { margin: 22px 0 0; font-size: 0.9rem; }
.cartes-groupes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.carte-groupe {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 14px 16px 16px; color: inherit; text-decoration: none;
}
a.carte-groupe:hover { border-color: var(--color-primary); box-shadow: 0 2px 10px rgba(15, 61, 62, 0.1); color: inherit; }
.carte-groupe img { display: block; width: 100%; height: 130px; object-fit: contain; background: #eaf6f8; border-radius: 8px; padding: 10px; }
.carte-groupe h3 { margin: 6px 0 0; font-size: 1.15rem; }
.carte-teaser { margin: 0; font-size: 0.9rem; color: var(--color-muted); flex-grow: 1; }
.carte-nombre { margin: 4px 0 0; font-weight: 600; color: var(--color-primary); }
.carte-nombre .n { font-size: 1.15rem; }
.carte-avenir { opacity: 0.6; }
.carte-avenir img { filter: grayscale(1); }
.carte-vide { opacity: 0.55; }
.liens-groupes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.liens-groupes .bientot { color: var(--color-muted); }

/* Bande d'aquarelles Jean et Ève en introduction d'une page de muscle */
.intro-bd { margin: 18px 0 4px; }
.intro-bd .bd { gap: 12px; }
.intro-bd .bd-4 { max-width: 920px; }


/* ===========================================================================================================
   COUCHE WORDPRESS / BEAVER BUILDER (26.11.2026)
   Le CSS ci-dessus est celui du site statique, inchangé : ses classes (.hero, .pillar-card, .cta-block…) sont portées par
   les rangées, colonnes et modules de Beaver (champ « Classe ») ou par le HTML des textes. Cette couche ne fait que
   neutraliser le thème parent et recoller les wrappers de Beaver au gabarit d'origine.
   =========================================================================================================== */

body, .fl-page { background: var(--color-bg); color: var(--color-text); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.55; }
.fl-page-content { background: transparent; }
body a { color: var(--color-primary); text-decoration: none; }
body a:hover { color: var(--color-primary-dark); }
.fl-builder-content a.cta, .fl-builder-content .cta-block a.cta { color: #fff; }

/* Rangées à largeur fixe : 1100 px de contenu comme le .container d'origine (1140 moins 2 × 20 px de retrait),
   avec un retrait de 20 px sur les petits écrans. Pas de retrait propre à Beaver. */
.fl-row-fixed-width { margin-left: auto; margin-right: auto; }
@media (max-width: 1140px) {
  .fl-builder-content > .fl-row-fixed-width { margin-left: 20px; margin-right: 20px; }
}
.fl-row-content-wrap { padding: 0; }
.fl-module-content, .fl-module-heading .fl-heading { margin-left: 0; margin-right: 0; }

/* Espaces verticaux de <main> et <section> : 48 px sous le bandeau, 56 px entre sections, 48 px + 56 px en bas.
   (La marge d'une rangée de Beaver passe DANS la rangée : elle ferait grandir les encadrés ; on la pose sur la rangée entière.) */
/* Sous le bandeau : 56 px (la marge basse de la section du bandeau d'origine, plus grande que tous les haut de page qui s'y fondaient). */
.fl-builder-content > .fl-row.hero + .fl-row { margin-top: 56px; }
/* Marges à spécificité NULLE (:where) : une section qui a sa propre marge dans le CSS d'origine (.actu-box : 28 px, .histoire-teaser : 36 px) la garde. */
:where(.fl-builder-content > .fl-row-fixed-width) { margin-bottom: 56px; }
.fl-builder-content > .fl-row.fg-isole { margin-bottom: 0; }   /* bloc isolé de <main> (boutons de l'accueil) : pas de marge de section */

/* Titres (modules Titre) : mêmes tailles et même graisse que les <h1>…<h6> d'origine. */
.fl-module-heading .fl-heading, .fl-module-heading .fl-heading-text { color: inherit !important; font-family: inherit !important; letter-spacing: normal; text-transform: none; line-height: 1.55; }
.fl-page .fl-module-heading .fl-heading { font-weight: 700; }
/* Beaver impose « margin: 0 !important » aux titres (cache/…-layout.css) : les marges d'origine reviennent avec !important. */
.fl-page .fl-module-heading h1.fl-heading { font-size: 2em; margin: 0 0 12px !important; }
.fl-page .fl-module-heading h2.fl-heading { font-size: 1.5rem; margin: 0 0 18px !important; }
.fl-page .fl-module-heading h3.fl-heading { font-size: 1.17em; margin: 1em 0 !important; }
.fl-page .fl-module-heading h4.fl-heading { font-size: 1em; margin: 1.33em 0 !important; }
.fl-page .fl-col-content > .fl-module:first-child h3.fl-heading { margin-top: 0 !important; }

.fl-col-content > .fl-module + .fl-module { margin-top: 16px; }
.fl-col-content > .fl-module-heading + .fl-module { margin-top: 0; }
.fl-col-content > .fl-module + .fl-module-heading { margin-top: 0; }   /* le titre porte sa propre marge haute (1 em) : pas de 16 px en plus */
.fl-row.hero .fl-col-content > .fl-module-heading + .fl-module { margin-top: 0; }

/* Bandeaux (hero) : la rangée porte le dégradé et le centrage ; son contenu reste dans les 1100 px. */
.fl-row.hero { color: #fff; text-align: center; }
.fl-row.hero .fl-rich-text p { max-width: 680px; margin: 0 auto; }
.fl-row.hero .fl-rich-text .disclaimer { margin-top: 14px; }

/* Sections encadrées dont la classe est portée par la rangée : l'ancien CSS les stylait comme des blocs de <main>. */
.fl-row.cta-block, .fl-row.actu-box, .fl-row.histoire-teaser { display: block; }
.fl-row.cta-block .fl-rich-text .cta { margin-top: 14px; }
.fl-row.cta-block .cta-group .cta { margin-top: 0; }
.fl-row.intro-illustre { display: block; }

/* Grilles de cartes : colonnes de Beaver, gouttière de 18 px (9 px de chaque côté), carte = contenu de la colonne. */
.fg-grille .fl-col-group { margin: 0 -9px; display: flex; flex-wrap: wrap; }
/* Gouttière verticale : les cartes ont 9 px de marge haute et basse, rognés au début et à la fin de la grille (les 18 px d'origine ne sont qu'ENTRE les lignes). */
.fg-grille .fl-col-group:not(:has(.fg-carte)) + .fl-col-group:has(.fg-carte) { margin-top: -9px; }
.fg-grille .fl-col-group:has(.fg-carte):last-child { margin-bottom: -9px; }
.fl-col.fg-carte { padding: 9px; background: none; border: 0; border-radius: 0; display: flex; }
.fl-col.fg-carte > .fl-col-content { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px; flex: 1 1 auto; display: flex; flex-direction: column; }
.fl-col.route-card > .fl-col-content { padding: 16px; }
.fl-page .fl-col.fg-carte .fl-module-heading h3.fl-heading { margin: 0 0 8px !important; font-size: 1.15rem; }
.fl-page .fl-col.route-card .fl-module-heading h3.fl-heading { font-size: 1rem; margin: 0 0 6px !important; }
.fl-col.pillar-card .fl-rich-text { flex-grow: 1; }
.fl-col.pillar-card .fl-rich-text p { font-size: 0.92rem; color: var(--color-muted); margin: 1em 0; }   /* marges par défaut du <p> d'origine */
.fl-col.pillar-card .fl-col-content > .fl-module:nth-child(2) { flex-grow: 1; }
.fl-col.pillar-card .fl-col-content > .fl-module:last-child { margin-top: auto; }
.fl-col.pillar-card .pillar-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.fl-col.fg-carte .fl-col-content > .fl-module + .fl-module { margin-top: 0; }
.fl-col.route-card .fl-rich-text > p:last-child { margin-bottom: 10px; }   /* .route-card p : margin: 0 0 10px */

/* Débat : deux positions côte à côte (cartes). */
.fl-col.debat-vue > .fl-col-content { padding: 16px 18px; }
.fl-col.debat-vue.fg-carte { padding: 0 8px; }
.fl-col-group:has(.debat-vue) { margin: 0 -8px 18px; }   /* .debat : margin: 18px 0 ; gap: 16px (la marge haute se fondait avec celle du titre) */
.fl-col.debat-vue.dominant > .fl-col-content { border-left: 4px solid var(--color-primary); }
.fl-col.debat-vue.objection > .fl-col-content { border-left: 4px solid var(--color-accent); }
.fl-col.debat-vue { background: none; border: 0; }

/* Chronologie (histoire) : l'année à gauche, le texte à droite, filet entre deux étapes. */
.fg-timeline .fl-col-group:has(.timeline-year-col) { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--color-border); }
.fg-timeline .fl-col-group:has(.timeline-year-col):last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.fl-rich-text img.timeline-photo { max-width: 480px; }   /* Beaver impose max-width: 100% aux images des textes */
.fg-timeline .fl-col.timeline-content { background: none; border: 0; }
@media (min-width: 769px) { .fg-timeline .fl-col.timeline-content { padding-left: 28px; } }
.fg-timeline .fl-col-group:not(:has(.timeline-year-col)) + .fl-col-group:has(.timeline-year-col) { margin-top: 36px; }   /* .timeline { margin: 36px 0 } */
@media (max-width: 768px) { .fg-timeline .fl-col.timeline-year-col { margin-bottom: 6px; } }
.fl-page .fl-col.timeline-content .fl-module-heading h3.fl-heading { margin: 0 0 8px !important; }

/* Extrait d'histoire de l'accueil : trois jalons côte à côte, sur le fond vert. */
.fl-col.teaser-jalon { padding: 0 13px; }   /* trois jalons séparés de 26 px, comme la grille d'origine */

/* En-tête et pied du site (gabarits Themer) */
header.fl-builder-content[data-type="header"] { position: sticky; top: 0; z-index: 10; }
.fl-row.site-header { border-bottom: 1px solid var(--color-border); background: var(--color-card); }
.site-header .fl-row-content-wrap { padding: 14px 0; }
.site-header .fl-col-group { display: flex; align-items: center; flex-wrap: wrap; }
.site-header .logo { font-size: 1.3rem; font-weight: 700; color: var(--color-text); }
.site-header .fl-module-menu, .site-header .fl-menu { width: 100%; }
.site-header .fl-menu .menu { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-header .fl-menu .menu > li > a { padding: 0; color: var(--color-text); font-size: 1rem; background: none; border-bottom: 2px solid transparent; }
.site-header .fl-menu .menu > li.current-menu-item > a { color: var(--color-primary-dark); font-weight: 600; border-bottom-color: var(--color-accent); }
.site-header .fl-menu .menu > li.cta { background: none; padding: 0; }
.site-header .fl-menu .menu > li.cta > a { background: var(--color-accent); color: #fff; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border-bottom: 0; }
.site-header .fl-menu .menu > li.cta > a:hover { background: #e2491f; color: #fff; }
.site-header .fl-menu-mobile-toggle { color: var(--color-text); }
.fl-row.site-footer .fl-row-content-wrap { padding: 0; }
.fl-row.site-footer .fl-col-group::before, .fl-row.site-footer .fl-col-group::after { display: none; }   /* le clearfix de Beaver compterait comme un élément du flex (+ 24 px d'écart) */
.fl-row.site-footer .fl-col-group { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.fl-row.site-footer .fl-col { width: auto; flex: 0 1 auto; }
.fl-row.site-footer .fl-col:last-child { flex: 1; min-width: 260px; }

@media (max-width: 720px) {
  .fl-row.hero .fl-rich-text p { max-width: none; }
}

/* Titres d'origine à marges propres (Beaver impose « margin: 0 !important » aux titres : on le bat à spécificité plus haute). */
.fl-page .fl-row.histoire-teaser .fl-module-heading h2.fl-heading { margin: 0 0 6px !important; color: #fff !important; font-size: 1.4rem; }
.fl-page .fl-row.actu-box .fl-module-heading h2.fl-heading, .fl-page .fl-row.actu-box .fl-module-heading h3.fl-heading { margin: 4px 0 8px !important; font-size: 1.1rem; }
.fl-page .fl-row.cta-block .fl-module-heading h2.fl-heading { margin: 20px 0 18px !important; }   /* h2 d'origine : 0,83 em de marge haute, qui ne se fond plus sous un retrait de 32 px */
.fl-page .fl-row.histoire-teaser .fl-rich-text .teaser-intro { margin: 0 0 24px; }
.fl-row.histoire-teaser .fl-col-group:nth-child(2) { margin: 0 -13px 26px; }   /* les trois jalons : l'introduction porte déjà les 24 px de dessous, 26 px avant le lien */

/* Encadré d'actualité : les modules se touchent comme les éléments de l'encadré d'origine. */
.fl-row.actu-box .fl-col-content > .fl-module + .fl-module { margin-top: 0; }
.fl-row.actu-box .fl-rich-text .actu-date { margin: 0; }

/* Pied : les marges haute et basse du premier et du dernier paragraphe existaient dans le bloc d'origine. */
.fl-page .fl-row.site-footer .fl-rich-text > p:first-child { margin-top: 1em; }
.fl-page .fl-row.site-footer .fl-rich-text > p:last-child { margin-bottom: 1em; }

/* Introduction illustrée : texte à gauche (60 %), figure à droite (40 %), écart de 32 px, centrés verticalement. */
.fl-row.intro-illustre .fl-col-group { display: flex; align-items: center; margin: 0 -16px; }
.fl-col.intro-texte { padding: 0 16px; }
.fl-col.intro-figure { padding: 0 16px; }
@media (max-width: 720px) { .fl-col.intro-texte, .fl-col.intro-figure { padding-bottom: 10px; } }

/* Petits écrans : le contenu des rangées pleines (bandeaux, en-tête, pied) garde le retrait de 20 px du .container d'origine. */
@media (max-width: 1140px) {
  .fl-row-full-width .fl-row-content.fl-row-fixed-width { padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
}
@media (max-width: 720px) {
  .fl-page .fl-row.hero .fl-module-heading h1.fl-heading { font-size: 1.5rem; }   /* .hero h1 d'origine, battu par la règle des titres */
}
@media (max-width: 768px) {
  .fl-col.teaser-jalon { margin-bottom: 20px; }
  .fl-col.teaser-jalon:last-child { margin-bottom: 0; }
}
/* Bouton du menu sur téléphone : le ☰ encadré du site d'origine. */
.site-header .fl-menu-mobile-toggle { border: 1px solid var(--color-border) !important; border-radius: var(--radius) !important; padding: 7px 11px !important; background: none; line-height: 1; }
.site-header .fl-menu-mobile-toggle .fl-menu-icon svg { width: 1.2rem; height: 1.2rem; }
