/* style.css — aparans tout paj yo. Koulè prensipal yo anwo a, fasil pou chanje. */
:root {
  --ble: #00209f;
  --wouj: #d21034;
  --fon: #f4f6fb;
  --tèks: #1d2433;
  --gri: #5b6475;
  --blan: #ffffff;
  --jòn-pal: #fff4d6;
  /* Koulè graf yo (verifye pou moun ki gen pwoblèm pou wè koulè) */
  --seri-kandida: #3d4556;
  --seri-fanm: #eb6834;
  --seri-gason: #2a78d6;
  /* Espas, won ak lonbraj (menm valè toupatou) */
  --e-1: 4px; --e-2: 8px; --e-3: 12px; --e-4: 16px; --e-5: 24px; --e-6: 32px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --lonbraj-1: 0 1px 3px rgba(16, 24, 48, 0.07), 0 1px 2px rgba(16, 24, 48, 0.04);
  --lonbraj-2: 0 6px 20px rgba(16, 24, 48, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--fon);
  color: var(--tèks);
  line-height: 1.5;
}

.avetisman {
  background: var(--jòn-pal);
  border-bottom: 2px solid #e6c35c;
  padding: 10px 16px;
  text-align: center;
  font-size: 1rem;
}

/* Bann eslogan anlè chak paj */
.bann-eslogan {
  background: #0b1a5c;
  color: #dfe5fb;
  text-align: center;
  font-size: 0.85rem;
  padding: 6px 12px;
  letter-spacing: 0.01em;
}
.bann-eslogan strong { color: var(--blan); margin-right: 2px; }

