/* Ki Ka Raison ? — les écrans de l'app dans l'univers de la landing : un en-tête en aplat, court pour laisser la place au contenu, puis des cartes sans filets. Les teintes .t-* et le surlignage sont dans assets/auth.css. */
body { overflow-x: clip; }
.pop { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; font-size: 16px; }

/* En-têtes et bandes en aplat, jusqu'aux bords de l'écran */
.pop-hero, .pop-band { display: flex; flex-direction: column; gap: 14px; margin-inline: calc(50% - 50vw); padding-inline: max(16px, calc(50vw - 544px)); background: var(--bg); color: var(--fg); }
.pop-hero { --page-top: max(14px, env(safe-area-inset-top, 0px)); margin-top: calc(-1 * var(--page-top)); padding-block: var(--page-top) 18px; }
.pop-band { padding-block: 24px 28px; }
.market .pop-hero, .market .pop-band { padding-inline: max(16px, calc(50vw - 380px)); }
.pop-tl { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pop-tl .gate-stamp { display: none; }
.pop .gate-stamp::before { display: none; }
.pop-hero.t-ink .gate-stamp { background: var(--cream); color: var(--ink); }
.pop-hero.t-ink .gate-stamp b { color: var(--ink); }
.pop-hero h1, .pop-band h2 { font-weight: 800; letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; }
.pop-hero h1 { font-size: clamp(30px, 8.8vw, 60px); }
.pop-band h2 { font-size: clamp(26px, 7.4vw, 48px); }
.pop-lead { font-size: 15.5px; font-weight: 500; line-height: 1.4; opacity: .92; }
.pop-big { display: flex; align-items: center; gap: 10px; }
.pop-big b { font-size: clamp(36px, 10vw, 60px); font-weight: 800; font-style: italic; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.pop-big span { font-size: 14px; font-weight: 700; line-height: 1.25; }

/* Briques */
.pop .btn:not(.sm) { min-height: 52px; padding: 6px 6px 6px 22px; font-size: 16.5px; gap: 14px; }
.pop .btn:not(.sm):not(:has(.go)) { padding: 8px 22px; justify-content: center; }
.pop .btn.sm { min-height: 40px; padding: 7px 15px; font-size: 14.5px; }
.pop .btn .go { width: 40px; height: 40px; }
.pop .btn .go svg { width: 20px; height: 20px; }
.pop .btn.line { box-shadow: inset 0 0 0 2px currentColor; }
.pop .link-btn { color: var(--ink); font-size: 14px; font-weight: 700; }
.pop .ic-btn:not(.sm) { width: 42px; height: 42px; border: 2px solid var(--ink); }
.pop .panel { gap: 14px; padding: 18px; border: 0; border-radius: 26px; background: var(--paper); box-shadow: 0 26px 44px -34px rgba(29, 29, 31, .5); }
.pop h3 { font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.pop .sec-row small { color: var(--grey-2); font-size: 14px; font-weight: 700; }
.pop .muted { color: var(--grey-2); }
.pop .lrow { gap: 12px; padding: 11px 0; font-size: 15px; }
.pop .lrow .grow b { font-weight: 800; }
.pop .lrow .grow small { color: var(--grey-2); font-size: 13px; }
.pop .note { border-radius: 16px; font-size: 15px; }
.pop .note.lime { background: var(--lime); color: var(--ink); font-weight: 700; }
.pop .fold-in { border-top: 2px solid var(--ink); padding-top: 14px; }
.pop .fold-in > summary, .pop details.fold > summary { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.pop details.fold > summary::after, .pop .fold-in > summary::after { color: var(--ink); }
.pop .chip { padding: 8px 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; }
.pop .chip.on, .pop .chip-check input:checked + .chip { background: var(--lime); border-color: var(--ink); }
.pop .seg-tabs { padding: 4px; border: 2px solid var(--ink); background: var(--paper); }
.pop .seg-tabs button { min-height: 38px; color: var(--ink); font-size: 14px; }
.pop .seg-tabs button.on { background: var(--lime); }
.pop .seg-tabs em { font-size: 12.5px; font-weight: 700; }

/* Champs */
.pop label, .pop .field-l { gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.pop label small, .pop .field-l small { color: var(--grey-2); }
.pop input:not([type=checkbox]):not([type=radio]), .pop textarea, .pop select { min-height: 50px; padding: 11px 16px; border: 2px solid var(--ink); border-radius: 16px; background-color: var(--paper); color: var(--ink); font: 600 16px var(--f); }
.pop select { padding-right: 36px; }
.pop input::placeholder, .pop textarea::placeholder { color: var(--grey); font-weight: 500; opacity: 1; }
.pop input:not([type=checkbox]):not([type=radio]):focus, .pop textarea:focus, .pop select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--lime); }
.pop .check { font-size: 15px; }
.pop .check input { width: 22px; height: 22px; }
.pop .inline-form .btn.sm { min-height: 50px; padding-inline: 18px; }
.pop .search { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
.pop .search input:not([type=checkbox]):not([type=radio]) { min-height: 0; padding: 10px 0; border: 0; background: transparent; font-size: 16px; }
.pop .search input:focus { box-shadow: none !important; }

/* Quand il n'y a rien : Kika le dit */
.pop-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 10px; }
.pop-empty .gate-says .gate-kika { width: 74px; }
.pop-empty .gate-says p { max-width: 260px; margin-bottom: 30px; font-size: 15px; }

/* Bienvenue dans l'app : les cartes dans l'entrée */
.gate .cards { grid-template-columns: minmax(0, 1fr); }

/* Accueil */
.home.pop { gap: 12px; }
.pop .hello b { font-size: 18px; letter-spacing: -.03em; }
.pop .hello small { color: var(--grey-2); font-size: 13.5px; }
.pop .pill-bal { border: 2px solid var(--ink); color: var(--ink); font-size: 13px; }
.pop .pill-bal.pos { background: var(--lime); }
.pop .pill-bal.neg { border-color: var(--loss); color: var(--loss); }
.pop .qcard { gap: 12px; padding: 16px; border-radius: 26px; }
.pop .qcard h3 { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.pop .qc-ynb { min-height: 48px; font-size: 15px; }
.pop .qc-ynb b { font-size: 18px; }
.pop .qc-opt .r { font-size: 15px; }
.pop .qc-opt b { font-size: 17px; }
.pop .qc-bar { height: 7px; }
.pop .bilan { border-radius: 26px; }
.launch-steps { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 26px; }
.launch-steps::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--lime); }
.launch-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pop .launch { gap: 14px; padding: 16px 18px; border: 0; border-radius: 26px; background: var(--ink); color: var(--cream); }
.pop .launch .gate-stamp { background: var(--cream); color: var(--ink); }
.pop .launch .gate-stamp b { color: var(--ink); }
.pop .launch .link-btn { color: var(--cream); }
.pop .launch-row { position: relative; min-height: 40px; font-size: 15px; }
.pop .launch-row b { font-weight: 800; }
.pop .launch-ic { position: absolute; left: -26px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; border: 3px solid var(--lime); background: var(--ink); color: var(--ink); }
.pop .launch-ic svg { display: none; }
.pop .launch-row.done .launch-ic { border-color: var(--lime); background: var(--lime); }
.pop .launch-row.done b { color: var(--cream); opacity: .6; font-weight: 600; }
.pop .launch .btn.line { color: var(--cream); }
.pop .launch .btn:not(.line) { background: var(--lime); color: var(--ink); }

/* Créer une question */
.pop-create .gate-steps { gap: 26px; }
.pop-create .gate-step { gap: 12px; }
.pop-create input[name=title] { min-height: 58px; font-size: 18px; font-weight: 700; }
.pop-idea { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pop-idea .gate-note { flex: 1 1 170px; font-size: 14px; }
.pop .kind span { padding: 14px 8px; border: 2px solid var(--ink); border-radius: 16px; }
.pop .kind b { font-size: 14.5px; font-weight: 800; }
.pop .kind input:checked + span { background: var(--lime); }
.pop-note-ink .gate-note, .t-lime .gate-note { color: var(--ink); }

/* Page d'une question */
.pop.market { gap: 16px; }
.pop .m-hero { gap: 12px; border-radius: 0; }
.pop .m-hero h1 { font-size: clamp(30px, 8.8vw, 52px); }
.pop .topline { margin-bottom: 2px; }
.pop .topline b { font-weight: 800; }
.pop .topline .ic-btn { color: var(--ink); }
.pop .m-subj { font-size: 14px; font-weight: 700; }
.pop .m-desc { font-size: 15.5px; opacity: 1; }
.pop .m-by { font-size: 13px; opacity: .85; }
.pop .opts { gap: 8px; }
.pop .opt { gap: 8px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 18px; }
.pop .opt:hover:not([aria-disabled]) { border-color: var(--ink); }
.pop .opt .lbl { font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.pop .opt .p { font-size: 24px; letter-spacing: -.045em; }
.pop .opt .bar { height: 7px; background: var(--soft); }
.pop .opt .sub { font-size: 13px; }
.pop .opt.mine { background: var(--lime-soft); border-color: var(--lime-2); box-shadow: inset 0 0 0 1px var(--lime-2); }
.pop .opt.win { background: var(--lime); border: 2px solid var(--ink); }
.pop .opt.win .bar { background: rgba(255, 255, 255, .55); }
.pop .win-ic { background: var(--ink); color: var(--lime); }
.pop .mypos { background: var(--ink); color: var(--cream); }
.pop .mypos h3 { color: var(--cream); }
.pop .mypos .sec-row > b { font-size: 24px; font-weight: 800; font-style: italic; letter-spacing: -.05em; color: var(--lime); }
.pop .mypos .muted { color: #c9c6c0; }
.pop .mypos .mrow { font-size: 15px; }
.pop .mypos .amt-pill.g { padding: 5px 12px; background: var(--lime); color: var(--ink); font-size: 14px; }
/* Ça chambre : la conversation de la landing */
.pop-chat { background: transparent !important; box-shadow: none !important; padding: 2px 0 !important; }
.pop .cmt-b { max-width: 88%; padding: 10px 14px; border-radius: 20px 20px 20px 5px; background: var(--lav); transform: rotate(-.6deg); }
.pop .cmt.mine .cmt-b { border-radius: 20px 20px 5px 20px; background: var(--lime); transform: rotate(.6deg); }
.pop .cmt-h { font-size: 13px; }
.pop .cmt-h small { color: var(--grey-2); font-size: 12px; }
.pop .cmt-h .link-btn { font-size: 12px; font-weight: 600; }
.pop .cmt p { font-size: 15px; font-weight: 600; line-height: 1.35; }
/* Le verdict : l'aplat le plus fort de l'écran */
.pop .m-hero + .verdict-b { margin-top: -16px; }
.pop .verdict-b { gap: 14px; margin-inline: calc(50% - 50vw); padding: 26px max(16px, calc(50vw - 380px)) 28px; border-radius: 0; background: var(--ink); color: var(--cream); }
.pop .verdict-b .tagp { background: var(--cream); color: var(--ink); font-size: 12.5px; }
.pop .verdict-b .who { display: inline-block; padding: 0 .14em .07em; background: linear-gradient(transparent .09em, var(--lime) .09em); color: var(--ink); font-size: clamp(36px, 10.4vw, 64px); font-style: italic; font-weight: 800; letter-spacing: -.05em; line-height: 1.12; }
.pop .verdict-b > p { color: var(--cream); font-size: 15.5px; }
.pop .verdict-b .pop-big { color: var(--lime); text-align: left; }
.pop .verdict-b .pop-big span { color: var(--cream); }
.pop .v-card { gap: 10px; padding: 16px; border-radius: 22px; background: var(--paper); color: var(--ink); }
.pop .v-card .t { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.pop .v-card .muted { color: var(--grey-2); }
.pop .amt-pill { padding: 4px 11px; font-size: 14px; }
.pop .v-actions .link-btn { color: var(--cream); }
.pop .v-actions .muted { color: #c9c6c0; }
.pop .contests .bubble { color: var(--ink); }

/* Classement */
.pop .lead { gap: 12px; padding: 14px 16px; border-radius: 22px; background: var(--ink); color: var(--cream); transform: rotate(-.8deg); }
.pop .lead .rk { color: var(--lime); font-size: 56px; font-style: italic; opacity: 1; }
.pop .lead .info b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.pop .lead .v { color: var(--lime); font-size: 24px; font-style: italic; letter-spacing: -.05em; }
.pop-rank { gap: 0; }
.pop-rank .lrow .rk { width: 24px; color: var(--ink); font-size: 18px; font-style: italic; font-weight: 800; }
.pop-rank .lrow .num { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.pop-rank .panel { padding-block: 8px; }
.pop-titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.pop-title { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border-radius: 14px; background: var(--paper); color: var(--ink); transform: rotate(var(--r, 0deg)); }
.pop-title .grow b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
.pop-title .grow small { display: block; color: var(--grey-2); font-size: 12.5px; line-height: 1.3; }
.pop-title .t-em { font-size: 24px; }
.pop-title .t-free { border: 2px dashed var(--ink); color: var(--ink); }
.pop-band .small-note { font-size: 13px; font-weight: 600; }

/* Comptes */
.pop-acc .pop-hero { gap: 12px; padding-bottom: 22px; }
.pop-acc .pop-hero .sec-row h3 { margin-top: 4px; }
.pop-acc .pop-hero .sec-row small { color: var(--ink); }
.pop .debt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 13px 14px; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); transform: rotate(-.8deg); }
.pop .debt:nth-of-type(even) { transform: rotate(.9deg); }
.pop .debt .txt b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.pop .debt .txt small { color: var(--grey-2); font-size: 13px; }
.pop .debt .val { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.debt-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pop-sticker { align-self: flex-start; padding: 9px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.015em; transform: rotate(-1deg); }
.pop .hist { font-size: 14px; color: var(--ink); }
.pop .hist .link-btn { color: var(--ink); }

/* Profil */
.pop-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pop-who .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pop-photo { position: relative; flex: none; margin-top: 8px; border: 4px solid var(--ink); border-radius: 30%; line-height: 0; transform: rotate(-3deg); }
.pop-photo .ava { display: block; }
.pop-photo::before { content: ''; position: absolute; z-index: 1; top: -11px; left: 50%; width: 50px; height: 17px; margin-left: -25px; border-radius: 3px; background: var(--lime); opacity: .92; transform: rotate(-3deg); }
.pop-who .btn.sm { min-height: 36px; padding: 5px 12px; font-size: 13.5px; }
.pop-who .row { gap: 6px; }
.pop-who h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pop-who h1 .chip { padding: 3px 10px; border-width: 0; background: var(--lime); font-size: 13px; letter-spacing: -.01em; }
.pop-stickers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pop-stickers li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 9px; background: var(--paper); font-size: 13px; font-weight: 800; letter-spacing: -.01em; transform: rotate(var(--r, 0deg)); }
.pop-profile .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 4px 2px; }
.pop-profile .stat-grid div { gap: 0; padding: 0; border: 0; background: none; }
.pop-profile .stat-grid b { font-size: clamp(30px, 8.8vw, 44px); font-style: italic; letter-spacing: -.06em; line-height: 1.1; }
.pop-profile .stat-grid span { color: var(--ink); font-size: 14px; font-weight: 700; }
.pop .title-big > div { border-radius: 14px; background: var(--lav); }
.pop .title-big b { font-size: 16px; }

@media (min-width: 620px) {
  .pop-tl { position: relative; padding-left: 26px; }
  .pop-tl::before { content: ''; position: absolute; left: 5px; top: -14px; bottom: 0; width: 3px; border-radius: 2px; background: var(--line-c, currentColor); opacity: .9; }
  .pop-tl .gate-stamp { display: inline-flex; }
  .pop-tl .gate-stamp::before { display: block; }
  .pop-hero.t-ink .pop-tl .gate-stamp::before { background: var(--ink); border-color: var(--cream); }
  .pop-lead { font-size: 18px; }
}
@media (min-width: 900px) {
  .pop-hero { --page-top: 22px; padding-block: 28px 32px; }
  .pop-band { padding-block: 40px 44px; }
  .pop-titles { gap: 12px; }
  .pop-profile .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .pop .lead, .pop .debt, .pop-title { transform: none; } }
.pop .gate-steps .gate-stamp::before { display: block; }

/* Qui termine la question */
.pop-decide { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 26px; background: var(--lime); color: var(--ink); }
.pop-decide p { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.pop-decide small { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.pop-decide.soft { padding: 2px 0; background: none; }
.pop-decide.soft p { font-size: 15px; font-weight: 600; }
.pop-decide .btn.line { align-self: flex-start; }
.pop-todo { display: flex; flex-direction: column; gap: 6px; }
.pop-todo a { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 18px; background: var(--lime); color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; text-decoration: none; }
.pop-todo a span:first-child { flex: 1; min-width: 0; }
.pop-todo small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.pop-todo .go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }

/* Les preuves */
.pop-proofs { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.pop-proofs > b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.pop-proof { display: flex; gap: 10px; padding: 12px; border-radius: 18px; background: var(--paper); color: var(--ink); }
.pop-proof > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pop-proof p { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pop-proof a.proof-link { color: #4f52c9; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pop-proof img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.pop-proof .proof-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; font-weight: 800; }
.pop-proof .proof-top small { color: var(--grey-2); font-size: 12px; font-weight: 600; }
.pop-proof .proof-acts { display: flex; gap: 10px; }
.pop-proof .link-btn { color: var(--grey-2); font-size: 12px; font-weight: 600; }
.pop .verdict-b .btn.line { color: var(--cream); }
.verdict-by { font-size: 13.5px; font-weight: 600; opacity: .85; }
.proof-f { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 18px; }
.proof-f legend { padding: 0 6px; font-size: 14px; font-weight: 800; }
.proof-f legend small { font-weight: 600; color: var(--grey-2); }

/* L'accueil vide : Kika parle au milieu de l'écran, avec le bouton qui va avec */
.kika-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 56dvh; padding-block: 8px 24px; text-align: center; }
.kika-zone.small { min-height: 0; padding-block: 4px 8px; }
.kz-bubble { position: relative; max-width: 310px; margin-bottom: 4px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); font-size: 15.5px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.kz-bubble b { display: block; margin-bottom: 3px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.kz-bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); transform: translateX(-50%) rotate(45deg); }
.kz-kika { width: 112px; aspect-ratio: 120 / 140; }
.kika-zone.small .kz-kika { width: 74px; }
.kz-kika svg { display: block; width: 100%; height: auto; }
.kz-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 380px; }
.kz-acts .btn { flex: 1 1 auto; justify-content: center; }
.pop-rank .panel p { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
