:root { --red: #E11F1C; --red-dark: #B81512; --ink: #262626; --muted: #5C5650; --beige: #E2D6C0; --bg: #F7F3EC; --soft: #F1EADD; --line: #DDD4C4; --field: #A79E90; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 Arial, Helvetica, sans-serif; }
h1, .display { margin: 0; font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; font-size: 30px; line-height: 1.15; }
h2 { margin: 0; font-size: 20px; line-height: 1.25; }
p { margin: 0; }
a { color: var(--red-dark); }
.loading { padding: 48px 24px; text-align: center; color: var(--muted); }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.brand img { height: 44px; display: block; }
.brand span { font-size: 14px; line-height: 1.25; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nav a, .nav button { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.nav a.on { background: var(--red); color: #fff; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; }
main.narrow { max-width: 820px; }
main.auth { max-width: 460px; padding-top: 48px; }
.auth-logo { display: block; height: 58px; margin: 0 auto 24px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .kicker { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.lead { margin: 6px 0 0; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.stack { display: flex; flex-direction: column; gap: 16px; } .stack-s { display: flex; flex-direction: column; gap: 8px; } .mt { margin-top: 16px; } .mt-l { margin-top: 22px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.grid-prio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid var(--soft); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .between { justify-content: space-between; }
label, .label, legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input, select, textarea { display: block; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--field); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 0; padding: 10px 12px; resize: vertical; }
input[type=file] { padding: 9px 0; border: 0; background: transparent; font-size: 15px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #4499DC; outline-offset: 1px; }
.btn { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { border-color: var(--red); background: var(--red); color: #fff; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn.link { border: 0; background: transparent; padding: 0 8px; font-weight: 400; text-decoration: underline; }
.btn.danger { border-color: var(--red-dark); color: var(--red-dark); }
.btn.full { width: 100%; }
button:disabled { opacity: .45; cursor: not-allowed; }
.chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.chip.on, .seg button.on { border-color: var(--red); background: var(--red); color: #fff; }
.note { padding: 12px 14px; border-radius: 8px; background: var(--bg); font-size: 15px; }
.error { padding: 12px 14px; border-radius: 8px; background: #FBE6E5; color: #8F100E; font-size: 15px; }
.ok { padding: 12px 14px; border-radius: 8px; background: #E9F2E4; color: #24521A; font-size: 15px; }
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; overflow: hidden; background: var(--soft); accent-color: var(--red); }
progress::-webkit-progress-bar { background: var(--soft); } progress::-webkit-progress-value { background: var(--red); } progress::-moz-progress-bar { background: var(--red); }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.acc > button { width: 100%; min-height: 52px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.acc .tag { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); } .acc .tag.mod { color: var(--red-dark); }
.acc-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--soft); }
.logo-preview { display: inline-flex; padding: 8px 10px; background: #fff; border-radius: 6px; } .logo-preview img { display: block; max-height: 48px; max-width: 180px; }
.share { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; } .qr { flex: none; margin: 0 auto; width: 224px; } .qr svg { display: block; width: 100%; height: auto; } .share-main { flex: 1 1 300px; min-width: 0; }
.link-box { padding: 12px 14px; background: var(--bg); border-radius: 8px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.phone-wrap { padding: 24px 12px 48px; } .phone { max-width: 430px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.client-logo { padding: 14px 22px; } .client-logo img { display: block; max-height: 52px; max-width: 200px; }
.hero { position: relative; overflow: hidden; padding: 28px 22px; background: var(--red); color: #fff; } .hero img { position: absolute; right: -60px; bottom: -40px; width: 260px; opacity: .16; } .hero > :not(img) { position: relative; } .hero h1 { margin-top: 6px; font-size: 28px; color: #fff; } .hero p { margin-top: 10px; }
.p-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; } .p-body ul { margin: 6px 0 0; padding-left: 20px; } .pre { white-space: pre-line; }
.p-q { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; } .p-q h1, .p-body h1 { font-size: 22px; line-height: 1.2; }
.level { display: flex; gap: 10px; padding: 9px 10px; border-radius: 8px; background: var(--bg); font-size: 14px; line-height: 1.35; } .level b { flex: none; width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--beige); font-size: 13px; }
.notes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; } .notes button { height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; } .notes button.on { border-color: var(--red); background: var(--red); color: #fff; }
.pair { display: flex; gap: 8px; } .pair .btn { flex: 1 1 0; padding: 0 8px; }
.recap button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--soft); background: #fff; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; } .recap b { font-size: 17px; }
.center { text-align: center; } .pad { padding: 44px 24px; display: flex; flex-direction: column; gap: 14px; }
.res-logo { display: block; max-height: 48px; max-width: 180px; margin-bottom: 10px; }
.hl-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--soft); font-size: 15px; }
.charts { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; } .charts > .card { flex: 1 1 480px; min-width: 0; } .charts svg { display: block; width: 100%; height: auto; margin-top: 10px; }
svg text { font-family: Arial, Helvetica, sans-serif; fill: var(--ink); } svg .t-m { fill: var(--muted); } svg .t-r { fill: var(--red-dark); font-weight: 700; } svg .t-b { font-weight: 700; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 12px; border-radius: 10px; background: var(--soft); } .seg button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; } .seg button.on { background: var(--ink); border-color: var(--ink); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.users { width: 100%; border-collapse: collapse; } .users th, .users td { padding: 10px 8px; border-top: 1px solid var(--soft); text-align: left; font-size: 15px; vertical-align: middle; } .users th { border-top: 0; font-size: 13px; color: var(--muted); } .table-wrap { overflow-x: auto; }
.secret { font-size: 22px; font-weight: 700; letter-spacing: .03em; overflow-wrap: anywhere; }
input.check { width: 22px; min-height: 22px; height: 22px; accent-color: var(--red); } .row label { margin: 0; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: 14px; } .legend svg { display: inline-block; width: 18px; height: 6px; margin: 0 6px 0 0; vertical-align: middle; }
.indiv th, .indiv td { text-align: center; padding: 8px 6px; white-space: nowrap; } .indiv th:first-child, .indiv td:first-child { text-align: left; white-space: normal; min-width: 160px; } .indiv tr.avg td { background: var(--soft); }
.notice { font-size: 13px; line-height: 1.45; color: var(--muted); }
/* Écran d'une branche : tout doit tenir sur un écran de téléphone */
.p-q { padding: 14px 16px 16px; gap: 10px; } .p-q h1.display { font-size: 19px; line-height: 1.2; } .p-q .def { font-size: 14px; line-height: 1.4; }
.p-q .stack-s { gap: 5px; } .p-q .level { padding: 6px 8px; gap: 8px; font-size: 13px; line-height: 1.3; } .p-q .level b { width: 24px; height: 24px; font-size: 12px; }
.p-q legend { margin-bottom: 6px; } .p-q .notes button { height: 44px; } .p-q .pair .btn { min-height: 46px; }
.p-q.tight { gap: 8px; padding: 10px 14px 12px; } .p-q.tight h1.display { font-size: 17px; } .p-q.tight .def { font-size: 13px; } .p-q.tight .level { font-size: 12px; padding: 5px 7px; } .p-q.tight .notes button { height: 42px; } .p-q.tight .pair .btn { min-height: 44px; }
.p-q.tighter { gap: 6px; } .p-q.tighter h1.display { font-size: 16px; } .p-q.tighter .def { font-size: 12px; line-height: 1.35; } .p-q.tighter .level { font-size: 11.5px; line-height: 1.25; padding: 4px 6px; } .p-q.tighter .level b { width: 20px; height: 20px; font-size: 11px; } .p-q.tighter .notes { gap: 5px; } .p-q.tighter .notes button { height: 40px; }
.histos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px 22px; margin-top: 14px; } .histos figure { margin: 0; } .histos figure { display: flex; flex-direction: column; } .histos figcaption { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; font-size: 14px; line-height: 1.3; } .histos figcaption span { color: var(--muted); font-size: 13px; } .histos svg { display: block; width: 100%; height: auto; margin-top: 4px; }
@media (max-width: 560px) { .phone-wrap { padding: 0; } .phone { border: 0; border-radius: 0; max-width: none; } }
@media (max-width: 560px) { main { padding: 22px 16px 44px; } h1, .display { font-size: 26px; } .top-in { padding: 10px 16px; } .card { padding: 18px; } }
@media print { .top { display: none; } }
