/* Page /check : feuille dédiée et légère (la page ne charge pas style.css ni app.js). Mobile d'abord. Même palette que le site. */
:root { --navy: #1B2F5E; --navy-ink: #0B1731; --orange: #F47B20; --orange-deep: #D9640F; --orange-tint: #FFF1E4; --orange-text: #A94708; --cream: #FFF9F3; --paper: #FFFFFF; --ink: #1A2238; --ink-2: #44506B; --muted: #6B7590; --line: #E6E8EF; --line-2: #D5D9E4; --green: #1E9E6A; --font-head: 'Plus Jakarta Sans', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; }
a { color: var(--orange-text); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-ink); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 10px; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 12px; }
.ck-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.ck-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.ck-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.ck-brand img { width: 34px; height: 34px; border-radius: 9px; }
.ck-brand b { color: var(--orange); font-weight: 800; }
.ck-login { font-size: .85rem; color: var(--ink-2); text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.ck-login:hover { background: rgba(27,47,94,.06); }
.ck-hero { padding: 12px 0 10px; }
.ck-lead { color: var(--ink-2); font-size: 1.05rem; max-width: 620px; }
.ck-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; box-shadow: 0 8px 28px rgba(27,47,94,.06); }
.ck-rows { display: flex; flex-direction: column; gap: 10px; }
.ck-row { display: grid; grid-template-columns: minmax(0, 1fr) 122px 32px; gap: 6px; align-items: center; }
.ck-field { position: relative; }
.ck-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.ck-field input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.ck-ticker input { text-transform: uppercase; }
.ck-ticker input::placeholder { text-transform: none; }
.ck-weight input { padding-right: 26px; padding-left: 10px; font-size: .95rem; -moz-appearance: textfield; }
.ck-weight input::-webkit-outer-spin-button, .ck-weight input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ck-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }
.ck-del { width: 32px; height: 46px; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; border-radius: 10px; cursor: pointer; }
.ck-del:hover { background: rgba(27,47,94,.06); color: var(--navy); }
.ck-ac { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 32px rgba(27,47,94,.14); overflow: hidden; max-height: 300px; overflow-y: auto; }
.ck-ac button { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: baseline; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; font: inherit; font-size: .92rem; cursor: pointer; }
.ck-ac button:hover, .ck-ac button.on { background: var(--orange-tint); }
.ck-ac button b { font-family: var(--font-head); color: var(--navy); }
.ck-ac button span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-ac button small { color: var(--muted); font-size: .72rem; }
.ck-ac-none { padding: 10px 12px; font-size: .85rem; color: var(--ink-2); }
.ck-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ck-link { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ck-total { font-size: .9rem; color: var(--ink-2); min-height: 1.3em; margin-top: 10px; }
.ck-example { margin-top: 8px; font-size: .85rem; color: var(--ink-2); background: var(--orange-tint); border-radius: 10px; padding: 8px 12px; }
.ck-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 16px; padding: 12px 20px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 8px 24px rgba(244,123,32,.30); }
.ck-btn:hover { transform: translateY(-1px); }
.ck-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.ck-fine { font-size: .85rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
.ck-error { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #FDE8E8; color: #8E2B2B; font-size: .92rem; }
.ck-result { margin-top: 28px; }
.ck-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 20vw, 7rem); line-height: 1; color: var(--navy); letter-spacing: -.04em; }
.ck-result h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
.ck-sub { color: var(--ink-2); }
.ck-matrix-wrap { overflow-x: auto; margin: 14px -16px 0; padding: 0 16px; -webkit-overflow-scrolling: touch; }
.ck-matrix { border-collapse: separate; border-spacing: 3px; font-size: .82rem; }
.ck-matrix th { font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: 4px 6px; text-align: center; font-size: .78rem; }
.ck-matrix tbody th { text-align: right; }
.ck-matrix td { min-width: 48px; text-align: center; padding: 8px 6px; border-radius: 8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ck-matrix td.hi { color: #fff; font-weight: 600; }
.ck-legend { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.ck-lines { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.ck-lines li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; font-size: .92rem; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.ck-lines b { font-family: var(--font-head); color: var(--navy); }
.ck-lines span { color: var(--ink-2); }
.ck-lines em { grid-column: 2; font-style: normal; color: var(--muted); font-size: .82rem; }
.ck-conc { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; color: var(--navy-ink); }
.ck-limits { margin-top: 16px; }
.ck-limits ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); font-size: .95rem; }
.ck-notes { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.ck-capture { margin-top: 28px; background: var(--navy); color: #fff; border-radius: 18px; padding: 22px 18px; }
.ck-capture h2 { color: #fff; }
.ck-capture p { color: rgba(255,255,255,.82); }
.ck-capture form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ck-capture input[type=email] { min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.25); font: inherit; font-size: 1rem; background: rgba(255,255,255,.08); color: #fff; }
.ck-capture input[type=email]::placeholder { color: rgba(255,255,255,.6); }
.ck-capture input[type=email]:focus { outline: 2px solid var(--orange); background: rgba(255,255,255,.14); }
.ck-capture button { min-height: 50px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; cursor: pointer; }
.ck-capture button:disabled { opacity: .6; cursor: default; }
.ck-capture .ck-fine { color: rgba(255,255,255,.7); text-align: left; }
.ck-msg { margin: 6px 0 0; font-size: .92rem; min-height: 1.3em; }
.ck-msg.ok { color: #9FE3C4; } .ck-msg.err { color: #FFB4B4; }
.ck-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ck-method { margin-top: 28px; }
.ck-method ol { padding-left: 20px; color: var(--ink-2); }
.ck-method li { margin-bottom: 6px; }
.ck-foot { margin: 36px 0 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.ck-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.ck-foot a { color: var(--ink-2); text-decoration: none; }
.ck-foot a:hover { text-decoration: underline; }
@media (min-width: 640px) {
  .ck-card { padding: 24px; }
  .ck-row { grid-template-columns: minmax(0, 1fr) 150px 36px; gap: 8px; }
  .ck-btn { width: auto; min-width: 280px; }
  .ck-capture form { flex-direction: row; } .ck-capture input[type=email] { flex: 1; } .ck-capture button { padding: 0 22px; }
  .ck-matrix-wrap { margin: 14px 0 0; padding: 0; }
  .ck-lines li { grid-template-columns: 72px 1fr auto; } .ck-lines em { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .ck-btn:hover { transform: none; } }
@media (max-width: 480px) { .ck-matrix td { min-width: 38px; padding: 7px 3px; font-size: .76rem; } .ck-matrix th { padding: 4px 3px; font-size: .72rem; } }

/* Mode de saisie (montants par défaut, pourcentages en alternative) et devise */
.ck-modes { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ck-seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; background: #fff; }
.ck-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.ck-seg button.on { background: var(--navy); color: #fff; }
.ck-seg-cur button { padding: 7px 12px; min-width: 40px; }
.ck-privacy { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--orange-tint); }
.ck-privacy::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ck-weight { display: flex; flex-direction: column; }
.ck-sub-pct { display: block; font-size: .74rem; color: var(--muted); min-height: 1em; margin-top: 3px; white-space: nowrap; }
.ck-weight .ck-unit { top: 23px; }
.ck-row { align-items: start; }
.ck-del { margin-top: 0; }

/* Les groupes avant la matrice (14/10/2026) */
.ck-groups { margin-top: 18px; }
.ck-g-title { font-family: var(--font-head); font-size: clamp(1.05rem, 4vw, 1.25rem); color: var(--navy); margin: 0 0 10px; }
.ck-g-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ck-g-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.ck-g-k { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .86rem; }
.ck-g-t { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ck-g-w { color: var(--muted); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-g-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 5vw, 1.7rem); line-height: 1.25; color: var(--navy); margin: 16px 0 6px; text-wrap: balance; }
.ck-g-note { font-size: .82rem; color: var(--muted); margin: 0; }
.ck-details { margin-top: 14px; }
.ck-details summary { cursor: pointer; font-weight: 600; color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; list-style: none; width: max-content; }
.ck-details summary::-webkit-details-marker { display: none; }
.ck-cellnote { font-size: .88rem; color: var(--ink-2); margin: 8px 0 0; min-height: 1.3em; }
@media (max-width: 480px) { .ck-g-list li { grid-template-columns: minmax(0, 1fr) auto; } .ck-g-k { grid-column: 1 / -1; } }

.ck-phase { margin: 18px 0 6px; padding: 12px 16px; border-left: 3px solid var(--orange, #E8732A); background: rgba(232,115,42,.06); font-size: .95rem; line-height: 1.5; }
.ck-phase a { font-weight: 600; }
