/* Sora (SIL Open Font License, voir fonts/OFL.txt) : logo, titres et mots en gras. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #6b6f76;
  --faint: #9a9ea5;
  --border: #e6e6e3;
  --border-strong: #d4d4d0;
  --hover: #f4f4f2;
  --accent: #0038B8;
  --accent-text: #ffffff;
  --accent-soft: #eef2fb;
  --danger: #c4321f;
  --p1: #d92d20; --p1-bg: #fdecea;
  --p2: #e07a0b; --p2-bg: #fef3e6;
  --p3: #0038B8; --p3-bg: #eef2fb;
  --p4: #9a9ea5; --p4-bg: #f2f2f0;
  --ok: #12805c;
  --radius: 6px;
  --logo: #0038B8; /* bleu du drapeau israélien */
  --display: 'Sora', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.error { color: var(--danger); min-height: 1em; margin: 6px 0 0; font-size: 13px; }
code, kbd { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--hover); border: 1px solid var(--border); padding: 0 4px; border-radius: 4px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Barre du haut : fine, onglets soulignés */
.topbar { display: flex; align-items: stretch; gap: 20px; padding: 0 20px; height: 48px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; letter-spacing: -0.03em; color: var(--logo); }
.brand .logo-mark { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.tabs { display: flex; gap: 2px; flex: 1; align-items: stretch; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 10px; color: var(--muted); cursor: pointer; font: inherit; font-size: 13.5px; white-space: nowrap; }
.tabs button { height: auto; }
.tabs button:hover { color: var(--text); background: none; }
.tabs button.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.who { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.who .link { color: var(--muted); font-size: 12.5px; }
.who .link:hover { color: var(--text); }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stack > * + * { margin-top: 20px; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.section-head h2 { margin: 0; }

/* Formulaires */
label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
input[type=text], input[type=search], input[type=email], input[type=password], input:not([type]), textarea, select {
  display: block; width: 100%; margin-top: 4px; padding: 7px 10px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 5px; min-height: 34px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; }
label.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-size: 13px; }
label.check input { margin-top: 2px; }
fieldset { min-width: 0; }

button { font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 5px; padding: 0 12px; height: 32px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
button:hover { background: var(--hover); }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
button.primary:hover { background: #002e96; }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover { background: var(--hover); color: var(--text); }
button.danger { color: var(--danger); }
button.link { border: 0; background: none; padding: 0; height: auto; color: var(--accent); font-weight: 500; }
button.link:hover { text-decoration: underline; background: none; }
button.small { height: 26px; padding: 0 9px; font-size: 12.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }

/* Connexion */
.login { max-width: 360px; margin: 12vh auto 0; background: none; border: 0; padding: 0; }
.login h1.brand { font-size: 22px; margin-bottom: 28px; }
.login .lead { font-size: 15px; color: var(--text); margin: 0 0 24px; }
.login button.primary { width: 100%; height: 36px; margin-top: 4px; }
.login details { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 14px; }
.login summary { cursor: pointer; }

/* Priorités : petit carré de couleur + libellé, sans pastille */
.p1 { --c: var(--p1); } .p2 { --c: var(--p2); } .p3 { --c: var(--p3); } .p4 { --c: var(--p4); }
.badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; align-self: center; font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--faint)); }
.badge.p4 { color: var(--muted); }

/* Sélecteur de priorité : contrôle segmenté */
.prio-picker { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; flex-wrap: wrap; }
.prio-picker legend { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; padding: 0; float: left; width: 100%; }
.prio-picker label { margin: 0; color: var(--text); }
.prio-picker input { position: absolute; opacity: 0; }
.prio-picker span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); margin-left: -1px; cursor: pointer; font-size: 13px; background: var(--surface); }
.prio-picker label:first-of-type span { border-radius: 5px 0 0 5px; margin-left: 0; }
.prio-picker label:last-of-type span { border-radius: 0 5px 5px 0; }
.prio-picker span::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.prio-picker input:checked + span { background: var(--hover); border-color: var(--text); position: relative; z-index: 1; font-weight: 600; }
.prio-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; position: relative; z-index: 2; }

