/* ===========================
   COMPAREASSURANCE.CH — STYLES
   Design system inspiré Comparis.ch × NerdWallet × Meilleurtaux
   =========================== */

/* ── Variables ── */
:root {
  --red:         #0D9488;
  --red-dark:    #0B7A71;
  --red-light:   rgba(13,148,136,0.08);
  --navy:        #0D1B2A;
  --navy-light:  #1D3557;
  --teal:        #0D9488;
  --green:       #10B981;
  --amber:       #F59E0B;
  --white:       #FFFFFF;
  --bg:          #F4F5F8;
  --bg-alt:      #EEF0F5;
  --text:        #0D1B2A;
  --muted:       #6B7280;
  --border:      #E2E5EB;
  --border-md:   #CBD0D8;

  --shadow-xs: 0 1px 2px rgba(13,27,42,.06);
  --shadow-sm: 0 2px 8px rgba(13,27,42,.08), 0 1px 3px rgba(13,27,42,.05);
  --shadow-md: 0 4px 20px rgba(13,27,42,.10), 0 2px 6px rgba(13,27,42,.06);
  --shadow-lg: 0 12px 40px rgba(13,27,42,.14), 0 4px 12px rgba(13,27,42,.08);
  --shadow-xl: 0 24px 64px rgba(13,27,42,.18), 0 8px 24px rgba(13,27,42,.10);

  --max-w:       1240px;
  --r-sm:        6px;
  --r:           12px;
  --r-lg:        20px;
  --r-xl:        28px;

  --font-display: 'Poppins', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --ease:        cubic-bezier(0.32,0.72,0,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);

  --z-base:    1;
  --z-above:   10;
  --z-sticky:  100;
  --z-header:  200;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Skip link ── */
.skip-link {
  position: fixed;
  top: -100%; left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==============================
   HEADER
   ============================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.3s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
}
.header.scrolled .container { height: 62px; }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  transition: color 0.3s;
}
.header.scrolled .logo { color: var(--navy); }
.logo-img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.logo-ch { color: var(--red); font-weight: 800; }

/* Nav */
.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.header.scrolled .nav-link { color: var(--muted); }
.header.scrolled .nav-link:hover { color: var(--text); background: var(--bg); }

.nav-cta {
  margin-left: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s var(--ease-spring), box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}
.nav-cta:active { transform: translateY(0) scale(0.98); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.header.scrolled .nav-toggle span { background: var(--navy); }

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100dvh;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 70px;
}

/* Grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% 35%, rgba(13,148,136,0.20) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 15% 75%, rgba(6,182,212,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(29,53,87,0.6) 0%, transparent 70%);
}

/* Swiss cross watermark */
.hero-cross {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(500px, 45vw);
  height: min(500px, 45vw);
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  z-index: 1;
}
.hero-cross svg { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 100px;
  color: #FF8593;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeDown 0.6s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s 0.1s var(--ease) both;
}
.text-red { color: var(--red); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.2s var(--ease) both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  margin-bottom: 2.75rem;
  animation: fadeUp 0.7s 0.3s var(--ease) both;
}
.hero-cta:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13,148,136,0.42);
}
.hero-cta:active { transform: translateY(0) scale(0.98); }
.hero-cta i { transition: transform 0.2s var(--ease-spring); }
.hero-cta:hover i { transform: translateX(5px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.4s var(--ease) both;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.hero-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  animation: fadeUp 0.7s 0.5s var(--ease) both;
}
.hero-notice i { color: rgba(255,255,255,0.4); }

/* ==============================
   TRUST BAR
   ============================== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
}
.trust-item i { color: var(--green); font-size: 0.85rem; }

/* ==============================
   FILTERS BAR (sticky)
   ============================== */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: var(--z-sticky);
  padding: 0.55rem 0;
  transition: box-shadow 0.3s;
}
.filters-bar.stuck { box-shadow: var(--shadow-md); }

