/* ═══════════════════════════════════════════════════════════
   moncentredeloisirs.com — Composants UI (refonte identite D1)
   Charge apres tokens.css + base.css.
   Cible : superieur a encolonie.fr — chaleureux, premium, elite.
   Sara Fontaine (DS/UI) + Julie Vasseur (UX) + Clara Music (conversion)
   + Lukas Brennan (front) — 2026-05-22.
   ═══════════════════════════════════════════════════════════ */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--motion-fast) var(--ease-spring),
              box-shadow var(--motion-base) var(--ease-out),
              background var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
  background: var(--primary-500);
  color: #fff;
  box-shadow: var(--shadow-primary-sm);
}
.btn-primary:hover { background: var(--primary-600); color: #fff; box-shadow: var(--shadow-primary); }

.btn-accent {
  background: var(--accent-500);
  color: var(--night-900);
  box-shadow: 0 8px 22px rgba(255, 194, 59, 0.32);
}
.btn-accent:hover { background: var(--accent-600); color: var(--night-900); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-strong);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-200); }

.btn-soft {
  background: var(--primary-50);
  color: var(--primary-700);
}
.btn-soft:hover { background: var(--primary-100); color: var(--primary-800); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--fs-md); }
.btn-block { width: 100%; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--motion-base) var(--ease-out),
              transform var(--motion-base) var(--ease-out),
              border-color var(--motion-base) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-subtle); }

.card-media { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--bg-muted); }
.card-body { padding: var(--space-5); }
.card-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--space-2); color: var(--text-strong); line-height: var(--lh-snug); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary-700); }
.card-meta { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border-subtle); }

/* ── Card centre (annuaire) ───────────────────────────────── */
.centre-card { position: relative; display: flex; flex-direction: column; }
.centre-card .card-body { flex: 1; }
.centre-card .badge-top {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  background: var(--night-900); color: #fff;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}
.centre-card .badge-top.is-partner { background: var(--primary-500); }
.centre-card .badge-top.is-rating { background: #fff; color: var(--night-900); }
.centre-card .price-chip {
  display: inline-flex; align-items: baseline; gap: 2px;
  background: var(--green-50); color: var(--green-700);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-weight: var(--fw-bold); font-size: var(--fs-sm);
}
.centre-card .rating { color: var(--primary-600); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }

/* ── Illustration de carte (centres sans photo) — repond au gap G1 ──
   On remplace le placeholder vert "base de donnees nue" par une scene
   illustree maison (motif vagues + maison-accueil) coloree par theme.
   Pas de fausse photo, mais un visuel vivant et de marque. */
.card-illus {
  position: relative;
  aspect-ratio: 16 / 10; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-300) 100%);
}
.card-illus svg { width: 100%; height: 100%; display: block; }
.card-illus .illus-init {
  position: absolute; right: 12px; bottom: 8px;
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: var(--fs-3xl); color: rgba(255, 255, 255, 0.55);
  line-height: 1; letter-spacing: -0.02em;
}
/* variantes de teinte par type d'accueil (rythme visuel sans saturer) */
.card-illus.t-sport     { background: linear-gradient(135deg, #FDE2C2 0%, #F7A833 100%); }
.card-illus.t-arts      { background: linear-gradient(135deg, #FFE5D9 0%, #FF8A5B 100%); }
.card-illus.t-nature    { background: linear-gradient(135deg, #C9EEE3 0%, #2DB39A 100%); }
.card-illus.t-numerique { background: linear-gradient(135deg, #CFE6F2 0%, #2D8FB3 100%); }
.card-illus.t-eveil     { background: linear-gradient(135deg, #FFE9C0 0%, #FFC23B 100%); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 7vw, var(--space-24)) clamp(var(--space-12), 5vw, var(--space-20));
  background:
    radial-gradient(60% 80% at 85% -10%, rgba(255, 194, 59, 0.28) 0%, rgba(255, 194, 59, 0) 60%),
    radial-gradient(50% 70% at 0% 110%, rgba(45, 179, 154, 0.16) 0%, rgba(45, 179, 154, 0) 55%),
    linear-gradient(180deg, var(--primary-50) 0%, var(--bg-page) 78%);
  overflow: hidden;
}
/* nuages/collines decoratives douces */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px;
  background: var(--bg-page);
  -webkit-mask: radial-gradient(28px 28px at 28px 0, transparent 98%, #000) repeat-x;
          mask: radial-gradient(28px 28px at 28px 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 56px 56px; mask-size: 56px 56px;
  opacity: 0.0; /* discret : desactive par defaut, garde le hook */
}
.hero .container { position: relative; z-index: 1; }
.hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255,255,255,0.7); border: 1px solid var(--primary-200);
  color: var(--primary-800);
  padding: var(--space-1) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  margin: 0 auto var(--space-5); width: fit-content;
  box-shadow: var(--shadow-xs);
}
.hero h1 { max-width: 18ch; margin-inline: auto; text-align: center; }
.hero h1 .hl { color: var(--primary-600); position: relative; white-space: nowrap; }
/* trait manuscrit sous le mot-cle (facon encolonie, mais ambre) */
.hero h1 .hl::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -0.06em; height: 0.16em;
  background: var(--accent-500); border-radius: var(--radius-full);
  transform: rotate(-0.6deg); opacity: 0.85; z-index: -1;
}
.hero .hero-lead { max-width: 56ch; margin: var(--space-5) auto var(--space-8); text-align: center; color: var(--text-body); font-size: var(--fs-md); }

/* trust badges sous la barre de recherche (gap G5) */
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
}
.hero-trust .tb { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-body); font-weight: var(--fw-medium); }
.hero-trust .tb svg { color: var(--green-600); flex-shrink: 0; }

/* ── Search bar (recherche home) ──────────────────────────── */
.search-tabs { display: inline-flex; gap: var(--space-1); padding: var(--space-1); background: rgba(255,255,255,0.7); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); margin: 0 auto var(--space-5); box-shadow: var(--shadow-xs); }
.search-tabs .seg {
  padding: var(--space-2) var(--space-5); border-radius: var(--radius-full);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted);
  transition: background var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}
.search-tabs .seg[aria-selected="true"] { background: var(--primary-500); color: #fff; box-shadow: var(--shadow-primary-sm); }
.search-tabs .seg:not([aria-selected="true"]):hover { color: var(--text-strong); }

.search-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: var(--space-2);
  background: var(--bg-card);
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin-inline: auto;
  align-items: stretch;
}
.search-field { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-lg); justify-content: center; transition: background var(--motion-fast) var(--ease-out); }
.search-field:hover, .search-field:focus-within { background: var(--primary-50); }
.search-field label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.search-field input,
.search-field select {
  border: none; outline: none; background: transparent;
  padding: 0; font-size: var(--fs-base); color: var(--text-strong); width: 100%;
  font-weight: var(--fw-medium);
}
.search-field input::placeholder { color: var(--neutral-400); font-weight: var(--fw-regular); }
.search-bar .btn { align-self: stretch; }

@media (max-width: 768px) {
  .search-bar { grid-template-columns: 1fr; gap: var(--space-1); padding: var(--space-2); }
  .search-field { padding: var(--space-3) var(--space-4); }
  .search-bar .btn { width: 100%; margin-top: var(--space-1); }
}

/* ── Grid ─────────────────────────────────────────────────── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--space-6);
}

/* ── Comparateur (refonte Julie Vasseur + Lukas Brennan, 2026-05-23) ─
   Tableau semantique : N colonnes EXACTES pour N centres (1..4), plus
   eventuellement 1 slot "Ajouter un centre" tant que N < 4.
   Hierarchie : photo + titre + sous-titre + actions en thead, sections
   regroupees + lignes alternees + indicateurs visuels (pastilles) en tbody. */
.compare-head h1 { margin-bottom: var(--space-2); }
.compare-head p { margin-bottom: 0; }

.compare-empty { padding: var(--space-8); text-align: center; }
.compare-empty h3 { margin-bottom: var(--space-2); }

.compare-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
/* Scroll horizontal en mobile si necessaire, propre en desktop */
.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--bg-card);
  font-size: var(--fs-base);
  /* --cmp-cols injecte en inline (N centres + slot eventuel) */
}
/* Premiere colonne (labels d'attributs) : largeur stable */
.compare-table col.cmp-col-label,
.compare-table .cmp-col-label {
  width: 220px;
  min-width: 220px;
}
.compare-table .cmp-col-centre,
.compare-table .cmp-col-add {
  /* width calc : reste de l'espace divise equitablement entre les cellules centres + slot ajout */
  width: calc((100% - 220px) / var(--cmp-cols, 4));
  min-width: 220px;
}

