/* ============================================
   PRÉSIDENTIEL 2027 — Design System v2
   Direction : bold, épuré, app civique moderne
   ============================================ */

/* --- Variables globales --- */
:root {
  --blue:      #1D4ED8;
  --blue-lt:   #EFF6FF;
  --blue-dk:   #1E3A8A;
  --text:      #0F172A;
  --text-2:    #334155;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --bg:        #FFFFFF;
  --bg-lt:     #F8FAFC;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 1px 4px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09);
  --font:      'Marianne', 'Inter', system-ui, sans-serif;
  --transition: .18s ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:   #F1F5F9;
    --text-2: #CBD5E1;
    --muted:  #94A3B8;
    --border: #1E293B;
    --bg:     #0F172A;
    --bg-lt:  #1E293B;
  }
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-lt);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text-2); line-height: 1.65; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER BLANC
   ============================================ */

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}
.site-logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--blue-dk);
  text-decoration: none;
  letter-spacing: -.05em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.site-logo-badge {
  background: var(--blue-dk);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .15rem .45rem;
  border-radius: 5px;
  letter-spacing: .02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex: 1;
}
.main-nav a {
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  padding: .35rem .8rem;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.main-nav a:hover { background: var(--bg-lt); color: var(--text); }
.main-nav a.current { background: var(--blue-lt); color: var(--blue); font-weight: 600; }

/* Dropdowns nav */
.nav-item { position: relative; }
.nav-dropdown-wrap > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; margin-left: .35rem; vertical-align: middle; opacity: .5; }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: .4rem; z-index: 400; }
.nav-dropdown a { display: block; padding: .45rem .75rem; border-radius: 6px; font-size: .82rem; white-space: nowrap; color: var(--text-2); background: none; }
.nav-dropdown a:hover { background: var(--bg-lt); color: var(--blue); }
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown { display: block; }
.nav-dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-cta-mobile, .nav-account-mobile { display: none; }
.nav-account { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; color: var(--text-2); text-decoration: none; padding: .45rem .7rem; border-radius: 8px; }
.nav-account:hover { background: var(--bg-lt); color: var(--text); }
.nav-account svg { width: 17px; height: 17px; }
.nav-account + .nav-cta { margin-left: .5rem; }
.nav-account, .nav-cta a, .main-nav a { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1140px) {
  .main-nav { gap: 0; }
  .main-nav a { padding-left: .5rem; padding-right: .5rem; font-size: .82rem; }
  .nav-account { font-size: .82rem; padding: .4rem .5rem; }
  .nav-account svg { display: none; }
  .nav-cta a { font-size: .82rem !important; padding-left: .75rem !important; padding-right: .75rem !important; }
  .nav-cta a svg { display: none; }
}
@media (max-width: 1320px) {
  .main-nav .nav-item { width: 100%; }
  .main-nav .nav-dropdown { display: block; position: static; box-shadow: none; border: none; padding: 0 0 .25rem .75rem; min-width: 0; }
  .nav-dropdown-wrap > a::after { display: none; }
  .nav-account { display: none; }
  .main-nav.open .nav-account-mobile { display: block; width: 100%; }
  .main-nav.open .nav-cta-mobile { display: block; width: 100%; margin-top: .5rem; text-align: center; background: var(--blue); color: #fff; font-weight: 600; }
}

.nav-cta { margin-left: auto; }
.nav-cta a {
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 8px;
  padding: .4rem 1rem !important;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background var(--transition) !important;
  text-decoration: none !important;
}
.nav-cta a:hover { background: var(--blue-dk) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: .4rem;
}
@media (max-width: 1320px) {
  .main-nav { display: none; flex-direction: column; align-items: flex-start; padding: .5rem 0; }
  .main-nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: .75rem 1.5rem; z-index: 300; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-lt); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-lt); text-decoration: none; }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   PAGE ACCUEIL
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--blue-dk) 0%, #2563EB 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 580px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary {
  background: #fff;
  color: var(--blue-dk);
  border-color: #fff;
  font-size: 1rem;
}
.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.15); }

.home-sections { padding: 4rem 0; }
.home-section { margin-bottom: 4rem; }
.home-section h2 { margin-bottom: .5rem; }
.home-section > p { margin-bottom: 1.5rem; }

/* Stats d'accueil */
.stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.stat-card {
  flex: 1;
  min-width: 140px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--blue); }
.stat-card span { font-size: .85rem; color: var(--muted); }

/* ============================================
   PAGE CANDIDATS — LISTING
   ============================================ */

.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.page-header h1 { margin-bottom: .5rem; }
.page-header p { color: var(--muted); font-size: 1.05rem; }

/* Toolbar */
.cand-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  flex-wrap: wrap;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .5rem .9rem;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--blue); }
.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .9rem;
  color: var(--text);
  width: 100%;
}
.sb-icon { color: var(--muted); flex-shrink: 0; }
.cand-toolbar-right { margin-left: auto; }

/* Filtres thèmes */
.filters-bar {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
  margin-bottom: 1.5rem;
}
.filters-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active {
  background: var(--fp-color, var(--blue));
  border-color: var(--fp-color, var(--blue));
  color: #fff;
}
.filter-pill svg { width: 14px; height: 14px; }

/* Grille candidats */
.candidats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: .5rem 0 2rem;
}
.candidat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.candidat-card:hover {
  border-color: var(--cand-color, var(--blue));
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
  text-decoration: none;
}
/* Trait coloré en haut */
.candidat-card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--cand-color, var(--blue));
}
.cc-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.cc-top {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .3rem;
}
.cc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}
.cc-avatar-photo {
  overflow: hidden;
  background: transparent !important;
}
.cc-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.cc-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.2;
}
.cc-parti {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.cc-stats {
  display: flex;
  gap: 1rem;
  margin-top: .5rem;
}
.cc-stat {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.cc-stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.cc-stat span {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cc-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--cand-color, var(--blue));
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--bg-lt);
  transition: background var(--transition);
}
.candidat-card:hover .cc-footer { background: color-mix(in srgb, var(--cand-color, var(--blue)) 8%, var(--bg-lt)); }

/* ============================================
   PAGE CANDIDAT — FICHE DETAIL
   ============================================ */

/* Breadcrumb */
.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  padding: 1.25rem 0 .75rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.bc-sep { opacity: .4; }

/* Layout 2 colonnes */
.cand-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 1.5rem 0 4rem;
}
@media (max-width: 860px) {
  .cand-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .cand-sidebar { position: static !important; }
}

/* Sidebar candidat */
.cand-sidebar {
  position: sticky;
  top: 76px;
}
.cand-sidebar-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* Trait coloré en haut */
.cand-sidebar-card::before {
  content: '';
  display: block;
  height: 6px;
  background: var(--cand-color, var(--blue));
}
.cand-sidebar-body { padding: 1.5rem; }
.cand-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.cand-avatar-photo {
  border: 3px solid;
  overflow: hidden;
  background: transparent !important;
}
.cand-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.cand-sidebar-body h1 {
  font-size: 1.4rem;
  margin-bottom: .2rem;
}
.cand-sidebar-parti {
  font-size: .85rem;
  font-weight: 700;
  color: var(--cand-color, var(--blue));
  margin-bottom: .5rem;
}
.cand-sidebar-slogan {
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.cand-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.cs-stat {
  background: var(--bg-lt);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  text-align: center;
  border: 1px solid var(--border);
}
.cs-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .2rem;
}
.cs-stat span {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cand-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.cand-sidebar-actions .btn { justify-content: center; }

/* Navigation thèmes */
.cand-thems-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 65px;
  z-index: 90;
  margin-bottom: 1.5rem;
}
.thems-nav {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .75rem 0;
  scrollbar-width: none;
}
.thems-nav::-webkit-scrollbar { display: none; }
.them-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .8rem;
  border-radius: 20px;
  border: 1.5px solid var(--fp-color, var(--border));
  color: var(--fp-color, var(--muted));
  background: color-mix(in srgb, var(--fp-color, transparent) 8%, var(--bg));
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.them-pill:hover {
  background: color-mix(in srgb, var(--fp-color, var(--blue)) 15%, var(--bg));
  text-decoration: none;
}
.them-pill svg { width: 13px; height: 13px; }
.pill-count {
  background: var(--fp-color, var(--muted));
  color: #fff;
  border-radius: 10px;
  padding: .05rem .4rem;
  font-size: .68rem;
  font-weight: 700;
}

/* Corps du programme */
.cand-body { }
.cand-bio-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.section-title svg { width: 16px; height: 16px; }
.cand-bio.prose p { margin-bottom: .75rem; }
.cand-bio.prose p:last-child { margin-bottom: 0; }

/* Sections thèmes */
.theme-section { margin-bottom: 2rem; }
.theme-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .6rem 1rem;
  border-radius: 8px;
  margin-bottom: .9rem;
}
.theme-title span svg { width: 15px; height: 15px; }

/* Mesures */
.mesures-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.mesure-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.mesure-item:hover {
  border-color: color-mix(in srgb, var(--mes-color, var(--blue)) 40%, var(--border));
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
.mi-top {
  display: flex;
  gap: .9rem;
  padding: 1rem 1.1rem .85rem;
  align-items: flex-start;
}
.mi-accent {
  width: 3px;
  min-height: 36px;
  align-self: stretch;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: .15rem;
}
.mi-content h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
  line-height: 1.35;
}
.mi-content p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
}
.ci-cand {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  margin-top: .4rem;
  text-decoration: none;
}
.ci-cand:hover { text-decoration: underline; }
.mi-actions-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-lt);
}
.mi-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  line-height: 1;
}
.mi-action-btn:hover { background: var(--border); color: var(--text); text-decoration: none; }
.mi-action-btn svg { width: 14px; height: 14px; }
.mi-actions-spacer { flex: 1; }
.mi-share-btn { border-right: none; border-left: 1px solid var(--border); color: var(--muted); }

/* Bouton ajout au programme */
.btn-add-to-prog { }

/* Footer candidat */
.cand-footer-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* État vide */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state p { margin-bottom: 1.25rem; }

/* ============================================
   PAGE PROGRAMMES CITOYENS — LISTING
   ============================================ */

.prog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0 2rem;
}
.prog-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.prog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.prog-card-top {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.25rem 1.25rem .75rem;
}
.prog-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prog-card-info strong { display: block; font-size: .97rem; font-weight: 700; }
.prog-card-auteur {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .2rem;
}
.prog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1.25rem;
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.prog-card-actions { padding: .9rem 1.25rem; }

/* ============================================
   PAGE PROGRAMME CITOYEN — DETAIL
   ============================================ */

.prog-public { padding: 1rem 0 3rem; }