.filters-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-group-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  flex: 1;
  min-width: 0;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 72px;
  flex-shrink: 0;
}
.filter-label-inline { min-width: unset; }
.filter-inline-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.filter-group-nowrap {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-group-nowrap::-webkit-scrollbar { display: none; }
.filter-group-nowrap .pill-group { flex-wrap: nowrap; }
.filter-inline-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 .2rem;
}
.pill-group { display: flex; gap: 0.28rem; flex-wrap: wrap; }
.pill {
  padding: 3px 9px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.pill:hover { border-color: var(--navy-light); color: var(--navy); background: var(--bg); }
.pill.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Sort + Caisse filter */
.sort-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sort-wrap label { color: var(--muted); font-size: 0.9rem; }
.caisse-select,
.sort-wrap select {
  padding: 4px 26px 4px 9px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.73rem;
  font-family: var(--font-body);
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  transition: border-color .18s;
}
.caisse-select { max-width: 150px; }
.caisse-select:focus,
.sort-wrap select:focus { outline: none; border-color: var(--navy); }
.sort-wrap label { color: var(--muted); font-size: 1rem; }
.sort-wrap select {
  padding: 7px 32px 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.83rem;
  font-family: var(--font-body);
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.sort-wrap select:focus { outline: none; border-color: var(--navy); }

/* ==============================
   RESULTS SECTION
   ============================== */
.results-section { padding: 2rem 0 5rem; }

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
#results-count { font-size: 0.9rem; color: var(--muted); }
#results-count strong { color: var(--text); font-weight: 700; }

.lamal-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.lamal-note i { color: var(--teal); }

/* Cards grid — 2 col on desktop */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* ──────────────────────────────────────────────
   MODE SWITCH LAMal / LCA
   ────────────────────────────────────────────── */
.mode-switch-wrap {
  display: flex;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease);
}
.mode-tab i { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.mode-tab-content { line-height: 1.2; text-align: left; }
.mode-tab-title {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  transition: color 0.2s;
}
.mode-tab-sub {
  display: none; /* sous-titre masqué pour compacité */
}
.mode-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(13,27,42,.18);
}
.mode-tab.active i { color: var(--white); }
.mode-tab.active .mode-tab-title { color: var(--white); }
.mode-tab.active .mode-tab-sub   { color: rgba(255,255,255,.55); }
.mode-tab:hover:not(.active) { border-color: var(--navy-light); background: var(--bg); }

@media (max-width: 768px) {
  .mode-switch-wrap { gap: 0.4rem; }
  .mode-tab { padding: 0.55rem 0.75rem; gap: 0.45rem; }
  .mode-tab i { font-size: 0.85rem; }
  .mode-tab-title { font-size: 0.8rem; }
  .mode-tab-sub { font-size: 0.65rem; }
}

/* ── Filters toggle button (mobile only) ── */
.filters-toggle-btn {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.filters-toggle-btn:hover { border-color: var(--navy); color: var(--navy); }
.filters-toggle-btn i {
  font-size: 0.7rem;
  transition: transform 0.25s var(--ease);
}
.filters-bar.filters-collapsed .filters-toggle-btn i { transform: rotate(180deg); }
.filters-bar.filters-collapsed .filter-group-wrap { display: none; }

/* ── Card (LAMal classique + LAMal officiel) ── */
.caisse-card,
.lamal-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.caisse-card.visible,
.lamal-card.visible { opacity: 1; transform: translateY(0); }
.caisse-card:hover,
.lamal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-md);
}

/* Featured card (top result) */
.caisse-card.featured,
.lamal-card.featured { border-color: var(--navy); }
.caisse-card.featured::before,
.lamal-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy));
}

/* Badge row — fixed height so prices align */
.card-badge-row {
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-price   { background: rgba(16,185,129,.1);  color: #059669; }
.badge-top     { background: rgba(13,27,42,.08);    color: var(--navy); }
.badge-highlight { background: rgba(13,148,136,.08); color: var(--red); }
.badge-network { background: rgba(6,182,212,.1);   color: #0891B2; }

/* Card header */
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.card-logo-wrap {
  width: 72px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 6px;
}
.card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.card-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #fff;
}
.card-meta h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}
.card-stars { display: flex; align-items: center; gap: 6px; }
.stars-display { display: flex; gap: 2px; }
.star { font-size: 13px; color: var(--border); }
.star.filled { color: #F59E0B; }
.star.half { color: #F59E0B; opacity: 0.55; }
.note-label { font-size: 0.79rem; color: var(--muted); font-weight: 500; }

/* Divider */
.card-divider { height: 1px; background: var(--border); margin: 0 0 1.25rem; }

/* Price block */
.card-price-wrap { margin-bottom: 1.25rem; }
.card-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.card-price .currency {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: top;
  padding-top: 5px;
  margin-right: 2px;
  color: var(--muted);
}
.card-price-period { font-size: 0.79rem; color: var(--muted); margin-top: 5px; }
.card-price-family {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(13,148,136,.08);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.74rem;
  margin-top: 6px;
}

/* Features list */
.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.feature-row { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.feature-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}
.feature-icon.yes { background: rgba(16,185,129,.12); color: #059669; }
.feature-icon.no  { background: rgba(107,114,128,.1); color: var(--muted); }
.feature-label { color: var(--text); font-weight: 500; }
.feature-value { color: var(--muted); font-size: 0.79rem; margin-left: auto; }

/* Model chips */
.card-modeles { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.modele-chip {
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--muted);
}

/* CTA */
.card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s var(--ease-spring), box-shadow 0.2s;
  width: 100%;
  margin-top: auto;
}
.card-cta:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,27,42,.22); }
.card-cta:active { transform: translateY(0) scale(0.98); }
.card-cta i { transition: transform 0.2s var(--ease-spring); font-size: 0.82rem; }
.card-cta:hover i { transform: translateX(4px); }
.caisse-card.featured .card-cta,
.lamal-card.featured .card-cta { background: var(--red); }
.caisse-card.featured .card-cta:hover,
.lamal-card.featured .card-cta:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(13,148,136,.28); }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.35; display: block; }