/* Antet ak meni (lis lyen yo nan konfig/meni.json) */
.antet {
  background: var(--ble);
  color: var(--blan);
  border-bottom: 4px solid var(--wouj);
  /* Meni an rete anwo ekran an lè moun nan desann paj la */
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 16, 80, 0.18);
}
.antet-anndan {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blan);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.logo-senbol { display: inline-flex; flex: none; }
.logo-senbol svg { display: block; }
.antet .patisipe-mobil { display: none; }
.meni { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.meni a {
  color: var(--blan);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}
.meni a:hover { background: rgba(255, 255, 255, 0.15); }
.meni a[aria-current="page"] { background: rgba(255, 255, 255, 0.22); font-weight: 600; }
.meni a.bouton.patisipe { background: var(--wouj); padding: 8px 16px; margin-left: 8px; }
.bouton-meni {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--blan);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

/* V2: logo + meni sou yon sèl liy, ak meni dewoulan "Apropo" */
@media (min-width: 901px) {
  .antet-anndan { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .meni { flex-wrap: nowrap; white-space: nowrap; }
}
.meni-gwoup { position: relative; }
.meni-apropo {
  background: none; border: 0; color: var(--blan); font: inherit; cursor: pointer;
  padding: 8px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px;
}
.meni-apropo::after {
  content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s;
}
.meni-gwoup.louvri .meni-apropo::after { transform: translateY(2px) rotate(-135deg); }
.meni-apropo:hover, .meni-gwoup.louvri .meni-apropo { background: rgba(255, 255, 255, 0.15); }
.meni-apropo.aktif { background: rgba(255, 255, 255, 0.22); font-weight: 600; }
.meni-dewoulan {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 60;
  background: var(--blan); border-radius: var(--r-md); padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 16, 80, 0.22); border: 1px solid #e3e7f0;
}
.meni-gwoup.louvri .meni-dewoulan { display: block; }
.meni .meni-dewoulan a { display: block; color: var(--ble); padding: 10px 12px; border-radius: 8px; }
.meni .meni-dewoulan a:hover { background: #eef2fb; }
.meni .meni-dewoulan a[aria-current="page"] { background: #e4eafa; }

/* Telefòn ak ti ekran: meni an kache dèyè bouton "☰ Meni" */
@media (max-width: 900px) {
  /* V2: sou telefòn, lyen "Apropo" yo parèt anba yon ti tit, toujou louvri */
  .meni-apropo { display: none; }
  .meni-dewoulan {
    display: block; position: static; box-shadow: none; border: 0; background: none; padding: 0; min-width: 0;
  }
  .meni-dewoulan::before {
    content: attr(data-tit); display: block; padding: 14px 8px 6px; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: #b9c3e6; border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .meni .meni-dewoulan a { color: var(--blan); }
  .meni .meni-dewoulan a:hover { background: rgba(255, 255, 255, 0.15); }
  .meni .meni-dewoulan a[aria-current="page"] { background: rgba(255, 255, 255, 0.22); }
  .bouton-meni { display: block; }
  .antet-anndan { gap: 8px; }
  .antet .patisipe-mobil { display: inline-block; padding: 8px 14px; font-size: 0.95rem; width: auto !important; }
  .meni a.patisipe-biwo { display: none; }
  .meni { max-height: calc(100vh - 80px); overflow-y: auto; }
  .meni { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .antet.ouvè .meni { display: flex; }
  .meni a { padding: 12px 8px; border-top: 1px solid rgba(255, 255, 255, 0.15); border-radius: 0; }
  .meni a.bouton.patisipe { margin: 10px 0 0; border-radius: 8px; text-align: center; border-top: none; }
  /* Antèt pi konpak sou telefòn; bouton yo 44 px wotè (fasil pou peze ak dwèt) */
  .avetisman { font-size: 0.85rem; padding: 6px 12px; }
  .bann-eslogan { font-size: 0.75rem; padding: 4px 10px; line-height: 1.35; }
  .antet-anndan { padding: 8px 12px; }
  .logo { font-size: 1.15rem; gap: 8px; }
  .logo-senbol svg { width: 28px; height: 28px; }
  .antet .patisipe-mobil, .bouton-meni { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-sm); }
}
/* Sou telefòn, eslogan an sou yon sèl liy ("HaytiData:" kache: logo a jis anba a) */
@media (max-width: 600px) {
  .bann-eslogan strong { display: none; }
  .bann-eslogan { font-size: 0.74rem; padding: 4px 8px; }
}
@media (max-width: 359px) {
  .bouton-meni, .antet .patisipe-mobil { padding: 0 10px; }
}

/* Pye paj la (footer) */
.pye {
  margin-top: 48px;
  background: #0b1a5c;
  color: #c9d1ec;
  font-size: 0.92rem;
  border-top: 4px solid var(--wouj);
}
.pye-anndan {
  max-width: 1100px; margin: 0 auto; padding: 36px 16px 24px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 28px;
}
.pye .logo { margin: 0 0 10px; font-size: 1.2rem; }
.pye-misyon { margin: 0; line-height: 1.6; max-width: 420px; }
.pye-tit { color: var(--blan); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 10px; }
.pye-kolon ul { list-style: none; margin: 0; padding: 0; }
.pye-kolon li { margin: 6px 0; }
.pye-kolon a { color: #c9d1ec; text-decoration: none; }
.pye-kolon a:hover, .pye-kolon a[aria-current="page"] { color: var(--blan); text-decoration: underline; }
.pye-anba {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 1100px; margin: 0 auto; padding: 16px; text-align: center;
}
.pye-endepandans { margin: 0 0 6px; color: var(--blan); font-weight: 600; }
.pye-dwa { margin: 0; font-size: 0.82rem; color: #9fabd6; }
@media (max-width: 700px) {
  /* Telefòn: pye a pi kout — misyon an kache, lyen yo sou 2 kolòn */
  .pye { margin-top: 32px; }
  .pye-anndan { grid-template-columns: 1fr; gap: 12px; padding: 20px 16px 12px; }
  .pye .logo { margin-bottom: 0; }
  .pye-misyon { display: none; }
  .pye-tit { margin: 0 0 6px; }
  .pye-kolon ul { columns: 2; column-gap: 16px; }
  .pye-kolon li { margin: 0 0 8px; break-inside: avoid; }
  .pye-anba { padding: 12px 16px; }
  .pye-endepandans { font-size: 0.85rem; }
}

/* Gwo seksyon anwo paj Akèy la (hero) */
.hero {
  background: linear-gradient(135deg, #00207f 0%, #00209f 55%, #1a3bb8 100%);
  color: var(--blan);
  padding: 48px 16px 56px;
}
.hero-anndan { max-width: 1000px; margin: 0 auto; }
.hero-eslogan {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.1;
  font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase;
}
.hero-deskripsyon { margin: 0 0 14px; max-width: 700px; font-size: 1.1rem; line-height: 1.6; color: #dfe5fb; }
.hero-deskripsyon:last-of-type { margin-bottom: 24px; }
.hero-lyen { color: var(--blan); font-weight: 600; white-space: nowrap; }
.hero-bouton { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bouton .bouton { padding: 14px 24px; font-size: 1.05rem; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.bouton.bouton-blan { background: var(--blan); color: var(--ble); }
.hero-prive { margin: 16px 0 0; font-size: 0.9rem; color: #c9d1ec; }
.hero-dyaspora { margin: 8px 0 0; font-size: 0.95rem; color: #dfe5fb; }
.hero-dyaspora a { color: var(--blan); font-weight: 700; }
/* Paj Dyaspora: menm hero a, ak yon ti nuans ble/vèt pou separe l ak paj Ayiti a */
.hero-dyaspora-paj { background: linear-gradient(135deg, #0b1a5c 0%, #123a8c 55%, #1d6fa8 100%); }
.hero-dyaspora-paj .hero-chif { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .hero-dyaspora-paj .hero-chif { grid-template-columns: 1fr; } }
.hero-chif { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 0; }
.chif-sou { margin: 4px 0 0; font-size: 0.8rem; color: #c9d1ec; display: flex; align-items: center; gap: 6px; }
.chif-kat dd { font-variant-numeric: tabular-nums; }
/* Kat "Chwazi yon sondaj" */
.chif-kat-chwa label { cursor: pointer; }
.chif-kat-chwa dd { display: flex; flex-direction: column; gap: 8px; margin-top: 8px !important; font-size: 1rem !important; font-weight: 400 !important; }
.chif-kat-chwa select {
  width: 100%; min-width: 0; font-size: 0.95rem; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35); background: var(--blan); color: var(--tèks);
}
.bouton.bouton-chwa { padding: 8px 14px; font-size: 0.95rem; text-align: center; width: 100%; }
@media (max-width: 860px) {
  .hero-chif { grid-template-columns: 1fr 1fr; }
  .hero-chif .chif-kat-chwa { grid-column: 1 / -1; } /* lis sondaj yo pran tout lajè a */
  /* Ayiti + dyaspora pran tout lajè a (2 chif yo kote a kote); Vizitè ak Pataj youn bò lòt anba yo */
  .hero-chif .chif-kat-de { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; grid-auto-flow: column; column-gap: 16px; }
  .hero-chif .chif-kat-de dt + dd + dt { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
  .hero-chif .chif-kat-de dt + dd + dt + dd { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
}
.chif-kat {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px; padding: 16px 18px;
}
.chif-kat dt { font-size: 0.85rem; color: #c9d1ec; font-weight: 600; }
.chif-kat dd { margin: 4px 0 0; font-size: 2rem; font-weight: 800; line-height: 1.1; }
@media (max-width: 600px) {
  .hero { padding: 32px 16px 40px; }
  .hero-chif { grid-template-columns: 1fr 1fr; }
  .chif-kat dd { font-size: 1.6rem; }
}

/* Seksyon tandans elektoral (paj Akèy) */
.tandans { padding: 40px 16px 8px; }
.tandans-anndan { max-width: 1100px; margin: 0 auto; }
.tandans-antet { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tandans-etiket { margin: 0 0 4px; color: var(--wouj); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.tandans-antet h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.01em; }
.tandans-chif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.tandans-chif > div { background: var(--blan); border: 1px solid #e3e7f0; border-radius: 14px; padding: 14px 18px; box-shadow: 0 2px 8px rgba(16, 24, 48, 0.04); }
.tandans-chif dt { font-size: 0.8rem; color: var(--gri); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.tandans-chif dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.tandans-griy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-kat { margin: 0; border: 1px solid #e3e7f0; border-radius: 16px; box-shadow: 0 4px 16px rgba(16, 24, 48, 0.05); }
.g-kat h3 { margin: 0 0 4px; font-size: 1.15rem; }
.g-kat > .ti-tèks { margin: 0 0 14px; font-size: 0.9rem; }
.g-lajè { grid-column: 1 / -1; }
.tandans-avetisman { margin: 16px 4px 0; font-size: 0.85rem; color: var(--gri); }
#tandans .g-kat { margin-bottom: 16px; }
#tandans .g-kat h2 { margin: 2px 0 4px; font-size: 1.4rem; }
.tandans-avetisman a { color: var(--ble); }
@media (max-width: 760px) {
  .tandans-griy { grid-template-columns: 1fr; }
  .tandans-chif { grid-template-columns: 1fr 1fr; }
  .tandans-chif > div:first-child { grid-column: 1 / -1; }
}

/* Paj administratè */
.admin-konekte { max-width: 420px; margin: 40px auto; }
.admin-konekte label, .admin-label { display: block; font-weight: 600; margin-bottom: 6px; }
.admin-konekte input { width: 100%; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; margin-bottom: 12px; }
.admin-kod { background: #0b1a5c; color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 1.05rem; }
.admin-tet { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.admin select { width: 100%; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; background: var(--blan); }
.admin-not { margin: 10px 0 0 !important; }
.admin-chif { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.admin-kat { background: #f6f7fb; border-radius: 12px; padding: 12px 14px; border-top: 4px solid #9aa3b5; }
.admin-kat.bon { border-top-color: #0ca30c; }
.admin-kat.refize { border-top-color: #d03b3b; }
.admin-kat.sispek { border-top-color: #e6b100; }
.admin-kat p { margin: 0; }
.admin-kat-tit { font-size: 0.85rem; font-weight: 700; }
.admin-kat-chif { font-size: 1.8rem; font-weight: 800; }
.admin-kat-sou { font-size: 0.78rem; color: var(--gri); }
.admin-de { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-tab-vlope { overflow-x: auto; }
.admin-tab { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.admin-tab th, .admin-tab td { border-bottom: 1px solid #eceef3; padding: 6px 8px; text-align: left; vertical-align: top; }
.admin-tab th { color: var(--gri); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-gwo { font-weight: 800; white-space: nowrap; }
.admin-ekri { background: #f6f7fb; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.admin-ekri p { margin: 0; }
.admin-ekri-meta { font-size: 0.78rem; color: var(--gri); margin-bottom: 4px !important; }
.admin-ekri-tèks { white-space: pre-wrap; line-height: 1.5; }
@media (max-width: 700px) { .admin-de { grid-template-columns: 1fr; } }

/* Paj Sou nou */
.sou-nou .kat p { line-height: 1.7; }
.sou-nou a { color: var(--ble); }
.sou-nou-tet { border-top: 5px solid var(--wouj); }
.sou-nou-tet p { font-size: 1.08rem; }
.sou-nou-fraz { font-size: 1.25rem !important; font-weight: 800; color: var(--ble); margin-bottom: 0; }
.sou-nou-misyon { background: #eef1fb; border: 1px solid #c9d2f2; }
.sou-nou-griy { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sou-nou-griy li { display: flex; gap: 12px; align-items: flex-start; background: #f6f7fb; border-radius: 12px; padding: 14px; }
.sou-nou-griy span { font-size: 1.6rem; line-height: 1; }
.sou-nou-griy strong { display: block; margin-bottom: 2px; }
.sou-nou-griy div { color: #3c4456; }
.sou-nou-kwe { padding-left: 20px; }
.sou-nou-kwe li { margin: 8px 0; line-height: 1.6; }
.sou-nou-pa { border-left: 5px solid #e6b100; border-radius: 0 12px 12px 0; background: #fffaf0; }
.sou-nou-fen { background: var(--ble); color: var(--blan); text-align: center; }
.sou-nou-fen p { font-size: 1.3rem; font-weight: 800; margin: 4px 0 4px; }
.sou-nou-fen .bouton-yo { justify-content: center; }
@media (max-width: 640px) { .sou-nou-griy { grid-template-columns: 1fr; } }

/* Paj Achiv ak konparezon */
.kontni-laj { max-width: 900px; }
.paj-tit { margin: 4px 0 10px; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.01em; }
.achiv-lide { background: #f6f7fb; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.achiv-lide .moun { margin: 4px 0; }
.konpare-chwa { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.konpare-chwa label { font-weight: 600; font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.konpare-chwa select { font-size: 1rem; padding: 10px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; background: var(--blan); width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.konpare-de { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.konpare-kolon { border-radius: 12px; padding: 12px 14px; background: #f6f7fb; border-top: 4px solid #9aa3b5; }
.konpare-kolon.konpare-b { border-top-color: #2a78d6; }
.konpare-kolon h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.konpare-let { margin: 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gri); }
.konpare-chif { margin: 6px 0; }
.konpare-chif strong { font-size: 1.6rem; margin-right: 4px; }
.konpare-diff { font-weight: 600; margin: 12px 2px; }
.konpare-liy { margin-bottom: 12px; }
.konpare-chanjman { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.konpare-ray { display: flex; align-items: center; gap: 8px; height: 14px; margin-top: 3px; }
.konpare-plen { height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; }
.konpare-plen-a { background: #9aa3b5; }
.konpare-plen-b { background: #2a78d6; }
.konpare-pou { font-size: 0.8rem; color: var(--gri); white-space: nowrap; font-variant-numeric: tabular-nums; }
.konpare-tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.konpare-tab th, .konpare-tab td { border-bottom: 1px solid #eceef3; padding: 6px 8px; text-align: right; }
.konpare-tab th:first-child, .konpare-tab td:first-child { text-align: left; }
@media (max-width: 640px) {
  .konpare-chwa, .konpare-de { grid-template-columns: 1fr; }
}

/* Paj metodoloji */
.metod .kat, .metod h3[id] { scroll-margin-top: 90px; }
.metod-tet h1 { margin: 4px 0 10px; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.01em; }
.metod-esansyel { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metod-esansyel li { display: flex; gap: 10px; align-items: flex-start; background: #f6f7fb; border-radius: 12px; padding: 12px; }
.metod-esansyel span { font-size: 1.4rem; line-height: 1; }
.metod-esansyel strong { display: block; }
.metod-esansyel div { font-size: 0.9rem; color: #3c4456; }
.metod-tab { border-top: 1px solid #eceef3; padding-top: 12px; }
.metod-tab h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gri); margin: 0 0 6px; }
.metod-tab ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; }
.metod-tab li { margin: 4px 0; break-inside: avoid; }
.metod-tab a, .metod a { color: var(--ble); }
.metod-de-kolon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metod-wi, .metod-non { border-radius: 12px; padding: 4px 14px; }
.metod-wi { background: #eef8f1; }
.metod-non { background: #fdf0f2; }
.metod-wi h3, .metod-non h3 { font-size: 1rem; margin: 10px 0 4px; }
.metod-limit { background: #fff8e6; border-left: 4px solid #e6b100; padding: 8px 12px; border-radius: 0 8px 8px 0; }
.metod-fomil div { padding: 10px 0; border-top: 1px solid #eceef3; }
.metod-fomil dt { font-weight: 700; }
.metod-fomil dd { margin: 4px 0 0; color: #3c4456; }
.metod-fomil code { background: #eef1fb; color: #0b1a5c; padding: 2px 6px; border-radius: 6px; font-size: 0.9rem; white-space: normal; }
@media (max-width: 640px) {
  .metod-esansyel, .metod-de-kolon { grid-template-columns: 1fr; }
  .metod-tab ol { columns: 1; }
}

/* Etikèt sondaj: Ayiti oswa Dyaspora (yo pa janm melanje) */
.etiket-piblik { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: #fdecee; color: #8a1020; border: 1px solid #f3c4cb; }
.etiket-piblik.dyaspora { background: #eef1fb; color: #0b1a5c; border-color: #c9d2f2; }
.etiket-piblik.tou-de { background: #e8f6f0; color: #0f5a3c; border-color: #b7e2cf; }
.total-sondaj { margin: 0 0 14px; font-size: 1.05rem; }
.total-sondaj strong { font-size: 1.5rem; }

/* Dyaspora: kat mondyal, lis peyi */
.g-kat-mond { width: 100%; height: auto; display: block; background: #f3f6fb; border-radius: var(--r-md); }
/* Peyi san patisipan: gri pi fonse pou kontinan yo rete lizib */
.g-kat-mond .landxx, .g-kat-mond .landxx path { fill: #d9dee8; stroke: #ffffff; stroke-width: 0.6; fill-rule: evenodd; }
.g-kat-mond .oceanxx { fill: none; stroke: none; }
.g-kat-mond .limitxx, .g-kat-mond .noxx { fill: none; stroke: #c3c8d4; stroke-width: 0.5; }
.g-kat-mond .antxx, .g-kat-mond .antxx path { fill: #eef1f6; }
/* Ti sèk pou ti peyi yo: kache, sof si peyi a gen patisipan */
.g-kat-mond .circlexx, .g-kat-mond .subxx { display: none; }
/* V2: ti sèk teritwa espesyal yo (Kosovo, Abkhazi...) pa t gen koulè → yo te parèt kòm ti pwen nwa */
.g-kat-mond circle { display: none; }
.g-kat-mond .gen-moun circle, .g-kat-mond circle.gen-moun { display: inline; }
.g-kat-mond .gen-moun .circlexx { display: inline; stroke: #ffffff; stroke-width: 1; }
.g-kat-mond .gen-moun, .g-kat-mond .gen-moun path, .g-kat-mond .gen-moun circle { fill: var(--koule-peyi); }
.g-kat-mond .se-ayiti, .g-kat-mond .se-ayiti path { fill: var(--wouj); }
.g-kat-mond .gen-moun:hover path, .g-kat-mond path.gen-moun:hover { filter: brightness(0.85); }
/* Peyi ki gen patisipan: yon kontou fonse pou menm ti peyi yo parèt; peyi chwazi a: kontou wouj */
.g-kat-mond .gen-moun path, .g-kat-mond .gen-moun circle, .g-kat-mond path.gen-moun {
  stroke: rgba(11, 26, 92, 0.75); stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.g-kat-mond .gen-moun { cursor: pointer; }
.g-kat-mond .gen-moun:focus { outline: none; }
.g-kat-mond .gen-moun:focus path, .g-kat-mond .gen-moun.chwazi path, .g-kat-mond .gen-moun.chwazi circle,
.g-kat-mond path.gen-moun:focus, .g-kat-mond path.gen-moun.chwazi { stroke: var(--wouj); stroke-width: 1.6; }
.g-peyi-info { margin: var(--e-2) 0 0; padding: var(--e-2) var(--e-3); border-radius: var(--r-md); background: #f6f7fb; font-size: 0.9rem; }
.g-peyi-liy.chwazi { border-color: var(--ble); box-shadow: 0 0 0 3px rgba(0, 32, 159, 0.15); }
.g-peyi { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 20px; }
.g-peyi-liy { padding: 10px 12px; border-radius: 10px; border: 1px solid #eef0f5; }
.g-peyi-tet { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.g-peyi-non { display: inline-flex; align-items: center; gap: 8px; }
.dyaspora-griy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 16px; }
.dyaspora-griy.san-dwat { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .dyaspora-griy { grid-template-columns: 1fr; }
}

/* Dyaspora: konfime peyi ak fòmilè */
.konfime-peyi { text-align: center; border-top: 5px solid var(--ble); }
.konfime-ikon { font-size: 2.6rem; margin: 0; }
.konfime-peyi h2 { margin: 6px 0; }
.konfime-peyi .bouton-yo { justify-content: center; }
.lot-peyi { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.lot-peyi label { width: 100%; font-weight: 600; }
.lot-peyi select { min-width: 240px; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; }
.mod-tes { margin: 14px 0 0; padding: 6px 10px; background: #fff4d6; color: #7a5600; border-radius: 8px; font-size: 0.85rem; }
.bann-dyaspora, .bann-ayiti {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 0.95rem;
}
.bann-dyaspora { background: #eef1fb; border: 1px solid #c9d2f2; }
.bann-ayiti { background: #f6f7fb; border: 1px solid #e3e7f0; color: var(--gri); }
.lyen-bouton { background: none; border: none; color: var(--ble); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.opsyonel, .opsyonel-ekri { color: var(--gri); font-weight: normal; font-size: 0.9rem; }

/* Paj Rezilta: transparans, analiz, rezime */
.transparans { border-left: 5px solid var(--ble); border-radius: 0 12px 12px 0; }
.transparans-chwa { width: 100%; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; background: var(--blan); }
.lyen-transparans { margin: 8px 4px 0; font-size: 0.9rem; color: var(--gri); }
.lyen-transparans a, .lyen-metod a { color: var(--ble); }
.transparans h2 { font-size: 1.15rem; margin-bottom: 10px; }
.transparans-lis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0 0 8px; }
.transparans-lis dt { font-weight: 700; font-size: 0.88rem; }
.transparans-lis dd { margin: 2px 0 0; color: #3c4456; font-size: 0.9rem; line-height: 1.5; }
.analiz-griy, .rezime-griy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.analiz-griy .g-dep { grid-template-columns: 1fr; }
.analiz-tit { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gri); margin: 4px 0 10px; }
@media (max-width: 760px) {
  .transparans-lis, .analiz-griy, .rezime-griy { grid-template-columns: 1fr; }
}

/* Kat entèaktif Ayiti */
.kat-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.kat-ayiti { background: #eef3fb; border-radius: 14px; padding: 12px; }
.g-kat-svg { width: 100%; height: auto; display: block; }
.g-kat-svg .dep { cursor: pointer; outline: none; }
.g-kat-svg .dep path { fill: var(--koule-dep, #d5d9e3); stroke: #ffffff; stroke-width: 3; transition: fill-opacity 0.15s, filter 0.15s; }
.g-kat-svg .dep.pal path { fill-opacity: 0.45; }
.g-kat-svg .dep:hover path, .g-kat-svg .dep:focus-visible path { filter: brightness(0.9); }
.g-kat-svg .dep.chwazi path { stroke: #0b1a5c; stroke-width: 7; }
.kat-kredi { font-size: 0.72rem; color: var(--gri); margin: 6px 2px 0; }
.kat-kredi a { color: var(--gri); }
.kat-lejann-not { font-size: 0.8rem; color: var(--gri); margin: -4px 0 0; }
.kat-lejann-blok { margin-top: 10px; }
.kat-panel { background: #f6f7fb; border-radius: 14px; padding: 16px; }
.kat-chwa-label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 4px; }
.kat-panel select { width: 100%; font-size: 1rem; padding: 8px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; background: var(--blan); margin-bottom: 12px; }
.kat-detay-tet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kat-detay-tet h4 { margin: 0; font-size: 1.3rem; }
.kat-detay-moun { margin: 6px 0 0; color: var(--gri); }
.kat-detay-moun strong { font-size: 1.6rem; color: var(--tèks); margin-right: 4px; }
.kat-detay-not { font-size: 0.78rem; color: var(--gri); margin: 2px 0 10px; }
.kat-detay h5 { margin: 16px 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gri); }
.ba-seks.gwo { height: 14px; }
.kat-detay-lyen { margin-top: 16px; width: 100%; text-align: center; }
.kat-sou-tit { margin: 8px 0 10px; font-size: 1rem; }
.g-laj-liy { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.85rem; }
.g-laj-ray { height: 10px; background: #e3e6ee; border-radius: 4px; overflow: hidden; }
.g-laj-plen { height: 100%; background: var(--seri-kandida); border-radius: 0 4px 4px 0; }
.g-laj-chif { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gri); }
@media (max-width: 860px) { .kat-layout { grid-template-columns: 1fr; } }

/* Graf ba (konparezon) */
.g-kare { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.g-ba-liy { margin-bottom: 10px; }
.g-ba-tet { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.g-ba-non { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; line-height: 1.3; }
.g-ba-chif { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.9rem; }
.g-ba-ray { height: 10px; background: #eceff5; border-radius: 999px; overflow: hidden; }
.g-ba-plen { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
/* Pousantaj an gra (chif ki pi enpòtan an), kantite a pi piti ak gri */
.chif-pou { font-weight: 800; font-size: 1rem; color: var(--tèks); }
.chif-kant { color: var(--gri); font-size: 0.82rem; }
/* Ba yo grandi yon sèl fwa lè paj la louvri (grafik.js animeBa) */
.anime { transform-origin: left center; animation: ba-grandi 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes ba-grandi { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .anime { animation: none; } .g-ba-plen { transition: none; } }

/* Graf wonn (donut) */
.g-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.g-donut svg { width: 190px; height: 190px; flex: none; }
.g-donut-chif { font-size: 28px; font-weight: 800; fill: var(--tèks); }
.g-donut-etiket { font-size: 13px; fill: #898781; }
.g-lejann { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 180px; }
.g-lejann li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f1f5; }
.g-lejann-non { flex: 1; }
.g-lejann strong { font-variant-numeric: tabular-nums; }
.g-lejann-liy { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; margin-bottom: 12px; }
.g-lejann-liy span { display: inline-flex; align-items: center; gap: 6px; }

/* Konparezon pa depatman */
.g-dep { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 20px; }
.g-dep-liy { display: block; padding: 10px 12px; border-radius: 10px; color: var(--tèks); text-decoration: none; border: 1px solid #eef0f5; }
a.g-dep-liy:hover { background: #f6f7fb; border-color: #d9deea; }
.g-dep-tet { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.g-dep-non { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-dep-moun { color: var(--gri); font-size: 0.85rem; white-space: nowrap; }
.g-dep-ba { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.g-dep-moso { height: 100%; min-width: 2px; }
.g-dep-lide { margin-top: 5px; font-size: 0.85rem; }
.g-dep-vid { font-size: 0.85rem; color: var(--gri); font-style: italic; }

/* Bouton pataje (WhatsApp, Facebook, kopye lyen) */
.pataje { margin-top: 16px; padding-top: 12px; border-top: 1px solid #eceef3; }
.pataje-tit { margin: 0 0 8px; font-size: 0.9rem; color: var(--gri); font-weight: 600; }
.pataje-bouton { display: flex; flex-wrap: wrap; gap: 8px; }
.bouton-pataje {
  border: 1px solid #c7cdd9;
  background: var(--blan);
  color: var(--tèks);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.bouton-pataje:hover { background: #f1f3f8; }
.bouton-pataje.whatsapp { background: #e7f7ed; border-color: #25a55a; color: #11632f; }
.bouton-pataje.facebook { background: #e9effc; border-color: #1877f2; color: #0b4cad; }
/* Gwo blòk pataje apre moun nan fin vote */
.pataje-enfaz {
  margin: 16px 0; padding: 16px; border: 2px solid #25a55a; border-radius: var(--r-md);
  background: #f3fbf6; text-align: left;
}
.pataje-enfaz .pataje-tit { font-size: 1.05rem; color: var(--tèks); }
.pataje-eksplikasyon { margin: 0 0 12px; font-size: 0.95rem; color: var(--gri); }
.pataje-enfaz .bouton-pataje { font-size: 1rem; padding: 10px 18px; }
.pataje-enfaz .bouton-pataje.whatsapp { background: #1a7f43; border-color: #1a7f43; color: #fff; font-weight: 700; }
.pataje-enfaz .bouton-pataje.whatsapp:hover { background: #146636; }

/* Kat sondaj yo */
.kat-sondaj {
  border: 1px solid #e3e7f0;
  box-shadow: 0 4px 16px rgba(16, 24, 48, 0.06);
  border-radius: 16px;
  padding: 22px 24px;
  border-top: 5px solid var(--ble);
}
.kat-sondaj.eta-fini { border-top-color: #9aa3b5; }
.kat-sondaj.eta-byento { border-top-color: #e6b100; }
.kat-sondaj-tit { margin: 6px 0 6px !important; font-size: 1.35rem; }
.kat-sondaj-desk { margin: 0 0 14px; color: #3c4456; }
.kat-sondaj-tet { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gwoup-sondaj-tet { margin: var(--e-5, 32px) 0 var(--e-2, 8px); }
.gwoup-sondaj-tet:first-child { margin-top: 0; }
.gwoup-sondaj-tit { margin: 0 0 4px; font-size: 1.4rem; }
.estati {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
}
.estati-pwen { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.estati-ouvè { background: #e3f4e8; color: #14692d; }
.estati-ouvè .estati-pwen { background: #0ca30c; animation: bat 1.6s ease-in-out infinite; }
.estati-fini { background: #eceef3; color: #3c4456; }
.estati-fini .estati-pwen { background: #6b7385; }
.estati-byento { background: #fff4d6; color: #7a5600; }
.estati-byento .estati-pwen { background: #e6b100; }
.lis-enfo {
  list-style: none; margin: 0 0 16px; padding: 12px 14px;
  background: #f6f7fb; border-radius: 12px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px;
}
.enfo-sondaj { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.enfo-ikon { grid-row: span 2; font-size: 1.1rem; }
.enfo-etiket { font-size: 0.78rem; color: var(--gri); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.enfo-sondaj strong { font-size: 1rem; }
.enfo-dat { grid-column: 1 / -1; }
.kat-sondaj .bouton-yo { margin-top: 0; }

/* Ti etikèt sou sondaj yo: Ouvè / Byento */
.etikèt { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.etikèt.ouvè { background: #e3f4e8; color: #14692d; }
.etikèt.byento { background: #fff4d6; color: #7a5600; }
.etikèt.fini { background: #eceef3; color: var(--gri); }
.bouton-yo .ti-tèks { margin: 0; }
.kantite-patisipan { font-weight: 600; color: var(--gri); margin: -4px 0 0; }
.tit-seksyon { font-size: 1.2rem; margin: 24px 4px 10px; }
.kat h3 { margin: 16px 0 6px; }
.kat h3:first-child, .etikèt + h3 { margin-top: 0; }

.kontni { max-width: 760px; margin: 0 auto; padding: 16px; }

.kat {
  background: var(--blan);
  border: 1px solid #e6e9f1;
  border-radius: var(--r-lg);
  padding: var(--e-5);
  box-shadow: var(--lonbraj-1);
  margin-bottom: var(--e-4);
}
.kat h2 { margin: 0 0 var(--e-2); line-height: 1.2; }
.kat h2 + p { margin-top: 0; }
@media (max-width: 600px) {
  .kat { padding: var(--e-4); }
  .kontni { padding: var(--e-3); }
}

.bouton-yo { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.bouton {
  display: inline-block;
  background: var(--wouj);
  color: var(--blan);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.bouton.segonde { background: var(--ble); }
.bouton:hover { opacity: 0.9; }

/* Fòmilè */
.ti-tèks { color: var(--gri); margin-top: -8px; }
.chan { margin: 0 0 18px; border: none; padding: 0; }
.chan > label:not(.chwa), .chan legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.chan input[type="date"], .chan select {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1.5px solid #c7cdd9;
  border-radius: 12px;
  background: var(--blan);
  color: var(--tèks);
}
.chan input[type="date"]:focus, .chan select:focus {
  outline: none; border-color: var(--ble); box-shadow: 0 0 0 3px rgba(0, 32, 159, 0.15);
}
.chwa {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #c7cdd9;
  border-radius: 8px;
  cursor: pointer;
  font-weight: normal;
}
.chwa:has(input:checked) { border-color: var(--ble); background: #eef1fb; }
.chwa.bloke { opacity: 0.5; cursor: not-allowed; }
.chwa input { width: 20px; height: 20px; margin: 0; flex: none; }
/* Chwa kout yo (Wi/Non, nòt 1 a 5) youn bò lòt */
.chwa-liy { display: flex; flex-wrap: wrap; gap: 8px; }
.chwa-liy .chwa { margin-bottom: 0; flex: 1 1 0; min-width: 0; max-width: 140px; padding: 10px 6px; gap: 6px; justify-content: center; }
.ti-tèks-kesyon { margin: -2px 0 8px; font-size: 0.9rem; }
/* Tit seksyon nan fòmilè a, ak repons ekri */
.seksyon-kesyon { margin-top: 8px; }
.tit-seksyon-kesyon {
  font-size: 1.1rem; margin: 26px 0 12px; padding: 0 0 8px;
  border-bottom: 2px solid #e3e7f0; color: var(--ble);
}
.repons-ekri {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 14px;
  border: 1.5px solid #c7cdd9; border-radius: 12px; resize: vertical; margin-bottom: 6px;
}
.repons-ekri:focus { outline: none; border-color: var(--ble); box-shadow: 0 0 0 3px rgba(0, 32, 159, 0.15); }
.kontè-tèks { text-align: right; margin-top: 0 !important; }

.bwat-ere {
  background: #fdecee;
  border: 1px solid var(--wouj);
  color: #8a0c22;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}
.bwat-ere ul { margin: 0; padding-left: 20px; }
.siksè { border-top: 4px solid #1a8f3c; }

/* Foto kandida */
.foto {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #dfe4ee;
  color: var(--ble);
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
/* object-position: montre pati anwo foto a (kote figi a ye pi souvan) */
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.foto.piti { width: 32px; height: 32px; font-size: 0.8rem; }
.foto.gwo { width: 72px; height: 72px; font-size: 1.4rem; }

.foto.mwayen { width: 52px; height: 52px; font-size: 1.1rem; }
.foto.tre-gwo { width: 120px; height: 120px; font-size: 2.2rem; border: 4px solid var(--blan); box-shadow: 0 0 0 3px #e6c35c; }

/* Kalite done (ikòn + tèks + koulè, jamè koulè sèlman) */
.rezilta-tit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badj-kalite { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badj-kalite.k-bon { background: #e3f4e8; color: #14692d; }
.badj-kalite.k-feb { background: #fff4d6; color: #7a5600; }
.badj-kalite.k-tro-piti { background: #fdecee; color: #8a0c22; }
.nòt-kalite { background: #fdecee; color: #8a0c22; border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; margin: 8px 0 12px; }

/* Patisipasyon an dirèk */
.an-dirèk { display: inline-flex; align-items: center; gap: 6px; color: var(--gri); font-size: 0.85rem; font-weight: 600; }
.pwen-dirèk { width: 9px; height: 9px; border-radius: 50%; background: #0ca30c; animation: bat 1.6s ease-in-out infinite; }
@keyframes bat { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .pwen-dirèk { animation: none; } }
.patisipan-total { margin: 8px 0 14px; color: var(--gri); }
.patisipan-total strong { font-size: 2.2rem; color: var(--tèks); margin-right: 6px; }
.griy-depatman { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tiil-depatman {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border: 1px solid #e1e4ec; border-left-width: 4px; border-radius: 0 8px 8px 0;
  background: var(--blan); font: inherit; color: var(--tèks); text-align: left; cursor: pointer;
}
.tiil-depatman:hover { background: #f6f7fb; }
.tiil-depatman.k-bon { border-left-color: #0ca30c; }
.tiil-depatman.k-feb { border-left-color: #fab219; }
.tiil-depatman.k-tro-piti { border-left-color: #d03b3b; }
.moso.pa-prezize { background: #b9bfcc; }
.tiil-non { font-size: 0.85rem; color: var(--gri); font-weight: 600; }
.tiil-chif { font-size: 1.35rem; font-weight: 700; }
.tiil-kalite { font-size: 0.75rem; color: var(--gri); }
.lejann-kalite { font-size: 0.85rem; color: var(--gri); margin: 12px 0 4px; }
.lyen-metod { margin: 0; font-size: 0.85rem; }
.lyen-metod a { color: var(--ble); }

/* Istwa (graf liy) */
.istwa-tèks { margin: -6px 0 12px; }
.istwa-lejann { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; font-size: 0.9rem; }
.istwa-lejann-atik { display: inline-flex; align-items: center; gap: 6px; }
.istwa-kare { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.istwa-graf { position: relative; }
.istwa-graf svg { width: 100%; height: auto; display: block; }
.istwa-graf .griy { stroke: #e1e0d9; stroke-width: 1; }
.istwa-graf .baz { stroke: #c3c2b7; stroke-width: 1; }
.istwa-graf .aks { fill: #898781; font-size: 12px; }
.istwa-graf .etikèt-liy { fill: var(--tèks); font-size: 12px; font-weight: 600; }
.istwa-graf .kwa { stroke: #898781; stroke-width: 1; stroke-dasharray: 3 3; }
.istwa-bil {
  position: absolute; top: 8px; min-width: 180px; max-width: 260px;
  background: var(--blan); border: 1px solid #d9deea; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(16, 24, 48, 0.14); padding: 8px 10px; font-size: 0.85rem; pointer-events: none;
}
.bil-liy { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bil-chif { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.bil-moun { margin-top: 6px; color: var(--gri); font-size: 0.8rem; }
.istwa-tablo { margin-top: 10px; font-size: 0.9rem; }
.istwa-tablo summary { cursor: pointer; color: var(--ble); }
.istwa-tablo table { border-collapse: collapse; margin-top: 8px; width: 100%; font-variant-numeric: tabular-nums; }
.istwa-tablo th, .istwa-tablo td { border-bottom: 1px solid #eceef3; padding: 4px 6px; text-align: right; }
.istwa-tablo th:first-child, .istwa-tablo td:first-child { text-align: left; }

/* Gwo kat "kandida ki an tèt" anwo paj Rezilta */
.lide-gwo { text-align: center; border-top: 4px solid #e6c35c; }
.lide-etikèt { margin: 0 0 14px; font-weight: 700; color: #7a5600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.lide-moun { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.lide-yon { display: flex; flex-direction: column; align-items: center; }
.lide-yon p { margin: 0; }
.lide-non { margin-top: 10px !important; font-size: 1.35rem; font-weight: 700; }
.lide-pati { color: var(--gri); font-weight: 600; }
.lide-chif { margin-top: 6px !important; font-size: 2.2rem; font-weight: 800; color: var(--ble); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lide-vot { color: var(--gri); font-size: 0.9rem; }
.lide-moun.egalite .foto.tre-gwo { width: 88px; height: 88px; }
.lide-moun.egalite .lide-chif { font-size: 1.6rem; }
.lide-bouton { justify-content: center; }

/* Lis dewoulan ak foto (pou kandida yo) */
.dewoulan { position: relative; }
.dewoulan-bouton {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  border: 1.5px solid #c7cdd9; border-radius: 12px;
  background: var(--blan);
  font: inherit; color: var(--tèks); text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dewoulan-bouton:hover { border-color: #9aa5bb; }
.dewoulan-bouton:focus-visible, .dewoulan-bouton[aria-expanded="true"] {
  outline: none; border-color: var(--ble); box-shadow: 0 0 0 3px rgba(0, 32, 159, 0.15);
}
.dewoulan-bouton.chwazi { border-color: var(--ble); background: #f3f5fd; }
.dewoulan-bouton .kandida-non { font-size: 1.05rem; }
.dewoulan-envitasyon { color: var(--gri); }
.dewoulan-flech { margin-left: auto; color: var(--gri); font-size: 1.1rem; transition: transform 0.15s; }
.dewoulan-bouton[aria-expanded="true"] .dewoulan-flech { transform: rotate(180deg); }

.dewoulan-panel {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--blan);
  border: 1px solid #d9deea; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 24, 48, 0.16);
  overflow: hidden;
}
.dewoulan-cheche {
  width: 100%; border: none; border-bottom: 1px solid #eceef3;
  padding: 12px 14px; font-size: 1rem; outline: none;
}
.dewoulan-lis { list-style: none; margin: 0; padding: 6px; max-height: min(360px, 55vh); overflow-y: auto; }
.dewoulan-opsyon {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.dewoulan-opsyon:hover, .dewoulan-opsyon:focus { background: #f1f3f8; outline: none; }
.dewoulan-opsyon[aria-selected="true"] { background: #eef1fb; }
.dewoulan-tik { margin-left: auto; color: var(--ble); font-weight: 700; visibility: hidden; }
.dewoulan-opsyon[aria-selected="true"] .dewoulan-tik { visibility: visible; }
.dewoulan-vid { padding: 12px; color: var(--gri); font-style: italic; }
.kandida-tèks { display: flex; flex-direction: column; line-height: 1.25; }
.kandida-non { font-weight: 600; }
.kandida-pati { font-size: 0.85rem; color: var(--gri); font-weight: normal; }
.moun { display: flex; align-items: center; gap: 10px; min-width: 0; }
.liy-tèks { align-items: center; }

/* Rezilta */
.filt label { font-weight: 600; display: block; margin-bottom: 6px; }
.filt select {
  width: 100%; font-size: 1rem; padding: 10px;
  border: 1px solid #c7cdd9; border-radius: 8px; background: var(--blan);
}
.lejann { margin: 12px 0 0; font-size: 0.9rem; color: var(--gri); }
.kare { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-left: 6px; }
.kare.fanm, .moso.fanm { background: var(--seri-fanm); }
.kare.gason, .moso.gason { background: var(--seri-gason); }

.rezilta-antet { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rezilta-antet h1, .rezilta-antet h2, .rezilta-antet h3 { margin: 0; }
.rezilta-antet h1 { font-size: 1.5rem; }
.kat > .paj-tit:first-child { margin-top: 0; }
.rezilta-antet h3 { font-size: 1.2rem; }
.tit-kesyon { font-size: 1.15rem; margin: 24px 4px 10px; }
.nòt-plizyè { margin: -8px 0 8px; font-size: 0.85rem; }
.lyen-lot { margin: 12px 0 0; }
.lyen-lot a { color: var(--ble); }
#eta-sondaj { margin: 6px 0 14px; }
.total { color: var(--gri); font-weight: 600; }
.an-tet { margin: 8px 0 16px; }
.vid { color: var(--gri); font-style: italic; }

.liy-kandida { padding: 10px 0; border-top: 1px solid #eceef3; }
.liy-tèks { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.non-kandida { font-weight: 600; }
.lide .non-kandida::after { content: " 🏆"; }
.chif { color: var(--tèks); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ray { background: #eceff5; border-radius: 999px; height: 12px; overflow: hidden; }
.ba { background: var(--seri-kandida); height: 100%; border-radius: 999px; }

.ba-seks { display: flex; gap: 2px; height: 8px; margin-top: 6px; border-radius: 4px; overflow: hidden; }
.moso { height: 100%; }
.seks-tèks { font-size: 0.85rem; color: var(--gri); margin-top: 4px; font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
  .bouton { width: 100%; text-align: center; }
}

/* Chan pyej pou bot (vote.html): kache pou moun, men bot yo we l */
.pyej { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* Ba pwogre nan fomile vot la (vote.js metePwogre) — li rete anba ekran an pandan moun nan ap reponn */
.pwogre { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  margin: 12px -4px; padding: 10px 12px; background: #fff; border: 1px solid #d6dcef; border-radius: 10px;
  box-shadow: 0 -2px 10px rgba(0, 32, 159, 0.08); font-size: 0.9rem; font-weight: 600; color: #333; }
.pwogre-teks { white-space: nowrap; }
.pwogre-ray { flex: 1; height: 8px; background: #e4e8f4; border-radius: 4px; overflow: hidden; }
.pwogre-plen { height: 100%; width: 0; background: var(--ble); border-radius: 4px; transition: width 0.25s; }
.pwogre.fini .pwogre-plen { background: #1a7f37; }
@media (prefers-reduced-motion: reduce) { .pwogre-plen { transition: none; } }

/* Paj "Pwopoze yon sondaj" */
.pwopoze-repons { display: grid; gap: var(--e-2); margin-bottom: var(--e-3); }
.pwopoze-liy { display: flex; gap: var(--e-2); align-items: center; }
.pwopoze-liy input { flex: 1; min-width: 0; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; }
#kesyon { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid #c7cdd9; border-radius: 10px; box-sizing: border-box; }
.pwopozisyon { border: 1px solid #e3e7f0; border-radius: var(--r-md); padding: var(--e-3) var(--e-4); margin-top: var(--e-3); }
.pwopozisyon-tet { display: flex; justify-content: space-between; align-items: center; gap: var(--e-2); flex-wrap: wrap; }
.pwopozisyon-kesyon { margin: var(--e-2) 0; font-size: 1.1rem; }
.pwopozisyon-repons { margin: 0; padding-left: 1.2em; color: #3c4456; }
.bouton-like { font: inherit; font-weight: 700; padding: 6px 14px; min-height: 40px; border-radius: 999px;
  border: 1.5px solid #c9d2f2; background: #fff; color: var(--ble); cursor: pointer; }
.bouton-like:hover { background: #eef1fb; }
.bouton-like.aktif { background: var(--ble); border-color: var(--ble); color: #fff; }
/* Admin: pwopozisyon */
.admin-pwopozisyon .pwopozisyon.eta-tann { border-left: 4px solid #e6b100; }
.admin-pwopozisyon .pwopozisyon.eta-aksepte { border-left: 4px solid #0ca30c; }
.admin-pwopozisyon .pwopozisyon.eta-refize { border-left: 4px solid #9aa3b5; opacity: 0.75; }
.admin-pwopozisyon .bouton-yo { margin-top: var(--e-2); }

/* V2: ikòn SVG ki ranplase emoji yo (ikon.js) — fen, yon sèl koulè (koulè tèks la) */
.ikon {
  width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ikon-drapo { width: 1.25em; height: 0.84em; vertical-align: -0.06em; border-radius: 2px; stroke: none; }
.ikon.ik-ok { color: #1f7a4d; }
.ikon.ik-avet { color: #b26a00; }
.ikon.ik-stop { color: var(--wouj); }
/* Ikòn ki poukont yo nan yon tit oswa yon gwo chif vin yon ti jan pi gwo */
h1 .ikon, h2 .ikon { width: 0.95em; height: 0.95em; }

/* V2: pye paj la an 3 kolòn ekilibre (mak · sondaj ouvè · enfòmasyon) */
.pye-anndan { grid-template-columns: 1.4fr 1.3fr 1fr; }
.pye-sondaj li { line-height: 1.35; }
.pye-sondaj a { display: inline-block; }
.pye-sondaj .pye-tout a { color: var(--blan); font-weight: 600; }
.pye-vid { color: #9fabd6; }
@media (max-width: 700px) {
  .pye-anndan { grid-template-columns: 1fr; }
  .pye-sondaj ul { columns: 1; }
}

/* --- Tranch laj (fòmilè vòt la) --- */
.chwa-griy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chwa-griy .chwa { margin-bottom: 0; justify-content: center; padding: 10px 6px; gap: 6px; }
@media (max-width: 420px) { .chwa-griy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.konfime-laj { border: 2px solid #b26a00; background: #fff8ec; border-radius: 10px; padding: 14px; }
.konfime-laj legend { padding: 0 6px; color: #7a4a00; }
.konfime-laj .ti-tèks { margin: 0 0 10px; }
.konfime-laj .chwa { background: #fff; }

/* --- Kòmantè (paj rezilta) --- */
.komante h2 { margin-top: 0; }
.komante-fom { display: grid; gap: 10px; margin: 0 0 18px; padding: 14px; border: 1px solid #d7dce6; border-radius: 12px; background: #f7f8fb; }
.komante-fom label { display: grid; gap: 6px; font-weight: 600; position: relative; }
.komante-fom input, .komante-fom textarea {
  font: inherit; font-weight: normal; padding: 10px 12px; border: 1px solid #c7cdd9; border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box;
}
.komante-fom textarea { resize: vertical; min-height: 84px; }
.komante-fom input:focus, .komante-fom textarea:focus { outline: none; border-color: var(--ble); box-shadow: 0 0 0 3px rgba(0, 32, 159, 0.15); }
.komante-fom .bouton { justify-self: start; }
.komante-konte { justify-self: end; font-size: 0.8rem; font-weight: normal; color: var(--gri); }
.komante-vote { padding: 12px 14px; border-radius: 10px; background: #f2f4f8; }
.komante-lis { display: grid; gap: 10px; }
.komante-atik { padding: 12px 14px; border: 1px solid #e3e6ee; border-radius: 12px; }
.komante-atik.komante-kache { opacity: 0.5; }
.komante-tet { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.komante-dat { font-size: 0.8rem; color: var(--gri); }
.komante-siyale { margin-left: auto; background: none; border: none; color: var(--gri); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; padding: 4px; }
.komante-siyale:disabled { text-decoration: none; cursor: default; }
.komante-teks { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Bouton WhatsApp (paj Kontak) */
.bouton.bouton-whatsapp { background: #128c4a; border-color: #128c4a; color: #fff; }
.bouton.bouton-whatsapp:hover, .bouton.bouton-whatsapp:focus-visible { background: #0e7a40; border-color: #0e7a40; }

/* Nòt enpòtan yon sondaj (egzanp: lis kandida poko ofisyèl) */
.not-sondaj { margin: 12px 0; padding: 12px 14px; border-left: 4px solid #b26a00; background: #fff8ec; border-radius: 8px; font-size: 0.92rem; color: #4a3200; }
.not-sondaj-tit { margin: 0 0 6px; font-weight: 700; }
.not-sondaj ul { margin: 0; padding-left: 18px; }
.not-sondaj li { margin: 3px 0; }

/* Liy kòmanditè (atik 216) */
.komandite-sondaj { margin: 8px 0 12px; font-size: 0.85rem; color: #555; }
.komandite-sondaj strong { color: #333; }

/* ===== V3: pi bon itilizasyon lajè ekran an sou òdinatè ===== */
/* Paj lis ak rezilta: menm lajè ak antèt la, pou bò yo aliyen ak logo a */
.kontni-gwo { max-width: 1100px; }
/* Kat sondaj yo: 2 kolòn sou òdinatè, 1 kolòn sou telefòn */
.griy-sondaj { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: var(--e-4, 16px); align-items: start; }
.griy-sondaj > .kat { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; }
.griy-sondaj > .kat .bouton-yo { margin-top: auto; }
.griy-sondaj > .kat .lis-enfo { margin-bottom: 16px; }
/* Filtè rapid */
.filt-chip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid #c7cdd9; background: var(--blan); color: #2a3142; cursor: pointer; min-height: 40px; }
.chip:hover:not(:disabled) { border-color: var(--ble); color: var(--ble); }
.chip[aria-pressed="true"] { background: var(--ble); border-color: var(--ble); color: var(--blan); }
.chip:disabled { opacity: 0.45; cursor: default; }
.chip:focus-visible { outline: 3px solid #9db4ff; outline-offset: 2px; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip[aria-current="page"] { background: var(--ble); border-color: var(--ble); color: var(--blan); }

/* Paj Rezilta: chwa Ayiti / Dyaspora + sondaj */
.chwa-rezilta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; }
.chwa-rezilta-piblik { display: flex; gap: 8px; }
.chwa-rezilta-sondaj { display: flex; align-items: center; gap: 8px; font-weight: 600; flex: 1 1 260px; }
.chwa-rezilta-sondaj select { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1.5px solid #c7cdd9; border-radius: 8px; background: var(--blan); }
/* Ikòn drapo a: menm wotè ak tèks la */
.ikon-drapo { border-radius: 3px; }
/* Metod: tab matyè a kole sou bò goch, kontni an rete lizib (pa twò laj) */
.metod-kote .metod-tab { border-top: 0; padding-top: var(--e-4, 16px); }
@media (min-width: 1000px) {
  .metod-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .metod-layout > * { grid-column: 2; max-width: 820px; }
  .metod-layout > .metod-kote { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 90px; align-self: start; }
  .metod-kote .metod-tab ol { columns: 1; padding-left: 20px; font-size: 0.92rem; }
}

/* Kesyon rejeksyon: kandida ki plis rejte a */
.liy-kandida.lide-rejte { background: #fdf0f2; border-radius: 10px; }
.liy-kandida.lide-rejte .non-kandida { color: #a3122a; font-weight: 700; }

/* Anti-robo (Cloudflare Turnstile): espas sèlman lè li parèt */
.anti-robo:empty { display: none; }
.anti-robo { margin: 8px 0 12px; }

/* Akèy: Ayiti ak dyaspora nan menm kat la, youn anba lòt */
.chif-kat-de dt + dd + dt { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
/* Akèy: bouton anba kat mondyal la */
.bouton-kat-mond { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* Konparezon 2 premye yo (gwo kat anwo paj Rezilta) */
.lide-moun.konpare { align-items: center; gap: 16px 32px; }
.lide-vs { font-weight: 800; font-size: 1.1rem; color: var(--gri); text-transform: uppercase; }
.lide-ran { display: inline-block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff6d8; color: #7a5600; }
.lide-yon.dezyèm .lide-ran { background: #eef1f6; color: #4a5468; }
.lide-yon.dezyèm .lide-chif { color: #4a5468; }
.lide-moun.konpare:not(.egalite) .lide-yon.dezyèm .foto.tre-gwo { width: 104px; height: 104px; }
.lide-ba { display: flex; gap: 2px; height: 14px; max-width: 520px; margin: 18px auto 6px; border-radius: 999px; overflow: hidden; }
.lide-ba-1 { background: var(--ble); }
.lide-ba-2 { background: #9aa5bb; }
.lide-ekar { margin: 0; color: var(--gri); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
/* 2 premye yo rete kote a kote, menm sou telefòn */
.lide-moun.konpare:not(.egalite) { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.lide-moun.konpare:not(.egalite) .lide-vs { align-self: center; }
@media (max-width: 600px) {
  .lide-moun.konpare:not(.egalite) { gap: 8px; }
  .lide-moun.konpare:not(.egalite) .foto.tre-gwo { width: 88px; height: 88px; }
  .lide-moun.konpare:not(.egalite) .lide-yon.dezyèm .foto.tre-gwo { width: 76px; height: 76px; }
  .lide-moun.konpare .lide-non { font-size: 1.05rem; }
  .lide-moun.konpare .lide-chif { font-size: 1.6rem; }
  .lide-vs { font-size: 0.9rem; }
}
.chwa-rezilta-sondaj { min-width: 0; max-width: 100%; }
.chwa-rezilta-sondaj select { width: 100%; }

/* Telefòn: lyen ak bouton pi fasil pou peze ak dwèt */
@media (max-width: 600px) {
  .pye-kolon li { margin: 0 0 4px; }
  .pye-kolon a { display: inline-block; padding: 6px 0; }
  .bouton-pataje { min-height: 44px; }
}