.prog-pub-header {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}
.prog-pub-header::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-dk), var(--blue));
}
.prog-pub-header-body {
  padding: 1.75rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.prog-pub-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prog-pub-info { flex: 1; }
.prog-pub-info h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.prog-pub-info p { font-size: .88rem; color: var(--muted); }

/* Boutons partage */
.share-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.share-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-right: .25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  transition: opacity var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.share-btn:hover { opacity: .85; text-decoration: none; }
.share-btn svg { width: 14px; height: 14px; }
.share-btn-x { background: #0F172A; color: #fff; }
.share-btn-fb { background: #1877F2; color: #fff; }
.share-btn-wa { background: #25D366; color: #fff; }
.share-btn-copy { background: var(--bg-lt); color: var(--text-2); border: 1.5px solid var(--border); }
.share-btn-copy.copied { background: #ECFDF5; color: #059669; border-color: #059669; }
.share-url-input {
  font-size: .78rem;
  color: var(--muted);
  background: var(--bg-lt);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .35rem .75rem;
  cursor: text;
  flex: 1;
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Matching candidats */
.prog-pub-matching {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.prog-pub-matching h2 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.match-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.mc-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.mc-badge {
  width: 36px; height: 36px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mc-top strong { display: block; font-size: .9rem; }
.mc-parti { font-size: .75rem; color: var(--muted); }
.mc-bar-wrap { background: var(--border); border-radius: 4px; height: 6px; margin-bottom: .4rem; overflow: hidden; }
.mc-bar { height: 100%; border-radius: 4px; transition: width .6s ease; }
.mc-pct { font-size: .78rem; color: var(--muted); }

/* Mesures programme public */
.prog-pub-mesures {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.prog-pub-mesures h2 { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Programme CTA */
.prog-pub-cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--blue-lt);
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.prog-pub-cta p { font-weight: 600; color: var(--blue-dk); margin-bottom: 1rem; }

/* Affinités */
.affinites-section { padding: 2rem 0 3rem; }
.affinites-intro { color: var(--muted); margin-bottom: 1.5rem; }
.affinites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.affinite-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.aff-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.aff-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aff-info { flex: 1; }
.aff-info strong { display: block; font-size: .9rem; }
.aff-auteur { font-size: .75rem; color: var(--muted); }
.aff-pct { font-size: 1.3rem; font-weight: 900; color: var(--blue); }
.aff-bar-wrap { background: var(--border); border-radius: 4px; height: 5px; margin-bottom: .4rem; overflow: hidden; }
.aff-bar { height: 100%; background: var(--blue); border-radius: 4px; }
.aff-detail { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.aff-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================
   MON PROGRAMME
   ============================================ */

.mon-prog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2rem 0 4rem;
}
@media (max-width: 860px) { .mon-prog-layout { grid-template-columns: 1fr; } }
.mon-prog-panel {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mon-prog-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-lt);
}
.mon-prog-panel-header h2 { font-size: 1rem; }
.mon-prog-panel-body { padding: 1.25rem 1.5rem; }

/* ============================================
   COMPARATEUR
   ============================================ */

.comparer-wrap { padding: 1rem 0 3rem; }
.comparer-hint { color: var(--muted); margin-bottom: 1.25rem; font-size: .9rem; }
.comparer-selector {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.comparer-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.comparer-pill:hover { border-color: var(--cp-color, var(--blue)); color: var(--cp-color, var(--blue)); }
.comparer-pill.selected {
  background: color-mix(in srgb, var(--cp-color, var(--blue)) 10%, var(--bg));
  border-color: var(--cp-color, var(--blue));
  color: var(--cp-color, var(--blue));
}
.cp-badge {
  width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
}
.cp-check { margin-left: auto; display: none; }
.comparer-pill.selected .cp-check { display: flex; }
.comparer-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.comparer-table { width: 100%; border-collapse: collapse; background: var(--bg); font-size: .88rem; }
.comparer-table th, .comparer-table td { border-bottom: 1px solid var(--border); padding: .9rem 1rem; text-align: left; vertical-align: top; }
.ct-col-theme { background: var(--bg-lt); min-width: 140px; }
.ct-col-cand {
  min-width: 200px;
  text-align: center;
  border-left: 2px solid var(--cth-color, var(--border));
}
.cth-badge { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto .4rem; color: #fff; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; }
.cth-name { display: block; font-weight: 700; }
.cth-parti { display: block; font-size: .72rem; color: var(--muted); }
.ct-row-match { background: #FFFBEB; }
.ct-theme-cell { background: var(--bg-lt); font-weight: 700; font-size: .82rem; }
.ct-theme-label { display: block; }
.ct-match-badge { display: inline-block; background: #FEF3C7; color: #92400E; font-size: .68rem; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; margin-top: .3rem; }
.ct-mes { font-size: .82rem; color: var(--text-2); padding: .2rem 0; }
.ct-empty-cell { color: var(--border); text-align: center; font-size: 1.2rem; }

/* ============================================
   PAGE ACCUEIL
   ============================================ */

.home-hero {
  background: var(--blue-dk);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.home-hero-label {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.25rem;
}
.home-hero h1 { color: #fff; margin-bottom: 1rem; max-width: 640px; }
.home-hero-sub { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 500px; margin-bottom: 2.5rem; }

/* Cards d'actions */
.home-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
  max-width: 760px;
}
.ha-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.ha-card:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); text-decoration: none; }
.ha-primary { background: rgba(255,255,255,.95); color: var(--blue-dk) !important; border-color: transparent; }
.ha-primary:hover { background: #fff !important; }
.ha-primary strong, .ha-primary span { color: var(--blue-dk) !important; }
.ha-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ha-primary .ha-icon { background: color-mix(in srgb, var(--blue) 15%, transparent); }
.ha-card > div { flex: 1; }
.ha-card strong { display: block; font-weight: 700; font-size: .97rem; margin-bottom: .15rem; }
.ha-card span { font-size: .78rem; opacity: .8; }
.ha-arr { opacity: .5; flex-shrink: 0; }

/* Thèmes accueil */
.home-thems-wrap {
  padding: 2rem 0 1rem;
}
.home-thems-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .75rem;
}
.home-thems {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.home-them-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  /* Pastel : fond très léger, texte de la couleur */
  background: color-mix(in srgb, var(--tc) 10%, #fff);
  color: color-mix(in srgb, var(--tc) 80%, #333);
  border: 1.5px solid color-mix(in srgb, var(--tc) 25%, var(--border));
  text-decoration: none;
  transition: all var(--transition);
}
.home-them-pill:hover {
  background: color-mix(in srgb, var(--tc) 20%, #fff);
  text-decoration: none;
}
.home-them-pill svg { width: 13px; height: 13px; }

/* Sections accueil */
.home-section { padding: 2rem 0; }
.home-section-alt {
  background: var(--bg-lt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  margin: 1.5rem 0;
}
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.home-section-head h2 { font-size: 1.3rem; }

/* Cards mesures accueil */
.mesures-grid { display: grid; gap: 1rem; }
.mesures-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mesure-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.mesure-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 12px;
  /* Pastel */
  background: color-mix(in srgb, currentColor 10%, #fff);
  border: 1px solid color-mix(in srgb, currentColor 20%, var(--border));
  align-self: flex-start;
}
.mesure-tag svg { width: 12px; height: 12px; }
.mesure-card h3 { font-size: .95rem; }
.mesure-card p { font-size: .82rem; color: var(--muted); flex: 1; }
.mesure-actions { display: flex; align-items: center; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.btn-vote {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: 20px;
  background: var(--bg-lt); border: 1.5px solid var(--border);
  font-size: .78rem; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all var(--transition);
}
.btn-vote:hover { border-color: var(--blue); color: var(--blue); }
.btn-vote svg { width: 13px; height: 13px; }
.home-cta-propose { margin-top: 1.5rem; display: flex; justify-content: center; }

/* ============================================
   FOOTER RESTRUCTURÉ
   ============================================ */

.site-footer {
  background: var(--blue-dk);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 0;
  margin-top: 4rem;
  font-size: .85rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand {
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: -.04em;
  display: block;
  margin-bottom: .6rem;
}
.footer-brand span { color: #93C5FD; }
.footer-desc { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  padding: .2rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 24px;
  max-width: 1140px;
  margin: 0 auto;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}

/* ============================================
   UTILITAIRES
   ============================================ */

.perso-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  background: var(--blue-lt);
  color: var(--blue);
  border: 1px solid #BFDBFE;
  border-radius: 4px;
  padding: .05rem .4rem;
  margin-left: .4rem;
  vertical-align: middle;
}
.mesure-perso { border-color: #BFDBFE; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .candidats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .prog-cards-grid { grid-template-columns: 1fr; }
  .cand-sidebar-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  h1 { font-size: 1.7rem; }
}
@media (max-width: 400px) {
  .candidats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE MESURES CITOYENNES — FEED
   ============================================ */

.feed-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.feed-header > div { flex: 1; }
.propose-btn { flex-shrink: 0; }

.feed-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .feed-layout { grid-template-columns: 1fr; }
  .feed-aside { display: none; }
}

.feed-aside { position: sticky; top: 76px; }
.aside-block {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.aside-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .6rem;
}
.aside-nav { display: flex; flex-direction: column; gap: .1rem; }
.aside-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border-radius: 7px;
  font-size: .84rem;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.aside-link:hover { background: var(--bg-lt); color: var(--text); text-decoration: none; }
.aside-link.active {
  background: var(--al-color, var(--blue-lt));
  color: var(--al-color, var(--blue));
  font-weight: 700;
}
.aside-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.feed-main { min-width: 0; }
.feed-search-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .55rem .9rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.feed-search-bar:focus-within { border-color: var(--blue); }
.feed-search-bar input { border: none; background: transparent; outline: none; font-size: .9rem; color: var(--text); width: 100%; }

/* Formulaire de proposition */
.compose-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compose-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-lt);
}
.compose-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-lt);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.compose-label { font-weight: 700; font-size: .9rem; }
.compose-form { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.compose-titre, .compose-desc, .compose-theme, .compose-auteur {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .5rem .8rem;
  font-size: .88rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.compose-titre:focus, .compose-desc:focus, .compose-theme:focus, .compose-auteur:focus { border-color: var(--blue); }
.compose-desc { resize: vertical; min-height: 70px; }
.compose-meta { display: flex; gap: .6rem; }
.compose-meta select, .compose-meta input { flex: 1; }
.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .3rem;
}
.compose-tip { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.compose-tip svg { width: 12px; height: 12px; }

/* Filtres mobiles */
.feed-filters-mobile {
  display: none;
  gap: .4rem;
  overflow-x: auto;
  padding-bottom: .4rem;
  margin-bottom: .75rem;
  scrollbar-width: none;
}
.feed-filters-mobile::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .feed-filters-mobile { display: flex; } }

/* Feed cards mesures */
.feed-cards { display: flex; flex-direction: column; gap: .75rem; }
.feed-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feed-card:hover { border-color: color-mix(in srgb, var(--blue) 30%, var(--border)); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.feed-card-new { animation: fadeSlide .3s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.fc-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.fc-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 20px;
}
.fc-tag svg { width: 12px; height: 12px; }
.fc-badge-off {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .72rem; font-weight: 700;
}
.fc-badge-off svg { width: 12px; height: 12px; }
.fc-auteur { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .25rem; }
.fc-auteur svg { width: 12px; height: 12px; }
.fc-title { font-size: .97rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; line-height: 1.35; }
.fc-desc { font-size: .84rem; color: var(--muted); margin-bottom: .6rem; line-height: 1.5; }
.fc-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: .6rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.fc-vote, .fc-add {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .8rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-lt);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.fc-vote:hover { border-color: var(--blue); color: var(--blue); }
.fc-add:hover { border-color: #059669; color: #059669; }
.fc-vote svg, .fc-add svg { width: 13px; height: 13px; }
.fc-link {
  margin-left: auto; color: var(--muted);
  display: inline-flex; align-items: center;
  transition: color var(--transition); text-decoration: none;
}
.fc-link:hover { color: var(--blue); }

/* ============================================
   PAGE MON PROGRAMME — BUILDER
   ============================================ */

.bp-page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.mes-progs-wrap {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.mes-progs-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.mes-progs-head h3 { font-size: .9rem; }
.mes-progs-list { display: flex; flex-direction: column; gap: .4rem; }
.mes-prog-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  background: var(--bg-lt);
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  font-size: .85rem;
  transition: background var(--transition);
}
.mes-prog-item:hover { background: var(--blue-lt); text-decoration: none; }
.mpi-avatar { color: var(--blue); flex-shrink: 0; }
.mpi-body { flex: 1; min-width: 0; }
.mpi-body strong { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpi-body span { font-size: .75rem; color: var(--muted); }

/* Layout builder 2 colonnes */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
  align-items: start;
}
@media (max-width: 900px) { .builder-layout { grid-template-columns: 1fr; } }

/* Catalogue gauche */
.builder-catalog {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.builder-catalog-header {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-lt);
}
.builder-catalog-header h2 { font-size: 1rem; margin-bottom: .5rem; }
.catalog-search-bar {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .4rem .8rem;
  transition: border-color var(--transition);
}
.catalog-search-bar:focus-within { border-color: var(--blue); }
.catalog-search-bar input { border: none; background: transparent; outline: none; font-size: .85rem; color: var(--text); width: 100%; }
.catalog-search-bar svg { color: var(--muted); width: 14px; height: 14px; flex-shrink: 0; }

.catalog-section { border-bottom: 1px solid var(--border); }
.catalog-section:last-child { border-bottom: none; }
.catalog-theme-title {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.25rem .5rem;
  font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.catalog-theme-title svg { width: 14px; height: 14px; }
.cand-theme-badge {
  margin-left: auto;
  font-size: .68rem; font-weight: 700;
  background: var(--bg-lt);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .1rem .45rem;
  border-radius: 10px;
}

.catalog-item {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .6rem 1.25rem;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.catalog-item:hover { background: var(--bg-lt); }
.catalog-item.in-prog { background: #EFF6FF; }
.ci-info { flex: 1; min-width: 0; }
.ci-title { display: block; font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.ci-desc { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; }
.ci-cand { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 600; margin-top: .2rem; }
.ci-cand svg { width: 11px; height: 11px; }
.ci-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.ci-toggle:hover { border-color: var(--blue); color: var(--blue); }
.in-prog .ci-toggle { border-color: #059669; background: #ECFDF5; color: #059669; }
.ci-toggle svg { width: 14px; height: 14px; }

/* Panneau droite builder */
.builder-panel {
  position: sticky;
  top: 76px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.bp-header {
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-lt);
  display: flex; align-items: center; justify-content: space-between;
}
.bp-header h2 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.prog-count {
  background: var(--blue);
  color: #fff;
  font-size: .72rem; font-weight: 800;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .4rem;
}

.bp-matching { padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.bp-match-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; display: flex; align-items: center; gap: .3rem; }
.bp-match-label svg { width: 13px; height: 13px; }
.match-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.match-name { font-size: .78rem; font-weight: 700; min-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-bar-wrap { flex: 1; background: var(--border); border-radius: 3px; height: 5px; overflow: hidden; }
.match-bar { height: 100%; border-radius: 3px; transition: width .6s ease; }
.match-pct { font-size: .72rem; color: var(--muted); min-width: 28px; text-align: right; }

.bp-empty-match { padding: .9rem 1.25rem; }
.bp-empty-match p { font-size: .82rem; color: var(--muted); display: flex; align-items: flex-start; gap: .4rem; line-height: 1.4; }
.bp-empty-match svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: .1rem; }

.bp-mesures {
  max-height: 280px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
}
.bp-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
}
.bp-item:last-child { border-bottom: none; }
.bp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bp-title { flex: 1; min-width: 0; font-size: .84rem; color: var(--text); line-height: 1.3; }
.bp-remove, .bp-remove-perso {
  flex-shrink: 0;
  background: none; border: none; color: var(--muted);
  cursor: pointer; padding: .2rem; border-radius: 4px;
  display: flex; align-items: center;
  transition: color var(--transition), background var(--transition);
}
.bp-remove:hover, .bp-remove-perso:hover { color: #DC2626; background: #FEF2F2; }
.bp-remove svg, .bp-remove-perso svg { width: 14px; height: 14px; }
.bp-empty { padding: 1rem 1.25rem; color: var(--muted); font-size: .84rem; font-style: italic; }
.bp-perso { background: var(--blue-lt); }

.bp-publish { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.bp-publish input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .88rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}
.bp-publish input:focus { border-color: var(--blue); }
.bp-publish .btn { justify-content: center; }

.publish-result {
  background: #ECFDF5;
  border: 1.5px solid #6EE7B7;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.publish-result p { color: #065F46; font-weight: 600; margin: 0; }
.publish-result a { align-self: flex-start; }

/* Sections déclarés / pressentis */
.cands-section-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text);
  margin: 1.5rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.cands-section-label svg { flex-shrink: 0; }
.cands-section-label strong { font-size: 1rem; }
.cands-section-count {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: .1rem .5rem;
  font-size: .75rem;
  font-weight: 700;
}
.cands-section-label--pressenti .cands-section-count { background: var(--muted); }
.cands-section-label--annonce .cands-section-count { background: #D97706; }
.cands-section-note {
  color: var(--muted);
  font-size: .78rem;
  margin-left: auto;
  font-style: italic;
}
.candidat-card--pressenti {
  opacity: .82;
}
.candidat-card--pressenti:hover { opacity: 1; }
.candidats-grid--pressentis .candidat-card { border-style: dashed; }
.candidat-card--annonce { opacity: .9; }
.candidat-card--annonce:hover { opacity: 1; }
.candidats-grid--annonces .candidat-card { border-style: dashed; border-color: #D97706; }

/* ── ACCUEIL ───────────────────────────────────────────────────────── */
.hm-hero { background: linear-gradient(180deg, var(--blue-lt) 0%, #fff 100%); padding: 3.5rem 0 3rem; }
.hm-kicker { font-size: .78rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .75rem; }
.hm-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin: 0 0 1rem; max-width: 760px; }
.hm-title span { color: var(--blue); }
.hm-sub { font-size: 1.05rem; color: var(--text-2); max-width: 620px; margin: 0 0 2.25rem; }
.hm-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hm-entry { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; background: #fff; border: 1.5px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.hm-entry:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,78,216,.08); }
.hm-entry-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-lt); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.hm-entry-step { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hm-entry strong { font-size: 1.08rem; line-height: 1.3; }
.hm-entry-meta { font-size: .84rem; color: var(--text-2); }
.hm-entry-go { margin-top: auto; padding-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: .35rem; }
.hm-entry-main { background: var(--blue); border-color: var(--blue); color: #fff; }
.hm-entry-main:hover { border-color: var(--blue-dk); background: var(--blue-dk); }
.hm-entry-main .hm-entry-icon { background: rgba(255,255,255,.15); color: #fff; }
.hm-entry-main .hm-entry-step, .hm-entry-main .hm-entry-meta { color: rgba(255,255,255,.8); }
.hm-entry-main .hm-entry-go { color: #fff; }
.hm-avatars { display: flex; margin-top: .5rem; }
.hm-av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; font-weight: 700; overflow: hidden; }
.hm-av:first-child { margin-left: 0; }
.hm-av img { width: 100%; height: 100%; object-fit: cover; }
.hm-section { padding-top: 3rem; padding-bottom: 3rem; }
.hm-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.hm-section-head h2 { margin: 0 0 .25rem; font-size: 1.5rem; }
.hm-section-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.hm-prog { text-decoration: none; color: var(--text); }
.hm-empty { text-align: center; padding: 2.5rem 1rem; border: 1.5px dashed var(--border); border-radius: 14px; }
.hm-empty p { color: var(--muted); margin: 0 0 1rem; }
@media (max-width: 768px) {
  .hm-hero { padding: 2rem 0; }
  .hm-entries { grid-template-columns: 1fr; }
  .hm-section-head { flex-direction: column; align-items: flex-start; }
}

/* ── LISTE DES CANDIDATS ──────────────────────────────────────────── */
.cl-wrap { padding-bottom: 3.5rem; }
.cl-head { padding: 1.75rem 0 1rem; }
.cl-head h1 { margin: 0 0 .4rem; font-size: 1.9rem; }
.cl-head p { margin: 0; color: var(--text-2); font-size: 1rem; }
.cl-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .7rem; }
.cl-search { position: relative; flex: 1 1 280px; }
.cl-search svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.cl-search input { width: 100%; padding: .6rem .85rem .6rem 2.3rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .9rem; }
.cl-tools select { padding: .55rem .7rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .86rem; background: #fff; }
.cl-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; color: var(--text-2); cursor: pointer; }
.cl-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cl-chips button { background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: .4rem .85rem; font: inherit; font-size: .82rem; color: var(--text-2); cursor: pointer; }
.cl-chips button span { color: var(--muted); font-size: .75rem; margin-left: .15rem; }
.cl-chips button.on { background: var(--text); border-color: var(--text); color: #fff; font-weight: 600; }
.cl-chips button.on span { color: rgba(255,255,255,.75); }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; margin-top: .5rem; }
.cl-card { display: flex; flex-direction: column; gap: .85rem; padding: 1.15rem 1.2rem 1rem; background: #fff; border: 1px solid #E8ECF1; border-radius: 16px; text-decoration: none; color: var(--text); transition: box-shadow .18s, border-color .18s, transform .18s; min-width: 0; }
.cl-card:hover { border-color: color-mix(in srgb, var(--cc) 45%, #E8ECF1); box-shadow: 0 10px 28px rgba(15,23,42,.07); transform: translateY(-2px); }
.cl-card[hidden] { display: none; }
.cl-top { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.cl-av { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cc) 12%, #fff); color: var(--cc); font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px color-mix(in srgb, var(--cc) 55%, #fff); }
.cl-av img { width: 100%; height: 100%; object-fit: cover; }
.cl-id { display: flex; flex-direction: column; min-width: 0; }
.cl-id strong { font-size: 1rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-parti { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-statut { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-dot { width: 7px; height: 7px; border-radius: 50%; background: #2563EB; flex-shrink: 0; }
.cl-st-pressenti .cl-dot { background: #D97706; }
.cl-st-retire .cl-dot, .cl-st-non_retenu .cl-dot { background: #9CA3AF; }
.cl-st-retire, .cl-st-non_retenu { background: #FBFBFC; }
.cl-st-retire .cl-id strong, .cl-st-non_retenu .cl-id strong { color: var(--text-2); }
.cl-foot { display: flex; justify-content: space-between; align-items: center; padding-top: .75rem; border-top: 1px solid #F1F4F7; margin-top: auto; }
.cl-mes { font-size: .8rem; color: var(--muted); }
.cl-mes b { color: var(--text); font-weight: 700; }
.cl-go { color: var(--muted); display: flex; transition: color .15s, transform .15s; }
.cl-go svg { width: 16px; height: 16px; }
.cl-card:hover .cl-go { color: var(--cc); transform: translateX(2px); }
.cl-faq { margin-top: 2.5rem; }
.cl-faq h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.cl-faq details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .5rem; }
.cl-faq summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.cl-faq p { margin: .6rem 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.55; }
@media (max-width: 600px) {
  .cl-head h1 { font-size: 1.45rem; }
  .cl-grid { grid-template-columns: 1fr; }
  .cl-tools .btn { display: none; }
}

/* ── GRANDS CLIVAGES & QUIZ ───────────────────────────────────────── */
.cv-nav { display: flex; gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cv-nav::-webkit-scrollbar { display: none; }
.cv-nav a { padding: .55rem .85rem; font-size: .86rem; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cv-nav a.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.cv-wrap, .qz-wrap { padding-bottom: 3.5rem; }
.cv-actions { margin: 0 0 1.5rem; }
.cv-q { background: #fff; border: 1px solid #E8ECF1; border-radius: 16px; padding: 1.3rem; margin-bottom: 1rem; }
.cv-q-k { margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tc, var(--muted)); }
.cv-q h2 { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.35; }
.cv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.cv-col { border-radius: 12px; padding: .75rem; }
.cv-pour { background: #ECFDF5; } .cv-contre { background: #FEF2F2; } .cv-nuance { background: #FFFBEB; }
.cv-col-h { margin: 0 0 .5rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cv-pour .cv-col-h { color: #047857; } .cv-contre .cv-col-h { color: #B91C1C; } .cv-nuance .cv-col-h { color: #B45309; }
.cv-col-h span { font-weight: 600; opacity: .7; }
.cv-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.cv-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem .2rem .2rem; background: #fff; border: 1px solid #E5E7EB; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 600; color: var(--text); cursor: pointer; }
.cv-chip:hover { border-color: var(--cc); }
.cv-chip img, .cv-chip > span { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--cc); color: #fff; font-size: .65rem; }
.cv-none { font-size: .8rem; color: var(--muted); font-style: italic; }
.cv-nsp { margin-top: .75rem; }
.cv-nsp summary { cursor: pointer; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.cv-pop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cv-pop[hidden] { display: none; }
.cv-pop-box { background: #fff; border-radius: 16px; padding: 1.5rem; max-width: 520px; width: 100%; position: relative; }
.cv-pop-x { position: absolute; top: .8rem; right: .8rem; background: var(--bg-lt); border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cv-pop-box h3 { margin: .3rem 0 .8rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cv-pop-box blockquote { margin: 0 0 .8rem; padding: .7rem .9rem; border-left: 3px solid var(--blue); background: var(--bg-lt); border-radius: 0 8px 8px 0; font-size: .92rem; line-height: 1.5; }
.cv-src { font-size: .85rem; margin: 0; }
.cv-tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.cv-tag-pour { background: #D1FAE5; color: #047857; } .cv-tag-contre { background: #FEE2E2; color: #B91C1C; } .cv-tag-nuance { background: #FEF3C7; color: #B45309; } .cv-tag-nsp { background: #F3F4F6; color: #9CA3AF; }
a.cv-tag:hover { filter: brightness(.95); text-decoration: underline; }
.cp-cliv { display: flex; flex-direction: column; }
.cv-row { display: grid; gap: .6rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid #F1F4F7; }
.cv-row-h { position: sticky; top: 64px; background: #fff; z-index: 2; }
.cv-row-q { font-size: .85rem; line-height: 1.35; }
.cv-cell { text-align: center; }
.cp-cliv-acc { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; font-size: .86rem; }
.cv-acc em { color: var(--muted); }
.qz-card { background: #fff; border: 1px solid #E8ECF1; border-radius: 18px; padding: 2rem; max-width: 760px; margin: 1rem auto 0; }
.qz-card h1 { font-size: 1.8rem; margin: .3rem 0 .8rem; line-height: 1.2; }
.qz-card h2 { font-size: 1.45rem; margin: .4rem 0 1.5rem; line-height: 1.3; }
.qz-how { color: var(--text-2); line-height: 1.8; margin: 0 0 1.5rem; }
.qz-prog { height: 6px; background: var(--bg-lt); border-radius: 3px; overflow: hidden; margin-bottom: 1.25rem; }
.qz-prog span { display: block; height: 100%; background: var(--tc, var(--blue)); transition: width .3s; }
.qz-k { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tc); }
.qz-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
.qz-b { padding: 1rem; border-radius: 12px; border: 2px solid var(--border); background: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .12s; }
.qz-b-pour.on { border-color: #059669; background: #ECFDF5; color: #047857; }
.qz-b-contre.on { border-color: #DC2626; background: #FEF2F2; color: #B91C1C; }
.qz-b-s.on { border-color: #9CA3AF; background: #F9FAFB; }
.qz-imp { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.qz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.qz-res { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.qz-r { border: 1px solid #E8ECF1; border-radius: 12px; overflow: hidden; }
.qz-r-h { width: 100%; display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) minmax(80px, 1.2fr) 54px; grid-template-rows: auto auto; gap: .1rem .7rem; align-items: center; padding: .7rem .9rem; background: #fff; border: none; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.qz-r-h:hover { background: var(--bg-lt); }
.qz-rank { grid-row: 1 / 3; font-weight: 800; color: var(--muted); }
.qz-r-h .cp-av { grid-row: 1 / 3; --cc: var(--cc); }
.qz-r-n { display: flex; flex-direction: column; min-width: 0; }
.qz-r-n small { color: var(--muted); font-size: .75rem; }
.qz-r-bar { height: 8px; background: var(--bg-lt); border-radius: 4px; overflow: hidden; }
.qz-r-bar span { display: block; height: 100%; background: var(--cc); border-radius: 4px; }
.qz-r-pct { text-align: right; }
.qz-r-sub { grid-column: 3 / -1; color: var(--muted); font-size: .75rem; }
.qz-det { padding: .5rem .9rem .9rem; background: var(--bg-lt); display: flex; flex-direction: column; gap: .3rem; }
.qz-dl { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1.3fr; gap: .5rem; font-size: .8rem; padding: .35rem .5rem; border-radius: 6px; background: #fff; border-left: 3px solid #E5E7EB; }
.qz-ok { border-left-color: #059669; } .qz-ko { border-left-color: #DC2626; } .qz-mid { border-left-color: #D97706; } .qz-na { opacity: .6; }
.qz-peu { font-size: .82rem; color: var(--muted); }
.qz-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.qz-share { border-top: 1px solid var(--border); padding-top: 1rem; }
.qz-share p { margin: 0 0 .5rem; }
@media (max-width: 700px) {
  .cv-cols { grid-template-columns: 1fr; }
  .qz-card { padding: 1.25rem; }
  .qz-card h1 { font-size: 1.4rem; } .qz-card h2 { font-size: 1.2rem; }
  .qz-r-h { grid-template-columns: 22px 36px minmax(0, 1fr) 48px; }
  .qz-r-bar { grid-column: 3 / -1; grid-row: 2; }
  .qz-r-sub { grid-row: 3; }
  .qz-dl { grid-template-columns: 1fr; }
  .cv-row { grid-template-columns: 1fr !important; }
  .cv-row-h { display: none; }
  .cv-row-q { font-weight: 600; }
  .cv-cell { text-align: left; }
  .cv-cell::before { content: attr(data-who) ' : '; font-size: .78rem; color: var(--muted); }
}

/* ── COMPARATEUR ──────────────────────────────────────────────────── */
.cp-wrap { padding-bottom: 3.5rem; }
.cp-head { padding: 1.75rem 0 1rem; }
.cp-head h1 { margin: 0 0 .3rem; font-size: 1.9rem; }
.cp-head p { margin: 0; color: var(--text-2); }
.cp-pick { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; }
.cp-pick-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; font-size: .9rem; }
.cp-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.cp-cand { min-width: 0; display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; background: #fff; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: border-color .12s, background .12s; }
.cp-cand:hover:not(:disabled) { border-color: var(--cc); }
.cp-cand.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 9%, #fff); box-shadow: inset 0 0 0 1px var(--cc); }
.cp-cand:disabled { opacity: .4; cursor: default; }
.cp-av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--cc); color: #fff; font-weight: 800; border: 2px solid var(--cc); }
.cp-av img { width: 100%; height: 100%; object-fit: cover; }
.cp-cand-t { display: flex; flex-direction: column; min-width: 0; }
.cp-cand-t b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-cand-t small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-sec { margin-bottom: 1.75rem; }
.cp-h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
.cp-sub { margin: -.4rem 0 .8rem; font-size: .84rem; color: var(--muted); }
.cp-cols { display: grid; gap: 1rem; }
.cp-bref { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--cc); border-radius: 12px; padding: 1rem; min-width: 0; }
.cp-bref-h { display: flex; gap: .6rem; align-items: center; text-decoration: none; color: var(--text); margin-bottom: .7rem; }
.cp-bref-h span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cp-bref-h b { font-size: .95rem; }
.cp-bref-h small { font-size: .75rem; color: var(--muted); }
.cp-bref-n { margin: 0 0 .6rem; font-size: .84rem; color: var(--text-2); }
.cp-bref-l { margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.cp-bref ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.cp-bref li { display: flex; justify-content: space-between; font-size: .82rem; padding-left: .5rem; border-left: 3px solid var(--tc); }
.cp-bref li span { color: var(--muted); }
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cp-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; }
.cp-box-ok { border-top: 4px solid #059669; }
.cp-box-ko { border-top: 4px solid #DC2626; }
.cp-pairs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.cp-pairs li { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .7rem; background: var(--bg-lt); border-radius: 8px; font-size: .86rem; line-height: 1.4; }
.cp-pair-w { display: flex; flex-wrap: wrap; gap: .3rem; }
.cp-acc { display: block; }
.cp-acc .cp-chip { margin-right: .25rem; }
.cp-opp span:not(.cp-vs):not(.cp-chip) { display: block; }
.cp-vs { align-self: flex-start; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: #DC2626; }
.cp-none { color: var(--muted); font-size: .86rem; background: none !important; padding: .3rem 0 !important; }
.cp-chip { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, #fff); padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.cp-rel { align-self: flex-start; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: .12rem .45rem; border-radius: 4px; }
.cp-rel-id, .cp-rel-p { color: #047857; background: #D1FAE5; }
.cp-rel-s { color: var(--text-2); background: #E5E7EB; }
.cp-rel-c { color: #B91C1C; background: #FEE2E2; }
.cp-detail-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.cp-detail-h .cp-h2 { margin: 0; }
.cp-detail-h input { flex: 0 1 420px; padding: .6rem .85rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .88rem; }
.cp-themes { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: .6rem; scrollbar-width: none; }
.cp-themes::-webkit-scrollbar { display: none; }
.cp-themes button { flex-shrink: 0; background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: .38rem .8rem; font: inherit; font-size: .8rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.cp-themes button span { color: var(--muted); font-size: .72rem; }
.cp-themes button.on { background: var(--tc); border-color: var(--tc); color: #fff; font-weight: 600; }
.cp-themes button.on span { color: rgba(255,255,255,.8); }
.cp-grid-h { display: grid; gap: .75rem; position: sticky; top: 64px; z-index: 5; background: var(--bg-lt); padding: .5rem 0; }
.cp-grid-l { margin: 1rem 0 .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cp-row { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .7rem; margin-bottom: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.cp-row.cp-row-c { border-color: #FCA5A5; background: #FFFBFB; }
.cp-rowgrid { display: grid; gap: .75rem; }
.cp-cell { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.cp-singles .cp-cell { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .7rem; }
.cp-dash { color: var(--muted); font-size: .8rem; font-style: italic; }
.cp-m summary { cursor: pointer; list-style: none; font-size: .86rem; line-height: 1.4; padding: .4rem .55rem; border-radius: 6px; background: var(--bg-lt); }
.cp-m summary::-webkit-details-marker { display: none; }
.cp-m[open] summary { font-weight: 600; }
.cp-m-b { padding: .4rem .55rem .2rem; font-size: .8rem; color: var(--text-2); }
.cp-m-b p { margin: 0 0 .3rem; }
.cp-note { font-size: .78rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .cp-head h1 { font-size: 1.5rem; }
  .cp-two { grid-template-columns: 1fr; }
  .cp-cols { grid-template-columns: 1fr 1fr !important; }
  .cp-grid-h { display: none; }
  .cp-rowgrid { grid-template-columns: 1fr !important; }
  .cp-cell::before { content: attr(data-who); font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
}
@media (max-width: 520px) {
  .cp-cols { grid-template-columns: 1fr !important; }
  .cp-cands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .cp-cand { min-width: 0; padding: .4rem .45rem; gap: .45rem; }
  .cp-cand .cp-av { width: 30px; height: 30px; }
  .cp-cand-t small { display: none; }
  .cp-pick { padding: .9rem; }
}

/* ── GROUPES ──────────────────────────────────────────────────────── */
.gr-wrap { padding-bottom: 3rem; }
.gr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-top: 4px solid #7C3AED; border-radius: 14px; margin-bottom: 1rem; }
.gr-head h1 { margin: 0 0 .6rem; font-size: 1.7rem; line-height: 1.2; }
.gr-head .pc-kicker { color: #7C3AED; }
.gr-membres { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.gr-mb { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; background: var(--bg-lt); border-radius: 999px; font-size: .8rem; font-weight: 600; }
.gr-mb em { font-style: normal; font-weight: 500; color: #7C3AED; font-size: .72rem; }
.gr-mb-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .95rem; line-height: 1; padding: 0 .1rem; }
.gr-mb-x:hover { color: #B91C1C; }
.gr-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.gr-invite { background: #F5F3FF; border: 1px solid #DDD6FE; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.gr-invite p { margin: 0 0 .6rem; font-size: .88rem; }
.gr-invite-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.gr-invite-row input { flex: 1 1 260px; padding: .5rem .7rem; border: 1px solid #DDD6FE; border-radius: 8px; font: inherit; font-size: .82rem; background: #fff; color: var(--text-2); }
.gr-tabs { display: none; }
.gr-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.gr-prog, .gr-chat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; }
.gr-chat { position: sticky; top: 84px; display: flex; flex-direction: column; }
.gr-li { position: relative; padding-right: 4.5rem !important; }
.gr-x { position: absolute; right: .4rem; top: .3rem; background: none; border: none; color: var(--muted); font: inherit; font-size: .75rem; text-decoration: underline; cursor: pointer; }
.gr-x:hover { color: #B91C1C; }
.gr-add { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .6rem; }
.gr-add input[type=search] { padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .88rem; }
.gr-new summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--blue); padding: .3rem 0; }
.gr-new .mp-create { margin-top: .5rem; }
.gr-msgs { height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; padding: .25rem .25rem .5rem 0; }
.gr-msg { max-width: 88%; background: var(--bg-lt); border-radius: 12px 12px 12px 4px; padding: .55rem .8rem; align-self: flex-start; }
.gr-msg.moi { background: #EDE9FE; border-radius: 12px 12px 4px 12px; align-self: flex-end; }
.gr-msg.sig { outline: 2px solid #FCA5A5; }
.gr-msg-h { margin: 0 0 .15rem; font-size: .75rem; }
.gr-msg-h span { color: var(--muted); }
.gr-msg-t { margin: 0; font-size: .88rem; line-height: 1.45; word-wrap: break-word; }
.gr-msg-act { margin: .2rem 0 0; font-size: .7rem; }
.gr-msg-act button { background: none; border: none; color: var(--muted); font: inherit; font-size: .7rem; cursor: pointer; padding: 0 .5rem 0 0; text-decoration: underline; }
.gr-msg-act em { color: #B91C1C; font-style: normal; }
.gr-sys { align-self: center; font-size: .75rem; color: var(--muted); text-align: center; max-width: 92%; }
.gr-sys span { opacity: .7; }
.gr-form { display: flex; gap: .5rem; align-items: flex-end; margin-top: .6rem; }
.gr-form textarea { flex: 1; padding: .55rem .75rem; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; font-size: .88rem; resize: none; }
.gr-form textarea:focus { outline: none; border-color: #7C3AED; }
.gr-foot { display: flex; gap: 1.25rem; justify-content: flex-end; margin-top: 1.25rem; }
.gr-av { background: #EDE9FE; color: #7C3AED; }
.gr-av svg { width: 20px; height: 20px; }
.ec-badge { display: inline-block; min-width: 18px; padding: 0 .35rem; border-radius: 999px; background: #DC2626; color: #fff !important; font-size: .7rem; text-align: center; }
.ec-badge-grp { display: inline-block; align-self: flex-start; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #7C3AED; background: #EDE9FE; padding: .1rem .45rem; border-radius: 4px; margin-bottom: .2rem; }
.mc-invits { background: #F5F3FF; border: 1px solid #DDD6FE; border-radius: 14px; padding: 1.1rem 1.3rem; }
.mc-invit { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .4rem 0; font-size: .9rem; }
.mc-invit span { flex: 1 1 240px; }
.mc-invit form { margin: 0; }
.mc-stack { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .6rem; }
.mc-more { font-size: .85rem; font-weight: 600; }
.mc-proches li { grid-template-columns: 1fr auto; }
.mc-proches form { grid-column: 1 / -1; margin: .1rem 0 .3rem; }
.mc-together { background: none; border: 1px solid #DDD6FE; color: #7C3AED; border-radius: 6px; padding: .2rem .55rem; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.mc-together:hover { background: #F5F3FF; }
.mc-create-form { display: flex; flex-direction: column; gap: .8rem; max-width: 520px; }
.mc-create-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; }
.mc-create-form input, .mc-create-form select { padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.mc-create-form .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .gr-tabs { display: flex; gap: .3rem; margin-bottom: .8rem; }
  .gr-tabs button { flex: 1; padding: .6rem; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
  .gr-tabs button.on { border-color: #7C3AED; color: #7C3AED; background: #F5F3FF; }
  .gr-layout { grid-template-columns: minmax(0, 1fr); }
  .gr-pane { display: none; }
  .gr-pane.on { display: flex; flex-direction: column; }
  .gr-chat { position: static; }
  .gr-msgs { height: 55vh; }
  .gr-head h1 { font-size: 1.4rem; }
}

/* ── COMPTES ──────────────────────────────────────────────────────── */
.cx-wrap { padding: 2.5rem 0 4rem; display: flex; justify-content: center; }
.cx-card { width: 100%; max-width: 500px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.cx-card h1 { margin: 0 0 .6rem; font-size: 1.6rem; }
.cx-card > p { color: var(--text-2); line-height: 1.55; }
.cx-form { display: flex; flex-direction: column; gap: .5rem; margin: 1.25rem 0 1rem; }
.cx-form label { font-size: .85rem; font-weight: 600; }
.cx-form input[type=email] { padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; font: inherit; font-size: 1rem; }
.cx-form input[type=email]:focus { outline: none; border-color: var(--blue); }
.cx-form .btn { margin-top: .5rem; justify-content: center; }
.cx-note { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.cx-err { color: #B91C1C; background: #FEF2F2; border-radius: 8px; padding: .6rem .8rem; font-size: .88rem; }
.cx-ok { color: #047857; background: #ECFDF5; border-radius: 8px; padding: .6rem .8rem; font-size: .88rem; }
.cx-why { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-2); }
.cx-why ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.mc-pseudo { display: flex; gap: .5rem; }
.mc-pseudo input { flex: 1; padding: .55rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; }
.mc-prog { display: flex; flex-direction: column; gap: .3rem; }
.mc-prog form { margin: 0; text-align: right; }
.mc-del { background: none; border: none; color: var(--muted); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.mc-del:hover { color: #B91C1C; }
.mc-danger { border: 1px solid #FECACA; border-radius: 14px; padding: 1.4rem; background: #FFFBFB; }
.mc-danger h2 { margin: 0 0 .4rem; font-size: 1.1rem; color: #B91C1C; }
.mc-danger p { margin: 0 0 1rem; color: var(--text-2); font-size: .9rem; }
.mc-del-form { display: flex; flex-direction: column; gap: .6rem; max-width: 380px; font-size: .88rem; }
.mc-del-form input[name=confirmation] { display: block; margin-top: .3rem; padding: .5rem .7rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; width: 100%; }
.mc-del-btn { background: #DC2626; color: #fff; border: none; align-self: flex-start; }
.mp-account { background: var(--bg-lt); border-radius: 10px; padding: .75rem 1rem; font-size: .88rem; }
.pc-mine { margin: 0 0 .4rem; font-size: .82rem; font-weight: 600; color: #047857; }
.pc-follow { font-weight: 600; }
.pc-follow.on { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); }

/* ── ESPACE CITOYEN ───────────────────────────────────────────────── */
.ec-wrap { padding-bottom: 3.5rem; }
.ec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.75rem 0 1rem; }
.ec-head h1 { margin: 0 0 .3rem; font-size: 1.9rem; }
.ec-head p { margin: 0; color: var(--text-2); max-width: 640px; }
.ec-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.ec-tabs::-webkit-scrollbar { display: none; }
.ec-tabs a { padding: .7rem .9rem; font-size: .9rem; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ec-tabs a:hover { color: var(--text); }
.ec-tabs a.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.ec-tabs span { font-size: .75rem; color: var(--muted); }
.ec-sec { margin-bottom: 2.25rem; }
.ec-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; }
.ec-sec-head h2 { margin: 0; font-size: 1.25rem; }
.ec-sec-head a { font-size: .88rem; font-weight: 600; }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.ec-card { display: flex; gap: .9rem; padding: 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.ec-card:hover { border-color: var(--blue); box-shadow: 0 6px 20px rgba(29,78,216,.07); }
.ec-card-av { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--blue-lt); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ec-card-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ec-card-body strong { font-size: .98rem; line-height: 1.3; }
.ec-card-by { font-size: .78rem; color: var(--muted); }
.ec-card-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .35rem; font-size: .78rem; color: var(--text-2); }
.ec-card-stats span { display: inline-flex; align-items: center; gap: .25rem; }
.ec-card-stats svg { width: 14px; height: 14px; color: #E11D48; }
.ec-mesures-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem; background: var(--bg-lt); border-radius: 14px; }
.ec-mesures-cta h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.ec-mesures-cta p { margin: 0; color: var(--text-2); font-size: .9rem; }
.ec-search { display: flex; gap: .5rem; margin-bottom: 1.25rem; max-width: 520px; }
.ec-search input { flex: 1; padding: .55rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .9rem; }
.ec-pages { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; }
.ec-pages a { min-width: 36px; padding: .4rem .6rem; text-align: center; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text-2); }
.ec-pages a.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.tm-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.tm-filters input { flex: 1 1 260px; padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .9rem; }
.tm-filters select { padding: .55rem .7rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
.tm-themes { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .5rem; scrollbar-width: none; }
.tm-themes::-webkit-scrollbar, .mp-steps::-webkit-scrollbar { display: none; }
.mp-steps { scrollbar-width: none; }
.tm-themes button { flex-shrink: 0; background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .8rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tm-themes button.on { background: var(--tc, var(--text)); border-color: var(--tc, var(--text)); color: #fff; font-weight: 600; }
.tm-th { color: var(--tc); font-weight: 600; }
.tm-th::after { content: '·'; color: var(--muted); margin-left: .4rem; font-weight: 400; }

/* Page publique d'un programme */
.pc-wrap { padding-bottom: 3rem; }
.pc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: 14px; margin-bottom: 1rem; }
.pc-kicker { margin: 0 0 .3rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.pc-head h1 { margin: 0 0 .4rem; font-size: 1.9rem; line-height: 1.2; }
.pc-meta { margin: 0; color: var(--text-2); font-size: .9rem; }
.pc-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pc-take { margin: 0; }
.pc-like { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--text); }
.pc-like svg { width: 18px; height: 18px; color: #E11D48; }
.pc-like.on { background: #FFE4E6; border-color: #FDA4AF; }
.pc-like.on svg { fill: #E11D48; }
.pc-like-l { font-weight: 500; color: var(--text-2); }
.pc-share { background: var(--blue); color: #fff; border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pc-share-h { margin: 0; font-weight: 700; color: #fff; }
.pc-share-btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.pc-sh { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 8px; background: #fff; border: 1px solid #fff; color: var(--text); font: inherit; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.pc-sh:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.pc-sh svg, .mp-sh svg { width: 17px; height: 17px; flex-shrink: 0; }
.pc-sh-main { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
/* Couleurs officielles des réseaux */
.pc-sh-x svg, .mp-sh-x svg { color: #000; }
.pc-sh-facebook svg, .mp-sh-facebook svg { color: #0866FF; }
.pc-sh-whatsapp svg, .mp-sh-whatsapp svg { color: #25D366; }
.pc-sh-telegram svg, .mp-sh-telegram svg { color: #26A5E4; }
.pc-sh-linkedin svg, .mp-sh-linkedin svg { color: #0A66C2; }
.pc-sh-discord svg, .mp-sh-discord svg { color: #5865F2; }
.pc-copied { margin: 0; flex-basis: 100%; font-size: .85rem; }
.pc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.pc-mesures { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.pc-theme { margin-bottom: 1.25rem; }
.pc-theme h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-size: 1rem; }
.pc-theme ul { list-style: none; margin: 0; padding: 0 0 0 .4rem; display: flex; flex-direction: column; gap: .45rem; border-left: 2px solid color-mix(in srgb, var(--tc) 35%, #fff); }
.pc-theme li { padding: .25rem .8rem; display: flex; flex-direction: column; gap: .1rem; }
.pc-t { font-size: .92rem; line-height: 1.4; }
.pc-who { font-size: .76rem; font-weight: 700; color: var(--vc); text-decoration: none; }
.pc-who-cit { color: var(--muted); font-weight: 600; }
.pc-desc { margin: .3rem 0 0; font-size: .85rem; color: var(--text-2); line-height: 1.5; }
.pc-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 84px; }
.pc-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; }
.pc-box .mp-note { margin-top: .75rem; }
.pc-own { justify-content: center; }
.cf-h2-sp { margin-top: 1.25rem; }
.cf-top { margin: 0 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; }
.cf-top li span { color: var(--text); }
.cf-top li b { float: right; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .ec-head { flex-direction: column; align-items: flex-start; }
  .ec-head h1, .pc-head h1 { font-size: 1.5rem; }
  .ec-mesures-cta { flex-direction: column; align-items: flex-start; }
  .pc-layout { grid-template-columns: minmax(0, 1fr); }
  .pc-side { position: static; }
  .pc-head { padding: 1.25rem; }
}

/* ── CRÉER MON PROGRAMME ───────────────────────────────────────────── */
.mp-wrap { padding-bottom: 4rem; }
.mp-wrap [hidden] { display: none !important; }
.mp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.75rem 0 1rem; }
.mp-head h1 { margin: 0 0 .3rem; font-size: 1.9rem; }
.mp-head p { margin: 0; color: var(--text-2); }
.mp-steps { display: flex; gap: .4rem; overflow-x: auto; padding: .25rem 0 .9rem; scrollbar-width: thin; }
.mp-steps button { flex-shrink: 0; background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: .38rem .8rem; font: inherit; font-size: .8rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.mp-steps button.has { border-color: var(--tc, var(--blue)); color: var(--text); }
.mp-steps button b { display: inline-block; min-width: 18px; margin-left: .25rem; padding: 0 .3rem; border-radius: 999px; background: var(--tc, var(--blue)); color: #fff; font-size: .7rem; }
.mp-steps button.on { background: var(--text); border-color: var(--text); color: #fff; font-weight: 600; }
.mp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.mp-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem; margin-bottom: 1.25rem; }
.mp-card h2 { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.3; }
.mp-muted { color: var(--muted); font-size: .88rem; margin: 0 0 .75rem; }
.mp-kicker { margin: 0 0 .35rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tc, var(--blue)); }
.mp-theme { border-top: 4px solid var(--tc); }
.mp-how { margin: .5rem 0 1.5rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .6rem; color: var(--text-2); line-height: 1.5; }
.mp-mes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mp-mes li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.mp-mes span { color: var(--muted); font-size: .82rem; }
.mp-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0 .75rem; }
.mp-search { flex: 1 1 220px; }
.mp-search input { width: 100%; padding: .55rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .88rem; }
.mp-search input:focus, .mp-create textarea:focus { outline: none; border-color: var(--blue); }
.mp-tabs { display: flex; background: var(--bg-lt); border-radius: 8px; padding: 3px; }
.mp-tabs button { background: none; border: none; padding: .42rem .75rem; border-radius: 6px; font: inherit; font-size: .82rem; color: var(--text-2); cursor: pointer; }
.mp-tabs button span { color: var(--muted); font-size: .75rem; }
.mp-tabs button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.mp-add { width: 100%; display: grid; grid-template-columns: 22px 1fr; gap: .15rem .7rem; align-items: start; text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: .65rem .8rem; cursor: pointer; font: inherit; color: var(--text); transition: border-color .12s, background .12s; }
.mp-add:hover { border-color: var(--tc, var(--blue)); }
.mp-row.on .mp-add { border-color: var(--tc, var(--blue)); background: color-mix(in srgb, var(--tc, #1D4ED8) 7%, #fff); }
.mp-chk { grid-row: 1 / 3; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 6px; margin-top: 1px; position: relative; }
.mp-row.on .mp-chk { background: var(--tc, var(--blue)); border-color: var(--tc, var(--blue)); }
.mp-row.on .mp-chk::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mp-row-t { font-size: .9rem; line-height: 1.4; }
.mp-row-m { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .75rem; }
.mp-who { font-weight: 700; color: var(--vc); }
.mp-who + .mp-who::before { content: '·'; color: var(--muted); margin-right: .4rem; font-weight: 400; }
.mp-who-cit { color: var(--muted); font-weight: 600; }
.mp-also { color: var(--muted); }
.mp-rel { font-weight: 700; text-transform: uppercase; font-size: .66rem; letter-spacing: .03em; padding: .1rem .4rem; border-radius: 4px; }
.mp-rel-p { color: #047857; background: #D1FAE5; }
.mp-rel-s { color: var(--text-2); background: var(--bg-lt); }
.mp-rel-c { color: #B91C1C; background: #FEE2E2; }
.mp-empty { color: var(--muted); font-size: .88rem; padding: .75rem 0; }
.mp-more { margin-top: .6rem; background: none; border: none; color: var(--blue); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .3rem 0; }
.mp-theme-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mp-skip { background: none; border: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer; padding: .3rem 0; white-space: nowrap; }
.mp-skip:hover { color: var(--blue); }
.mp-or { display: flex; align-items: center; gap: .75rem; margin: 1.6rem 0 .5rem; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mp-or::before, .mp-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.mp-create { margin-top: 1rem; padding: 1.1rem; background: color-mix(in srgb, var(--tc, #1D4ED8) 6%, #fff); border: 1.5px solid color-mix(in srgb, var(--tc, #1D4ED8) 25%, #fff); border-radius: 12px; display: flex; flex-direction: column; gap: .6rem; }
.mp-create label { font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: -.35rem; }
.mp-create-h { margin: 0; font-size: .95rem; }
.mp-create input[type=text], .mp-create select { width: 100%; padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .9rem; background: #fff; }
.mp-create input[type=text]:focus, .mp-create select:focus { outline: none; border-color: var(--blue); }
.mp-create-bar { justify-content: space-between; align-items: center; }
.mp-create textarea { width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .9rem; resize: vertical; background: #fff; }
.mp-create-bar { display: flex; gap: .6rem; flex-wrap: wrap; }
.mp-create-bar select { flex: 1 1 180px; padding: .45rem .6rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .85rem; background: #fff; }
.mp-sim-h { margin: .2rem 0 .5rem; font-size: .85rem; font-weight: 700; color: #B45309; }
.mp-sim-ok { margin: 0; font-size: .85rem; color: #047857; font-weight: 600; }
.mp-rows-sim { margin-bottom: .5rem; }
.mp-err { margin: 0; color: #B91C1C; font-size: .84rem; }
.mp-mine { margin-top: 1rem; }
.mp-mine-h { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mp-mine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.mp-mine li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .5rem .7rem; border: 1.5px dashed var(--tc); border-radius: 8px; font-size: .88rem; }
.mp-mine button { background: none; border: none; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.mp-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }

.mp-side { position: sticky; top: 84px; }
.mp-side-toggle { display: none; }
.mp-side-close { display: none; }
.mp-side-body { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; max-height: calc(100vh - 110px); overflow-y: auto; }
.mp-side-h { margin: 0 0 .75rem; font-size: 1.05rem; }
.mp-side-h2 { margin: 1.25rem 0 .6rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mp-list-g { margin-bottom: .75rem; }
.mp-list-g p { margin: 0 0 .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--tc); }
.mp-list-g ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mp-list-g li { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; line-height: 1.35; padding: .3rem .4rem; border-radius: 6px; background: var(--bg-lt); }
.mp-list-g li em { color: var(--muted); font-style: normal; font-size: .7rem; }
.mp-list-g button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .2rem; }
.mp-list-g button:hover { color: #B91C1C; }
.mp-match { display: flex; flex-direction: column; gap: .55rem; }
.mp-m { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; text-decoration: none; color: var(--text); }
.mp-m-n { font-size: .84rem; font-weight: 600; }
.mp-m b { font-size: .84rem; }
.mp-m-bar { grid-column: 1 / -1; height: 6px; background: var(--bg-lt); border-radius: 3px; overflow: hidden; }
.mp-m-bar span { display: block; height: 100%; border-radius: 3px; }
.mp-m small { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
.mp-finish { width: 100%; margin-top: 1.25rem; }
.mp-finish:disabled { opacity: .45; cursor: default; }
.mp-fin #mp-fin-match { margin: 1rem 0 1.5rem; max-width: 460px; }
.mp-pub { display: flex; flex-direction: column; gap: .9rem; max-width: 460px; }
.mp-pub label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; }
.mp-pub small { font-weight: 400; color: var(--muted); }
.mp-pub input { padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-weight: 400; }
.mp-note { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.mp-link { word-break: break-all; font-weight: 600; }
.mp-share-h { margin: 1.2rem 0 .5rem; font-weight: 700; }
.mp-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.mp-sh { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.mp-sh:hover { border-color: var(--blue); color: var(--blue); }
.mp-sh-copy { background: var(--blue); border-color: var(--blue); color: #fff; }
.mp-sh-copy:hover { color: #fff; background: var(--blue-dk); }
.mp-done h3 { margin: 1.6rem 0 .6rem; font-size: 1rem; }
.mp-proches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.mp-proches li { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; font-size: .88rem; }
.mp-proches span { color: var(--muted); font-size: .78rem; }
.mp-proches b { grid-row: 1 / 3; grid-column: 2; align-self: center; }

@media (max-width: 960px) {
  .mp-layout { grid-template-columns: minmax(0, 1fr); }
  .mp-card { padding: 1.15rem; }
  .mp-head h1 { font-size: 1.5rem; }
  .mp-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 450; }
  .mp-side-toggle { display: flex; width: 100%; align-items: center; gap: .75rem; padding: .8rem 1rem; background: var(--text); color: #fff; border: none; font: inherit; font-size: .85rem; cursor: pointer; text-align: left; }
  .mp-side-top { flex: 1; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mp-side-open { font-weight: 700; }
  .mp-side-body { display: none; border-radius: 16px 16px 0 0; max-height: 80vh; position: relative; box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
  .mp-side.is-open .mp-side-toggle { display: none; }
  .mp-side.is-open .mp-side-body { display: block; }
  .mp-side-close { display: flex; position: absolute; top: .75rem; right: .75rem; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--bg-lt); align-items: center; justify-content: center; cursor: pointer; }
  .mp-wrap { padding-bottom: 5rem; }
  .mp-nav { flex-direction: column-reverse; align-items: stretch; }
  .mp-nav .btn { text-align: center; justify-content: center; }
}

/* ── FICHE CANDIDAT ────────────────────────────────────────────────── */
.cf-wrap { padding-bottom: 3rem; }
.cf-head { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.75rem; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--cand-color); border-radius: 14px; margin-bottom: 1.25rem; }
.cf-avatar { width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.2rem; font-weight: 800; border: 3px solid var(--cand-color); }
.cf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-id h1 { margin: .25rem 0 .2rem; font-size: 1.9rem; line-height: 1.15; }
.cf-statut { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cand-color); background: color-mix(in srgb, var(--cand-color) 10%, #fff); padding: .2rem .55rem; border-radius: 999px; }
.cf-parti { margin: 0; font-weight: 600; color: var(--text-2); }
.cf-bio { margin: .6rem 0 0; color: var(--text-2); max-width: 640px; line-height: 1.5; }
.cf-stphrase { margin: .45rem 0 0; font-size: .82rem; color: var(--muted); }
.cf-stphrase a { font-weight: 600; }
.cands-officiel { display: block; position: relative; background: var(--blue-lt); border-radius: 10px; padding: .8rem 1rem .8rem 2.6rem; font-size: .86rem; color: var(--text-2); line-height: 1.5; margin: 0 0 1.25rem; }
.cands-officiel svg { position: absolute; left: 1rem; top: .95rem; color: var(--blue); width: 18px; height: 18px; }
.cf-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.cf-h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .75rem; }

.cf-brief { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.cf-brief-col { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.cf-brief-lead { margin: 0 0 1rem; font-size: .9rem; color: var(--text-2); }
.cf-bars { display: flex; flex-direction: column; gap: .45rem; }
.cf-bar { display: grid; grid-template-columns: 190px 1fr 28px; align-items: center; gap: .75rem; background: none; border: none; padding: .3rem .4rem; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.cf-bar:hover { background: var(--bg-lt); }
.cf-bar-label { display: flex; align-items: center; gap: .4rem; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-bar-label svg { color: var(--tc); flex-shrink: 0; width: 16px; height: 16px; }
.cf-bar-track { height: 8px; background: var(--bg-lt); border-radius: 4px; overflow: hidden; }
.cf-bar-fill { display: block; height: 100%; background: var(--tc); border-radius: 4px; }
.cf-bar-n { font-size: .82rem; font-weight: 700; text-align: right; }
.cf-sources { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.cf-sources li { display: flex; justify-content: space-between; gap: .75rem; font-size: .84rem; }
.cf-sources a { color: var(--blue); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-sources a:hover { text-decoration: underline; }
.cf-sources span { color: var(--muted); flex-shrink: 0; }
.cf-sources-more { color: var(--muted); }
.cf-note { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }

.cf-mesures { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.cf-mesures-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cf-mesures-head .cf-h2 { margin: 0; }
.cf-search { position: relative; flex: 0 1 340px; }
.cf-search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.cf-search input { width: 100%; padding: .55rem .8rem .55rem 2.2rem; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: .88rem; }
.cf-search input:focus { outline: none; border-color: var(--blue); }
.cf-search-info { margin: -.25rem 0 .75rem; font-size: .84rem; color: var(--text-2); }
.cf-theme { border-top: 1px solid var(--border); }
.cf-theme > summary { display: flex; align-items: center; gap: .6rem; padding: .9rem .25rem; cursor: pointer; list-style: none; font-weight: 600; }
.cf-theme > summary::-webkit-details-marker, .cf-item summary::-webkit-details-marker { display: none; }
.cf-theme-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--tc) 12%, #fff); color: var(--tc); }
.cf-theme-icon svg { width: 16px; height: 16px; }
.cf-theme-n { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--tc); background: color-mix(in srgb, var(--tc) 10%, #fff); padding: .15rem .55rem; border-radius: 999px; }
.cf-chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 .4rem 0 .5rem; transition: transform .15s; }
.cf-theme[open] > summary .cf-chev { transform: rotate(-135deg); }
.cf-resume { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; color: var(--text); padding: .9rem 1rem; background: color-mix(in srgb, var(--cand-color) 6%, #fff); border-left: 3px solid var(--cand-color); border-radius: 0 8px 8px 0; }
.cf-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.cf-list { list-style: none; margin: 0 0 .9rem; padding: 0 0 0 2.6rem; }
.cf-item { border-left: 2px solid color-mix(in srgb, var(--tc) 35%, #fff); }
.cf-mz { display: block; width: 100%; text-align: left; background: none; border: none; padding: .55rem .9rem; cursor: pointer; font: inherit; font-size: .9rem; line-height: 1.4; color: var(--text); border-radius: 0 6px 6px 0; position: relative; }
.cf-mz:hover { background: var(--bg-lt); }
.cf-mz.is-active { background: color-mix(in srgb, var(--tc) 10%, #fff); font-weight: 600; box-shadow: inset 3px 0 0 var(--tc); }
.cf-mz.is-added::after { content: ''; position: absolute; right: .6rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #059669; }
.cf-panel { position: sticky; top: 84px; background: var(--bg-lt); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; min-height: 220px; }
.cf-panel-close { display: none; }
.cf-panel-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 3rem 1rem; }
.cf-panel-theme { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, #fff); padding: .2rem .55rem; border-radius: 999px; }
.cf-panel-title { margin: .75rem 0 .6rem; font-size: 1.2rem; line-height: 1.35; }
.cf-panel-ctx { margin: 0 0 1.1rem; font-size: .88rem; color: var(--text-2); line-height: 1.5; }
.cf-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cf-add { display: inline-flex; align-items: center; gap: .4rem; background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: .55rem 1rem; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 600; }
.cf-add:hover { background: var(--blue-dk); }
.cf-add.is-added { background: #059669; }
.cf-add svg { width: 16px; height: 16px; }
.cf-voisins { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cf-voisins-h { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cf-voisins ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.cf-v { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; display: grid; grid-template-columns: auto 1fr; gap: .15rem .5rem; font-size: .82rem; }
.cf-v-rel { grid-column: 1 / -1; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cf-v-p .cf-v-rel { color: #059669; }
.cf-v-s .cf-v-rel { color: var(--muted); }
.cf-v-c .cf-v-rel { color: #DC2626; }
.cf-v-c { border-color: #FCA5A5; }
.cf-v-cand { font-weight: 700; color: var(--vc); text-decoration: none; white-space: nowrap; }
.cf-v-cand:hover { text-decoration: underline; }
.cf-v-t { color: var(--text-2); }
.cf-panel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.cf-panel-nav button { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: .35rem .7rem; cursor: pointer; font: inherit; font-size: .8rem; color: var(--text-2); }
.cf-panel-nav button:disabled { opacity: .4; cursor: default; }
.cf-src { font-size: .82rem; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.cf-src:hover { text-decoration: underline; }
.cf-src svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .cf-split { grid-template-columns: 1fr; }
  .cf-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 500; border-radius: 16px 16px 0 0; min-height: 0; max-height: 75vh; overflow-y: auto; box-shadow: 0 -8px 30px rgba(0,0,0,.15); background: #fff; transform: translateY(100%); transition: transform .25s ease; }
  .cf-panel.is-open { transform: translateY(0); }
  .cf-panel-close { display: flex; position: absolute; top: .75rem; right: .75rem; background: var(--bg-lt); border: none; border-radius: 50%; width: 34px; height: 34px; align-items: center; justify-content: center; cursor: pointer; }
  .cf-panel-empty { display: none; }
}
.cf-empty { background: #fff; border: 1.5px dashed var(--border); border-radius: 14px; padding: 2rem; text-align: center; color: var(--text-2); }
.cf-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 768px) {
  .cf-head { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
  .cf-actions { justify-content: center; }
  .cf-brief { grid-template-columns: minmax(0, 1fr); }
  .cf-bar { grid-template-columns: 1fr 70px 24px; }
  .cf-mesures { padding: 1rem; }
  .cf-mesures-head { flex-direction: column; align-items: stretch; }
  .cf-search { flex-basis: auto; }
  .cf-list { padding-left: .5rem; }
  .cf-foot { flex-direction: column; }
}

/* ── WIZARD ───────────────────────────────────────────────────────── */
.wizard-wrap { max-width: 760px; margin: 0 auto 3rem; }

/* Steps indicator */
.wz-steps { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; overflow-x: auto; padding: .5rem 0; }
.wz-step { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); flex-shrink: 0; }
.wz-step::after { content: ''; display: block; width: 24px; height: 1px; background: var(--border); margin: 0 .3rem; }
.wz-step:last-child::after { display: none; }
.wz-step-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.wz-step-active .wz-step-dot { background: var(--blue); }
.wz-step-active { color: var(--blue); font-weight: 600; }
.wz-step-done .wz-step-dot { background: #059669; }
.wz-step-done { color: #059669; }

/* Panel */
.wz-panel { display: none; }
.wz-panel-active { display: block; animation: wz-in .2s ease; }
@keyframes wz-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.wz-panel-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.wz-theme-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.wz-theme-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; }
.wz-theme-sub { color: var(--muted); font-size: .88rem; margin: 0; }

/* Liste mesures */
.wz-mesures-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; max-height: 420px; overflow-y: auto; padding-right: .25rem; }
.wz-mesure-item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.wz-mesure-item:hover { border-color: var(--blue); background: var(--bg-lt); }
.wz-mesure-selected { border-color: var(--blue) !important; background: var(--blue-lt) !important; }
.wz-mesure-item input[type=checkbox] { display: none; }
.wz-mesure-body { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.wz-mesure-titre { font-size: .9rem; font-weight: 600; }
.wz-mesure-cand { font-size: .75rem; display: flex; align-items: center; gap: .3rem; font-weight: 500; }
.wz-cand-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.wz-mesure-desc { font-size: .77rem; color: var(--muted); }
.wz-check-icon { flex-shrink: 0; opacity: 0; color: var(--blue); transition: opacity .15s; }
.wz-mesure-selected .wz-check-icon { opacity: 1; }

/* Mesure perso wizard */
.wz-perso-wrap { margin-bottom: 1.25rem; }
.wz-perso-toggle { display: flex; align-items: center; gap: .4rem; background: none; border: 1.5px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: .82rem; padding: .5rem .9rem; cursor: pointer; width: 100%; transition: border-color .15s, color .15s; }
.wz-perso-toggle:hover, .wz-perso-toggle.active { border-color: var(--blue); color: var(--blue); }
.wz-perso-form { margin-top: .6rem; display: flex; flex-direction: column; gap: .5rem; padding: .9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-lt); }
.wz-perso-titre, .wz-perso-desc { width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 6px; font-size: .88rem; font-family: inherit; }
.wz-perso-added { color: #059669; font-size: .82rem; margin-top: .4rem; font-weight: 500; }

/* Nav bas */
.wz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.wz-counter { font-size: .8rem; color: var(--muted); }
.icon-rotate-90 { transform: rotate(90deg); }
.icon-rotate-270 { transform: rotate(-90deg); }

/* Matching wizard */
.wz-matching { margin-top: 1rem; }
.wz-matching-title { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.wz-matching-list { display: flex; flex-direction: column; gap: .5rem; }
.wz-match-row { display: flex; align-items: center; gap: .75rem; }
.wz-match-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.wz-match-name { font-size: .85rem; font-weight: 500; min-width: 140px; }
.wz-match-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.wz-match-bar { height: 100%; border-radius: 4px; transition: width .4s ease; }
.wz-match-pct { font-size: .82rem; font-weight: 600; min-width: 36px; text-align: right; }
.wz-recap-count { font-size: 1rem; color: var(--text); }
.wz-empty { color: var(--muted); font-style: italic; font-size: .88rem; }

.btn-link { background: none; border: none; color: var(--muted); font-size: .82rem; cursor: pointer; text-decoration: underline; padding: 0; }
.btn-link:hover { color: var(--blue); }

/* ── Mesure perso en haut du catalogue */
.catalog-perso-top {
  border-bottom: 1.5px solid var(--border);
  margin-bottom: .25rem;
}
.perso-toggle-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .7rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  font-family: var(--font);
  text-align: left;
  transition: background var(--transition);
}
.perso-toggle-btn:hover { background: var(--surface); }
.perso-toggle-btn.active { background: var(--surface); }
.perso-toggle-arrow { margin-left: auto; transition: transform .2s; }
.perso-toggle-btn[aria-expanded="true"] .perso-toggle-arrow { transform: rotate(180deg); }
.perso-form-wrap { padding: .75rem 1rem 1rem; background: var(--surface); }
.perso-form-wrap .compose-form { display: flex; flex-direction: column; gap: .5rem; }
.perso-form-wrap .compose-titre {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .9rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.perso-form-wrap .compose-titre:focus { border-color: var(--blue); }
.perso-form-wrap .compose-desc {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .85rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
}
.perso-form-wrap .compose-desc:focus { border-color: var(--blue); }
.perso-form-wrap .compose-meta {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.perso-form-wrap .compose-theme {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .4rem .6rem;
  font-size: .82rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.perso-form-wrap .compose-tip {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--muted);
}
.perso-form-wrap .compose-tip svg { width: 12px; height: 12px; }

/* Filtres par thème */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .6rem 1rem;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 2;
}
.cf-pill {
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.cf-pill:hover { border-color: var(--pill-color, var(--blue)); color: var(--pill-color, var(--blue)); }
.cf-pill-active {
  background: var(--pill-color, var(--blue));
  border-color: var(--pill-color, var(--blue));
  color: #fff !important;
}
.cf-pill-active:first-child { background: var(--blue); border-color: var(--blue); }

/* ===== COMPARATEUR V2 ===== */

/* Onglets vue */
.comparer-tabs {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  padding: .75rem 0 .5rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: .75rem;
}
.comparer-tab {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
}
.comparer-tab svg { width: 14px; height: 14px; }
.comparer-tab:hover { border-color: var(--blue); color: var(--blue); }
.comparer-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.comparer-tabs-sep { flex: 1; }
.comparer-tab-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
}
.comparer-tab-toggle svg { width: 14px; height: 14px; }
.comparer-tab-toggle:hover { border-color: var(--blue); color: var(--blue); }
.comparer-tab-toggle.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.comparer-theme-select {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: .3rem .6rem;
  font-size: .82rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.comparer-theme-select:focus { border-color: var(--blue); }

/* Score de convergence */
.conv-block { margin-bottom: .75rem; }
.conv-score-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1.25rem;
}
.conv-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  border: 3px solid var(--conv-color, #2563EB);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  justify-content: center;
  flex-shrink: 0;
}
.conv-score-num {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.conv-score-sub {
  font-size: .6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.conv-score-info {
  font-size: .9rem;
  color: var(--text);
}
.conv-score-info strong { font-size: 1rem; }
.conv-detail { font-size: .82rem; color: var(--muted); }

/* Tableau comparaison amélioré */
.ct-row-match { background: rgba(16,185,129,.06); }
.ct-row-partial { background: rgba(37,99,235,.04); }
.ct-match-badge {
  font-size: .68rem;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  color: var(--blue);
  margin-left: .4rem;
  vertical-align: middle;
  white-space: nowrap;
}
.ct-match-all {
  background: rgba(16,185,129,.15);
  color: #059669;
}
.cth-nb {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: .15rem;
}
.ct-compact-nb {
  font-size: .88rem;
  font-weight: 700;
  display: block;
  padding: .25rem 0;
}

/* Vue radar */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
}
#radar-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  justify-content: center;
}
.radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text);
}
.rli-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Vue matrice */
.matrix-wrap { overflow-x: auto; }
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.matrix-table thead th {
  padding: .5rem .75rem;
  font-weight: 700;
  font-size: .78rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.matrix-theme {
  padding: .45rem .75rem;
  font-size: .82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 500;
}
.matrix-cell {
  text-align: center;
  padding: .4rem .5rem;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  min-width: 80px;
  font-weight: 700;
  font-size: .88rem;
  transition: opacity .15s;
}
.matrix-cell-has { color: #fff; }
.matrix-cell-empty { color: var(--muted); background: transparent !important; opacity: 1 !important; }
.matrix-dash { font-weight: 400; opacity: .4; }

/* ===== Mon Programme 2027 — identité éditoriale (2026-11-27) ===== */
:root { --paper: #FBF8F1; --paper-2: #F3EDE0; --ink: #1B1F2A; --bleu: #1F3A93; --rouge: #C8323C; --serif: 'Fraunces', Georgia, 'Times New Roman', serif; }
@media (prefers-color-scheme: dark) { :root { --paper: #14171F; --paper-2: #1B1F2A; --ink: #EDE9E0; --bleu: #8FA8F0; --rouge: #F07C84; } }

.mp-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.mp-logo b { font-weight: 700; color: var(--rouge); }
.mp-logo-tri { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex: none; }
.mp-logo-tri i { flex: 1; }
.mp-logo-tri i:nth-child(1) { background: #1F3A93; }
.mp-logo-tri i:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1px #e5e0d4; }
.mp-logo-tri i:nth-child(3) { background: #C8323C; }

.main-nav a.nav-creer { color: var(--rouge); font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.main-nav a.nav-creer svg { width: 15px; height: 15px; }
.main-nav a.nav-creer:hover, .main-nav a.nav-creer.current { background: color-mix(in srgb, var(--rouge) 10%, transparent); color: var(--rouge); }
.nav-account { border: 1px solid var(--border); }

.mp-fab { display: none; }
@media (max-width: 768px) {
  .mp-fab { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 250; padding: .85rem 1rem; border-radius: 999px; background: var(--rouge); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  .mp-fab svg { width: 17px; height: 17px; }
  body { padding-bottom: 76px; }
}

body.is-home, body.is-home main { background: var(--paper); color: var(--ink); }
.hp-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.015em; margin: 0 0 1.25rem; }
.hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 3px solid var(--ink); padding-top: 1rem; margin-bottom: 1.5rem; }
.hp-head .hp-h2 { margin: 0; }
.hp-head > a, .hp-more a { color: var(--bleu); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.hp-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 3rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); background: linear-gradient(90deg, var(--bleu) 0 33.3%, #fff 0 66.6%, var(--rouge) 0) top / 100% 5px no-repeat, var(--paper); }
.hp-hero-in { max-width: 860px; }
.hp-kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--rouge); margin: 0 0 1rem; }
.hp-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 1.25rem; color: var(--ink); }
.hp-title em { font-style: italic; color: var(--bleu); }
.hp-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; max-width: 640px; margin: 0 0 2rem; opacity: .85; }

.hp-try { background: var(--paper-2); border-left: 4px solid var(--bleu); padding: 1.25rem 1.5rem; margin-bottom: 2rem; max-width: 640px; }
.hp-try-k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .6; margin: 0 0 .35rem; }
.hp-try-q { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.25; margin: 0 0 1rem; }
.hp-try-b { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-try-b button { font: inherit; font-weight: 600; padding: .6rem 1.2rem; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 4px; cursor: pointer; }
.hp-try-b button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.hp-try-b button.on { background: var(--ink); color: var(--paper); }
.hp-try-res { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.hp-try-res p { margin: 0 0 .6rem; }
.hp-try-o { opacity: .7; font-size: .92rem; }
.hp-minis { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .75rem; }
.hp-mini { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 56px; text-decoration: none; color: var(--ink); font-size: .72rem; text-align: center; }
.hp-mini img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hp-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hp-try-next { display: inline-block; font-weight: 700; color: var(--bleu); }

.hp-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hp-btn { display: inline-block; padding: .9rem 1.5rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.hp-btn-main { background: var(--rouge); color: #fff; }
.hp-btn-main:hover { filter: brightness(.92); }
.hp-btn-alt { border: 1.5px solid var(--ink); color: var(--ink); }
.hp-btn-alt:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.hp-manif, .hp-cands, .hp-engage { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hp-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.hp-steps li { counter-increment: s; line-height: 1.6; }
.hp-steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--rouge); margin-bottom: .5rem; }
.hp-steps b { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .2rem; }

.hp-band { background: var(--paper-2); padding: 3.5rem 0; }
.hp-band-alt { background: transparent; }
.hp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.hp-quote { margin: 0; }
.hp-quote blockquote { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; font-weight: 500; }
.hp-quote blockquote::before { content: "\00AB\00A0"; color: var(--rouge); }
.hp-quote blockquote::after { content: "\00A0\00BB"; color: var(--rouge); }
.hp-quote figcaption { font-size: .82rem; opacity: .65; }
.hp-more { margin: 2rem 0 0; opacity: .85; }

.hp-faces { display: flex; flex-wrap: wrap; gap: .6rem; }
.hp-face img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .2s, transform .2s; display: block; }
.hp-face:hover img, .hp-face:focus img { filter: none; transform: scale(1.06); }

.hp-divs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.hp-div { text-decoration: none; color: var(--ink); }
.hp-div h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; margin: 0 0 .9rem; }
.hp-div:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.hp-bar { display: flex; height: 10px; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.hp-bar i.p { background: var(--bleu); }
.hp-bar i.n { background: #B9A97A; }
.hp-bar i.c { background: var(--rouge); }
.hp-bar-l { display: flex; justify-content: space-between; font-size: .82rem; margin-top: .4rem; opacity: .75; }

.hp-engage ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; line-height: 1.6; }
.hp-engage b { display: block; font-family: var(--serif); font-size: 1.15rem; }

@media (max-width: 768px) {
  .hp-steps, .hp-quotes, .hp-divs, .hp-engage ul { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hp-try { padding: 1rem 1.1rem; }
  .hp-try-q { font-size: 1.2rem; }
  .hp-btn { width: 100%; text-align: center; }
  .hp-face img { width: 52px; height: 52px; }
}

/* Menu compact pour tenir sur une ligne */
.site-header .header-inner { max-width: 1320px; gap: .75rem; }
.mp-logo { font-size: 1.05rem; }
.main-nav a { padding: .35rem .55rem; font-size: .86rem; }
.nav-account { padding: .4rem .65rem; font-size: .86rem; }
@media (max-width: 1px) and (min-width: 2px) {
  .main-nav a { padding: .3rem .4rem; font-size: .8rem; }
  .main-nav a.nav-creer svg, .nav-account svg { display: none; }
  .mp-logo-tri { display: none; }
}
.hp-mini i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; }
/* Carte de positionnement du quiz */
.qz-mapbox { margin: 1.5rem 0 2rem; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.qz-map { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; font-family: inherit; }
.qz-map rect.q1 { fill: #FDECEC; } .qz-map rect.q2 { fill: #EEF2FF; } .qz-map rect.q3 { fill: #FEF7E6; } .qz-map rect.q4 { fill: #F1F5F9; }
.qz-map line { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 3 3; }
.qz-map > text { font-size: 10px; fill: var(--muted); font-weight: 600; }
.qz-pt text { font-size: 7px; font-weight: 700; fill: #fff; pointer-events: none; }
.qz-pt circle { stroke: #fff; stroke-width: 1.5; }
.qz-pt:hover circle { r: 11; }
.qz-moi circle { fill: #111827; stroke: #FBBF24; stroke-width: 2.5; }
.qz-moi text { font-size: 7.5px; font-weight: 800; fill: #fff; }
.qz-maplab { margin: .75rem 0 .25rem; font-size: 1.05rem; }
.qz-mapinfo { text-align: left; font-size: .85rem; color: var(--muted); max-width: 560px; margin: .5rem auto 0; }
.qz-mapinfo summary { cursor: pointer; text-align: center; }
.qz-h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
@media (prefers-color-scheme: dark) { .qz-map rect.q1, .qz-map rect.q2, .qz-map rect.q3, .qz-map rect.q4 { fill: #1E293B; } }

/* Retour au style d'origine (2026-11-27) : Inter, fond blanc, bleu */
:root { --paper: var(--bg); --paper-2: var(--bg-lt); --ink: var(--text); --bleu: var(--blue); --rouge: var(--blue); --serif: var(--font); }
@media (prefers-color-scheme: dark) { :root { --paper: var(--bg); --paper-2: var(--bg-lt); --ink: var(--text); --bleu: #93B4FF; --rouge: #93B4FF; } }
.hp-hero { background: linear-gradient(180deg, var(--blue-lt), var(--bg)); border-bottom: none; }
.hp-title, .hp-h2, .hp-try-q, .hp-steps b, .hp-quote blockquote, .hp-div h3, .hp-engage b, .hp-steps li::before { font-family: var(--font); letter-spacing: -.02em; }
.hp-title { font-weight: 800; }
.hp-title em { font-style: normal; }
.hp-h2 { font-weight: 800; }
.hp-head { border-top: none; padding-top: 0; }
.hp-kicker { color: var(--blue); }
.hp-try { border-left: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.hp-try-b button { border-radius: 8px; border-color: var(--border); }
.hp-try-b button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.hp-btn { border-radius: var(--radius); }
.hp-btn-main { background: var(--blue); }
.hp-btn-alt { border-color: var(--border); }
.hp-steps li::before { font-weight: 800; color: var(--blue); }
.hp-quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.hp-quote blockquote::before, .hp-quote blockquote::after { color: var(--blue); }
.hp-face img { filter: none; }
.hp-div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.hp-bar i.c { background: #DC2626; }
.mp-logo { font-family: var(--font); font-weight: 800; }
.mp-logo b { color: var(--blue); }
.mp-logo-tri { display: none; }
.main-nav a.nav-creer { color: var(--blue); }
.main-nav a.nav-creer:hover, .main-nav a.nav-creer.current { background: var(--blue-lt); color: var(--blue); }
.mp-fab { background: var(--blue); }
@media (prefers-color-scheme: dark) { .hp-try, .hp-quote, .hp-div { background: var(--bg-lt); } }

/* Héros d'accueil : deux colonnes (2026-11-27) */
.hp-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hp-hero-in { max-width: 1140px; }
.hp-hgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hp-title { text-wrap: balance; font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; margin-bottom: 1rem; }
.hp-title em { color: var(--blue); }
.hp-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); margin-bottom: 1.5rem; }
.hp-ctas { margin-bottom: 1.25rem; }
.hp-proof { margin: 0; font-size: .88rem; color: var(--muted); }
.hp-try { margin: 0; max-width: none; padding: 1.5rem; }
.hp-try-q { font-size: 1.3rem; font-weight: 700; }
@media (max-width: 900px) { .hp-hgrid { grid-template-columns: minmax(0, 1fr); } }

/* Accueil : candidats en bulles, dernières candidatures, FAQ, appel final */
.hp-c2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.hp-ctext { margin: 0 0 1.25rem; color: var(--muted); line-height: 1.6; }
.hp-bubbles { display: flex; flex-wrap: wrap; padding-left: 10px; }
.hp-bub { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--bg); margin: 0 0 6px -10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; overflow: hidden; position: relative; transition: transform .15s; }
.hp-bub img { width: 100%; height: 100%; object-fit: cover; }
.hp-bub:hover, .hp-bub:focus { transform: translateY(-4px) scale(1.12); z-index: 2; }
.hp-recent { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; background: var(--bg); }
.hp-recent h3 { font-size: 1rem; margin: 0 0 .5rem; }
.hp-recent ul { list-style: none; margin: 0; padding: 0; }
.hp-recent li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.hp-recent li:first-child { border-top: none; }
.hp-recent a { text-decoration: none; color: var(--text); min-width: 0; }
.hp-recent a b { display: block; font-size: .92rem; }
.hp-recent a span { font-size: .8rem; color: var(--muted); }
.hp-recent a:hover b { color: var(--blue); }
.hp-recent time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.hp-faq { padding-top: 3.5rem; padding-bottom: 3.5rem; max-width: 820px; }
.hp-faq details { border-bottom: 1px solid var(--border); padding: .9rem 0; }
.hp-faq summary { cursor: pointer; font-weight: 600; }
.hp-faq details p { margin: .6rem 0 0; color: var(--muted); line-height: 1.6; }
.hp-final { background: var(--blue); color: #fff; text-align: center; padding: 3.5rem 0; }
.hp-final h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.hp-final p { margin: 0 0 1.5rem; opacity: .9; }
.hp-final .hp-btn-main { background: #fff; color: var(--blue); }
.hp-engage { padding-bottom: 2rem; }
.hp-engage ul { margin-bottom: 0; }
@media (max-width: 900px) { .hp-c2 { grid-template-columns: minmax(0, 1fr); } }

/* En-tête : logo étiquette tricolore, menu aligné à droite (2026-11-27) */
.mp-logo { gap: 0; font-family: var(--font); text-decoration: none; }
.mp-tag { display: inline-flex; align-items: stretch; border-radius: 7px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.18); transform: rotate(-1.5deg); transition: transform .2s; font-weight: 800; line-height: 1; }
.mp-logo:hover .mp-tag { transform: rotate(0); }
.mp-tag-a { background: #1F3A93; color: #fff; padding: .42rem .55rem .42rem .65rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.mp-tag-s { width: 5px; background: #fff; }
.mp-tag-b { background: #D7263D; color: #fff; padding: .42rem .6rem; font-size: .9rem; letter-spacing: .02em; }
.mp-logo-tri { display: none; }
.main-nav { margin-left: auto; }
.nav-account { margin-left: .5rem; }
@media (max-width: 1320px) { .main-nav { margin-left: 0; } }

/* Comparateur : sélection allégée */
.cp-selrow { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.cp-selnone { margin: 0; color: var(--muted); font-size: .9rem; }
.cp-selchip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem .25rem .25rem; border: 2px solid var(--cc, var(--blue)); border-radius: 999px; background: var(--bg); font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer; }
.cp-selchip .cp-av { width: 26px; height: 26px; font-size: .7rem; }
.cp-selchip:hover { background: var(--bg-lt); }
.cp-psearch { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 10px; padding: .5rem .75rem; background: var(--bg); max-width: 460px; }
.cp-psearch svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.cp-psearch input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: var(--text); }
.cp-plab { margin: 1rem 0 .5rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.cp-pmore { margin-top: .75rem; background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Menu collé à droite (le menu occupe tout l espace restant) */
@media (min-width: 1321px) { .site-header .main-nav { justify-content: flex-end; } }

/* Assistant : navigation entre thèmes toujours visible (2026-11-27) */
.mp-nav-fix { position: sticky; bottom: 0; z-index: 40; background: var(--bg); margin: 1.5rem -1.6rem -1.6rem; padding: .75rem 1.6rem; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: 0 -6px 16px rgba(15,23,42,.06); }
.mp-nav-pos { font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mp-oubli { background: #FFF7E6; border: 1px solid #F5D08A; border-radius: var(--radius); padding: .9rem 1rem; margin: 1rem 0; }
.mp-oubli p { margin: 0 0 .6rem; font-size: .92rem; }
.mp-oubli div { display: flex; flex-wrap: wrap; gap: .4rem; }
.mp-oubli-b { border: 1px solid var(--tc, var(--border)); background: var(--bg); color: var(--text); border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .85rem; cursor: pointer; }
.mp-oubli-b:hover { background: var(--bg-lt); }
@media (prefers-color-scheme: dark) { .mp-oubli { background: #3A2E12; border-color: #7A5C1E; } }
@media (max-width: 960px) {
  .mp-nav-fix { flex-direction: row; align-items: center; bottom: 46px; margin: 1.25rem -1.15rem -1.15rem; padding: .6rem 1.15rem; border-radius: 0; }
  .mp-nav-fix .btn { padding: .6rem .9rem; }
  .mp-hide-s { display: none; }
}

/* Accueil v3 : héros centré, section quiz (2026-11-27) */
.hp-hsolo { max-width: 760px; margin: 0 auto; text-align: center; }
.hp-hsolo .hp-lead { margin-left: auto; margin-right: auto; }
.hp-hsolo .hp-ctas { justify-content: center; }
.hp-quiz-wrap { padding-top: 1rem; padding-bottom: 3.5rem; }
.hp-quiz { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; background: var(--blue-lt); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); }
.hp-quiz h2 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.hp-quiz-txt > p:not(.hp-kicker) { margin: 0 0 1rem; line-height: 1.6; color: var(--text-2, var(--text)); }
.hp-quiz-pts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; color: var(--muted); }
.hp-quiz-pts li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: .45rem; vertical-align: middle; }
.hp-quiz-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hp-quiz-ex li { display: flex; gap: .75rem; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; font-weight: 600; font-size: .92rem; }
.hp-quiz-ex li span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .78rem; }
.hp-quiz-ex .hp-quiz-more { background: none; border: none; color: var(--muted); font-weight: 500; padding-left: 1rem; }
.ec-badge-ex { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-lt); border: 1px solid var(--border); border-radius: 4px; padding: .05rem .4rem; margin-bottom: .25rem; }
@media (max-width: 900px) { .hp-quiz { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 768px) { body { padding-bottom: 0; } }

/* Assistant : barre de navigation fixée sur toute la largeur de l'écran (2026-11-27) */
.mp-nav-fix { position: fixed; left: 0; right: 0; bottom: 0; z-index: 420; margin: 0; border-radius: 0; padding: .75rem max(1.5rem, calc((100vw - 1140px) / 2)); background: var(--bg); border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(15,23,42,.08); }
body:has(.mp-nav-fix) { padding-bottom: 76px; }
@media (max-width: 960px) {
  .mp-nav-fix { bottom: 46px; padding: .6rem 1rem; margin: 0; }
  body:has(.mp-nav-fix) { padding-bottom: 130px; }
}

/* Assistant mobile : plus de barre noire, compteur intégré à la barre de navigation (2026-11-27) */
.mp-nav-prog { display: none; }
@media (max-width: 960px) {
  .mp-side-toggle { background: var(--blue-lt); color: var(--blue); border-top: 1px solid var(--border); padding: .6rem 1rem; font-weight: 600; }
  body:has(.mp-nav-fix) .mp-side-toggle { display: none; }
  .mp-nav-fix { bottom: 0; }
  body:has(.mp-nav-fix) { padding-bottom: 80px; }
  .mp-nav-pos { display: none; }
  .mp-nav-prog { display: inline-flex; align-items: center; gap: .35rem; background: var(--blue-lt); color: var(--blue); border: 0; border-radius: 999px; padding: .5rem .85rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
  .mp-nav-prog b { background: var(--blue); color: #fff; border-radius: 999px; min-width: 1.4rem; padding: 0 .35rem; font-size: .78rem; line-height: 1.4rem; text-align: center; }
}

/* Résultats du quiz : récapitulatif, partage en haut, classement en accordéon (2026-11-27) */
.qz-recap { text-align: center; font-size: 1rem; margin: .25rem 0 1.25rem; line-height: 1.6; }
.qz-card .qz-share { margin: 0 0 1.25rem; text-align: center; }
.qz-card .qz-share .mp-share { justify-content: center; }
.qz-card .qz-cta { justify-content: center; margin-bottom: 1.5rem; }
.qz-acc { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; }
.qz-acc > summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qz-acc > summary::-webkit-details-marker { display: none; }
.qz-acc > summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); }
.qz-acc[open] > summary::after { content: '−'; }
.qz-acc > :not(summary) { margin-left: 1.25rem; margin-right: 1.25rem; }
.qz-acc > ol { margin-bottom: 1rem; }

/* Accueil : carrousel des programmes (2026-11-27) */
.hp-carou-nav { display: flex; align-items: center; gap: .5rem; }
.hp-carou-b { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.hp-carou-b:hover { border-color: var(--blue); color: var(--blue); }
.hp-carou-nav a { margin-left: .5rem; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hp-carou { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 3rem) / 4)); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .1rem 1rem; scrollbar-width: thin; }
.hp-carou > * { scroll-snap-align: start; }
@media (max-width: 900px) { .hp-carou { grid-auto-columns: 78%; } .hp-carou-b { display: none; } }

/* Bandeau final : image de fond drapeau + voile sombre */
.hp-final { position: relative; background: #0B1533 url('../img/bandeau-drapeau.svg') center / cover no-repeat; padding: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; }
.hp-final::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,34,.74), rgba(8,14,34,.86)); }
.hp-final .container { position: relative; }
.hp-final h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hp-final p { font-size: 1.08rem; }
.hp-final .hp-btn-main { background: #fff; color: var(--blue); padding: 1rem 1.8rem; }
.hp-final .hp-btn-main:hover { filter: none; background: #EEF2FF; }

/* Pied de page */
.site-footer { display: none; }
.mp-foot { background: #0F172A; color: #CBD5E1; margin-top: 0; }
.mp-foot-tri { display: flex; height: 5px; } .mp-foot-tri i { flex: 1; } .mp-foot-tri i:nth-child(1) { background: #1F3A93; } .mp-foot-tri i:nth-child(2) { background: #F4F4F2; } .mp-foot-tri i:nth-child(3) { background: #D7263D; }
.mp-foot-in { max-width: 1140px; margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.mp-foot-brand .mp-tag { transform: rotate(-1.5deg); }
.mp-foot-brand p { margin: 1.1rem 0 1rem; line-height: 1.6; font-size: .92rem; color: #94A3B8; max-width: 380px; }
.mp-foot-eng { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; }
.mp-foot-eng li { display: inline-flex; align-items: center; gap: .3rem; color: #E2E8F0; }
.mp-foot-eng svg { width: 14px; height: 14px; color: #60A5FA; }
.mp-foot-cta { display: inline-flex; align-items: center; gap: .4rem; background: #1D4ED8; color: #fff; font-weight: 700; padding: .65rem 1.1rem; border-radius: var(--radius); text-decoration: none; font-size: .9rem; }
.mp-foot-cta:hover { background: #2563EB; }
.mp-foot-cta svg { width: 16px; height: 16px; }
.mp-foot-col h4 { margin: .3rem 0 1rem; color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.mp-foot-col a { display: block; color: #94A3B8; text-decoration: none; font-size: .9rem; padding: .3rem 0; }
.mp-foot-col a:hover { color: #fff; }
.mp-foot-bot { border-top: 1px solid #1E293B; }
.mp-foot-bot p { max-width: 1140px; margin: 0 auto; padding: 1.25rem 1.5rem; font-size: .8rem; color: #64748B; }
@media (max-width: 900px) { .mp-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mp-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .mp-foot-in { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }
.hp-final p { opacity: 1; color: #E2E8F0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* Page programme : hiérarchie visuelle + gestion par l'auteur (2026-11-27) */
.pc-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin: .5rem 0 1.25rem; }
.pc-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin: .25rem 0 .4rem; line-height: 1.1; }
.pc-hero .pc-meta { margin: 0; color: var(--muted); }
.pc-manage { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; background: var(--blue-lt); border: 1px solid #C7D7FE; border-radius: var(--radius-lg); padding: .8rem 1rem; margin-bottom: 1.25rem; }
.pc-manage-t { margin: 0; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; }
.pc-manage-t svg { width: 16px; height: 16px; }
.pc-manage-b { display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-manage-b form { margin: 0; }
.pc-del { background: var(--bg); color: #B91C1C; border: 1px solid #FCA5A5; }
.pc-del:hover { background: #FEF2F2; }
.pc-ren { flex-basis: 100%; display: flex; gap: .5rem; flex-wrap: wrap; }
.pc-ren input { flex: 1; min-width: 200px; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.pc-stats > * { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--text); }
.pc-stats b { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--blue); }
.pc-stats span { font-size: .88rem; color: var(--muted); }
.pc-stat-c { border-left: 5px solid var(--cc) !important; }
.pc-stat-c b { color: var(--cc); }
.pc-stat-c strong { color: var(--text); }
.pc-stat-c:hover { box-shadow: var(--shadow-md); }
.pc-tnav { display: flex; gap: .4rem; overflow-x: auto; padding: .25rem 0 .75rem; margin-bottom: .5rem; scrollbar-width: thin; }
.pc-tnav a { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 600; }
.pc-tnav a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.pc-tnav a b { font-size: .75rem; color: var(--muted); }
.pc-tnav a:hover { border-color: var(--tc); }
.pc-theme { scroll-margin-top: 90px; }
.pc-theme h3 { border-bottom: 3px solid var(--tc); padding-bottom: .45rem; }
.pc-tn { margin-left: auto; font-size: .75rem; font-weight: 700; color: #fff; background: var(--tc); border-radius: 999px; padding: .1rem .5rem; }
.pc-theme ul li { padding: .8rem 0 .8rem .9rem; border-left: 3px solid transparent; }
.pc-theme ul li:hover { border-left-color: var(--tc); background: var(--bg-lt); }
.pc-theme .pc-t { font-weight: 600; font-size: 1rem; }
.pc-side .pc-share { margin: 0 0 1rem; }
.pc-side .pc-share-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.pc-side .pc-sh { padding: .45rem .6rem; }
.pc-side .pc-sh:not(.pc-sh-main) span { display: none; }
.pc-side .pc-sh-main { flex-basis: 100%; justify-content: center; }
.mc-prog-act { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.mc-prog-act form { margin: 0; }
.mp-editban { background: #FFF7E6; border: 1px solid #F5D08A; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.mp-editban .btn-link { color: #B45309; font-weight: 600; }
/* Groupe : gestion dans l'en-tête */
.gr-titre { display: flex; align-items: center; gap: .5rem; }
.gr-edit { border: 1px solid var(--border); background: var(--bg); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.gr-edit:hover { color: var(--blue); border-color: var(--blue); }
.gr-ren { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.gr-ren input { flex: 1; min-width: 200px; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.gr-menu { position: relative; }
.gr-menu > summary { list-style: none; cursor: pointer; }
.gr-menu > summary::-webkit-details-marker { display: none; }
.gr-menu-in { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 210px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); padding: .35rem; }
.gr-menu-in button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .6rem .75rem; border-radius: 6px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); }
.gr-menu-in button:hover { background: var(--bg-lt); }
.gr-menu-in .gr-danger { color: #B91C1C; }
@media (max-width: 960px) { .pc-hero { align-items: flex-start; } }
.pc-ren[hidden], .gr-ren[hidden] { display: none !important; }
.pc-side .pc-share { background: var(--bg); color: var(--text); }
.pc-side .pc-share .cf-h2 { color: var(--text); }
.pc-side .pc-share .pc-sh { color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.pc-side .pc-share .pc-sh-main { background: var(--blue); color: #fff; border-color: var(--blue); }
.pc-side .pc-copied { color: var(--muted); }

/* ===== 2026-11-27 (v4) : menu aéré, carrousel, clivages, engagements, résultat du quiz ===== */

/* Menu : icônes + respiration ; menu repliable sous 1240 px */
.main-nav a svg { width: 16px; height: 16px; opacity: .7; flex: none; }
.main-nav > .nav-item > a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; font-size: .9rem; border-radius: 8px; }
.main-nav > .nav-item > a.current svg, .main-nav > .nav-item > a:hover svg { opacity: 1; }
.site-header .main-nav { gap: .15rem; }
@media (min-width: 1321px) { .site-header .header-inner { min-height: 68px; } }

/* Carrousel des programmes */
.hp-carou-vp { position: relative; }
.hp-carou { grid-auto-columns: calc((100% - 3rem) / 4); scrollbar-width: none; padding: .5rem .25rem 1rem; }
.hp-carou::-webkit-scrollbar { display: none; }
.hp-carou .ec-card { height: 100%; transition: transform .2s, box-shadow .2s; }
.hp-carou .ec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hp-carou-b { width: 40px; height: 40px; box-shadow: var(--shadow); }
.hp-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .25rem; }
.hp-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--border); cursor: pointer; transition: width .25s, background .25s; }
.hp-dots button.on { width: 26px; background: var(--blue); }
@media (max-width: 1000px) { .hp-carou { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 640px) { .hp-carou { grid-auto-columns: 85%; } }

/* Ce qui les divise */
.hp-divsec { padding: 4rem 0; background: linear-gradient(180deg, var(--bg) 0%, var(--blue-lt) 100%); }
.hp-divhead { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.hp-divhead .hp-h2 { margin-bottom: .5rem; }
.hp-divhead p:last-child { color: var(--muted); margin: 0; line-height: 1.6; }
.hp-divs { gap: 1.25rem; }
.hp-div { display: flex; flex-direction: column; gap: .9rem; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(15,23,42,.05); transition: transform .2s, box-shadow .2s; }
.hp-div:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,23,42,.1); }
.hp-div:hover h3 { text-decoration: none; }
.hp-div-n { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.hp-div h3 { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; flex: 1; }
.hp-div-bar { display: flex; gap: 3px; height: 30px; border-radius: 8px; overflow: hidden; }
.hp-div-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: .82rem; color: #fff; min-width: 26px; }
.hp-div-bar i.p { background: #2563EB; } .hp-div-bar i.n { background: #A8A29E; } .hp-div-bar i.c { background: #DC2626; }
.hp-div-leg { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); }
.hp-div-leg span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.hp-div-leg .p::before { background: #2563EB; } .hp-div-leg .n::before { background: #A8A29E; } .hp-div-leg .c::before { background: #DC2626; }
.hp-div-go { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--blue); font-size: .9rem; }
.hp-div-go svg { width: 16px; height: 16px; transition: transform .2s; }
.hp-div:hover .hp-div-go svg { transform: translateX(4px); }
.hp-divfoot { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hp-divfoot .hp-btn-alt { background: var(--bg); }

/* Nos engagements */
.hp-engage2 { padding: 4rem 0; }
.hp-engage2 .hp-h2 { text-align: center; margin-bottom: 2rem; }
.hp-eng { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hp-eng > div { text-align: center; padding: 1.75rem 1.5rem; border-radius: 18px; background: var(--bg-lt); border: 1px solid var(--border); }
.hp-eng-i { width: 56px; height: 56px; border-radius: 16px; background: var(--blue); color: #fff; display: inline-grid; place-items: center; margin-bottom: 1rem; box-shadow: 0 8px 20px rgba(29,78,216,.25); }
.hp-eng-i svg { width: 26px; height: 26px; }
.hp-eng h3 { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 800; }
.hp-eng p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .95rem; }
@media (max-width: 900px) { .hp-eng { grid-template-columns: minmax(0, 1fr); } .hp-divsec, .hp-engage2 { padding: 3rem 0; } }

/* ===== Résultat du quiz : révélation façon jeu ===== */
.qz-result { overflow: hidden; }
.qz-reveal { text-align: center; padding: 1rem 0 .5rem; }
.qz-rv-lead { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; margin: 0 auto 1.5rem; max-width: 560px; opacity: 0; animation: qzIn .6s ease forwards; }
.qz-rv-lead::after { content: ''; display: inline-block; width: 0; }
.qz-rv-card { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: var(--text); padding: 1.75rem 2.5rem 1.5rem; border-radius: 24px; background: var(--bg); border: 2px solid var(--cc); box-shadow: 0 18px 50px color-mix(in srgb, var(--cc) 25%, transparent); position: relative; opacity: 0; transform: scale(.7) translateY(20px); animation: qzPop .7s cubic-bezier(.2,1.4,.4,1) 1.1s forwards; }
.qz-rv-card::before { content: '1er'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #F59E0B; color: #fff; font-weight: 800; font-size: .8rem; padding: .2rem .7rem; border-radius: 999px; box-shadow: 0 4px 10px rgba(245,158,11,.4); }
.qz-rv-av { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--cc); color: #fff; font-size: 2.4rem; font-weight: 800; border: 4px solid var(--bg); box-shadow: 0 0 0 4px var(--cc); margin-bottom: .5rem; }
.qz-rv-av img { width: 100%; height: 100%; object-fit: cover; }
.qz-rv-n { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.qz-rv-p { color: var(--muted); font-size: .95rem; }
.qz-rv-pct { margin-top: .5rem; font-size: 1.05rem; font-weight: 700; color: var(--cc); }
.qz-rv-pct b { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; }
.qz-rv-sub { font-size: .8rem; color: var(--muted); }
.qz-rv-next { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; opacity: 0; animation: qzIn .5s ease 2.1s forwards; }
.qz-rv-mini { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); padding: .55rem .9rem .55rem .55rem; border: 1px solid var(--border); border-left: 4px solid var(--cc); border-radius: 14px; background: var(--bg); text-align: left; }
.qz-rv-mini small { display: block; color: var(--muted); font-size: .78rem; }
.qz-rv-rk { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-lt); display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: var(--muted); }
.qz-rv-share { opacity: 0; animation: qzIn .5s ease 2.5s forwards; margin: 1.5rem 0 .5rem; }
.qz-rv-rest { opacity: 0; animation: qzIn .6s ease 2.9s forwards; border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1rem; }
.qz-rv-rest .qz-h2 { text-align: center; }
.qz-rv-rest .qz-cta { justify-content: center; }
@keyframes qzIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes qzPop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .qz-rv-lead, .qz-rv-card, .qz-rv-next, .qz-rv-share, .qz-rv-rest { animation: none; opacity: 1; transform: none; }
}
.main-nav > .nav-item > a { padding: .45rem .55rem; gap: .35rem; font-size: .88rem; }
@media (max-width: 1440px) and (min-width: 1321px) { .main-nav > .nav-item > a { padding: .4rem .45rem; font-size: .85rem; } .site-header .header-inner { gap: .5rem; } }

/* ===== Menu mobile lisible (2026-11-27) ===== */
@media (max-width: 1320px) {
  body:has(.main-nav.open) { overflow: hidden; }
  .main-nav.open {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 400;
    display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
    padding: 1rem 1rem 2rem; overflow-y: auto; background: var(--bg-lt);
    border-top: 1px solid var(--border); box-shadow: none;
    animation: mnavIn .2s ease;
  }
  .main-nav.open .nav-item { width: 100%; }
  /* Rubriques principales */
  .main-nav.open > .nav-item > a {
    display: flex; align-items: center; gap: .75rem; width: 100%;
    padding: .85rem 1rem; font-size: 1.02rem; font-weight: 700; color: var(--text);
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  }
  .main-nav.open > .nav-item > a svg { width: 20px; height: 20px; opacity: 1; padding: 7px; box-sizing: content-box; border-radius: 10px; background: var(--blue-lt); color: var(--blue); }
  .main-nav.open > .nav-item > a.current { border-color: var(--blue); background: var(--blue-lt); }
  .main-nav.open .nav-dropdown-wrap > a::after { display: none; }
  /* Créer mon programme : bouton principal */
  .main-nav.open > .nav-item > a.nav-creer { background: var(--blue); color: #fff; border-color: var(--blue); justify-content: center; padding: 1rem; font-size: 1.05rem; box-shadow: 0 8px 20px rgba(29,78,216,.25); margin-bottom: .35rem; }
  .main-nav.open > .nav-item > a.nav-creer svg { background: rgba(255,255,255,.18); color: #fff; }
  /* Sous-liens en pastilles sous leur rubrique */
  .main-nav.open .nav-dropdown-wrap { display: flex; flex-direction: column; }
  .main-nav.open .nav-dropdown-wrap > a { border-radius: 14px 14px 0 0 !important; border-bottom: 0 !important; }
  .main-nav.open .nav-dropdown { display: flex !important; flex-wrap: wrap; gap: .4rem; position: static; padding: .25rem 1rem .9rem 3.6rem !important; margin: 0; background: var(--bg); border: 1px solid var(--border) !important; border-top: 0 !important; border-radius: 0 0 14px 14px; box-shadow: none; min-width: 0; }
  .main-nav.open .nav-dropdown a { display: inline-block; padding: .4rem .75rem !important; font-size: .86rem; font-weight: 600; color: var(--blue); background: var(--blue-lt); border-radius: 999px; }
  /* Compte en bas */
  .main-nav.open .nav-account-mobile { display: flex !important; align-items: center; justify-content: center; width: 100%; margin-top: .75rem; padding: .85rem 1rem; font-weight: 700; color: var(--text); background: var(--bg); border: 1.5px solid var(--text); border-radius: 14px; }
  @keyframes mnavIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* Quiz : sur écran tactile, pas d effet de survol (sinon iPhone garde la réponse précédente en surbrillance) */
@media (hover: none) { .qz-b:not(.on):hover, .qz-b:not(.on):focus { border-color: var(--border); background: #fff; color: inherit; } }
.qz-b { -webkit-tap-highlight-color: transparent; }
.qz-def { margin: -.25rem 0 1.25rem; font-size: .92rem; }
.qz-def summary { cursor: pointer; color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; list-style: none; }
.qz-def summary::-webkit-details-marker { display: none; }
.qz-def summary::before { content: "?"; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-lt); display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; }
.qz-def p { margin: .6rem 0 0; padding: .8rem 1rem; background: var(--bg-lt); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; color: var(--text); line-height: 1.55; }
.qz-share-t { display: flex; flex-direction: column; gap: .15rem; margin: 0 0 .75rem; }
.qz-share-t span { color: var(--muted); font-size: .9rem; }
.qz-share-opt { display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem; font-size: .88rem; color: var(--muted); cursor: pointer; }

/* Résultats du quiz : classement compact (2026-11-27) */
.qz-rk { margin-top: 1.5rem; }
.qz-rk-h { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.qz-rk-h .qz-h2 { margin: 0; text-align: left !important; }
.qz-rk-s input { padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 999px; font: inherit; font-size: .9rem; width: 220px; max-width: 100%; background: var(--bg); color: var(--text); }
.qz-rk-tip { margin: .4rem 0 .9rem; font-size: .86rem; color: var(--muted); }
.qz-rk .qz-res { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.qz-rk .qz-r { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); overflow: hidden; transition: box-shadow .15s; }
.qz-rk .qz-r.open { border-color: var(--cc); box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.qz-rk .qz-r-plus, .qz-rk .qz-r.cache { display: none; }
.qz-rk .qz-res.tous .qz-r-plus, .qz-rk .qz-res.cherche .qz-r-plus { display: block; }
.qz-rk .qz-res.cherche .qz-r.cache { display: none; }
.qz-rk .qz-r-h { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) 90px 48px 14px; align-items: center; gap: .6rem; width: 100%; padding: .6rem .8rem; background: none; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.qz-rk .qz-r-h:hover { background: var(--bg-lt); }
.qz-rk .qz-rank { font-weight: 800; color: var(--muted); text-align: center; }
.qz-rk .qz-r:nth-child(-n+3) .qz-rank { color: #fff; background: var(--cc); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: .8rem; }
.qz-rk .cp-av { width: 36px; height: 36px; }
.qz-rk .qz-r-n b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-rk .qz-r-n small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-rk .qz-r-bar { height: 8px; border-radius: 999px; background: var(--bg-lt); overflow: hidden; }
.qz-rk .qz-r-bar span { display: block; height: 100%; background: var(--cc); border-radius: 999px; }
.qz-rk .qz-r-pct { text-align: right; font-size: 1rem; }
.qz-rk .qz-r-chev { color: var(--muted); font-size: 1.3rem; transition: transform .2s; }
.qz-rk .qz-r.open .qz-r-chev { transform: rotate(90deg); }
.qz-rk .qz-r-sub { display: none; }
.qz-rk .qz-det { padding: .25rem 1rem 1rem; border-top: 1px solid var(--border); display: grid; gap: .6rem; }
.qz-g { border-radius: 10px; padding: .6rem .8rem; }
.qz-g-t { margin: 0 0 .35rem; font-weight: 700; font-size: .88rem; display: flex; justify-content: space-between; }
.qz-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.qz-g li { display: flex; flex-direction: column; font-size: .86rem; }
.qz-g .qz-dq { font-weight: 600; }
.qz-g .qz-dp { color: var(--muted); font-size: .8rem; }
.qz-g .qz-dp a { color: var(--blue); }
.qz-g-ok { background: #ECFDF5; } .qz-g-ok .qz-g-t { color: #047857; }
.qz-g-ko { background: #FEF2F2; } .qz-g-ko .qz-g-t { color: #B91C1C; }
.qz-g-mid { background: #FFFBEB; } .qz-g-mid .qz-g-t { color: #B45309; }
.qz-g-na { background: var(--bg-lt); } .qz-g-na summary { cursor: pointer; color: var(--muted); list-style: none; }
.qz-g-na summary::-webkit-details-marker { display: none; }
.qz-det-go { font-weight: 700; color: var(--blue); font-size: .88rem; text-decoration: none; }
.qz-rk-more { display: block; margin: .75rem auto 0; padding: .6rem 1.2rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; }
.qz-calc { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.qz-calc summary { cursor: pointer; }
@media (prefers-color-scheme: dark) { .qz-g-ok, .qz-g-ko, .qz-g-mid { background: var(--bg-lt); } }
@media (max-width: 560px) {
  .qz-rk .qz-r-h { grid-template-columns: 22px 32px minmax(0, 1fr) 44px 12px; gap: .5rem; }
  .qz-rk .qz-r-bar { display: none; }
  .qz-rk-s, .qz-rk-s input { width: 100%; }
}
.qz-rk .qz-det[hidden] { display: none; }

/* Assistant : côté ludique (2026-11-27) */
.mp-progress { margin: 0 0 .6rem; }
.mp-pg-bar { height: 8px; border-radius: 999px; background: var(--bg-lt); overflow: hidden; border: 1px solid var(--border); }
.mp-pg-bar span { display: block; height: 100%; background: linear-gradient(90deg, #1D4ED8, #7C3AED); border-radius: 999px; transition: width .5s cubic-bezier(.2,.9,.3,1); }
.mp-progress p { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.mp-progress b { color: var(--text); }
.mp-steps button.vu:not(.has)::before { content: '✓'; margin-right: .3rem; color: #059669; font-weight: 800; }
.mp-steps button.on { box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.mp-theme { border-top: 5px solid var(--tc); }
.mp-theme .mp-kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--tc); }
.mp-th-ico { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); }
.mp-th-ico svg { width: 20px; height: 20px; }
.mp-theme h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -.01em; }
.mp-add { transition: transform .12s, border-color .15s, background .15s; }
.mp-add:active { transform: scale(.98); }
.mp-row.pop .mp-chk { animation: mpPop .35s cubic-bezier(.2,1.6,.4,1); }
.mp-row.pop .mp-add { animation: mpGlow .6s ease; }
@keyframes mpPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes mpGlow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc, #1D4ED8) 35%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.mp-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 500; background: #0F172A; color: #fff; padding: .65rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; max-width: calc(100vw - 32px); text-align: center; }
.mp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.mp-nav-prog.bump b { animation: mpBump .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes mpBump { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mp-row.pop .mp-chk, .mp-row.pop .mp-add, .mp-nav-prog.bump b { animation: none; } }

/* Survol des réponses uniquement à la souris ; sur tactile, seule la réponse choisie (.on) est colorée */
@media (hover: hover) and (pointer: fine) {
  .qz-b-pour:not(.qz-fresh):hover { border-color: #059669; background: #ECFDF5; color: #047857; }
  .qz-b-contre:not(.qz-fresh):hover { border-color: #DC2626; background: #FEF2F2; color: #B91C1C; }
  .qz-b-s:not(.qz-fresh):hover { border-color: #9CA3AF; background: #F9FAFB; }
}
.qz-b:focus { outline: none; }
.qz-b:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.qz-fresh { pointer-events: none; }

/* Assistant : recherche par candidat (2026-11-27) */
.mp-search { position: relative; }
.mp-csug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; background: var(--bg); border-radius: 10px; box-shadow: var(--shadow-md); overflow: hidden; }
.mp-csug:empty { display: none; }
.mp-csug button { text-align: left; padding: .6rem .85rem; border: 0; border-left: 4px solid var(--vc); background: var(--bg); font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); }
.mp-csug button:hover { background: var(--bg-lt); }
.mp-cfil:empty { display: none; }
.mp-cfil { margin: .25rem 0 .6rem; }
.mp-cchip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .4rem .35rem .8rem; border-radius: 999px; background: var(--blue-lt); color: var(--blue); font-size: .88rem; }
.mp-cchip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }

/* Quiz : couverture des candidats (2026-11-27) */
.qz-couv { background: var(--bg-lt); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; padding: .75rem 1rem; font-size: .9rem; line-height: 1.55; margin: 0 0 1.25rem; }
.qz-nc { margin-top: 1rem; border: 1px solid var(--border); border-radius: 14px; padding: 0; }
.qz-nc > summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; display: flex; justify-content: space-between; list-style: none; }
.qz-nc > summary::-webkit-details-marker { display: none; }
.qz-nc > p { margin: 0 1rem .6rem; font-size: .86rem; }
.qz-nc ul { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .35rem .9rem; }
.qz-nc li { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; padding: .3rem 0; border-bottom: 1px dashed var(--border); }
.qz-nc li span { color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* Héros d'accueil au style du bandeau final : drapeau assombri + liseré tricolore (2026-11-27) */
.hp-hero { position: relative; overflow: hidden; background: #0B1533 url('../img/bandeau-drapeau.svg') center / cover no-repeat; color: #fff; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); border-bottom: 0; }
.hp-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,34,.72), rgba(8,14,34,.86)); }
.hp-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #1F3A93 0 33.33%, #F4F4F2 33.33% 66.66%, #D7263D 66.66%); }
.hp-hero .container { position: relative; z-index: 1; }
.hp-hero .hp-kicker { color: #93C5FD; }
.hp-hero .hp-title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hp-hero .hp-title em { color: #93C5FD; }
.hp-hero .hp-lead { color: #E2E8F0; opacity: 1; }
.hp-hero .hp-proof { color: #CBD5E1; }
.hp-hero .hp-btn-main { background: #fff; color: var(--blue); }
.hp-hero .hp-btn-main:hover { background: #EEF2FF; filter: none; }
.hp-hero .hp-btn-alt { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.06); }
.hp-hero .hp-btn-alt:hover { background: rgba(255,255,255,.14); }
.hp-hero .cx-ok { position: relative; }
/* Bandeau final : même liseré, et collé au pied de page */
.hp-final::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #1F3A93 0 33.33%, #F4F4F2 33.33% 66.66%, #D7263D 66.66%); }
.hp-final + .mp-foot .mp-foot-tri { display: none; }
main + .hp-final { margin-top: 3rem; }

/* Héros : retour au fond clair, on garde seulement le liseré tricolore (2026-11-27) */
.hp-hero { background: linear-gradient(180deg, var(--blue-lt), var(--bg)); color: var(--text); }
.hp-hero::before { display: none; }
.hp-hero .hp-kicker { color: var(--blue); }
.hp-hero .hp-title { color: var(--text); text-shadow: none; }
.hp-hero .hp-title em { color: var(--blue); }
.hp-hero .hp-lead { color: var(--text-2, var(--muted)); }
.hp-hero .hp-proof { color: var(--muted); }
.hp-hero .hp-btn-main { background: var(--blue); color: #fff; }
.hp-hero .hp-btn-main:hover { background: var(--blue-dk); }
.hp-hero .hp-btn-alt { border-color: var(--border); color: var(--text); background: var(--bg); }
.hp-hero .hp-btn-alt:hover { background: var(--bg-lt); }

/* Liseré tricolore sous l'en-tête (toutes les pages), plus sous la bannière (2026-11-27) */
.hp-hero::after { display: none; }
.site-header { position: sticky; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: linear-gradient(90deg, #1F3A93 0 33.33%, #F4F4F2 33.33% 66.66%, #D7263D 66.66%); pointer-events: none; }

/* Menu mobile compact : sous-rubriques en accordéon (2026-11-27) */
.nav-sub-t { display: none; }
@media (max-width: 1320px) {
  .main-nav.open { gap: .4rem; padding-top: .75rem; }
  .main-nav.open > .nav-item > a { padding: .6rem .8rem; font-size: .98rem; }
  .main-nav.open > .nav-item > a svg { width: 18px; height: 18px; padding: 6px; }
  .main-nav.open > .nav-item > a.nav-creer { padding: .8rem; }
  .main-nav.open .nav-dropdown-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
  .main-nav.open .nav-dropdown-wrap > a { border: 0 !important; border-radius: 14px !important; background: none; }
  .main-nav.open .nav-sub-t { display: grid; place-items: center; width: 48px; border: 0; border-left: 1px solid var(--border); background: none; cursor: pointer; color: var(--muted); }
  .main-nav.open .nav-sub-t::before { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
  .main-nav.open .nav-dropdown-wrap.ouvert .nav-sub-t::before { transform: rotate(-135deg) translateY(-2px); }
  .main-nav.open .nav-dropdown { grid-column: 1 / -1; display: none !important; border: 0 !important; border-top: 1px dashed var(--border) !important; border-radius: 0 0 14px 14px; padding: .6rem .8rem .8rem !important; }
  .main-nav.open .nav-dropdown-wrap.ouvert .nav-dropdown { display: flex !important; }
  .main-nav.open .nav-account-mobile { margin-top: .4rem; padding: .7rem 1rem; }
}
@media (max-width: 1320px) { .main-nav.open > .nav-item > a { min-width: 0; } .main-nav.open .nav-dropdown-wrap > a { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* ===== Espace candidat (2026-11-27) ===== */
.eq-wrap { padding-top: 2rem; padding-bottom: 3rem; max-width: 980px; }
.eq-head { margin-bottom: 1.5rem; }
.eq-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: .25rem 0 .5rem; }
.eq-head-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.eq-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.eq-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.25rem; }
.eq-card h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.eq-ok { border-color: #A7F3D0; background: #F0FDF4; }
.eq-form { display: grid; gap: .85rem; }
.eq-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.eq-form small { font-weight: 400; color: var(--muted); }
.eq-form input:not([type=checkbox]), .eq-form select, .eq-form textarea, .eq-cliv input:not([type=radio]) { padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-weight: 400; background: var(--bg); color: var(--text); width: 100%; box-sizing: border-box; }
.eq-chk { display: flex !important; grid-template-columns: none; gap: .5rem; align-items: flex-start; font-weight: 400 !important; font-size: .86rem !important; }
.eq-code { font-family: ui-monospace, monospace; background: var(--blue-lt); color: var(--blue); padding: .1rem .45rem; border-radius: 6px; letter-spacing: .04em; }
.eq-rules { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.eq-rules h3 { font-size: .95rem; color: var(--text); margin: 0 0 .4rem; }
.eq-rules ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.eq-badge { display: inline-flex; align-items: center; gap: .3rem; background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; font-weight: 700; }
.eq-badge::before { content: '✓'; }
.eq-list { list-style: none; margin: 0; padding: 0; }
.eq-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--border); font-size: .92rem; }
.eq-list li:first-child { border-top: 0; }
.eq-list details summary { cursor: pointer; color: #B91C1C; font-size: .82rem; white-space: nowrap; }
.eq-inline { display: flex; gap: .4rem; margin-top: .4rem; }
.eq-inline input { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .85rem; }
.eq-tag { font-style: normal; font-size: .75rem; color: #047857; background: #ECFDF5; border-radius: 4px; padding: .05rem .35rem; }
.eq-st { font-style: normal; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.eq-st-attente { background: #FFFBEB; color: #B45309; } .eq-st-valide { background: #ECFDF5; color: #047857; } .eq-st-refuse { background: #FEF2F2; color: #B91C1C; }
.eq-cliv fieldset { border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; margin: 0 0 .75rem; display: grid; gap: .5rem; }
.eq-cliv legend { font-weight: 700; padding: 0 .3rem; }
.eq-cliv legend small { font-weight: 400; color: var(--muted); margin-left: .4rem; }
.eq-pc { display: flex; flex-wrap: wrap; gap: .4rem; }
.eq-pc label { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--border); border-radius: 999px; padding: .3rem .75rem; font-size: .88rem; cursor: pointer; }
.eq-pc label:has(input:checked) { border-color: var(--blue); background: var(--blue-lt); color: var(--blue); font-weight: 700; }
.md-item { border-top: 1px solid var(--border); padding: 1rem 0; }
.md-item:first-of-type { border-top: 0; }
.md-item p { margin: 0 0 .4rem; }
.md-act { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.md-act input { flex: 1; min-width: 200px; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.md-act form { margin: 0; }
.md-diff { margin: .5rem 0; } .md-av { background: #FEF2F2; padding: .4rem .6rem; border-radius: 6px; text-decoration: line-through; color: #7F1D1D; } .md-ap { background: #F0FDF4; padding: .4rem .6rem; border-radius: 6px; }
.md-t { width: 100%; border-collapse: collapse; font-size: .86rem; } .md-t th, .md-t td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--border); }
.pc-officiel { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; color: #047857; background: #ECFDF5; border-radius: 4px; padding: .05rem .4rem; margin-left: .35rem; }
@media (max-width: 800px) { .eq-two { grid-template-columns: minmax(0, 1fr); } }
.pc-desc-prog { margin: .9rem 0 0; max-width: 720px; font-size: 1.02rem; line-height: 1.65; color: var(--text); padding: .9rem 1.1rem; background: var(--bg-lt); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; }
.pc-ren textarea { flex-basis: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }

/* ===== Cartes dépliables façon menu mobile : Espace citoyen + assistant (2026-11-27) ===== */
.mc-accs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.mc-acc, .mp-acc { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.mc-acc[open], .mp-acc[open] { box-shadow: 0 6px 20px rgba(15,23,42,.06); }
.mc-acc-alert { border-color: #FCD34D; grid-column: 1 / -1; }
.mc-acc > summary, .mp-acc > summary { list-style: none; display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; cursor: pointer; min-height: 48px; }
.mc-acc > summary::-webkit-details-marker, .mp-acc > summary::-webkit-details-marker, .mc-sub > summary::-webkit-details-marker { display: none; }
.mc-acc-i, .mp-acc-i { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--blue-lt); color: var(--blue); font-weight: 800; font-size: 1.2rem; }
.mc-acc-i svg { width: 20px; height: 20px; }
.mc-acc-t, .mp-acc > summary > span:nth-child(2) { flex: 1; min-width: 0; font-weight: 700; font-size: 1.02rem; color: var(--text); }
.mc-acc-t small, .mp-acc > summary small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .1rem; }
.mc-acc-n { min-width: 26px; height: 26px; padding: 0 .45rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.mc-acc-c, .mp-acc-c, .mp-tcard-c { width: 9px; height: 9px; flex: none; margin: 0 .35rem 0 .2rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.mc-acc[open] .mc-acc-c, .mp-acc[open] .mp-acc-c { transform: rotate(-135deg) translateY(-2px); }
.mc-acc-b { padding: .25rem 1rem 1rem; border-top: 1px solid var(--border); display: grid; gap: .5rem; }
.mc-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .8rem; background: var(--bg-lt); border-radius: 12px; flex-wrap: wrap; }
.mc-item-t { flex: 1; min-width: 180px; text-decoration: none; color: var(--text); }
.mc-item-t strong { display: block; font-size: .95rem; }
.mc-item-t small { display: block; color: var(--muted); font-size: .8rem; }
a.mc-item-t:hover strong { color: var(--blue); }
.mc-item-a { display: flex; gap: .4rem; flex-wrap: wrap; } .mc-item-a form { margin: 0; }
.mc-add { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border: 1.5px dashed var(--border); border-radius: 12px; color: var(--blue); font-weight: 700; text-decoration: none; cursor: pointer; list-style: none; }
.mc-add svg { width: 18px; height: 18px; }
.mc-add:hover { border-color: var(--blue); background: var(--blue-lt); }
.mc-add-danger { color: #B91C1C; border-color: #FCA5A5; }
.mc-sub[open] > summary { margin-bottom: .6rem; }
.mc-sub .mc-create-form { display: grid; gap: .6rem; }
.mc-lab { margin: .4rem 0 .1rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mc-set { padding: .25rem 0 .5rem; border-bottom: 1px solid var(--border); }
.ec-card-desc { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin: .15rem 0 .25rem; }
@media (max-width: 900px) { .mc-accs { grid-template-columns: minmax(0, 1fr); } }

/* Assistant : cartes de thèmes sur l'accueil */
.mp-tcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.mp-tcards-h { grid-column: 1 / -1; font-size: 1.05rem; margin: .5rem 0 .1rem; }
.mp-tcard { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; padding: .75rem .9rem; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; font: inherit; color: var(--text); cursor: pointer; min-height: 56px; }
.mp-tcard:hover { border-color: var(--tc); }
.mp-tcard-i { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); }
.mp-tcard-i svg { width: 20px; height: 20px; }
.mp-tcard-l { flex: 1; min-width: 0; font-weight: 700; }
.mp-tcard-l small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.mp-tcard.vu .mp-tcard-l small { color: #059669; }
.mp-tcard-n { min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--tc); color: #fff; font-size: .78rem; display: grid; place-items: center; }
.mp-tcard-c { transform: rotate(-45deg); }
.mp-acc-new { margin: .5rem 0 1rem; }
.mp-acc-new .mp-create { border: 0; border-top: 1px solid var(--border); border-radius: 0; margin: 0; }
.mp-exist-h { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0 .6rem; }
.mp-exist-h h3 { margin: 0; font-size: 1.05rem; }
.mp-exist-h span { font-size: .82rem; color: var(--muted); }
.mp-rows .mp-add { border-radius: 14px; padding: .8rem .9rem; min-height: 52px; }
.mp-chk { width: 24px; height: 24px; border-radius: 8px; }
.mp-row.on .mp-chk::after { left: 7px; top: 3px; }
@media (max-width: 640px) { .mp-tcards { grid-template-columns: minmax(0, 1fr); } }
.mp-how-d { margin: .25rem 0 1rem; } .mp-how-d summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .92rem; } .mp-how-d .mp-how { margin-top: .6rem; }
.mp-nav-prog { white-space: nowrap; } @media (max-width: 400px) { .mp-nav-fix .btn { padding: .55rem .7rem; } }
@media (max-width: 640px) { .pc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-stats b { font-size: 1.6rem; } }
@media (max-width: 640px) { .eq-card { padding: 1.15rem; } }

/* Quiz : micro-animation du choix (2026-11-27) */
.qz-b { transition: transform .15s, opacity .2s, background .15s, border-color .15s, color .15s; }
.qz-b.qz-pick { animation: qzPick .32s cubic-bezier(.2,1.5,.4,1); box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.qz-b.qz-pick::after { content: ' ✓'; }
.qz-b.qz-off { opacity: .45; transform: scale(.97); }
@keyframes qzPick { 0% { transform: scale(.94); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .qz-b.qz-pick { animation: none; } }

/* Marges latérales garanties pour tous les conteneurs de page (correctif 2026-11-27) */
.container[class*="-wrap"] { padding-left: 24px; padding-right: 24px; }
@media (max-width: 640px) { .container[class*="-wrap"] { padding-left: 16px; padding-right: 16px; } .cx-card { padding: 1.4rem 1.15rem; } }

/* Menu « Gérer » du groupe : ne déborde plus sur mobile (2026-11-27) */
.gr-menu-in { right: auto; left: 0; max-width: calc(100vw - 32px); }
@media (min-width: 961px) { .gr-head-actions .gr-menu-in { left: auto; right: 0; } }
@media (max-width: 640px) { .gr-menu { width: 100%; } .gr-menu-in { position: static; margin-top: .4rem; min-width: 0; width: 100%; box-shadow: none; } }

/* ===== Groupes v2 (2026-11-27) ===== */
.gv-wrap { padding-top: 1rem; padding-bottom: 3rem; max-width: 1000px; }
.gv-hero { background: var(--bg); border: 1px solid var(--border); border-top: 4px solid #7C3AED; border-radius: 18px; padding: 1.5rem; margin-bottom: 1rem; }
.gv-hero .pc-kicker { color: #7C3AED; }
.gv-hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: .25rem 0 .5rem; line-height: 1.15; }
.gv-desc { margin: 0 0 .9rem; color: var(--text); line-height: 1.6; max-width: 720px; }
.gv-mbs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding-left: 8px; }
.gv-mb { width: 32px; height: 32px; margin-left: -8px; border-radius: 50%; background: #EDE9FE; color: #6D28D9; border: 2px solid var(--bg); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.gv-mbs .mp-muted { margin-left: .25rem; font-size: .85rem; }
.gv-cta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.gv-cta form { margin: 0; }
.gv-accs { grid-template-columns: minmax(0, 1fr); }
.gv-prop { padding: .8rem .9rem; background: var(--bg-lt); border-radius: 12px; display: grid; gap: .45rem; }
.gv-prop-t { margin: 0; font-weight: 700; }
.gv-prop-m { margin: 0; font-size: .82rem; color: var(--muted); }
.gv-badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: .1rem .45rem; border-radius: 6px; margin-right: .3rem; vertical-align: 1px; }
.gv-ajout { background: #ECFDF5; color: #047857; } .gv-retrait { background: #FEF2F2; color: #B91C1C; }
.gv-vote { display: flex; flex-wrap: wrap; gap: .4rem; }
.gv-v { border: 1.5px solid var(--border); background: var(--bg); border-radius: 999px; padding: .45rem .85rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 40px; }
.gv-v b { margin-left: .25rem; color: var(--muted); }
.gv-v-p.on { background: #ECFDF5; border-color: #059669; color: #047857; } .gv-v-c.on { background: #FEF2F2; border-color: #DC2626; color: #B91C1C; } .gv-v-a.on { background: var(--bg-lt); border-color: #9CA3AF; }
.gv-v.qz-pick { animation: qzPick .32s cubic-bezier(.2,1.5,.4,1); }
.gv-ann { font-size: .8rem; color: var(--muted); justify-self: start; }
.gv-deja { font-style: normal; font-size: .75rem; color: var(--muted); margin-left: .3rem; }
.gv-in { width: 100%; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; box-sizing: border-box; }
.mc-item-alert { background: #FFFBEB; }
.gv-form { display: grid; gap: .8rem; }
.gv-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.gv-form input:not([type=radio]), .gv-form textarea, .gv-form select { padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-weight: 400; }
.gv-form fieldset { border: 1px solid var(--border); border-radius: 12px; padding: .75rem .9rem; display: grid; gap: .5rem; margin: 0; }
.gv-form legend { font-weight: 700; padding: 0 .3rem; }
.gv-opt { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; }
.gv-opt:has(input:checked) { background: var(--blue-lt); }
.gv-opt small { display: block; color: var(--muted); font-size: .8rem; }
.gv-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem; }
.gv-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.gv-h2 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.gv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gv-gcard { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text); }
.gv-gcard:hover { border-color: #7C3AED; }
.gv-gcard .mc-acc-i { background: #EDE9FE; color: #6D28D9; }
.gv-gcard-b { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.gv-gcard small { color: var(--muted); font-size: .8rem; }
.gr-invite-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.gr-invite-row input { flex: 1 1 100%; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .85rem; }
@media (max-width: 760px) { .gv-grid { grid-template-columns: minmax(0, 1fr); } .gv-hero { padding: 1.15rem; } }
.mp-infos { display: grid; gap: .75rem; margin: .5rem 0 0; } .mp-infos label { display: grid; gap: .3rem; font-weight: 700; font-size: .92rem; } .mp-infos small { font-weight: 400; color: var(--muted); } .mp-infos input, .mp-infos textarea { padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-weight: 400; } .mp-infos .btn { justify-self: start; }
.eq-absent { display: grid; gap: .7rem; padding: .8rem; background: var(--bg-lt); border-radius: 10px; } .eq-absent[hidden] { display: none; } .md-act select { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; max-width: 100%; }

/* Pages de texte (mentions légales, confidentialité) */
.prose-page { max-width: 780px; padding-top: 2rem; padding-bottom: 3rem; }
.prose-page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.prose-page .lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; }
.prose { line-height: 1.7; color: var(--text); }
.prose h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.prose h3 { font-size: 1.02rem; margin: 1.25rem 0 .4rem; }
.prose p, .prose ul { margin: 0 0 .9rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--blue); }
.prose .lg-maj { font-size: .85rem; color: var(--muted); }

/* ===== Mesures citoyennes : cartes, votes, proposition, page mesure, commentaires (2026-11-28) ===== */
.mcd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.mc-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.1rem 1rem; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--tc, var(--blue)); border-radius: 12px; transition: box-shadow .15s, transform .15s; }
.mc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.mc-th { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tc, var(--blue)); text-decoration: none; }
.mc-t { font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--text); text-decoration: none; flex: 1; }
.mc-t:hover { color: var(--blue); }
.mc-by { font-size: .82rem; color: var(--muted); }
.mc-by a { color: var(--muted); }
.mc-cand { font-weight: 600; color: var(--text-2); border-left: 3px solid var(--vc, #6B7280); padding-left: .35rem; text-decoration: none; }
.mcd-add { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; font-weight: 600; color: var(--blue); cursor: pointer; }
.mcd-add.on { color: #15803D; }
.mc-note { margin-top: 1.5rem; font-size: .82rem; }
.tm-list.mcd-grid { list-style: none; padding: 0; }

.mv { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.mv.busy { opacity: .6; pointer-events: none; }
.mv-b { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.mv-b b { font-weight: 700; color: var(--text); }
.mv-pour:hover { border-color: #16A34A; color: #15803D; }
.mv-contre:hover { border-color: #DC2626; color: #B91C1C; }
.mv-pour.on { background: #16A34A; border-color: #16A34A; color: #fff; }
.mv-contre.on { background: #DC2626; border-color: #DC2626; color: #fff; }
.mv-b.on b { color: #fff; }
.mv-pop { animation: mvPop .35s ease; }
@keyframes mvPop { 40% { transform: scale(1.12); } }
.mv-res { display: flex; align-items: center; gap: .5rem; flex: 1 1 100%; }
.mv-res[hidden] { display: none; }
.mv-bar { flex: 1; height: 6px; border-radius: 3px; background: #FEE2E2; overflow: hidden; max-width: 220px; }
.mv-bar i { display: block; height: 100%; background: #16A34A; border-radius: 3px; transition: width .3s; }
.mv-pct { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.mv-grand .mv-b { padding: .7rem 1.3rem; font-size: 1rem; }
.mv-grand .mv-b svg { width: 20px; height: 20px; }
.mv-grand .mv-bar { height: 10px; border-radius: 5px; max-width: 360px; }
.mv-grand .mv-pct { font-size: .9rem; }

.pr-box { background: var(--blue-lt); border: 1px solid #BFDBFE; border-radius: 14px; padding: 1.4rem; margin-bottom: 1.8rem; scroll-margin-top: 90px; }
.pr-box[hidden] { display: none; }
.pr-box h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.pr-form { display: grid; gap: .9rem; margin-top: 1rem; }
.pr-form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.pr-form label small { font-weight: 400; color: var(--muted); }
.pr-form input, .pr-form select, .pr-form textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--text); box-sizing: border-box; }
.pr-form input:focus, .pr-form select:focus, .pr-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.pr-form .cap input { max-width: 110px; }
.cap-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pr-regles { font-size: .8rem; margin: 0; }
.pr-act { display: flex; gap: .6rem; flex-wrap: wrap; }

.cm-ctas { display: flex; gap: .6rem; flex-wrap: wrap; }
.cm-prop { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--blue-lt), #fff); border: 1px solid #BFDBFE; border-radius: 14px; padding: 1.4rem; }
.cm-prop h2 { margin: 0 0 .3rem; }
.cm-prop p { margin: 0; color: var(--text-2); max-width: 640px; }
.cm-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.cm-themes a { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--tc); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.cm-themes a:hover { box-shadow: var(--shadow-md); }
.cm-themes svg { width: 18px; height: 18px; color: var(--tc); flex: none; }
.cm-themes span { flex: 1; }
.cm-themes b { color: var(--muted); font-weight: 600; }
.cm-tfilter a { display: inline-flex; gap: .3rem; align-items: center; text-decoration: none; }
.cm-tfilter a span { opacity: .7; }
.ec-search select { padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.ec-tabs-sub { border-bottom: 0; margin-top: -.8rem; }

.ms-wrap { padding: 1.5rem 24px 3rem; max-width: 1120px; }
.ms-back a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.ms-new { background: #F0FDF4; border: 1px solid #BBF7D0; color: #14532D; padding: .9rem 1rem; border-radius: 10px; margin: .6rem 0 1rem; }
.ms-main { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--tc); border-radius: 16px; padding: 1.8rem; margin: .8rem 0 1.4rem; }
.ms-main h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin: .4rem 0 .5rem; }
.ms-by { color: var(--muted); margin: 0 0 1rem; }
.ms-by a { color: var(--text-2); }
.ms-body { color: var(--text-2); line-height: 1.65; margin-bottom: 1.2rem; max-width: 760px; }
.ms-vote { padding: 1.2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ms-vote-q { font-weight: 700; margin: 0 0 .7rem; }
.ms-vote .mp-muted { font-size: .8rem; margin: .7rem 0 0; }
.ms-act { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.2rem; }
.ms-act form { margin-left: auto; }
.ms-act .btn.on { color: #15803D; border-color: #86EFAC; }
.ms-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.ms-cols aside { display: grid; gap: 1rem; }
.ms-coms { scroll-margin-top: 90px; }
.ms-com { padding: .9rem 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.ms-com:target { background: var(--blue-lt); border-radius: 8px; padding-left: .6rem; padding-right: .6rem; }
.ms-com-h { display: flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; font-size: .9rem; }
.ms-com-h .ec-card-av { width: 28px; height: 28px; font-size: .8rem; }
.ms-com-t { margin: 0; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.ms-com-a { margin-top: .3rem; }
.ms-lnk { background: none; border: 0; padding: 0; font: inherit; font-size: .78rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
.ms-com-f { border-top: 0; margin-top: 1.2rem; }
.ms-progs { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.ms-progs a { color: var(--text); font-weight: 600; text-decoration: none; }
.ms-progs a:hover { color: var(--blue); }
.ms-cta p { margin: .2rem 0 .8rem; }
.ms-sig { text-align: center; }
.hp-lead { color: var(--text-2); margin: -.4rem 0 1.2rem; }
.hp-more { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .ms-cols { grid-template-columns: 1fr; }
  .ms-main { padding: 1.2rem; }
  .ms-wrap { padding: 1rem 16px 2.5rem; }
  .ms-act form { margin-left: 0; }
  .mcd-grid { grid-template-columns: 1fr; }
  .mv-grand .mv-b { flex: 1; justify-content: center; }
}
.mcd-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.mcd-badge { font-size: .7rem; font-weight: 600; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.mcd-badge-cit { background: #ECFDF5; color: #047857; }
.mcd-badge-cand { background: #F1F5F9; color: #475569; }
.hp-mtabs { margin-bottom: 1rem; }
.hp-mtabs button { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 600; padding: .6rem .9rem; color: var(--muted); cursor: pointer; }
.hp-mtabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.ms-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--border); background: none; border-radius: 0; }
.ms-share-l { font-weight: 700; font-size: .9rem; }
.ms-share .pc-share-btns { margin: 0; }
.ms-share .pc-copied { flex-basis: 100%; margin: 0; }
.ms-login { background: var(--bg-lt); border-radius: 10px; padding: 1rem; margin-top: 1rem; }
.ms-login p { margin: 0 0 .6rem; }
.ms-ajout { display: flex; gap: .5rem; margin: .4rem 0; }
.ms-ajout select { flex: 1; min-width: 0; padding: .45rem .5rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.ms-ajout-msg { font-size: .8rem; margin: .3rem 0 .8rem; }
.cm-tfilter { display: flex; flex-wrap: nowrap; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.cm-tfilter a { flex: none; white-space: nowrap; padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; color: var(--text-2); background: #fff; }
.cm-tfilter a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 600px) { .ec-search { flex-wrap: wrap; } .ec-search input[type=search] { flex: 1 1 100%; min-width: 0; } .ec-search select { flex: 1; } }
/* Boutons segmentés (tri, origine) */
.seg-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .9rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .3rem; background: var(--bg-lt); border: 1px solid var(--border); border-radius: 12px; padding: .25rem; }
.seg button, .seg a { border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text-2); padding: .5rem .85rem; border-radius: 9px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.seg button:hover, .seg a:hover { color: var(--blue); }
.seg .on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.seg-sm button, .seg-sm a { font-size: .82rem; padding: .4rem .7rem; }
#tm-more { text-align: center; margin: 1.5rem 0 .5rem; }
.tm-plus { padding: .8rem 1.6rem; font-size: 1rem; gap: .6rem; }
.tm-plus span { font-weight: 400; opacity: .8; font-size: .85rem; }
@media (max-width: 600px) { .seg { width: 100%; } .seg button, .seg a { flex: 1 1 auto; text-align: center; } .tm-plus { width: 100%; justify-content: center; } }
/* Page mesure : cartes séparées */
.ms-main { margin-bottom: 1rem; }
.ms-main .ms-body { margin-bottom: 0; }
.ms-retirer { margin-top: 1rem; }
.ms-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.ms-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem; }
.ms-card-t { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .7rem; font-weight: 700; }
.ms-duo .ms-vote { border: 1px solid var(--border); padding: 1.2rem 1.3rem; }
.ms-vote .mp-muted { font-size: .8rem; margin: .7rem 0 .5rem; }
.ms-lnk2 { font-size: .88rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.ms-duo .ms-share { display: block; border-top: 1px solid var(--border); padding: 1.2rem 1.3rem; background: #fff; border-radius: 14px; }
.ms-copy { display: flex; gap: .5rem; margin-bottom: .6rem; }
.ms-copy input { flex: 1; min-width: 0; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .85rem; color: var(--text-2); background: var(--bg-lt); }
.ms-copy .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.ms-copy .btn.ok { background: #16A34A; border-color: #16A34A; }
.ms-share .pc-copied { margin: 0 0 .6rem; }
.ms-share .pc-share-btns { margin-top: .3rem; }
@media (max-width: 900px) { .ms-duo { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ms-copy { flex-direction: column; } }
/* Vote express */
.vx-wrap { max-width: 640px; padding-top: 1.5rem; padding-bottom: 3rem; }
.vx-head h1 { margin: .2rem 0 .4rem; }
.vx-g { color: #15803D; } .vx-r { color: #B91C1C; }
.vx-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.vx-bar select { padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
.vx-count { margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 600; }
.vx-stage { position: relative; min-height: 380px; margin-bottom: 1.2rem; }
.vx-card { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .7rem; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--tc); border-radius: 18px; padding: 1.6rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .10); touch-action: pan-y; user-select: none; cursor: grab; transition: transform .26s ease, opacity .26s ease; overflow: auto; }
.vx-card:active { cursor: grabbing; }
.vx-card h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.3; margin: 0; }
.vx-b { color: var(--text-2); line-height: 1.6; margin: 0; flex: 1; }
.vx-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; font-size: .85rem; color: var(--text-2); margin-top: auto; }
.vx-qui-t { font-weight: 600; }
.vx-under { transform: scale(.95) translateY(12px); opacity: .6; pointer-events: none; box-shadow: none; }
.vx-out-r { transform: translateX(130%) rotate(18deg) !important; opacity: 0; }
.vx-out-l { transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; }
.vx-out-d { transform: translateY(40px) scale(.9) !important; opacity: 0; }
.vx-hint { position: absolute; top: 1.2rem; z-index: 5; padding: .35rem .9rem; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; opacity: 0; transition: opacity .15s; pointer-events: none; }
.vx-hint-c { left: 1.2rem; color: #DC2626; transform: rotate(-12deg); }
.vx-hint-p { right: 1.2rem; color: #16A34A; transform: rotate(12deg); }
.vx-p .vx-hint-p, .vx-c .vx-hint-c { opacity: 1; }
.vx-act { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.vx-act[hidden] { display: none; }
.vx-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--border); background: #fff; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: transform .12s, background .15s, color .15s; box-shadow: var(--shadow); }
.vx-btn svg { width: 26px; height: 26px; }
.vx-btn:active { transform: scale(.92); }
.vx-btn-c { color: #DC2626; border-color: #FCA5A5; } .vx-btn-c:hover { background: #DC2626; color: #fff; }
.vx-btn-p { color: #16A34A; border-color: #86EFAC; } .vx-btn-p:hover { background: #16A34A; color: #fff; }
.vx-btn-s { width: 64px; height: 64px; color: var(--muted); } .vx-btn-s:hover { color: var(--text); }
.vx-foot { text-align: center; font-size: .8rem; margin-top: 1rem; }
.vx-fin { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--blue-lt); border-radius: 18px; padding: 1.6rem; }
.vx-fin .btn { margin: .2rem; }
@media (max-width: 600px) { .vx-stage { min-height: 420px; } .vx-card { padding: 1.2rem; } .vx-foot .mp-muted { display: none; } }
@media (max-width: 600px) {
  .vx-wrap { padding-top: .8rem; }
  .vx-head .pc-kicker { display: none; }
  .vx-head h1 { font-size: 1.4rem; margin: 0 0 .2rem; }
  .vx-head .mp-muted { font-size: .85rem; line-height: 1.45; margin: 0; }
  .vx-bar { margin: .6rem 0; gap: .4rem; }
  .vx-bar select { flex: 1 1 40%; min-width: 0; font-size: .82rem; padding: .4rem; }
  .vx-count { flex-basis: 100%; margin: 0; font-size: .8rem; }
  .vx-stage { min-height: 0; height: max(280px, calc(100svh - 420px)); margin-bottom: .8rem; }
  .vx-card h2 { font-size: 1.2rem; }
  .vx-b { font-size: .92rem; }
  .vx-btn { width: 70px; height: 70px; } .vx-btn-s { width: 54px; height: 54px; }
}
/* Vote express : présentation */
.vx-btn-s small { display: block; font-size: .62rem; font-weight: 500; opacity: .8; }
.vx-intro { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); animation: vxFade .25s ease; }
.vx-intro[hidden] { display: none; }
.vx-intro-out { opacity: 0; transition: opacity .25s; }
.vx-intro-box { width: 100%; max-width: 420px; max-height: calc(100svh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 1.5rem; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: vxPop .35s cubic-bezier(.2, 1.4, .4, 1); }
.vx-intro-box h2 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.vx-intro-box p { margin: .3rem 0 .8rem; color: var(--text-2); }
.vx-intro-l { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .55rem; text-align: left; }
.vx-intro-l li { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.vx-pill { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; }
.vx-pill-p { background: #16A34A; } .vx-pill-c { background: #DC2626; } .vx-pill-s { background: #94A3B8; font-size: 1.2rem; }
.vx-intro-box .btn { width: 100%; justify-content: center; padding: .8rem; font-size: 1rem; }
.vx-demo { position: relative; height: 130px; display: flex; align-items: center; justify-content: center; }
.vx-demo-card { width: 120px; height: 100px; background: #fff; border: 2px solid var(--border); border-top: 4px solid var(--blue); border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); animation: vxSwipe 3.2s ease-in-out infinite; }
.vx-demo-card i { display: block; height: 7px; border-radius: 4px; background: #E2E8F0; } .vx-demo-card i:first-child { width: 70%; background: #CBD5E1; } .vx-demo-card i:last-child { width: 50%; }
.vx-demo-hand { position: absolute; top: 62px; left: 50%; margin-left: -10px; color: var(--text); animation: vxHand 3.2s ease-in-out infinite; }
.vx-demo-c, .vx-demo-p { position: absolute; top: 8px; font-weight: 800; font-size: .8rem; text-transform: uppercase; padding: .15rem .5rem; border: 2px solid; border-radius: 6px; opacity: 0; }
.vx-demo-c { left: 12%; color: #DC2626; transform: rotate(-10deg); animation: vxLblC 3.2s infinite; }
.vx-demo-p { right: 12%; color: #16A34A; transform: rotate(10deg); animation: vxLblP 3.2s infinite; }
@keyframes vxSwipe { 0%, 8% { transform: none; } 28%, 36% { transform: translateX(70px) rotate(12deg); } 50%, 58% { transform: none; } 78%, 86% { transform: translateX(-70px) rotate(-12deg); } 100% { transform: none; } }
@keyframes vxHand { 0%, 8% { transform: none; } 28%, 36% { transform: translateX(70px); } 50%, 58% { transform: none; } 78%, 86% { transform: translateX(-70px); } 100% { transform: none; } }
@keyframes vxLblP { 0%, 18% { opacity: 0; } 26%, 38% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes vxLblC { 0%, 68% { opacity: 0; } 76%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes vxFade { from { opacity: 0; } }
@keyframes vxPop { from { transform: scale(.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vx-demo-card, .vx-demo-hand, .vx-demo-c, .vx-demo-p { animation: none; } .vx-demo-c, .vx-demo-p { opacity: 1; } }
/* Boutons dans .hp-more : ne pas hériter du style « lien » */
.hp-more { opacity: 1; }
.hp-more a.btn { text-decoration: none; }
.hp-more a.btn-primary { color: #fff; }
.hp-more a.btn-outline { color: var(--blue); }
/* Vote express sur ordinateur : tout tient dans l'écran, boutons de part et d'autre de la carte */
@media (min-width: 901px) {
  .vx-wrap { max-width: 860px; padding-top: 1rem; }
  .vx-head { text-align: center; }
  .vx-head h1 { font-size: 2rem; margin: .1rem 0 .3rem; }
  .vx-head .mp-muted { margin: 0 auto; max-width: 560px; font-size: .92rem; }
  .vx-bar { justify-content: center; margin: .8rem 0 1rem; }
  .vx-count { margin-left: .6rem; }
  .vx-stage { width: 560px; margin: 0 auto 1rem; min-height: 0; height: clamp(260px, calc(100vh - 470px), 380px); }
  .vx-card { padding: 1.5rem 1.7rem; }
  .vx-card h2 { font-size: 1.45rem; }
  .vx-act { position: relative; width: 560px; margin: 0 auto; }
  .vx-btn { width: 76px; height: 76px; }
}
/* Vote express ordinateur v2 : carte plus large, boutons toujours visibles en bas */
@media (min-width: 901px) {
  .vx-wrap { max-width: 900px; }
  .vx-stage { width: min(780px, 100%); height: clamp(240px, calc(100vh - 440px), 460px); }
  .vx-card { padding: 1.6rem 2rem; }
  .vx-act { position: sticky; bottom: 14px; z-index: 20; width: max-content; padding: .5rem 1rem; gap: 1.4rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
  .vx-btn { width: 68px; height: 68px; box-shadow: none; }
  .vx-btn-s { width: 58px; height: 58px; }
  .vx-foot { margin-top: .8rem; }
}
/* Pour ou contre ? : bouton d'en-tête, bandeau d'accueil, relances */
.main-nav a.nav-voter { display: inline-flex; align-items: center; gap: .35rem; color: #15803D; font-weight: 700; }
.main-nav a.nav-voter svg { width: 15px; height: 15px; }
.main-nav a.nav-voter:hover, .main-nav a.nav-voter.current { background: #F0FDF4; color: #15803D; }
.nav-voter-n { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #16A34A; color: #fff; font-size: .7rem; line-height: 1.3rem; text-align: center; }
@media (max-width: 1319px) {
  .main-nav.open > .nav-item > a.nav-voter { justify-content: center; padding: .9rem; background: #F0FDF4; border-color: #BBF7D0; color: #15803D; font-size: 1rem; margin-bottom: .35rem; }
}
.hp-btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: .3rem; }
.hp-poc { margin-top: 2rem; margin-bottom: 1rem; }
.hp-poc-in { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: center; background: linear-gradient(135deg, #F0FDF4, #EFF6FF 60%, #FEF2F2); border: 1px solid var(--border); border-radius: 20px; padding: 1.6rem 2rem; }
.hp-poc-txt .hp-h2 { margin: .2rem 0 .5rem; }
.hp-poc-txt p { color: var(--text-2); margin: 0 0 1rem; max-width: 560px; }
.hp-poc-demo { height: 150px; }
.relance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 0; padding: 1.2rem 1.4rem; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 14px; }
.relance div { display: grid; gap: .2rem; }
.relance span { color: var(--text-2); font-size: .92rem; }
@media (max-width: 700px) { .hp-poc-in { grid-template-columns: 1fr; text-align: center; padding: 1.3rem 1rem; gap: .5rem; } .hp-poc-txt p { margin-inline: auto; } .relance .btn { width: 100%; justify-content: center; } }
/* En-tête un peu plus serré entre 1320 et 1500 px (un bouton de plus) */
@media (min-width: 1320px) and (max-width: 1500px) {
  .main-nav > .nav-item > a { padding-left: .45rem; padding-right: .45rem; font-size: .84rem; }
  .main-nav > .nav-item > a svg { display: none; }
  .nav-account { padding-left: .7rem; padding-right: .7rem; }
}
/* En-tête : « Publier une mesure » à droite + connexion en simple icône */
.nav-right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-publier { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .95rem; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(29, 78, 216, .25); }
.nav-publier:hover { background: var(--blue-dk); color: #fff; }
.nav-publier svg { width: 16px; height: 16px; }
.nav-right .nav-account-ico { margin: 0; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 10px; }
.nav-right .nav-account-ico svg { display: block !important; width: 19px; height: 19px; }
@media (min-width: 1320px) { .nav-item-mobile { display: none !important; } }
@media (max-width: 1319px) { .nav-right { display: none; } }
/* Pour ou contre ? : titre centré sur mobile */
@media (max-width: 900px) { .vx-head { text-align: center; } }
/* Page Publier une mesure */
.pb-wrap { max-width: 1060px; padding-top: 1.5rem; padding-bottom: 3rem; }
.pb-head h1 { margin: .2rem 0 .4rem; }
.pb-head .mp-muted { max-width: 680px; margin: 0 0 1.4rem; }
.pb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; align-items: start; }
.pb-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin: 0; }
.pb-form label { position: relative; }
.pb-cpt { justify-self: end; font-weight: 400; color: var(--muted); font-size: .75rem; }
.pb-go { justify-self: start; padding: .8rem 1.4rem; font-size: 1rem; }
.pb-side { position: sticky; top: 100px; display: grid; gap: 1rem; }
.pb-apercu { pointer-events: none; }
.pb-apercu .mv-b { cursor: default; }
.pb-tips { background: var(--bg-lt); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; }
.pb-tips ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .88rem; color: var(--text-2); }
.pb-ok { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 16px; padding: 1.6rem; max-width: 680px; }
.pb-ok h2 { margin: 0 0 .5rem; }
@media (max-width: 900px) { .pb-grid { grid-template-columns: 1fr; } .pb-side { position: static; } .pb-form { padding: 1.1rem; } .pb-go { width: 100%; justify-content: center; } }