/* ── thead : carte centre ─────────────────────────────────── */
.compare-table thead th {
  vertical-align: top;
  padding: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}
.compare-table thead .cmp-col-label {
  background: var(--bg-muted);
  border-right: 1px solid var(--border-subtle);
}
.cmp-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-5);
  height: 100%;
}
.cmp-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 30% 30%, hsl(var(--hue, 30), 90%, 70%) 0%, var(--primary-500) 40%, var(--night-900) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.cmp-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28,42,57,0.30) 100%);
}
.cmp-thumb-letter {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(28,42,57,0.45);
}
/* Cascade photos comparateur (spec SPEC_PHOTOS section 3) - 2026-05-23.
   Rendu image reelle / activite / thematique / generique D1 a la place
   du placeholder gradient cmp-thumb. Coherent ratio 16:9 + object-fit
   cover avec hero blog et cards /recherche. */
.cmp-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  background: var(--bg-muted);
}
.cmp-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cmp-badge-illus {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 248, 242, 0.94);
  color: var(--night-700);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  z-index: 2;
}
.cmp-card-body { display: flex; flex-direction: column; gap: var(--space-2); }
.cmp-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--text-strong);
  text-decoration: none;
}
.cmp-card-title:hover { color: var(--primary-700); }
.cmp-card-sub {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.cmp-card-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}
.cmp-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; gap: var(--space-1);
}
.cmp-remove:hover { color: var(--danger); background: rgba(220, 74, 61, 0.08); }
.cmp-remove span[aria-hidden="true"] { font-size: 1.2em; line-height: 1; }

/* Slot "Ajouter un centre" */
.cmp-col-add { background: var(--bg-muted); }
.cmp-add {
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-muted);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  margin: var(--space-4);
  padding: var(--space-6) var(--space-4);
  min-height: 200px;
  transition: border-color var(--motion-base) var(--ease-out),
              color var(--motion-base) var(--ease-out),
              background var(--motion-base) var(--ease-out);
}
.cmp-add:hover { border-color: var(--primary-400); color: var(--primary-700); background: var(--primary-50); }
.cmp-add-plus {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--primary-700);
}
.cmp-add:hover .cmp-add-plus { background: var(--primary-500); color: #fff; border-color: var(--primary-500); }
.cmp-add-label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center; }

/* ── tbody : sections + lignes ────────────────────────────── */
.cmp-section-row .cmp-section-title {
  text-align: left;
  background: var(--night-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--night-700);
}
.compare-table tbody th.cmp-row-label {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-muted);
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.compare-table tbody .cmp-cell {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-body);
}
.compare-table tbody .cmp-cell:last-child { border-right: none; }
.compare-table tbody tr:nth-child(odd) .cmp-cell,
.compare-table tbody tr:nth-child(odd) th.cmp-row-label { background: var(--neutral-50); }
.compare-table tbody tr:hover .cmp-cell:not(.cmp-cell--placeholder),
.compare-table tbody tr:hover th.cmp-row-label { background: var(--primary-50); }
.cmp-cell--placeholder { background: var(--bg-muted) !important; }

/* Pastilles Oui/Non + valeurs */
.cmp-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full, 999px);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}
.cmp-badge--ok { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.cmp-badge--no { background: var(--neutral-100); color: var(--neutral-600); border: 1px solid var(--neutral-200); }
.cmp-badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}
.cmp-badge--ok .cmp-badge-icon { background: var(--green-500); color: #fff; }
.cmp-badge--no .cmp-badge-icon { background: var(--neutral-400); color: #fff; }

.cmp-muted { color: var(--text-muted); font-style: italic; font-size: var(--fs-sm); }

/* Footer actions globales */
.compare-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-muted);
  border-top: 1px solid var(--border-subtle);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 899px) {
  /* Mobile : scroll horizontal natif du tableau, on prefere la lisibilite
     a l'empilement (les comparaisons cote-a-cote ne se traduisent pas en cards). */
  .compare-table {
    min-width: calc(220px + var(--cmp-cols, 2) * 220px);
  }
  .compare-table .cmp-col-label { width: 160px; min-width: 160px; }
  .compare-table .cmp-col-centre,
  .compare-table .cmp-col-add { min-width: 220px; }
  .cmp-card { padding: var(--space-3); }
  .compare-table tbody th.cmp-row-label,
  .compare-table tbody .cmp-cell { padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); }
  .cmp-add { min-height: 160px; padding: var(--space-4); }
  .compare-footer { flex-direction: column; align-items: stretch; }
}

/* Impression : tableau plein, pas de scroll, pas d'actions */
@media print {
  .compare-footer, .cmp-remove, .cmp-col-add { display: none !important; }
  .compare-wrap { box-shadow: none; border: 1px solid #999; }
  .compare-table thead th { background: #fff !important; }
}

/* Bouton "Comparer" : etat ajoute */
.btn-compare.is-added,
[data-compare-add].is-added {
  background: var(--primary-600);
  color: #fff;
  border-color: var(--primary-600);
}

/* ── Barre flottante du comparateur (pattern macolonie) ───── */
.compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--bg-card, #fff);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.10);
  padding: var(--space-3) 0;
  animation: compareBarIn 0.22s ease;
}
.compare-bar[hidden] { display: none; }
@keyframes compareBarIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .compare-bar { animation: none; } }