/* Ma tâche en cours */
.current { padding: 18px 20px; }
.current .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.current .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #e3f3ec; }
.current .title { font-size: 20px; font-weight: 600; margin: 8px 0 10px; letter-spacing: -0.015em; }
.current .meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.current .meta select { width: auto; margin: 0; min-height: 28px; padding: 3px 8px; font-size: 13px; }
.timer { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }

.alert { border-color: var(--p1); box-shadow: inset 3px 0 0 var(--p1); }
.alert .title { font-weight: 600; font-size: 15px; margin: 4px 0; }

/* Tâche confiée par le N+1 : notification avec accepter / décliner */
.incoming { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); padding: 16px 18px; }
.incoming .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--accent); }
.incoming .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .incoming .dot { animation: none; } }
.incoming-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 2px; }
.incoming .title { font: 600 17px var(--display); letter-spacing: -0.01em; }
.incoming .note { margin: 8px 0 0; padding: 6px 10px; background: var(--accent-soft); border-radius: 5px; }
.incoming .actions { justify-content: flex-end; }
.decline-form { margin-top: 10px; }
.decline-form label { font-size: 12.5px; }
button.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; font-family: var(--display); }
button.danger-solid:hover { background: #a92a1a; }
.notif-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.pill { display: inline-block; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/17px var(--display); text-align: center; vertical-align: 1px; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11.5px; font-weight: 500; line-height: 18px; }
.tag.wait { background: var(--p2-bg); color: #9a5200; }
.tag.ok { background: #e3f3ec; color: var(--ok); }
.declined .row .grow { min-width: 220px; }

/* Listes */
.row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.row:first-of-type { border-top: 0; }
.row .grow { flex: 1; min-width: 160px; }

/* Cartes salarié (affichage « Cartes ») */
.member { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.member header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.member h3 { margin: 0; }
.member .task { padding: 0; }
.member .task .t { font-weight: 500; }
.member footer { display: flex; justify-content: flex-end; align-items: center; margin-top: auto; gap: 8px; padding-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.working::before { background: var(--ok); }
.status.idle { color: var(--text); }
.status.idle::before { background: transparent; border: 1.5px solid var(--p2); width: 5px; height: 5px; }

/* Chiffres clés : une seule bande */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stats .stat { border: 0; border-radius: 0; border-left: 1px solid var(--border); padding: 12px 16px; background: none; }
.stats .stat:first-child { border-left: 0; }
.stat .n { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

dialog { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); padding: 20px; width: min(500px, calc(100vw - 32px)); box-shadow: 0 16px 48px rgb(16 24 40 / 0.18); }
dialog::backdrop { background: rgb(15 18 24 / 0.35); }
dialog h2 { font-size: 16px; }
.hint { font-size: 12.5px; margin: 0 0 10px; min-height: 1em; }
.hint.up { color: var(--p1); }

.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 9px 14px; border-radius: 6px; font-size: 13px; z-index: 20; max-width: calc(100vw - 32px); }
.empty { color: var(--muted); font-size: 13px; }

.form-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.secret { background: var(--accent-soft); color: var(--text); padding: 10px 12px; border-radius: 6px; font-size: 13px; margin: 10px 0 0; word-break: break-word; }

/* Tableaux denses */
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg); white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfcfb; }
td select { margin: 0; width: auto; min-width: 130px; min-height: 28px; padding: 3px 8px; }
td.nowrap { white-space: nowrap; text-align: right; }
tr.inactive td { opacity: 0.5; }
.card > .table-wrap, .card.table-wrap { padding: 0; }
.card > h2 + .table-wrap { margin: 0 -16px -16px; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 16px 0; gap: 8px 16px; }
  .tabs { order: 3; flex-basis: 100%; overflow-x: auto; height: 38px; }
  .who { margin-left: auto; }
}

/* Logo, titres et mots en gras en Sora (choix d'Ewan) */
.brand, h1, h2, h3, strong, b, .stat .n, .current .title, .alert .title, button.primary { font-family: var(--display); }
.brand { font-weight: 800; }
h1, h2, h3, strong, b { color: var(--logo); }

/* Pages légales */
.legal { max-width: 720px; }
.legal h2 { margin-top: 26px; }
.legal p, .legal li { line-height: 1.65; }
.legal a { color: var(--accent); }
mark.todo { background: #fff3c4; color: #7a4b00; padding: 0 3px; border-radius: 3px; }
.site-footer { text-align: center; font-size: 12px; color: var(--faint); padding: 0 16px 24px; }
.site-footer a { color: var(--faint); text-decoration: none; }
.site-footer a:hover { color: var(--muted); text-decoration: underline; }

/* Barre d'outils, vue Direction */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input { flex: 1 1 240px; margin: 0; }
.toolbar select { width: auto; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 5px; overflow: hidden; height: 34px; }
.seg button { border: 0; border-radius: 0; height: 100%; padding: 0 12px; background: var(--surface); color: var(--muted); }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.on { background: var(--hover); color: var(--text); font-weight: 600; }
.team-table td:first-child, .org-table td:first-child { width: 30%; }
td.num { font-variant-numeric: tabular-nums; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); }
.dist { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--hover); min-width: 120px; }
.dist span { display: block; height: 100%; }
.d1 { background: var(--p1); } .d2 { background: var(--p2); } .d3 { background: var(--p3); } .d0 { background: #d6d6d2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.legend span { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.count { font-size: 12.5px; color: var(--muted); margin: 0; }
#team-count { margin: 10px 0 -10px; }

/* Recherche rapide « Confier une tâche à… » : barre de commande */
.quick-assign { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 44px; }
.quick-assign:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.qa-label { margin: 0; font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--logo); white-space: nowrap; }
.combo { position: relative; flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; align-items: center; }
.combo input { margin: 0; border: 0; box-shadow: none !important; padding: 0; min-height: 0; height: 100%; background: none; }
.combo ul { position: absolute; z-index: 10; left: -12px; right: -46px; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 32px rgb(16 24 40 / 0.14); max-height: 340px; overflow-y: auto; }
.combo li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 5px; cursor: pointer; }
.combo li[aria-selected="true"] { background: var(--hover); }
.combo li.empty { cursor: default; }
@media (max-width: 520px) { .quick-assign kbd { display: none; } }