/* ──────────────────────────────────────────────
   LCA CARD COMPONENTS
   ────────────────────────────────────────────── */
.lca-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.lca-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}
.lca-coverage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0.85rem;
  flex: 1;
}
.lca-coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
}
.lca-coverage-list li i {
  color: var(--green);
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.lca-limits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0.75rem;
}
.lca-limit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}
.lca-limit-item i { color: var(--amber); font-size: 0.68rem; flex-shrink: 0; }
.lca-warning {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #B45309;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.lca-warning i { color: #D97706; font-size: 0.8rem; flex-shrink: 0; }
/* LCA CTA en bleu pour différencier du LAMal */
.lca-cta {
  background: linear-gradient(135deg, #3B82F6, #6366F1) !important;
}
.lca-cta:hover {
  background: linear-gradient(135deg, #2563EB, #4F46E5) !important;
  box-shadow: 0 4px 14px rgba(59,130,246,.28) !important;
}
/* Mobile LCA tweaks */
@media (max-width: 768px) {
  .lca-coverage-list li { font-size: 0.7rem; }
  .lca-limit-item       { font-size: 0.68rem; }
  .lca-warning          { font-size: 0.68rem; padding: 5px 8px; }
  .lca-level-badge      { font-size: 0.63rem; padding: 3px 7px; }
}

/* ==============================
   INFO SECTION
   ============================== */
.info-section {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 0.5rem;
}
.section-sub { font-size: 0.95rem; color: var(--muted); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.info-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.info-icon-wrap.red   { background: rgba(13,148,136,.1);    color: var(--red); }
.info-icon-wrap.teal  { background: rgba(6,182,212,.1);   color: var(--teal); }
.info-icon-wrap.green { background: rgba(16,185,129,.1);  color: var(--green); }
.info-icon-wrap.amber { background: rgba(245,158,11,.1);  color: var(--amber); }

.info-content h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.info-content p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

/* ==============================
   GUIDES SECTION
   ============================== */
.guides-section { padding: 5rem 0; background: var(--bg); }

.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}

.guide-featured {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.guide-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 90% 20%, rgba(13,148,136,0.28) 0%, transparent 65%);
}
/* Swiss cross deco in guide */
.guide-featured::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.025);
  clip-path: polygon(38% 0%, 62% 0%, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0% 62%, 0% 38%, 38% 38%);
}
.guide-featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(13,148,136,0.35);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #FF8593;
  margin-bottom: 1.5rem;
  position: relative;
  width: fit-content;
}
.guide-icon-lg {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
  position: relative;
  color: rgba(255,255,255,0.9);
}
.guide-featured h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  text-wrap: balance;
  position: relative;
  flex: 1;
}
.guide-featured p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: var(--red);
  color: var(--white);
  border-radius: var(--r);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  position: relative;
  width: fit-content;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13,148,136,0.38); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary i { transition: transform 0.2s var(--ease-spring); }
.btn-primary:hover i { transform: translateX(4px); }