.compare-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap;
}
.compare-bar-items {
  display: flex; align-items: center; gap: var(--space-2);
  flex-wrap: wrap; flex: 1 1 auto; min-width: 0;
}
.compare-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-muted); color: var(--text-strong);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-pill, 999px);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  cursor: pointer; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.compare-chip:hover { border-color: var(--primary-400); color: var(--primary-700); }
.compare-chip span { font-size: 1.05em; line-height: 1; }
.compare-bar-actions { display: flex; align-items: center; gap: var(--space-3); flex: 0 0 auto; }
.compare-bar-clear {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  text-decoration: underline; text-underline-offset: 2px; padding: var(--space-2);
}
.compare-bar-clear:hover { color: var(--text-strong); }
.compare-bar-flash {
  position: absolute; left: 0; right: 0; bottom: 100%;
  text-align: center; padding: var(--space-2) var(--space-4);
  background: var(--text-strong, #1a1a1a); color: #fff;
  font-size: var(--fs-sm); opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.compare-bar-flash.is-on { opacity: 0.96; }
/* Evite que la barre masque le bas de page */
body.has-compare-bar { padding-bottom: 86px; }

@media (max-width: 640px) {
  .compare-bar-inner { gap: var(--space-2); }
  .compare-bar-items { order: 2; width: 100%; }
  .compare-bar-actions { order: 1; width: 100%; justify-content: space-between; }
  .compare-chip { max-width: 130px; }
  body.has-compare-bar { padding-bottom: 132px; }
}

/* Carte activite (annuaire /activites) : la photo coiffe la carte */
.activite-card { padding: 0; }
.activite-card .card-media { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; display: block; }
.activite-card .card-illus { aspect-ratio: 16 / 10; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--primary-100); color: var(--primary-800);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.badge-accent { background: var(--accent-100); color: var(--accent-700); }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-neutral { background: var(--bg-muted); color: var(--text-muted); }

/* ── Tabs (contenu) ───────────────────────────────────────── */
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border-subtle); }
.tab {
  padding: var(--space-3) var(--space-5);
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  transition: all var(--motion-fast) var(--ease-out);
}
.tab[aria-selected="true"], .tab:hover { color: var(--primary-700); border-bottom-color: var(--primary-500); }

/* ── Section titles ───────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw + 0.6rem, var(--fs-2xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: var(--space-2);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.section-head .section-title { margin-bottom: 0; }
.section-link { color: var(--primary-700); font-weight: var(--fw-semibold); font-size: var(--fs-sm); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--primary-800); }
.section-link .arr { transition: transform var(--motion-fast) var(--ease-out); }
.section-link:hover .arr { transform: translateX(3px); }
.eyebrow { display: inline-block; font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-600); margin-bottom: var(--space-2); }

/* ── Section sombre (rupture de rythme — gap G6) ──────────── */
.section-dark {
  background:
    radial-gradient(50% 90% at 90% 0%, rgba(244,146,10,0.20) 0%, rgba(244,146,10,0) 60%),
    var(--night-900);
  color: var(--neutral-200);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-12), 5vw, var(--space-20));
}
.section-dark .section-title, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .text-muted { color: var(--neutral-400); }

/* ── Stats bar (accueil) ──────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8) var(--space-6);
  max-width: 920px;
  margin: calc(-1 * var(--space-12)) auto var(--space-4);
  position: relative; z-index: 2;
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after { content: ""; position: absolute; right: calc(-1 * var(--space-2)); top: 15%; bottom: 15%; width: 1px; background: var(--border-subtle); }
.stat-num { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-black); color: var(--primary-600); display: block; line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-2); display: block; }
@media (max-width: 600px) {
  .stat-item:not(:last-child)::after { display: none; }
}

/* ── Tuiles activites/thematiques — pills colorees (gap G4) ── */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--space-4); }
.tile {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
}
/* pastille coloree d'activite (rotation de teintes vives maitrisees) */
.tile::before {
  content: ""; position: absolute; top: var(--space-4); left: var(--space-4);
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--tile-color, var(--primary-100));
  opacity: 0.16; transition: opacity var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-spring);
}
.tile { padding-top: calc(var(--space-5) + 44px); }
.tile .tile-dot { position: absolute; top: var(--space-4); left: var(--space-4); width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--tile-color, var(--primary-500)); display: flex; align-items: center; justify-content: center; color:#fff; font-size: 18px; }
.tile:hover { border-color: var(--tile-color, var(--primary-300)); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tile:hover::before { opacity: 0.28; transform: scale(1.08); }
.tile-emoji { font-size: 22px; line-height: 1; }
.tile-name { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--text-strong); }
.tile-meta { font-size: var(--fs-sm); color: var(--text-muted); }

/* ── Variante tuile avec PHOTO thematique (activites) ── */
.tile-photo { padding: 0; }
.tile-photo::before { display: none; }
.tile-photo .tile-media {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  overflow: hidden; background: var(--bg-muted);
}
.tile-photo .tile-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--motion-base) var(--ease-out);
}
.tile-photo:hover .tile-media img { transform: scale(1.05); }
.tile-photo .tile-name { padding: var(--space-4) var(--space-4) 0; }
.tile-photo .tile-meta { padding: 0 var(--space-4) var(--space-4); }

/* ── Chips infos centre ───────────────────────────────────── */
.info-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }
.info-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  background: var(--bg-muted); color: var(--text-body);
  padding: 3px 10px; border-radius: var(--radius-full);
}
.info-chip.is-caf { background: var(--green-50); color: var(--green-700); }
.info-chip.is-merc { background: var(--primary-50); color: var(--primary-700); }
.info-chip.is-vac { background: var(--accent-100); color: var(--accent-700); }

/* ── Recherche : layout 2 colonnes ────────────────────────── */
.search-layout {
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: var(--space-8);
  align-items: start;
}
.filters-panel {
  position: sticky; top: 94px;
  /* Scroll independant du form quand sa hauteur depasse le viewport (fix UX 2026-05-23) */
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}
/* Scrollbar discrete pour le panneau filtres */
.filters-panel::-webkit-scrollbar { width: 8px; }
.filters-panel::-webkit-scrollbar-track { background: transparent; }
.filters-panel::-webkit-scrollbar-thumb { background: var(--neutral-200); border-radius: 4px; }
.filters-panel::-webkit-scrollbar-thumb:hover { background: var(--neutral-300); }
.filters-panel .filters-title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text-strong); margin-bottom: var(--space-5); display: flex; align-items: center; gap: var(--space-2); }
.filter-group { margin-bottom: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.filter-group:last-of-type { border-bottom: none; }
.filter-label { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-strong); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.filter-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: var(--fs-sm); color: var(--text-strong);
  font-family: var(--font-body);
  transition: border-color var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}