/* Page d'accueil */
body.is-landing main { max-width: 1040px; padding-top: 0; }
.landing { padding-bottom: 20px; }
.landing a { color: inherit; text-decoration: none; }
.l-nav { display: flex; align-items: center; gap: 24px; height: 64px; }
.l-nav .brand { font-size: 18px; }
.l-links { display: flex; gap: 20px; flex: 1; font-size: 13.5px; color: var(--muted); }
.l-links a:hover { color: var(--text); }
.l-hero { padding: 72px 0 40px; max-width: 760px; }
.l-kicker { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; letter-spacing: 0.02em; }
.l-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 20px; }
.l-sub { font-size: 17px; line-height: 1.55; color: #3b3f46; margin: 0 0 28px; max-width: 620px; }
.l-cta { display: flex; flex-wrap: wrap; gap: 10px; }
button.l-big { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 6px; }
.l-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.l-shot { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 rgb(0 0 0 / 0.02), 0 24px 48px -24px rgb(16 24 40 / 0.18); }
.l-shot-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.l-shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd8; }
.l-shot-bar em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 10px; }
.l-shot table { font-size: 13.5px; }
.l-shot th { background: var(--surface); }
.l-shot td:first-child { width: 28%; }
.l-fake-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 5px; font-size: 12.5px; font-weight: 500; }
.l-section { padding: 72px 0 0; }
.l-section > h2, .l-split h2, .l-final h2 { font-size: 24px; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 24px; }
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.l-steps li { padding: 20px 24px 0 0; }
.l-steps li + li { padding-left: 24px; border-left: 1px solid var(--border); }
.l-num { display: block; font: 600 12px var(--display); color: var(--faint); margin-bottom: 14px; }
.l-steps h3, .l-grid h3 { font-size: 15px; margin: 0 0 6px; }
.l-steps p, .l-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.l-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.l-split h2 { margin-bottom: 12px; }
.l-split p { font-size: 15px; line-height: 1.55; margin: 0; }
.l-checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.l-checks li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5; color: #3b3f46; }
.l-checks li::before { content: ''; flex-shrink: 0; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }
.l-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.l-grid > div { padding: 20px 20px 0 0; }
.l-grid > div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.l-final { margin-top: 80px; padding: 48px 0 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.l-final h2 { margin: 0; }
@media (max-width: 820px) {
  .l-links { display: none; }
  .l-nav { justify-content: space-between; }
  .l-hero { padding-top: 40px; }
  .l-steps, .l-grid { grid-template-columns: 1fr; }
  .l-steps li, .l-steps li + li, .l-grid > div, .l-grid > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .l-split { grid-template-columns: 1fr; gap: 20px; }
  .l-shot td:nth-child(3), .l-shot th:nth-child(3), .l-shot td:nth-child(4), .l-shot th:nth-child(4) { display: none; }
  .l-section { padding-top: 56px; }
}
.landing a.brand { color: var(--logo); }
/* Dégradé bleu et blanc en fond de la page d'accueil */
body.is-landing {
  background:
    radial-gradient(1200px 620px at 78% -8%, rgb(0 56 184 / 0.20), transparent 62%),
    radial-gradient(900px 520px at 0% 8%, rgb(0 56 184 / 0.10), transparent 60%),
    linear-gradient(180deg, #e9effc 0%, #f4f7fd 38%, #ffffff 72%);
  background-repeat: no-repeat;
  min-height: 100vh;
}
body.is-landing .l-final { border-top-color: #e3e8f3; }

.l-trust { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.l-trust span { font: 700 10.5px var(--display); letter-spacing: 0.06em; color: var(--accent); border: 1px solid #c9d5f2; background: #fff; border-radius: 4px; padding: 2px 6px; }
.l-fine { font-size: 12.5px; color: var(--muted); margin-top: 14px !important; line-height: 1.55; }

/* Inscription à la démo */
.demo-signup { max-width: 440px; margin: 8vh auto 48px; }
.demo-signup a.brand { color: var(--logo); font-size: 18px; text-decoration: none; margin-bottom: 28px; }
.demo-signup h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--logo); }
.demo-signup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.demo-signup label.consent { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 4px 0 16px; }
.demo-signup label.consent a { color: var(--accent); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-between h2 { margin: 0; }
a.button { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 4px 10px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 13px; }
a.button:hover { background: var(--hover); }
.leads .row-between { margin-bottom: 14px; }
.leads td.nowrap { text-align: left; }
.leads td a { color: var(--accent); }

/* Connexion : deux colonnes, formulaire à gauche, aperçu du produit à droite */
.auth { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 72px; align-items: center; min-height: calc(100vh - 150px); padding: 24px 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 56px; }
.auth-top a.brand { font-size: 18px; text-decoration: none; color: var(--logo); }
.auth-main h1 { font-size: 26px; letter-spacing: -0.025em; margin: 0 0 6px; color: var(--text); }
.auth-main .lead { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.auth-main form button.primary { height: 36px; padding: 0 18px; margin-top: 4px; }
.auth-main #signup-form h2, .auth-main #forgot-form h2, .auth-main #forgot-sent h2, .auth-main #reset-form h2, .auth-main #reset-invalid h2 { font-size: 16px; margin: 8px 0 16px; }
.auth-alt { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-alt p { margin: 0 0 6px; }
.auth-main details { margin-top: 20px; }
.auth-main summary { cursor: pointer; }
.auth-side { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 48px 44px; border: 1px solid var(--border); border-radius: 10px;
  background: radial-gradient(700px 380px at 90% 0%, rgb(0 56 184 / 0.16), transparent 65%), linear-gradient(180deg, #eef2fc, #f8fafe); }
.auth-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--logo); }
.auth-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 20px 40px -24px rgb(16 24 40 / 0.2); }
.auth-list li { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.auth-list li:last-child { border-bottom: 0; }
.auth-list b { font-family: var(--display); color: var(--logo); font-weight: 600; }
.auth-note { margin: 0; max-width: 46ch; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; gap: 0; min-height: 0; max-width: 420px; margin: 0 auto; }
  .auth-side { display: none; }
  .auth-top { margin-bottom: 40px; }
}
.brand { position: relative; }
.brand sup.tm { align-self: center; font-family: system-ui, sans-serif; font-size: 0.4em; font-weight: 600; letter-spacing: 0; line-height: 1; margin-left: -5px; transform: translateY(-0.95em); opacity: 0.8; }

/* Contact */
.l-contact { margin-top: 48px; padding: 32px 0 8px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.l-contact h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.02em; }
.l-contact p { margin: 0; max-width: 52ch; font-size: 14px; }
.l-mail { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--logo); text-decoration: none; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 9px 14px; background: var(--surface); }
.l-mail:hover { background: var(--accent-soft); }
.landing a.l-mail { color: var(--logo); }
/* Page d'accueil condensée */
.l-hero { padding: 56px 0 32px; }
.l-hero h1 { font-size: clamp(32px, 5.2vw, 54px); max-width: 15ch; }
.l-sub { font-size: 18px; max-width: 560px; }
.l-section#fonctionnement { padding-top: 48px; }
.l-steps h3 { font-size: 16px; }
.l-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; margin-bottom: 10px; }
.l-trello { margin: 28px 0 0; padding: 14px 18px; border: 1px solid #c9d5f2; border-radius: 8px; background: #fff; font-size: 15px; color: #3b3f46; }
.l-trello b { color: var(--logo); }
.l-rgpd { padding-top: 56px; }
.l-rgpd h2 { margin-bottom: 16px; }
.l-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.l-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 20px; background: #fff; font-size: 14px; color: #3b3f46; }
.l-chips li::before { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.landing .l-fine a, .landing a.l-mail-inline { color: var(--logo); text-decoration: underline; text-underline-offset: 2px; }
.l-final { margin-top: 56px; padding: 36px 0 16px; }
.l-final h2 { margin: 0 0 6px !important; }
.l-final p { margin: 0; font-size: 14px; }
.l-chips li small { font: 600 11px var(--display); color: var(--accent); opacity: .75; }
.l-hero .l-kicker { font: 600 15px var(--display); color: var(--logo); letter-spacing: -0.01em; margin-bottom: 16px; }

/* Double authentification et journal de sécurité */
.badge.mfa { color: #17663A; }
.badge.mfa::before { background: #1F8A4C; }
.mfa-card { max-width: 640px; margin: 0 auto; }
.mfa-steps { padding-left: 20px; margin: 12px 0 0; }
.mfa-steps > li { margin-bottom: 16px; }
.mfa-qr svg { width: 200px; height: 200px; display: block; margin: 10px 0; background: #fff; }
.mfa-secret { word-break: break-all; }
.mfa-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.mfa-inline input { width: auto; flex: 1 1 140px; max-width: 220px; }
.mfa-codes { background: var(--accent-soft); padding: 12px 14px; border-radius: 6px; margin: 12px 0; }
.codes { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.codes code { font-size: 14px; letter-spacing: .5px; }
.ok-msg { color: #17663A; font-weight: 600; }
.audit td { vertical-align: top; }
.audit td.nowrap { text-align: left; }
.audit tr.warn td:first-child { box-shadow: inset 3px 0 0 #C2410C; }