.guides-list { display: flex; flex-direction: column; gap: 0.75rem; }
.guide-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.guide-mini:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); border-color: var(--border-md); }
.guide-mini-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
}
.guide-mini h4 { font-family: var(--font-display); font-size: 0.89rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.guide-mini p { font-size: 0.79rem; color: var(--muted); }
.guide-arrow { margin-left: auto; color: var(--border-md); font-size: 0.8rem; transition: transform 0.2s var(--ease), color 0.2s; flex-shrink: 0; }
.guide-mini:hover .guide-arrow { transform: translateX(3px); color: var(--muted); }

/* ==============================
   FAQ SECTION
   ============================== */
.faq-section {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.faq-item {
  padding: 1.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.faq-icon { color: var(--red); font-size: 0.88rem; flex-shrink: 0; margin-top: 2px; }
.faq-a { font-size: 0.86rem; color: var(--muted); line-height: 1.7; padding-left: 22px; }

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.86rem; line-height: 1.75; max-width: 420px; }
.footer-brand a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.footer-brand a:hover { color: var(--white); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-links i { font-size: 0.72rem; opacity: 0.6; }
.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 960px) {
  .guides-grid { grid-template-columns: 1fr; }
  .guide-featured { min-height: auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem;
    gap: 0.5rem;
    z-index: var(--z-header);
    box-shadow: var(--shadow-xl);
  }
  .nav.open .nav-link { color: rgba(255,255,255,0.75); }
  .nav.open .nav-cta { margin: 0.5rem 0 0; display: flex; justify-content: center; }
  .nav-toggle { display: flex; }
  .filters-inner { flex-direction: column; gap: 0.75rem; }
  .filter-label { min-width: 80px; }
  .filters-toggle-btn { display: inline-flex; }
  .sort-wrap { flex-wrap: wrap; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .footer-links { grid-template-columns: 1fr; }
  .trust-items { gap: 1rem; }

  /* 2 colonnes sur mobile */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  /* Cards compactes sur mobile */
  .caisse-card {
    padding: 0.75rem;
    border-radius: var(--r-lg);
    overflow: hidden;
  }
  .card-logo-wrap { width: 44px; height: 32px; border-radius: 6px; padding: 3px; }
  .card-meta { min-width: 0; flex: 1; }
  .card-meta h3 { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .note-label { display: none; }
  .stars-display { gap: 1px; }
  .star { font-size: 10px; }
  .card-price { font-size: 1.35rem; }
  .card-price .currency { font-size: 0.78rem; }
  .card-price-period { font-size: 0.63rem; line-height: 1.3; }
  .card-features { gap: 4px; }
  .feature-row {
    font-size: 0.72rem;
    flex-wrap: wrap;
    gap: 2px 6px;
  }
  .feature-label { font-size: 0.72rem; }
  .feature-value {
    margin-left: 0;
    font-size: 0.68rem;
    width: 100%;
    padding-left: 26px;
    color: var(--muted);
  }
  .feature-icon { width: 18px; height: 18px; font-size: 8px; flex-shrink: 0; }
  .card-modeles { display: none; }
  .card-cta {
    padding: 0.55rem 0.5rem;
    font-size: 0.75rem;
    gap: 4px;
  }
  .card-cta i { font-size: 0.7rem; }
  .card-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .card-badge-row {
    height: auto;
    min-height: 20px;
    margin-bottom: 0.5rem;
    overflow: hidden;
  }
  .card-header { gap: 0.5rem; margin-bottom: 0.6rem; }
  .card-divider { margin: 0 0 0.6rem; }
  .card-price-wrap { margin-bottom: 0.6rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; }
  .filter-group { flex-direction: column; align-items: flex-start; }
}

/* =============================
   FORMULAIRE LEAD — OVERLAY
   ============================= */

.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fo-in .25s var(--ease) both;
}
.form-overlay[hidden] { display: none; }
@keyframes fo-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.form-modal {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  animation: fm-in .3s var(--ease-spring) both;
}
@keyframes fm-in {
  from { transform: translateY(32px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Header */
.fm-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.fm-logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  color: var(--navy);
  flex-shrink: 0;
}
.fm-logo svg { width: 22px; height: 22px; stroke: var(--red); }
.fm-logo span { color: var(--red); }
.fm-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.fm-step-label {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}
.fm-progress-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 99px;
  overflow: hidden;
}
.fm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #2DD4BF);
  border-radius: 99px;
  width: 25%;
  transition: width .5s var(--ease);
}
.fm-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: all .2s;
  flex-shrink: 0;
}
.fm-close:hover { background: var(--bg); color: var(--navy); }

/* Body */
.fm-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
  position: relative;
}

/* Steps */
.fm-step {
  display: none;
  animation: step-in .3s var(--ease) both;
}
.fm-step.active { display: block; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
.fm-step h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .4rem;
}
.fm-sub {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

/* Back button */
.fm-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0;
  margin-bottom: 1.25rem;
  transition: color .2s;
}
.fm-back:hover { color: var(--navy); }

/* Choice cards (step 1) */
.fm-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.fm-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.2rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s var(--ease);
}
.fm-choice i {
  font-size: 1.4rem;
  color: var(--muted);
  transition: color .2s;
}
.fm-choice:hover { border-color: var(--red); background: var(--red-light); }
.fm-choice:hover i { color: var(--red); }
.fm-choice.selected {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
}
.fm-choice.selected i { color: var(--red); }

/* Radio group */
.fm-radio-group {
  display: flex;
  gap: .6rem;
}
.fm-radio {
  flex: 1;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  color: var(--navy);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: all .2s;
}
.fm-radio:hover { border-color: var(--red); background: var(--red-light); }
.fm-radio.selected { border-color: var(--red); background: var(--red-light); color: var(--red); }

/* Fields */
.fm-field {
  margin-bottom: 1rem;
}
.fm-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.fm-field select,
.fm-field input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: .95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color .2s;
  font-family: var(--font-body);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.fm-field input { background-image: none; }
.fm-field select:focus,
.fm-field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}