.filter-input:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--primary-400); }
.filter-range { display: flex; align-items: center; gap: var(--space-2); }
.filter-check { display: flex; align-items: flex-start; gap: var(--space-2); cursor: pointer; font-size: var(--fs-sm); color: var(--text-body); line-height: var(--lh-snug); padding: var(--space-1) 0; }
.filter-check input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary-500); }
.filter-check small { color: var(--text-muted); }
.filters-panel .btn { width: 100%; }
.filters-reset { display: block; text-align: center; margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--text-muted); }
.filters-reset:hover { color: var(--primary-700); }

/* ── Recherche : entete resultats ─────────────────────────── */
.results-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.results-count { font-weight: var(--fw-bold); color: var(--text-strong); font-family: var(--font-display); }
.results-sort .filter-input { width: auto; padding-block: var(--space-2); }

.filters-toggle { display: none; }

@media (max-width: 980px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .filters-toggle { display: inline-flex; margin-bottom: var(--space-4); }
  .filters-panel.is-collapsed { display: none; }
}

/* ── Liste de resultats : media bornee, scannable ─────────── */
.grid-cards .card-illus,
.grid-cards .card-media-ph { aspect-ratio: auto; height: 150px; }
.grid-cards .card-media { height: 150px; object-fit: cover; }
@media (max-width: 600px) {
  .grid-cards .card-illus,
  .grid-cards .card-media-ph,
  .grid-cards .card-media { height: 168px; }
}

/* ── Placeholder legacy (fallback si .card-illus non rendu) ── */
.card-media-ph {
  aspect-ratio: 16 / 10; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-300) 100%);
  color: #fff;
  font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-2xl);
  letter-spacing: 0.02em;
}

/* ── Steps (3 etapes, facon encolonie mais a nous) ────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding: var(--space-6); padding-top: var(--space-12); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: var(--space-5); left: var(--space-6); width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--primary-50); color: var(--primary-700); font-family: var(--font-display); font-weight: var(--fw-black); display: flex; align-items: center; justify-content: center; font-size: var(--fs-lg); }
.step h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }

/* ── FAQ accordeon premium ────────────────────────────────── */
details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-3);
  transition: box-shadow var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out);
}
details.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--primary-200); }
details.faq-item summary { font-family: var(--font-display); font-weight: var(--fw-semibold); cursor: pointer; color: var(--text-strong); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: var(--fs-xl); color: var(--primary-500); font-weight: var(--fw-regular); transition: transform var(--motion-base) var(--ease-out); line-height: 1; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-a { margin: var(--space-3) 0 0; color: var(--text-body); }

/* ── Fiche centre : entete + galerie ──────────────────────── */
.centre-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-12); align-items: start; }
.centre-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-md); }
.aside-card { position: sticky; top: 96px; height: fit-content; display: flex; flex-direction: column; gap: var(--space-5); }
@media (max-width: 900px) {
  .centre-hero { grid-template-columns: 1fr; gap: var(--space-8); }
  .aside-card { position: static; }
}

/* ── Entete page recherche ────────────────────────────────── */
.search-head {
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(255,194,59,0.18) 0%, rgba(255,194,59,0) 60%),
    var(--bg-warm);
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--border-subtle);
}
.search-head .search-tabs { margin: 0 0 var(--space-5); }
.search-head h1 { font-size: clamp(1.7rem, 3vw + 0.6rem, var(--fs-2xl)); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-700); }
.breadcrumb .sep { color: var(--neutral-400); }

/* ═══════════════════════════════════════════════════════════
   BLOG : liste + article (cluster SEO parents)
   Equipe SEO+integration moncentredeloisirs - 2026-05-22.
   100% tokens D1 existants. ADD only, ne casse rien.
   ═══════════════════════════════════════════════════════════ */

/* ── Hero blog ────────────────────────────────────────────── */
.blog-hero { background: linear-gradient(180deg, var(--primary-50), var(--neutral-50)); padding: var(--space-4) 0 var(--space-10); text-align: center; }
.blog-hero .eyebrow { display: inline-block; background: var(--neutral-0); border: 1px solid var(--border-subtle); color: var(--primary-700); font-weight: 600; font-size: var(--fs-sm); padding: 6px 14px; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }
.blog-hero h1 { font-size: var(--fs-4xl); font-weight: 800; margin: var(--space-4) 0 var(--space-2); letter-spacing: -.02em; }
.blog-hero .lead { max-width: 640px; margin: 0 auto; font-size: var(--fs-lg); color: var(--text-body); }
.blog-hero .search { max-width: 540px; margin: var(--space-6) auto 0; display: flex; background: var(--neutral-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); box-shadow: var(--shadow-md); overflow: hidden; }
.blog-hero .search input { flex: 1; border: 0; padding: 15px 22px; font-family: var(--font-body); font-size: var(--fs-md); outline: none; background: transparent; color: var(--text-strong); }
.blog-hero .search button { border: 0; background: var(--primary-500); color: #fff; padding: 0 26px; font-weight: 600; cursor: pointer; }

/* ── Pills categories ─────────────────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: var(--space-6) 0 var(--space-1); }
.cat-pills .pill { font-size: var(--fs-sm); font-weight: 600; padding: 9px 18px; border-radius: var(--radius-full); background: var(--neutral-0); border: 1px solid var(--border-subtle); color: var(--neutral-700); cursor: pointer; transition: .13s; text-decoration: none; }
.cat-pills .pill:hover { border-color: var(--primary-300); color: var(--primary-700); }
.cat-pills .pill.active { background: var(--primary-500); color: #fff; border-color: var(--primary-500); }
.cat-pills .pill.c-aide.active { background: var(--green-600); border-color: var(--green-600); }

/* ── Article a la une (featured) ──────────────────────────── */
.blog-featured { margin: var(--space-8) auto var(--space-2); }
.featured-card { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: var(--neutral-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-md); }
.featured-card .media { position: relative; aspect-ratio: 16 / 9; min-height: 320px; background: var(--neutral-100); align-self: center; }
.featured-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; position: absolute; inset: 0; aspect-ratio: unset; }
.featured-card .body { padding: var(--space-10); }
.featured-card h2 { font-size: var(--fs-3xl); font-weight: 800; margin: var(--space-3) 0 var(--space-3); letter-spacing: -.01em; line-height: 1.2; }
.featured-card h2 a { color: var(--text-strong); }
.featured-card h2 a:hover { color: var(--primary-700); }
.featured-card p { font-size: var(--fs-md); color: var(--text-body); margin-bottom: var(--space-5); }

.blog-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-700); background: var(--primary-50); padding: 5px 12px; border-radius: var(--radius-full); }
.blog-tag.c-aide { color: var(--green-600); background: var(--green-50); }
.blog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-4); }
.blog-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--neutral-300); }