.fm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Coverage cards (step 3) */
.fm-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.fm-coverage {
  padding: 1.25rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all .2s var(--ease);
}
.fm-coverage:hover { border-color: #3b82f6; background: #eff6ff; }
.fm-coverage.active { border-color: #3b82f6; background: #eff6ff; }
.fc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #3b82f6;
  margin-bottom: .25rem;
}
.fc-desc {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .9rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.fc-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--navy);
  margin-bottom: .35rem;
}
.fc-dots {
  display: flex;
  gap: 3px;
}
.fc-dot {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 3px;
  background: var(--border);
}
.fc-dot.on { background: #3b82f6; }

/* Trust note */
.fm-trust-note {
  display: flex;
  gap: .75rem;
  background: #f0f4ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: var(--navy);
}
.fm-trust-note i { color: #3b82f6; margin-top: 2px; flex-shrink: 0; font-size: 1rem; }
.fm-trust-note strong { display: block; font-weight: 700; margin-bottom: .15rem; }
.fm-trust-note span { color: var(--muted); }

/* CGU checkbox */
.fm-cgu {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  color: var(--muted);
  margin: 1rem 0 1.25rem;
  cursor: pointer;
  line-height: 1.5;
}
.fm-cgu input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.fm-cgu a { color: var(--red); text-decoration: underline; }

/* Buttons */
.fm-next,
.fm-submit {
  width: 100%;
  padding: .95rem 1.5rem;
  border: none;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--red), #2DD4BF);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .2s var(--ease);
  box-shadow: 0 4px 16px rgba(13,148,136,.3);
}
.fm-next:hover:not(:disabled),
.fm-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(13,148,136,.4);
}
.fm-next:disabled,
.fm-submit:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Steps nav sidebar */
.fm-steps-nav {
  display: flex;
  gap: 0;
  padding: .75rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.fm-step-nav-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  flex: 1;
  position: relative;
}
.fm-step-nav-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 1px;
  background: var(--border);
}
.fm-step-nav-item:last-child::after { display: none; }
.fm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background .3s;
}
.fm-step-nav-item.active { color: var(--red); }
.fm-step-nav-item.active .fm-dot { background: var(--red); }
.fm-step-nav-item.done { color: var(--green); }
.fm-step-nav-item.done .fm-dot { background: var(--green); }

/* Loading step */
.fm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
  text-align: center;
}
.fm-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fm-loading-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .4rem;
}
.fm-loading-sub {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.fm-loading-steps { display: flex; flex-direction: column; gap: .5rem; }
.fm-ls {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  transition: opacity .4s;
}
.fm-ls.visible { opacity: 1; color: var(--green); }
.fm-ls i { font-size: .85rem; }

/* List items (régime, profession) */
.fm-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.5rem;
}
.fm-list-item {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--navy);
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.fm-list-item:hover { border-color: #3b82f6; background: #eff6ff; color: #3b82f6; }
.fm-list-item.selected { border-color: #3b82f6; background: #eff6ff; color: #3b82f6; }
.fm-list-item--more {
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  border-style: dashed;
}
.fm-list-item--more:hover { border-color: var(--muted); background: var(--bg); color: var(--navy); }

.fm-list-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--red-light);
  color: var(--red);
}
.fm-list-badge--best {
  background: rgba(16,185,129,0.12);
  color: #059669;
}

/* Help box (régime social) */
.fm-help-box {
  background: var(--bg);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}
.fm-help-title {
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: .6rem;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.fm-help-box p { margin-bottom: .6rem; }
.fm-help-box p:last-child { margin-bottom: 0; }

/* Date de naissance */
.fm-dob-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color .2s;
}
.fm-dob-wrap:focus-within { border-color: #3b82f6; background: #f8fbff; }
.fm-dob-part {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-display);
  text-align: center;
  outline: none;
  width: 2.5ch;
}
.fm-dob-year { width: 4.5ch; }
.fm-dob-part::placeholder { color: var(--border-md); }
.fm-dob-sep {
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 300;
  flex-shrink: 0;
}

/* Comparator locked state */
.comparator-locked .cards-grid {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
.comparator-locked .filters-bar {
  pointer-events: none;
  opacity: .5;
}
.lock-overlay {
  position: absolute;
  /* Couvre la section depuis le début des cartes */
  top: 0;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  pointer-events: none; /* laisser passer les clics sur les premières cartes */
}
/* Dégradé transparent → opaque — pas de backdrop-filter */
.lock-overlay::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(244,245,248,0)    0%,
    rgba(244,245,248,0.88) 22%,
    rgba(244,245,248,0.97) 45%,
    rgba(244,245,248,1)    65%
  );
}
/* Boîte CTA centrée dans la moitié basse */
.lock-overlay-inner {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: all;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  width: 90%;
}
.lock-overlay-inner i {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: .75rem;
  display: block;
}
.lock-overlay-inner h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
}
.lock-overlay-inner p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.lock-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--r-lg);
  border: none;
  background: linear-gradient(135deg, var(--red), #2DD4BF);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(13,148,136,.3);
  transition: all .2s;
  width: 100%;
  justify-content: center;
}
.lock-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(13,148,136,.4); }

/* Results section locked */
.results-section { position: relative; }

/* ── Membre blocs ── */
.membre-bloc {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 0.85rem;
}
.membre-bloc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.membre-bloc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.membre-avatar { font-size: 1.2rem; line-height: 1; }
.membre-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.membre-remove:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

/* ── DOB Dropdowns ── */
.fm-dob-dropdowns {
  display: grid;
  grid-template-columns: 1fr 2fr 1.4fr;
  gap: .5rem;
}
.fm-dob-select {
  width: 100%;
  padding: .7rem .5rem .7rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: .9rem;
  color: var(--navy);
  background: var(--white);
  font-family: var(--font-body);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  transition: border-color .2s, box-shadow .2s;
}
.fm-dob-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}
.fm-dob-select:invalid, .fm-dob-select option[value=""] { color: var(--muted); }

/* ── Label hint ── */
.fm-label-hint {
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: .4rem;
}