/* ── Grille des cartes ────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-6); }
.blog-card { background: var(--neutral-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card .media { height: 190px; position: relative; background: var(--neutral-100); overflow: hidden; }
.blog-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.blog-card .body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; margin: var(--space-3) 0 var(--space-2); }
.blog-card h3 a { color: var(--text-strong); }
.blog-card h3 a:hover { color: var(--primary-700); }
.blog-card .excerpt { font-size: var(--fs-sm); color: var(--text-body); flex: 1; }
.blog-card .read { margin-top: var(--space-4); font-weight: 600; font-size: var(--fs-sm); color: var(--primary-700); }

/* ── Bandeau CTA blog ─────────────────────────────────────── */
.blog-cta-band { background: var(--night-900); border-radius: var(--radius-2xl); padding: var(--space-12); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: center; margin-top: var(--space-10); }
.blog-cta-band h2 { color: #fff; font-size: var(--fs-2xl); font-weight: 700; }
.blog-cta-band p { color: #D9E0E6; margin-top: var(--space-2); }
.blog-cta-band .btn { justify-self: start; }

/* ── Page article : en-tete ───────────────────────────────── */
.article-head { max-width: 760px; margin: 0 auto; text-align: center; padding: var(--space-2) 0; }
.article-head h1 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -.02em; margin: var(--space-4) 0 var(--space-3); }
.article-head .author { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-3); }
.article-head .author .ava { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--accent-500), var(--primary-500)); flex: none; }
.article-head .author b { color: var(--text-strong); font-weight: 600; }
.article-head .author .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--neutral-300); }

.article-cover { max-width: 1000px; margin: var(--space-7) auto 0; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; background: var(--neutral-100); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; aspect-ratio: unset; }

/* ── Layout corps + sommaire ──────────────────────────────── */
.article-wrap { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 48px; justify-content: center; padding: var(--space-10) var(--container-px) var(--space-5); max-width: 1100px; margin: 0 auto; }
.article-toc { position: sticky; top: 96px; align-self: start; background: var(--neutral-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.article-toc h4 { font-family: var(--font-display); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: var(--space-3); }
.article-toc ul { list-style: none; margin: 0; padding: 0; }
.article-toc li { margin: 3px 0; }
.article-toc a { display: block; font-size: var(--fs-sm); color: var(--neutral-700); padding: 7px 12px; border-radius: var(--radius-sm); border-left: 2px solid transparent; }
.article-toc a:hover { background: var(--primary-50); }
.article-toc a.active { color: var(--primary-700); background: var(--primary-50); border-left-color: var(--primary-500); font-weight: 600; }

/* ── Contenu lisible (.prose) ─────────────────────────────── */
.prose { font-size: var(--fs-md); color: var(--text-body); line-height: 1.7; }
.prose .chapo { font-size: var(--fs-xl); line-height: 1.6; color: var(--text-strong); font-weight: 500; margin-bottom: var(--space-7); }
.prose h2 { font-size: var(--fs-2xl); font-weight: 700; margin: var(--space-10) 0 var(--space-3); scroll-margin-top: 96px; }
.prose h3 { font-size: var(--fs-xl); font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.prose p { margin: 0 0 var(--space-4); }
.prose ul, .prose ol { margin: 0 0 var(--space-4) 22px; }
.prose li { margin: 8px 0; }
.prose a { color: var(--primary-700); font-weight: 600; border-bottom: 1px solid var(--primary-300); }
.prose a:hover { border-bottom-color: var(--primary-600); }
.prose b, .prose strong { color: var(--text-strong); }

/* ── Encadres (callouts) ──────────────────────────────────── */
.callout { border-radius: var(--radius-xl); padding: 22px 24px; margin: var(--space-6) 0; font-size: var(--fs-base); line-height: 1.6; }
.callout .lab { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); display: block; margin-bottom: 6px; }
.callout-tip { background: var(--primary-50); border-left: 4px solid var(--primary-500); }
.callout-tip .lab { color: var(--primary-700); }
.callout-source { background: var(--green-50); border-left: 4px solid var(--green-500); }
.callout-source .lab { color: var(--green-600); }
.prose blockquote { margin: var(--space-7) 0; padding: 20px 26px; background: var(--neutral-0); border: 1px solid var(--border-subtle); border-left: 4px solid var(--accent-500); border-radius: var(--radius-md); font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--text-strong); line-height: 1.4; }

/* ── CTA inline ───────────────────────────────────────────── */
.prose .cta-inline { background: var(--night-900); color: #fff; border-radius: var(--radius-2xl); padding: var(--space-8); margin: var(--space-10) 0; text-align: center; }
.prose .cta-inline h3 { color: #fff; font-size: var(--fs-xl); margin: 0 0 var(--space-2); }
.prose .cta-inline p { color: #D9E0E6; margin-bottom: var(--space-5); }
.prose .cta-inline a { border-bottom: 0; }

/* ── FAQ accordeon ────────────────────────────────────────── */
.article-faq { max-width: 760px; margin: var(--space-4) auto 0; padding: 0 var(--container-px); }
.article-faq h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; margin-bottom: var(--space-4); }
.article-faq details { background: var(--neutral-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 4px 20px; margin-bottom: 10px; }
.article-faq summary { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--text-strong); padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: "+"; color: var(--primary-500); font-weight: 700; font-size: var(--fs-xl); }
.article-faq details[open] summary::after { content: "\2013"; }
.article-faq details p { padding: 0 0 16px; font-size: var(--fs-base); color: var(--text-body); line-height: 1.6; margin: 0; }

/* ── Articles lies ────────────────────────────────────────── */
.article-related { padding: var(--space-12) 0 var(--space-5); background: var(--neutral-100); margin-top: var(--space-12); }
.article-related h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; text-align: center; margin-bottom: var(--space-2); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.rel-card { background: var(--neutral-0); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: .15s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rel-card .m { height: 140px; background: var(--neutral-100); overflow: hidden; }
.rel-card .m img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rel-card .b { padding: var(--space-4); }
.rel-card h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; margin: 0; }
.rel-card h3 a { color: var(--text-strong); }
.rel-card h3 a:hover { color: var(--primary-700); }

.photo-credit { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin-top: var(--space-2); }

/* ── Cross-audience bridge parents → pros / MEACM (Helene + Karim 2026-05-24) ─── */
.article-pro-bridge { padding: var(--space-10) 0 var(--space-12); background: linear-gradient(180deg, var(--neutral-0) 0%, var(--neutral-50) 100%); }
.pro-bridge-card { max-width: 820px; margin: 0 auto; background: var(--neutral-0); border: 1px solid var(--border-subtle); border-left: 4px solid var(--primary-700); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.pro-bridge-card .eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-700); margin-bottom: var(--space-2); }
.pro-bridge-card h2 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--text-strong); margin: 0 0 var(--space-4); line-height: 1.25; }
.pro-bridge-card p { color: var(--text-body); line-height: 1.65; margin: 0 0 var(--space-3); font-size: var(--fs-base); }
.pro-bridge-card p strong { color: var(--text-strong); }
.pro-bridge-card .cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.pro-bridge-card .btn-secondary { background: var(--neutral-0); color: var(--text-strong); border: 1px solid var(--border-subtle); }
.pro-bridge-card .btn-secondary:hover { background: var(--neutral-100); }
@media (max-width: 640px) {
  .pro-bridge-card { padding: var(--space-6); }
  .pro-bridge-card h2 { font-size: var(--fs-lg); }
  .pro-bridge-card .cta-row .btn { width: 100%; }
}

/* ── Responsive blog ──────────────────────────────────────── */
@media (max-width: 920px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .media { min-height: 0; aspect-ratio: 16 / 9; position: relative; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .article-wrap { grid-template-columns: 1fr; max-width: 720px; }
  .article-toc { position: static; order: -1; }
  .rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-hero h1 { font-size: var(--fs-3xl); }
  .blog-grid { grid-template-columns: 1fr; }
  .featured-card .body { padding: var(--space-6); }
  .article-head h1 { font-size: var(--fs-3xl); }
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 2 (2026-05-23) : badges scoring (3 criteres publics) + photo illustrative
   Spec : docs/STRATEGIE_TRI_3_CRITERES_2026_05_23.md (D.1-D.6) + docs/SPEC_PHOTOS_CENTRES_2026_05_23.md (4.1)
   Equipe : Lukas Brennan (front, dig-holding) + Aurore Vidal (DA brand D1)
   Tokens : ambre --primary-*, vert --green-*, jaune --accent-*, navy --night-*, creme --neutral-50/100/200
   ════════════════════════════════════════════════════════════════════ */

/* ── Microcopy libre arbitre sous le compteur de resultats ──────────── */
.results-microcopy {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0 var(--space-4);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-body);
  line-height: var(--lh-snug);
}
.results-microcopy-icon {
  color: var(--primary-700);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  line-height: 1;
  flex-shrink: 0;
}
.results-microcopy a {
  color: var(--primary-700);
  text-decoration: underline;
  font-weight: var(--fw-medium);
}
.results-microcopy a:hover { color: var(--primary-800); }

/* ── Wrap photo + badge "Photo illustrative" en bas-droite ──────────── */
.card-media-wrap {
  position: relative;
  display: block;
}
.card-media-wrap .card-media,
.card-media-wrap .card-illus {
  display: block;
  width: 100%;
}
.badge-illus {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 248, 242, 0.94); /* creme transluside */
  color: var(--night-700);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  z-index: 2;
}

/* ── Bloc des 3 badges scoring (qualite + inclusion + securite) ─────── */
.scoring-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) 0;
  margin-top: auto;
}
.score-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  cursor: help;
  transition: transform var(--motion-fast) var(--ease-out);
}
.score-badge:hover { transform: translateY(-1px); }
.score-badge-icon {
  font-size: var(--fs-sm);
  line-height: 1;
}
.score-badge-label {
  font-weight: var(--fw-semibold);
}

/* Qualite : dore pale (accent jaune solaire) */
.score-badge--qualite {
  background: var(--accent-50);
  color: var(--accent-700);
  border: 1px solid var(--accent-100);
}
.score-badge--qualite .score-badge-icon { color: var(--accent-600); }

/* Inclusion : vert reassurance pale */
.score-badge--inclusion {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.score-badge--inclusion .score-badge-icon { color: var(--green-600); }

/* Securite : ambre soutenu (charte D1 + identite groupe) — contraste renforce 2026-05-23 */
.score-badge--securite {
  background: var(--primary-100);
  color: var(--primary-800);
  border: 1px solid var(--primary-300);
  font-weight: var(--fw-semibold);
}
.score-badge--securite .score-badge-icon { color: var(--primary-700); }

/* Etat non equipe : neutre creme/gris doux (anti-denigrement L121-8) avec bordure renforcee */
.score-badge--securite:not(.is-equipped) {
  background: var(--neutral-50, #F7F5F2);
  color: var(--neutral-800, #2A241E);
  border: 1px solid var(--neutral-300, #D6D0C9);
  font-weight: var(--fw-medium);
}
.score-badge--securite:not(.is-equipped) .score-badge-icon { color: var(--neutral-600, #6B6259); }

/* ── Tooltip CSS pur sur les 3 badges (data-tooltip) ────────────────── */
.score-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 320px;
  padding: var(--space-3) var(--space-4);
  background: var(--night-900);
  color: var(--text-ondark);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-out),
              transform var(--motion-base) var(--ease-out),
              visibility var(--motion-base);
  z-index: 50;
}
.score-badge[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--night-900);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base) var(--ease-out),
              visibility var(--motion-base);
  z-index: 50;
}
.score-badge[data-tooltip]:hover::after,
.score-badge[data-tooltip]:focus::after,
.score-badge[data-tooltip]:focus-within::after,
.score-badge[data-tooltip]:hover::before,
.score-badge[data-tooltip]:focus::before,
.score-badge[data-tooltip]:focus-within::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive : tooltip plus compact + position adaptee sur mobile ── */
@media (max-width: 560px) {
  .score-badge[data-tooltip]::after {
    max-width: min(280px, calc(100vw - 32px));
    font-size: 12px;
  }
  .scoring-badges {
    gap: 6px;
    padding-top: var(--space-2);
  }
  .score-badge { font-size: 12px; height: 26px; padding: 0 10px; }
  .score-badge-label { font-size: 12px; }
}

/* Reduce motion : on cache simplement l'animation, le tooltip reste */
@media (prefers-reduced-motion: reduce) {
  .score-badge:hover { transform: none; }
  .score-badge[data-tooltip]::after,
  .score-badge[data-tooltip]::before { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PHASE 3 ACQUISITION — Landing /professionnels + pastilles pro cards
   Aurore Vidal (DA D1 ambre/navy/vert) + Lukas Brennan (front) — 2026-05-23
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Pastille PRO sur les cards /recherche (acquisition directeur ACM) ── */
.centre-card { position: relative; }
.pro-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-800);
  border: 1px solid var(--primary-300);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: help;
  transition: transform var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) var(--ease-out);
}
.pro-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  text-decoration: none;
}
.pro-badge.is-equipped {
  background: var(--primary-100);
  color: var(--primary-800);
  border-color: var(--primary-400);
}
.pro-badge-icon { font-size: 12px; line-height: 1; }
.pro-badge-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-700);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  font-style: normal;
  line-height: 1;
}
/* Tooltip CSS custom pour pastille pro (mm pattern que score-badge mais place a droite) */
.pro-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 280px;
  padding: var(--space-3) var(--space-4);
  background: var(--night-900);
  color: var(--text-ondark);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  line-height: var(--lh-snug);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-out),
              visibility var(--motion-base);
  z-index: 60;
}
.pro-badge[data-tooltip]::before {
  content: "";
  position: absolute;
  top: calc(100% + 2px);
  right: 12px;
  border: 6px solid transparent;
  border-bottom-color: var(--night-900);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base) var(--ease-out),
              visibility var(--motion-base);
  z-index: 60;
}
.pro-badge[data-tooltip]:hover::after,
.pro-badge[data-tooltip]:focus::after,
.pro-badge[data-tooltip]:hover::before,
.pro-badge[data-tooltip]:focus::before {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 560px) {
  .pro-badge[data-tooltip]::after { max-width: calc(100vw - 60px); right: -8px; }
  .pro-badge[data-tooltip]::before { right: 4px; }
}