/* ── Accident toggle ── */
.accident-toggle {
  display: flex;
  gap: .5rem;
}
.accident-btn {
  flex: 1;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--white);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .18s;
}
.accident-btn:hover { border-color: #9ca3af; color: var(--navy); }
.accident-btn.active {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}
.accident-btn[data-accident="false"].active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

/* ── Model chips multi-select ── */
.model-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.model-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.model-chip i { font-size: .75rem; }
.model-chip:hover {
  border-color: #6366f1;
  color: #4338ca;
  background: #eef2ff;
}
.model-chip.active {
  border-color: #6366f1;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}

.fm-add-enfant {
  width: 100%;
  padding: 0.85rem;
  border: 2px dashed var(--border-md);
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  margin-top: 0.25rem;
}
.fm-add-enfant:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* ── Checkboxes ── */
.fm-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.fm-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.18s;
  user-select: none;
}
.fm-checkbox-item:hover { border-color: var(--red); background: var(--red-light); }
.fm-checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
  cursor: pointer;
}
.fm-checkbox-item span { display: flex; align-items: center; gap: 5px; }
.fm-checkbox-item i { color: var(--muted); font-size: 0.85rem; }

/* ── Recap ── */
.recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.recap-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
}
.recap-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.recap-avatar { font-size: 1.3rem; }
.recap-label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.recap-age   { font-size: 0.76rem; color: var(--muted); }
.recap-rows  { display: flex; flex-direction: column; gap: 0.4rem; }
.recap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 0.5rem;
}
.recap-row span { color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.recap-row strong { color: var(--text); font-weight: 600; text-align: right; }
/* ═══════════════════════════════════════
   RECAP DASHBOARD — Layout premium
   ═══════════════════════════════════════ */

/* ── Banner profil analysé ── */
.recap-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(135deg, #0f1b3d 0%, #1a2b5c 100%);
  border-radius: var(--r-lg);
  padding: .9rem 1.1rem;
  margin-bottom: .85rem;
}
.recap-banner-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(13,148,136,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #2dd4bf; font-size: 1rem;
}
.recap-banner-text { flex: 1; min-width: 0; }
.recap-banner-text strong { display: block; color: #fff; font-size: .88rem; margin-bottom: 2px; }
.recap-banner-text span   { color: rgba(255,255,255,.55); font-size: .75rem; }
.recap-banner-stats {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.rbs-item { text-align: center; }
.rbs-item strong { display: block; color: #2dd4bf; font-size: .95rem; font-weight: 800; line-height: 1; }
.rbs-item span   { color: rgba(255,255,255,.45); font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.rbs-sep { width: 1px; height: 28px; background: rgba(255,255,255,.15); }

/* ── Dashboard grid ── */
.recap-dashboard {
  display: grid;
  gap: .75rem;
  align-items: start;
  margin-bottom: 1.75rem; /* espace avant bouton C'est correct */
}
.recap-cols-2 { grid-template-columns: 1fr 1fr; }
.recap-cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Recap card base ── */
.rdc {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ── Card headers ── */
.rdc-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  position: relative;
  overflow: hidden;
}
.rdc-head-info {
  flex: 1;
  min-width: 0;
}
.rdc-head-teal   { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.rdc-head-navy   { background: linear-gradient(135deg, #0f1b3d, #1a2b5c); }
.rdc-head-purple { background: linear-gradient(135deg, #6d28d9, #7c3aed); }

.rdc-head-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem;
}
.rdc-head-title { color: #fff; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.rdc-head-sub   { color: rgba(255,255,255,.6); font-size: .72rem; margin-top: 1px; }
.rdc-head-badge {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .7rem; font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.rdc-head-badge i { font-size: .65rem; color: #86efac; }

/* ── Card body ── */
.rdc-body { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; }

/* ── Member mini bloc ── */
.mmc-bloc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .7rem .85rem;
}
.mmc-bloc + .mmc-bloc { margin-top: .5rem; }
.mmc-top {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .55rem;
}
.mmc-avatar {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 1px;
}
.mmc-info { flex: 1; min-width: 0; }
.mmc-name { display: block; font-size: .88rem; font-weight: 700; color: var(--navy); }
.mmc-age  { font-size: .75rem; color: var(--muted); }
.mmc-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.mmc-models {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

/* ── Chips membres ── */
.mmc-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.mmc-chip i { font-size: .6rem; }
.chip-fr       { background: #f1f5f9; color: #475569; }
.chip-acc-ok   { background: #dcfce7; color: #166534; }
.chip-acc-no   { background: #fef3c7; color: #92400e; }
.chip-mod      { color: #fff; }
.chip-slate    { background: #64748b; }
.chip-blue     { background: #3b82f6; }
.chip-teal     { background: #0d9488; }
.chip-purple   { background: #7c3aed; }

/* ── Info rows (Card LAMal) ── */
.rdc-info-row {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.rdc-ir-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}
.ri-red    { background: #fee2e2; color: #dc2626; }
.ri-teal   { background: #ccfbf1; color: #0f766e; }
.ri-blue   { background: #dbeafe; color: #1d4ed8; }
.ri-purple { background: #ede9fe; color: #6d28d9; }
.ri-muted  { background: var(--bg); color: var(--muted); }

.rdc-ir-body { display: flex; flex-direction: column; }
.rdc-ir-body span   { font-size: .72rem; color: var(--muted); }
.rdc-ir-body strong { font-size: .88rem; color: var(--navy); font-weight: 700; }

/* ── Couverture souhaitée goal block ── */
.rdc-cov-goal {
  display: flex;
  align-items: center;
  gap: .65rem;
  border-radius: var(--r);
  padding: .65rem .85rem;
  margin-top: .2rem;
  font-size: .85rem;
}
.rdc-cov-goal i    { font-size: 1rem; flex-shrink: 0; }
.rdc-cov-label     { font-size: .72rem; font-weight: 500; opacity: .75; }
.rdc-cov-value     { font-weight: 800; font-size: .95rem; }
.rdc-cov-minimale  { background: #f1f5f9; color: #475569; }
.rdc-cov-minimale i { color: #94a3b8; }
.rdc-cov-economique { background: #fef9c3; color: #854d0e; }
.rdc-cov-economique i { color: #d97706; }
.rdc-cov-equilibree { background: #dbeafe; color: #1e40af; }
.rdc-cov-equilibree i { color: #2563eb; }
.rdc-cov-optimale   { background: #dcfce7; color: #166534; }
.rdc-cov-optimale i { color: #16a34a; }

/* ── LCA couvertures chips ── */
.rdc-cov-section { margin-top: .2rem; }
.rdc-cov-section-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.lca-cov-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.lca-cov-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.lca-cov-chip i { font-size: .65rem; }
.lca-chip-amber  { background: #fef3c7; color: #92400e; }
.lca-chip-blue   { background: #dbeafe; color: #1e40af; }
.lca-chip-green  { background: #dcfce7; color: #166534; }
.lca-chip-teal   { background: #ccfbf1; color: #0f766e; }
.lca-chip-purple { background: #ede9fe; color: #5b21b6; }
.lca-chip-slate  { background: #f1f5f9; color: #475569; }
.lca-cov-empty   { font-size: .8rem; color: var(--muted); font-style: italic; }

/* Compat ancien code */
.recap-meta, .recap-layout, .recap-section-box, .recap-section-lca,
.recap-row-wrap, .recap-tags, .recap-tag, .recap-badge-yes, .recap-badge-no,
.recap-cov-badge, .recap-cov-economique, .recap-cov-equilibree, .recap-cov-optimale { /* styles remplacés */ }

/* ══════════════════════════════════════════════════════
   LCA ADVANCED FILTERS — Tier pills, Age slider, Santé
   ══════════════════════════════════════════════════════ */

/* ── Layout tier + âge inline ── */
.lca-filter-row2 {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
/* Tier : label au-dessus, pills en dessous */
.lca-tier-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.lca-tier-col .filter-label {
  min-width: unset;
}
.lca-tier-col .pill-group {
  flex-wrap: wrap;
}
/* Âge : colonne à droite, largeur fixe */
.lca-filter-row2 .lca-age-group {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.lca-filter-row2 .lca-age-group .filter-label {
  min-width: unset;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
}

/* ── Tier pills colorés ── */
.lca-tier-pill {
  font-weight: 700;
  letter-spacing: 0.02em;
  border-width: 2px;
  transition: all 0.18s var(--ease);
}
.lca-tier-pill.tier-basic {
  border-color: #D1D5DB;
  color: #4B5563;
}
.lca-tier-pill.tier-basic:hover,
.lca-tier-pill.tier-basic.active {
  background: #6B7280;
  border-color: #6B7280;
  color: #fff;
}
.lca-tier-pill.tier-standard {
  border-color: #93C5FD;
  color: #1D4ED8;
}
.lca-tier-pill.tier-standard:hover,
.lca-tier-pill.tier-standard.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
}
.lca-tier-pill.tier-premium {
  border-color: #C4B5FD;
  color: #6D28D9;
}
.lca-tier-pill.tier-premium:hover,
.lca-tier-pill.tier-premium.active {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #fff;
}
.lca-tier-pill.tier-elite {
  border-color: #FCD34D;
  color: #92400E;
}
.lca-tier-pill.tier-elite:hover,
.lca-tier-pill.tier-elite.active {
  background: linear-gradient(135deg, #D97706, #B45309);
  border-color: #B45309;
  color: #fff;
}

/* ── Année de naissance selector ── */
.lca-birth-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.lca-birth-select {
  padding: 5px 28px 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.15s;
}
.lca-birth-select:hover,
.lca-birth-select:focus {
  border-color: var(--teal);
  outline: none;
}
.lca-age-result {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}

/* ── Age slider group (kept for compat) ── */
.lca-age-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.2rem 0;
}
.filter-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.filter-label strong {
  color: var(--text);
  font-weight: 700;
}
.lca-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.slider-bound {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.lca-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 100px;
  background: linear-gradient(to right, var(--teal) 0%, var(--teal) 50%, var(--border) 50%, var(--border) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.lca-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,.35);
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s;
}
.lca-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 3px 12px rgba(13,148,136,.5);
}
.lca-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,.35);
  cursor: pointer;
}
.lca-age-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.7;
  padding: 0 22px; /* aligner avec les bornes du slider */
  gap: 4px;
}

/* ── Santé filter buttons ── */
.lca-sante-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.15rem 0;
}
.lca-sante-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  font-family: var(--font-body);
}
.lca-sante-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--red-light);
}
.lca-sante-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}

/* ── Filter hint text ── */
.filter-hint {
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.2rem;
  opacity: 0.8;
}

/* ── LCA Disclaimer banner ── */
.lca-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: #92400E;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.lca-disclaimer i {
  color: #D97706;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.lca-disclaimer strong {
  color: #78350F;
}

/* ══════════════════════════════════════════════════════
   LCA CARD — New visual elements (tier dots, elite, etc.)
   ══════════════════════════════════════════════════════ */

/* ── Badge row (tier badge + label) ── */
.lca-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

/* ── Product name under insurer ── */
.lca-insurer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.lca-product-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 1px;
}

/* ── Tier dots (●●●○) ── */
.tier-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}
.tier-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  transition: background 0.15s;
}
.tier-dot.filled {
  background: currentColor;
}

/* ── Elite card highlight ── */
.lca-elite {
  border: 2px solid #FCD34D !important;
  background: linear-gradient(160deg, #FFFBEB 0%, #fff 60%) !important;
  box-shadow: 0 4px 24px rgba(180,83,9,.10), 0 1px 4px rgba(180,83,9,.08) !important;
}
.lca-elite:hover {
  box-shadow: 0 8px 32px rgba(180,83,9,.18), 0 2px 8px rgba(180,83,9,.10) !important;
}

/* ── Santé underwriting warning in card ── */
.lca-sante-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--r-sm);
  padding: 5px 9px;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.lca-sante-warn i {
  color: #D97706;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── Tier badge dans les cards ── */
.lca-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   LAMAL CARD — Moteur officiel OFSP 2026
   ══════════════════════════════════════════ */

/* Nom commercial du produit */
.lamal-product-row {
  margin-bottom: 0.55rem;
}
.lamal-product-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* Badge modèle avec couleur dynamique */
.lamal-model-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--mb, #F3F4F6);
  color: var(--mc, #6B7280);
  margin-bottom: 0.45rem;
  width: fit-content;
}
.lamal-model-tag i { font-size: 0.78rem; }

/* Description courte du modèle */
.lamal-model-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

/* Prix principal */
.lamal-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}
.lamal-price {
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.03em;
}
.lamal-price strong {
  font-weight: 800;
  color: var(--navy);
}
.lamal-price-mo {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.lamal-price-sub {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.lamal-price-sub small { font-size: 0.7em; }

/* Chips accident + canton */
.lamal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.lamal-acc,
.lamal-canton {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1.5px solid;
}
.acc-incl {
  background: rgba(16,185,129,.08);
  color: #059669;
  border-color: rgba(16,185,129,.25);
}
.acc-excl {
  background: rgba(239,68,68,.07);
  color: #DC2626;
  border-color: rgba(239,68,68,.2);
}
.lamal-canton {
  background: rgba(6,182,212,.07);
  color: #0891B2;
  border-color: rgba(6,182,212,.2);
}

/* Badge source OFSP officiel */
.lamal-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  font-size: 0.67rem;
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.01em;
}
.lamal-source-badge i { font-size: 0.65rem; }

/* ══════════════════════════════════════════ */

@media (max-width: 640px) {
  .form-modal { border-radius: var(--r-lg) var(--r-lg) 0 0; align-self: flex-end; max-height: 95vh; }
  .form-overlay { padding: 0; align-items: flex-end; }
  .fm-body { padding: 1.5rem 1.25rem 1rem; }
  .fm-choices { grid-template-columns: 1fr 1fr; }
  .fm-coverage-grid { grid-template-columns: 1fr; }
  .fm-row { grid-template-columns: 1fr; }
  .fm-steps-nav { display: none; }
  .fm-checkboxes { grid-template-columns: 1fr; }
  .recap-grid { grid-template-columns: 1fr 1fr; }
  .recap-layout { grid-template-columns: 1fr; }
  .recap-cols-2, .recap-cols-3 { grid-template-columns: 1fr; }
  .recap-banner-stats { display: none; }
  .mmc-badge-wrap { flex-direction: row; flex-wrap: wrap; }
  /* LCA mobile */
  .lca-sante-group { gap: 0.3rem; }
  .lca-sante-btn { font-size: 0.72rem; padding: 4px 10px; }
  .lca-disclaimer { font-size: 0.74rem; padding: 0.65rem 0.85rem; }
  .lca-slider-wrap { gap: 0.4rem; }
}