/* ── Landing /professionnels ─────────────────────────────────────────── */

.page-pro .site-footer { margin-top: 0; }

.pro-hero {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
  padding: var(--space-10) 0 var(--space-12);
}
.pro-breadcrumb {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}
.pro-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.pro-hero-eyebrow {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-3);
}
.pro-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--night-900);
  margin: 0 0 var(--space-5);
}
.pro-hero-sub {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  max-width: 50ch;
  margin: 0 0 var(--space-7);
}
.pro-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.pro-hero-trust {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
}
.pro-hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
}
.pro-hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
  color: var(--text-strong);
}
.pro-hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(35, 132, 80, 0.12);
}
.pro-hero-card-alerts {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pro-hero-card-alerts li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.pro-hero-card-alerts li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: var(--fw-bold);
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.alert-red { background: #FEEDED; }
.alert-red span { background: #D14545; }
.alert-orange { background: #FFF1E0; }
.alert-orange span { background: #E67E22; }
.alert-yellow { background: #FFF8DB; color: var(--text-strong); }
.alert-yellow span { background: #C49416; }
.alert-green { background: #E8F5EF; }
.alert-green span { background: var(--green-600); font-size: 10px; }
.pro-hero-card-foot {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  font-style: italic;
}

/* Section alt (fond legerement teinte pour respiration visuelle) */
.section-alt { background: var(--neutral-50, #F7F5F2); }

.pro-section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-10);
}
.pro-section-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--night-900);
  margin: 0 0 var(--space-3);
}

/* Benefits 3-up */
.pro-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.pro-benefit {
  background: #fff;
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: transform var(--motion-base) var(--ease-out),
              box-shadow var(--motion-base) var(--ease-out);
}
.pro-benefit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pro-benefit-icon {
  font-size: 32px;
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: var(--radius-md);
}
.pro-benefit h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-lg);
  color: var(--night-900);
}
.pro-benefit p {
  color: var(--text-body);
  margin: 0 0 var(--space-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.pro-benefit-list {
  padding-left: var(--space-5);
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.pro-benefit-list li { margin-bottom: var(--space-1); }

/* Features 6-up grid */
.pro-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.pro-feature {
  background: #fff;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.pro-feature h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-md);
  color: var(--night-900);
}
.pro-feature p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-body);
  line-height: var(--lh-relaxed);
}

/* Trust block */
.pro-trust-block {
  background: #fff;
  padding: var(--space-8) var(--space-9);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-500);
}
.pro-trust-block h2 {
  margin-top: 0;
  font-family: var(--ff-display);
  color: var(--night-900);
}
.pro-trust-block p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

/* Demo block / formulaire fallback */
.pro-demo-block {
  background: #fff;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}
.pro-demo-block h2 {
  margin-top: 0;
  font-family: var(--ff-display);
  text-align: center;
}
.pro-demo-form {
  margin: var(--space-6) 0 var(--space-4);
}
.pro-demo-label {
  display: block;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
  color: var(--text-strong);
}
.pro-demo-input-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.pro-demo-input {
  flex: 1 1 280px;
  min-width: 0;
}
.pro-demo-mention {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
}
.pro-demo-direct {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
}
.pro-calendly-wrap {
  margin: var(--space-6) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.pro-calendly-wrap iframe { display: block; width: 100%; }

/* CTA Agendia principal (booking maison MonEspaceACM) */
.pro-calendly-cta {
  margin: var(--space-6) 0 var(--space-5);
  text-align: center;
}
.pro-calendly-btn {
  min-width: 260px;
  font-size: var(--fs-md);
}
.pro-calendly-note {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

/* Fallback formulaire email (secondaire au CTA Agendia) */
.pro-demo-fallback {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border-subtle);
}
.pro-demo-fallback-intro {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  text-align: center;
}
.pro-demo-success {
  background: var(--green-50);
  border-left: 4px solid var(--green-600);
  color: var(--green-700);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
.pro-demo-error {
  background: #FEEDED;
  border-left: 4px solid #D14545;
  color: #8A2A2A;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
}

/* FAQ */
.pro-faq-item {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
}
.pro-faq-item summary {
  font-weight: var(--fw-semibold);
  cursor: pointer;
  color: var(--text-strong);
  list-style: none;
  position: relative;
  padding-right: var(--space-6);
}
.pro-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  font-weight: var(--fw-regular);
  color: var(--primary-700);
  transition: transform var(--motion-fast) var(--ease-out);
}
.pro-faq-item[open] summary::after { content: "−"; }
.pro-faq-item p,
.pro-faq-item ul { margin-top: var(--space-3); color: var(--text-body); font-size: var(--fs-sm); }

.pro-bottom-meta {
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 980px) {
  .pro-hero-grid { grid-template-columns: 1fr; }
  .pro-hero-card { order: -1; max-width: 480px; margin: 0 auto; }
  .pro-benefits-grid,
  .pro-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pro-hero { padding: var(--space-7) 0 var(--space-9); }
  .pro-hero-cta .btn { width: 100%; }
  .pro-trust-block,
  .pro-demo-block { padding: var(--space-6); }
}

/* ══════════════════════════════════════════════════════════════
   Fix B - Compare-bar masquee par footer mobile (2026-05-23)
   IntersectionObserver JS ajoute .is-hidden-by-footer quand le
   footer entre dans le viewport. Transition douce + opacite 0.
   Auteur : Lukas Brennan (Front Responsive) + Aya Tanaka (QA).
   ══════════════════════════════════════════════════════════════ */
.compare-bar {
  transition: transform 0.28s ease, opacity 0.22s ease;
}
.compare-bar.is-hidden-by-footer {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   Fix A - Pagination /recherche (2026-05-23)
   24 centres / page, controles UX precedent/suivant + liste de pages.
   Auteur : Lukas Brennan (Front Responsive) + Leo Garnier (Integration).
   ══════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding: var(--space-4) 0;
}
.pagination-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-list li { display: inline-flex; }
.pagination-btn,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-card, #fff);
  color: var(--text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.pagination-btn:hover,
.pagination-page:hover {
  background: var(--bg-muted);
  border-color: var(--primary-400);
  color: var(--primary-700);
}
.pagination-page.is-current {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  cursor: default;
}
.pagination-btn.is-disabled {
  color: var(--text-muted);
  background: var(--bg-muted);
  cursor: not-allowed;
  opacity: 0.55;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: var(--text-muted);
  user-select: none;
}
.pagination-info {
  text-align: center;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
}
@media (max-width: 640px) {
  .pagination { gap: var(--space-2); }
  .pagination-btn,
  .pagination-page { min-width: 36px; height: 36px; padding: 0 var(--space-2); font-size: var(--fs-xs); }
}


/* ══════════════════════════════════════════════════════════════
   FORWARD FIX UX 2026-05-23 — Lukas Brennan / Julie Vasseur
   Sections "3 etapes" (steps--inline) + "Pourquoi confiance" (trust-cards)
   APPEND-ONLY. Ne touche AUCUNE section existante.
   ══════════════════════════════════════════════════════════════ */

/* --- Section A : 3 etapes inline (chips numerotees) --- */
.steps--inline {
  counter-reset: none;
}
.steps--inline .step::before {
  display: none;
  content: none;
}
.steps--inline .step h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #F4920A;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(244, 146, 10, 0.25);
}
@media (max-width: 599px) {
  .step-num {
    width: 32px;
    height: 32px;
    font-size: 0.9375rem;
  }
}

/* --- Section B : Pourquoi confiance (trust-cards) --- */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6, 24px);
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  padding: var(--space-5, 20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 12px);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.trust-card:hover {
  border-color: rgba(244, 146, 10, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md, 8px);
  background: rgba(244, 146, 10, 0.14);
  color: #F4920A;
}
.trust-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0;
}
.trust-body {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 1023px) {
  .trust-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .trust-cards {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   Methode G : Bouton "Voir les avis Google" (2026-05-23)
   Mission Lukas Brennan (front) + Aurore Vidal (DA) + Aya Tanaka (QA),
   coord Marcus Leroy (CTO). Lien sortant Google Maps depuis GPS centre.
   Palette D1 : navy (#0F1B3D) base + ambre (#F4920A) etoile or, hover.
   ───────────────────────────────────────────────────────────────────── */
.card-foot-google-reviews {
  padding: 0 var(--space-4) var(--space-4);
  margin-top: calc(-1 * var(--space-2));
}
.btn-google-reviews {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: #ffffff;
  background-color: #0F1B3D;
  border: 1px solid #0F1B3D;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-google-reviews:hover,
.btn-google-reviews:focus-visible {
  background-color: #F4920A;
  border-color: #F4920A;
  color: #0F1B3D;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-google-reviews:focus-visible {
  outline: 2px solid #F4920A;
  outline-offset: 2px;
}
.btn-google-reviews-icon {
  color: #F4920A;
  font-size: 1rem;
  line-height: 1;
}
.btn-google-reviews:hover .btn-google-reviews-icon,
.btn-google-reviews:focus-visible .btn-google-reviews-icon {
  color: #0F1B3D;
}
/* Variante fiche detaillee : pleine largeur, plus visible */
.btn-google-reviews--detail {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-size: var(--fs-base);
}
/* Comparateur : taille alignee sur les autres boutons */
.cmp-card-actions .btn-google-reviews {
  padding: 6px 10px;
  font-size: var(--fs-xs);
}

/* ──────────────────────────────────────────────────────────────────────
   Bandeau CTA B2B pré-footer (toutes pages publiques sauf /professionnels*)
   Auteur : Lukas Brennan (dev front responsive dig-holding)
            + Julie Vasseur (UX) — 2026-05-23
   Identite D1 mcdl : fond NIGHT (bleu nuit doux), CTA primaire AMBRE
   signature, CTA secondaire ghost-on-dark. AAA sur primaire (contrast OK
   night-900 / ambre-500). Responsive : viewport-fluid clamp + flex-wrap.
   ────────────────────────────────────────────────────────────────────── */
.prefooter-cta-b2b {
  background: linear-gradient(135deg, var(--night-900) 0%, var(--night-700) 100%);
  color: var(--text-ondark);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.prefooter-cta-b2b > .container {
  max-width: 840px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.prefooter-cta-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-5);
  letter-spacing: 0.01em;
}
.prefooter-cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: var(--fw-black);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-4);
  color: #fff;
}
.prefooter-cta-lead {
  font-size: clamp(15px, 1.8vw, 18px);
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto var(--space-6);
  line-height: var(--lh-normal);
  color: var(--neutral-50);
}
.prefooter-cta-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.prefooter-cta-actions .btn {
  min-width: 180px;
}
.prefooter-cta-btn-primary {
  background: var(--primary-500);
  color: #fff;
  border: 1px solid var(--primary-500);
  box-shadow: var(--shadow-primary-sm);
  transition: background var(--motion-base) var(--ease-standard),
              transform var(--motion-fast) var(--ease-spring),
              box-shadow var(--motion-base) var(--ease-standard);
}
.prefooter-cta-btn-primary:hover,
.prefooter-cta-btn-primary:focus-visible {
  background: var(--primary-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}
.prefooter-cta-btn-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.prefooter-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  transition: background var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard);
}
.prefooter-cta-btn-secondary:hover,
.prefooter-cta-btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.70);
  color: #fff;
}
.prefooter-cta-btn-secondary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .prefooter-cta-b2b {
    padding: var(--space-12) 0;
  }
  .prefooter-cta-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   Alignement cards /recherche — sprint 2026-05-24
   Auteur : Isabelle Perrin (COO dig-holding) — coord deploy
            Karim Benali (audit visuel cards hauteurs variables)
            Julie Vasseur (UX) — recommandation grid-auto-rows 1fr
   Probleme : descriptions courte/longue + scoring block + bouton Google
   Reviews (present 88,4% des centres) generent des hauteurs de cards
   inegales par rangee. Footer Comparer/Avis Google decroche.
   Solution : grid-auto-rows 1fr egalise les hauteurs par ligne, flex
   centre-card etire .card-body, description tronquee a 2 lignes propres.
   Non-regression : .grid-cards reste l'unique grille (modules/search +
   modules/home/index utilisent la meme classe). Comportement degrade
   gracefully sur browsers sans line-clamp (fallback display block).
   ────────────────────────────────────────────────────────────────────── */
.grid-cards { grid-auto-rows: 1fr; }
.grid-cards > .centre-card { height: 100%; }
.centre-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Description tronquee a 2 lignes (ellipsis) pour homogeneite verticale.
   Vise le <p> inline-style genere par modules/search/index.php ligne ~571
   (description_courte). Pas de classe dediee pour eviter touch PHP. */
.centre-card .card-body > p[style*="--fs-sm"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Le bloc scoring + footer doivent rester colles en bas de la card.
   .info-chips remonte naturellement (margin-top auto sur le dernier
   element flex avant scoring). */
.centre-card .card-body .info-chips:last-child {
  margin-top: auto;
}
