/* Taliana — light theme only (no dark mode). No inline styles: everything goes through classes (CSP). */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3fa;
  --text: #1a2140;
  --heading: #14204d;
  --muted: #5b6585;
  --border: #e2e7f2;
  --primary: #3b5bdb;
  --primary-600: #2f4ac0;
  --primary-50: #edf1fe;
  --navy: #1b2a5c;
  --accent: #12b886;
  --accent-50: #e3f8f0;
  --accent-700: #0b8a64;
  --warn: #e08700;
  --warn-50: #fff4db;
  --danger: #e03131;
  --danger-50: #fdecec;
  --shadow-sm: 0 1px 2px rgba(20, 32, 77, .06), 0 1px 3px rgba(20, 32, 77, .05);
  --shadow: 0 8px 24px rgba(20, 32, 77, .08), 0 2px 6px rgba(20, 32, 77, .05);
  --shadow-lg: 0 24px 60px rgba(20, 32, 77, .18);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
/* Pas de barres de défilement (flèches haut/bas) dans les champs et les zones internes : on défile quand même à la molette, au doigt et au clavier. Celle de la page reste. */
*:not(html) { scrollbar-width: none; }
*:not(html)::-webkit-scrollbar { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.grow { flex: 1 1 auto; }
.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }

/* Marque */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--heading); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.brand .b2 { color: var(--primary); }
.brand .b3 { color: var(--muted); font-weight: 500; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 11px; border: 1.5px solid transparent; font: inherit; font-weight: 650; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s, border-color .12s; text-decoration: none; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(59, 91, 219, .32); }
.btn-primary:hover { background: var(--primary-600); }
.btn-accent { background: var(--accent); color: #05281e; box-shadow: 0 6px 16px rgba(18, 184, 134, .3); }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-danger { background: var(--danger-50); color: var(--danger); border-color: transparent; }
.btn-light { background: #fff; color: var(--navy); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; border-radius: 13px; }
.btn-sm { padding: .4rem .75rem; font-size: .875rem; border-radius: 9px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Cartes, badges */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.4rem; }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .35rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-planifiee { background: var(--primary-50); color: var(--primary); }
.b-confirmee { background: #e6f4fb; color: #0b7ab5; }
.b-encours { background: var(--warn-50); color: var(--warn); }
.b-terminee { background: #f1e9fd; color: #7a3fd1; }
.b-evaluee { background: var(--accent-50); color: var(--accent-700); }
.b-expiree, .b-brouillon { background: var(--surface-2); color: var(--muted); }
.b-approuve { background: var(--accent-50); color: var(--accent-700); }
.b-danger { background: var(--danger-50); color: var(--danger); }
.chip { display: inline-block; padding: .15rem .6rem; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: .8rem; font-weight: 600; margin: 0 .2rem .2rem 0; }
.chip.admin { background: var(--primary-50); color: var(--primary); }
.chip.dem { background: var(--accent-50); color: var(--accent-700); }
.chip.eva { background: var(--warn-50); color: var(--warn); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: none; }

/* The colour of the initials badge of a person (users.avatar_color, 0 to 11, drawn at random when the account is created). White text on each: contrast 4.5 or more. */
.avatar.av-0 { background: #3b5bdb; }
.avatar.av-1 { background: #c2410c; }
.avatar.av-2 { background: #2f9e44; }
.avatar.av-3 { background: #ae3ec9; }
.avatar.av-4 { background: #c2255c; }
.avatar.av-5 { background: #0b7285; }
.avatar.av-6 { background: #b45309; }
.avatar.av-7 { background: #5f3dc4; }
.avatar.av-8 { background: #1864ab; }
.avatar.av-9 { background: #087f5b; }
.avatar.av-10 { background: #a61e4d; }
.avatar.av-11 { background: #495057; }

/* Formulaires */
.field { display: block; margin-bottom: 1.1rem; }
.field > .lbl { display: block; font-weight: 650; margin-bottom: .35rem; color: var(--heading); font-size: .95rem; }
.field .hint { display: block; color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.req::after { content: " *"; color: var(--danger); }
.input, .select, .textarea { width: 100%; padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; transition: border-color .12s, box-shadow .12s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); margin-top: .2rem; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.suffix { display: flex; align-items: center; gap: .5rem; }
.suffix .input { max-width: 120px; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .6rem .8rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .85rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.who { display: flex; align-items: center; gap: .65rem; }
.who b { display: block; color: var(--heading); line-height: 1.2; }
.who span { color: var(--muted); font-size: .85rem; }

/* Onglets */
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; overflow-x: auto; }
.tab { padding: .7rem 1rem; border: 0; background: none; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab .n { background: var(--surface-2); border-radius: 999px; padding: 0 .5rem; margin-left: .35rem; font-size: .8rem; }
.panel[hidden] { display: none; }
.search-bar { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.search-bar .input { flex: 1 1 14rem; max-width: 28rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* Alertes */
.alert { display: flex; gap: .8rem; padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid transparent; align-items: flex-start; }
.alert .ic { font-weight: 800; flex: none; }
.alert.info { background: var(--primary-50); color: var(--heading); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.alert.warn { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.ok { background: var(--accent-50); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.alert.danger { background: var(--danger-50); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* Progression */
.bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-85 { width: 85%; } .w-100 { width: 100%; }

/* ===== Site public ===== */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #5b7cff55, transparent 60%), radial-gradient(800px 400px at 0% 100%, #12b88633, transparent 60%), linear-gradient(160deg, #101b44 0%, #1b2a5c 55%, #2a3fa8 100%); color: #e8ecff; padding: 5rem 0 6.5rem; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #c8d1f5; max-width: 34em; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #cfd8ff; font-weight: 650; font-size: .85rem; margin-bottom: 1.2rem; border: 1px solid rgba(255, 255, 255, .18); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }
.hero-note { margin-top: 1.4rem; color: #9fb0ee; font-size: .9rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.mock { background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.3rem; border: 1px solid var(--border); position: relative; }
.mock .mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock .timer-pill { background: var(--warn-50); color: var(--warn); font-weight: 800; padding: .25rem .8rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.mock .q { font-weight: 700; color: var(--heading); margin-bottom: .6rem; }
.mock .fake-text { border: 1.5px solid var(--border); border-radius: 10px; padding: .8rem; min-height: 96px; background: var(--surface-2); font-size: .92rem; color: var(--muted); }
.mock-float { position: absolute; right: -14px; bottom: -22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: .7rem 1rem; display: flex; gap: .7rem; align-items: center; font-weight: 650; font-size: .9rem; }
.mock-float .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-50); color: var(--accent-700); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.section { padding: 5rem 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 40em; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.feature .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.feature p { color: var(--muted); margin: 0; }
.steps { counter-reset: s; }
.step { position: relative; padding-top: 3.2rem; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step p { color: var(--muted); }
.plan { text-align: center; display: flex; flex-direction: column; gap: .5rem; }
.plan { cursor: pointer; border: 2px solid transparent; position: relative; }
.plan:hover { border-color: var(--border, #cbd5e1); }
.plan:has(input:checked) { border-color: var(--primary); box-shadow: var(--shadow); background: var(--primary-soft, rgba(59,91,219,.06)); }
.plan:has(input:checked)::after { content: "✓"; position: absolute; top: .6rem; right: .8rem; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; text-align: center; }
.plan:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.plan.pop { position: relative; }
/* The payment bar stays visible at the bottom of the window while the plans are scrolled: choosing a plan visibly leads to the button. */
.pay-bar { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 18px rgba(15, 23, 42, .12); }
.pay-bar { padding: .8rem 1.1rem; }
.pay-summary { margin: 0 0 .3rem; font-weight: 650; color: var(--heading); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 800; padding: .2rem .8rem; border-radius: 999px; letter-spacing: .04em; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--heading); letter-spacing: -.03em; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: .8rem 0; text-align: left; color: var(--muted); }
.plan li { padding: .3rem 0 .3rem 1.7rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); }
details.faq p { margin: .7rem 0 0; color: var(--muted); }
.cta-band { background: linear-gradient(135deg, var(--navy), #3b5bdb); color: #fff; border-radius: 24px; padding: 3.5rem 2rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd8ff; }
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ===== Authentification / pages centrées ===== */
.bare { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.bare-side { background: linear-gradient(160deg, #101b44, #1b2a5c 55%, #2a3fa8); color: #dfe5ff; padding: 3rem; display: flex; flex-direction: column; }
.bare-side > div { margin: auto 0; }          /* le texte au MILIEU de la colonne (le logo reste en haut) */
.bare-side .brand { color: #fff; }
.bare-side .brand .b2 { color: #9db2ff; }
.bare-side blockquote { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.4; color: #fff; }
.bare-side cite { display: block; margin-top: 1rem; font-style: normal; color: #aebaf0; font-size: .95rem; }
.bare-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; }
.bare-form { width: min(440px, 100%); }
.bare-form h1 { font-size: 2rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-block { display: flex; width: 100%; }
.theme-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; }

/* ===== Application (barre latérale) ===== */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 1.2rem .9rem; display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 0 .5rem; }
.side-nav { display: flex; flex-direction: column; gap: .15rem; }
.side-nav .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 800; padding: .9rem .7rem .3rem; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 10px; color: var(--text); font-weight: 600; }
.side-nav a:hover { background: var(--surface-2); text-decoration: none; }
.side-nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary); }
.side-nav .gl { width: 22px; text-align: center; }
.side-nav .count { margin-left: auto; background: var(--primary); color: #fff; border-radius: 999px; font-size: .75rem; padding: .05rem .5rem; font-weight: 700; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.userchip { display: flex; gap: .7rem; align-items: center; }
.who > div > span { display: block; }
.userchip b { display: block; line-height: 1.2; font-size: .92rem; color: var(--heading); }
.userchip span { font-size: .8rem; color: var(--muted); }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 2rem; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 1.5rem; margin: 0; letter-spacing: -.015em; }
.topbar .sub { color: var(--muted); font-size: .92rem; }
.menu-btn { display: none; }
.content { padding: 2rem; display: grid; gap: 1.5rem; max-width: 1280px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.stat { padding: 1.2rem 1.3rem; }
.stat .k { font-size: .82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 2.2rem; font-weight: 800; color: var(--heading); letter-spacing: -.03em; line-height: 1.1; margin: .2rem 0; }
.stat .d { font-size: .85rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.sticky { position: sticky; top: 96px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.list li:last-child { border-bottom: 0; }
.list .when { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; color: var(--heading); text-align: right; }

/* Questionnaire (édition) */
.qcard { border-left: 5px solid var(--primary); }
.qcard .qn { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-50); color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.qmeta { color: var(--muted); font-size: .85rem; }
details.hist { margin-top: .8rem; background: var(--surface-2); border-radius: 10px; padding: .7rem 1rem; }
details.hist summary { cursor: pointer; font-weight: 650; color: var(--primary); }
.ver { border-top: 1px solid var(--border); margin-top: .7rem; padding-top: .7rem; }
.ver p { margin: .3rem 0 .6rem; color: var(--muted); font-size: .92rem; }
.secret { background: var(--warn-50); border: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 10px; padding: .8rem 1rem; }
.secret .lbl { color: var(--warn); }

/* Évaluer */
.answer { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; white-space: pre-wrap; font-size: .97rem; }
.signal { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.signal:last-child { border-bottom: 0; }
.signal b.warn { color: var(--warn); }
.score { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.score input { width: 6.5rem; font-size: 2.2rem; font-weight: 800; text-align: center; }

/* Courriel simulé */
.mailframe { max-width: 680px; margin: 2.5rem auto; background: #fff; color: #1a2140; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.mailhead { background: #eef1f9; padding: 1rem 1.4rem; font-size: .88rem; color: #4b5578; line-height: 1.6; }
.mailhead b { color: #1a2140; }
.mailbody { padding: 2rem 2.2rem; }
.mailbody h2 { color: #14204d; font-size: 1.5rem; }
.mailbody p { color: #3a4468; }
.mailbody .btn-secondary { background: #fff; color: #14204d; border-color: #cfd6ea; }
.mailbody .facts { background: #f3f6fd; border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0; color: #1a2140; }
.mailfoot { padding: 1.2rem 2.2rem; border-top: 1px solid #e2e7f2; color: #7a84a6; font-size: .82rem; }

/* ===== Écran de test (candidat) ===== */
.test-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.test-top { background: var(--surface); border-bottom: 1px solid var(--border); padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; position: sticky; top: 0; z-index: 10; }
.test-top .brand img { width: 30px; height: 30px; }
.test-top .brand { font-size: 1rem; }
.clock { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; }
.clock .blk { text-align: right; line-height: 1.15; }
.clock .blk small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.clock .blk b { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--heading); font-weight: 800; }
.clock .blk.hot b { color: var(--danger); }
.saved { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-700); font-size: .85rem; font-weight: 650; }
.saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.qbar { height: 6px; background: var(--surface-2); }
.qbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; transition: width 1s linear; }
.test-main { flex: 1; width: min(860px, 100% - 2rem); margin: 2rem auto; }
.dots { display: flex; gap: .45rem; margin-bottom: 1.2rem; align-items: center; flex-wrap: wrap; }
.dots i { width: 28px; height: 8px; border-radius: 99px; background: var(--border); }
.dots i.done { background: var(--accent); }
.dots i.cur { background: var(--primary); }
.dots span { margin-left: auto; color: var(--muted); font-weight: 650; font-size: .92rem; }
.question { font-size: 1.35rem; font-weight: 700; color: var(--heading); line-height: 1.4; }
.test-area { min-height: 280px; font-size: 1.05rem; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: .8rem 1.3rem; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-weight: 600; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.rules li { display: flex; gap: .9rem; align-items: flex-start; }
.rules .ri { width: 38px; height: 38px; border-radius: 11px; background: var(--primary-50); display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.1rem; }
.bigcheck { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-50); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 2.8rem; font-weight: 800; margin: 0 auto 1.2rem; }

/* ===== Console d'administration ===== */
.adm .side { background: #0f1736; border-right-color: #1d2650; }
.adm .side .brand, .adm .side .userchip b { color: #fff; }
.adm .side .brand .b2 { color: #9db2ff; }
.adm .side-nav a { color: #c5cef0; }
.adm .side-nav a:hover { background: #1a2350; }
.adm .side-nav a[aria-current="page"] { background: #27337a; color: #fff; }
.adm .side-nav .grp, .adm .userchip span { color: #7f8bb9; }
.adm .side-foot { border-top-color: #1d2650; }
.lock { background: var(--danger-50); color: var(--danger); font-weight: 700; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; }
.lock.open { background: var(--accent-50); color: var(--accent-700); }
.plan-note { font-size: .8rem; color: var(--muted); }
.paddle-banner { background: repeating-linear-gradient(45deg, #fff4db, #fff4db 14px, #ffe9b0 14px, #ffe9b0 28px); color: #5c3b00; text-align: center; font-weight: 800; padding: .6rem; letter-spacing: .03em; }
.pay { max-width: 960px; margin: 2rem auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; padding: 0 1rem; }
.scen label { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 11px; margin-bottom: .5rem; cursor: pointer; }
.scen input { accent-color: var(--primary); }

/* Plan des maquettes */
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.index-grid a.card { display: block; color: inherit; }
.index-grid a.card:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.index-grid a.card { transition: .12s; }
.index-grid small { color: var(--muted); }

/* ===== Adaptation mobile ===== */
@media (max-width: 960px) {
  .hero-grid, .split, .pay, .bare { grid-template-columns: 1fr; }
  .bare-side { display: none; }
  .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 1rem; }
  .content { padding: 1rem; }
  .nav a:not(.btn) { display: none; }
  .sticky { position: static; }
  .mock-float, .mock-floats { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2, .stats, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3.2rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .test-top { flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 1rem; }
  .clock { gap: 1rem; }
  .clock .blk b { font-size: 1.25rem; }
  .mailbody { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Language switch (EN | FR) */
.lang-switch { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: .25rem .7rem; font-weight: 700; font-size: .85rem; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff; }
.lang-switch a:hover { text-decoration: none; }

/* Form errors and validation */
.field-error { display: block; color: var(--danger); font-size: .88rem; margin-top: .3rem; font-weight: 600; }
.input.invalid, .textarea.invalid, .select.invalid { border-color: var(--danger); }
.flash { padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600; }
.flash.ok { background: var(--accent-50); color: var(--accent-700); }
.flash.err { background: var(--danger-50); color: var(--danger); }
.bare-top { position: absolute; top: 1rem; right: 1rem; }
.bare-main { position: relative; }

/* Toasts: every message of the application */
.toast { max-width: min(560px, calc(100vw - 2rem)); text-align: center; cursor: pointer; }
.toast.ok { background: var(--accent-700); }
.toast.err { background: var(--danger); }

/* Narrow forms (account page): a field never needs the whole width of the screen */
.narrow { max-width: 420px; }
.edit-row > td { background: var(--surface-2); }
.edit-panel { display: grid; gap: .5rem; max-width: 520px; padding: .5rem 0; }
.edit-panel .field { margin-bottom: .4rem; }

/* Pop-ups of the application (static/js/popup.js), instead of the browser windows. */
.popup { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 200; }
.popup-box { background: #fff; color: var(--ink, #0f172a); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1.5rem 1.6rem 1.2rem; width: min(460px, 100%); border-top: 5px solid var(--accent-700); }
.popup-box.err { border-top-color: var(--danger); }
.popup-box p { margin: 0 0 1.2rem; font-size: 1.02rem; line-height: 1.5; white-space: pre-line; }
.popup-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: .62rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 3px; }

.plan-month { margin: 0; font-size: 1rem; color: var(--heading); }
.plan-discount { margin: 0; font-size: .85rem; font-weight: 700; color: var(--accent-700); }
.plan .tag { white-space: nowrap; }
.alert.err { background: color-mix(in srgb, var(--danger) 9%, #fff); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.plan.selected { border-color: var(--primary); box-shadow: var(--shadow); }
.plan.hover:not(.selected) { border-color: var(--border, #cbd5e1); }
.plan-discount.placeholder { visibility: hidden; }
.plan-discount { min-height: 4.65em; }

/* Language menu (all shells): a button that opens the list of interface languages. */
.lang-menu { position: relative; display: inline-block; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; border: 1.5px solid var(--border); border-radius: 999px; padding: .25rem .8rem; font-weight: 700; font-size: .85rem; color: var(--ink-soft, var(--muted)); background: var(--surface); user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: .75rem; }
.lang-menu[open] summary { border-color: var(--primary); color: var(--primary); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 150; margin: 0; padding: .3rem; list-style: none; min-width: 11rem; background: var(--surface, #fff); border: 1.5px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.lang-menu li a { display: flex; gap: .6rem; align-items: baseline; padding: .45rem .7rem; border-radius: 8px; color: var(--ink, inherit); font-weight: 500; }
.lang-menu li a:hover { background: var(--primary-50); text-decoration: none; }
.lang-menu li a .code { font-weight: 800; font-size: .8rem; color: var(--muted); min-width: 1.6rem; }
.lang-menu li a[aria-current="true"] { background: var(--primary-50); font-weight: 700; }
.lang-menu li a[aria-current="true"] .code { color: var(--primary); }
.sidebar .lang-menu ul, .side .lang-menu ul { right: auto; left: 0; top: auto; bottom: calc(100% + 6px); }
.hero .mock { padding-bottom: 2.6rem; }
.mock-floats { position: absolute; right: -14px; top: calc(100% - 30px); display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.mock-floats .mock-float { position: static; }
.eyebrow:has(br) { border-radius: 16px; padding: .5rem .95rem; line-height: 1.55; }
.eyebrow:has(br) i { align-self: flex-start; margin-top: .45rem; }
.total-box { border: 1.5px solid var(--border); border-radius: 12px; padding: .8rem 1rem; background: var(--surface-2, #f8f9fc); margin-bottom: 1rem; }
.total-box .score { font-size: 1.6rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }

/* Info-bulles (static/js/tips.js) : une bulle unique, placée par le script, affichée après un court délai. */
.tip-bubble { position: fixed; z-index: 500; max-width: min(280px, 86vw); padding: .45rem .7rem; border-radius: 9px; background: #14204D; color: #fff; font-size: .82rem; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: var(--shadow-lg); pointer-events: none; animation: tip-in .14s ease both; }
.tip-bubble[hidden] { display: none; }
@keyframes tip-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.tip-i { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; margin-left: .3rem; background: var(--primary-50); color: var(--primary); font-size: .72rem; font-weight: 800; font-style: normal; cursor: help; vertical-align: middle; }
.tip-i:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tip-bubble { animation: none; } }

/* Page d'aide */
.help-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; }
.help-toc a { padding: .3rem .8rem; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: .85rem; }
.help-toc a:hover { text-decoration: none; background: var(--primary); color: #fff; }
.help-theme { margin-bottom: 2rem; scroll-margin-top: 1rem; }
.help-theme h2 { font-size: 1.25rem; margin: 0 0 .8rem; }
.help-theme .faq p { margin: .3rem 0 .6rem; }
.help-theme .faq ul, .help-theme .faq ol { margin: .3rem 0 .6rem 1.2rem; }
.help-role { display: inline-block; font-size: .72rem; font-weight: 800; padding: .05rem .5rem; border-radius: 999px; background: var(--accent-50); color: var(--accent-700); margin-left: .4rem; vertical-align: middle; letter-spacing: .02em; }
.help-search { margin: 1rem 0; max-width: 32rem; }

.role-list { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1rem; margin: 0 0 .8rem; align-items: baseline; }
.role-list dt { margin: 0; }
.role-list dd { margin: 0; }
@media (max-width: 640px) { .role-list { grid-template-columns: 1fr; gap: .2rem; } .role-list dd { margin-bottom: .6rem; } }

/* Visite guidée */
.tour-pop { position: fixed; z-index: 600; width: min(300px, 80vw); padding: 1rem 1.1rem; border-radius: 12px; background: #14204D; color: #fff; box-shadow: var(--shadow-lg); animation: tip-in .2s ease both; }
.tour-pop p { margin: 0 0 .6rem; line-height: 1.45; }
.tour-pop .tour-count { font-size: .75rem; font-weight: 800; letter-spacing: .04em; opacity: .7; }
.tour-pop .tour-text { font-size: .95rem; font-weight: 600; }
.tour-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tour-pop .btn-ghost { color: #fff; opacity: .8; }
.tour-arrow { position: absolute; left: -8px; width: 16px; height: 16px; background: #14204D; transform: translateY(-50%) rotate(45deg); }
.tour-hl { outline: 3px solid var(--accent, #F5B301); outline-offset: 2px; border-radius: 8px; position: relative; z-index: 590; }
@media (prefers-reduced-motion: reduce) { .tour-pop { animation: none; } }

/* Questions à choix multiples (éditeur) */
.qcard[data-kind="open"] [data-only-choice], .qcard[data-kind="choice"] [data-only-open] { display: none; }
.qcard .choices { margin: .8rem 0; }
.opts { display: grid; gap: .5rem; }
.opt { display: flex; align-items: center; gap: .6rem; }
.opt .input { flex: 1; }
.opt .opt-ok { width: 1.15rem; height: 1.15rem; accent-color: var(--accent-700, #0a7d5a); flex: none; }

/* Questions à choix multiples (candidat et répondant) */
.test-area[hidden], .pick-list[hidden], [data-count][hidden] { display: none !important; }
.pick-list { display: grid; gap: .6rem; margin: .8rem 0; }
.pick { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1rem; border: 2px solid var(--line, #d9dee8); border-radius: 12px; cursor: pointer; font-size: 1.05rem; line-height: 1.5; background: #fff; }
.pick:hover { border-color: var(--primary, #3b5bdb); }
.pick:has(input:checked) { border-color: var(--primary, #3b5bdb); background: var(--primary-50, #eef2ff); }
.pick input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--primary, #3b5bdb); }

.pick-review { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .4rem; }
.pick-review li { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border: 1px solid var(--line, #d9dee8); border-radius: 10px; }
.pick-review li.is-right { border-color: #2f9e44; background: #ebfbee; }
.pick-review li.is-chosen:not(.is-right) { border-color: #e03131; background: #fff5f5; }
.pick-review .mark { width: 1.2rem; text-align: center; font-weight: 800; }
.pick-review li.is-right .mark { color: #2f9e44; }
.pick-review li.is-chosen:not(.is-right) .mark { color: #e03131; }
.pick-review .badge { margin-left: auto; }
.pick-review .badge + .badge { margin-left: .4rem; }


/* Page d'accueil : la carte « ce que vous obtenez », à droite du titre. */
.pitch { background: var(--surface); color: var(--text); border-radius: 20px; padding: 1.4rem 1.6rem 1.3rem; box-shadow: 0 24px 60px #0a1233aa; }
.pitch-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-700); background: var(--accent-50); border-radius: 999px; padding: .3rem .8rem; }
.pitch h2 { margin: .7rem 0 .8rem; font-size: 1.4rem; line-height: 1.2; color: var(--primary); }
.pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pitch li { display: flex; gap: .9rem; align-items: flex-start; }
.pitch-check { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; margin-top: .1rem; }
.pitch li b { display: block; color: var(--primary); font-size: .95rem; }
.pitch li span:not(.pitch-check) { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.pitch-why { background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 10px; padding: .6rem .85rem; margin: 0 0 1rem; }
.pitch-why b { display: block; color: var(--primary); margin-bottom: .2rem; }
.pitch-why p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.mock .mq { border: 1.5px solid var(--border); border-radius: 12px; padding: .7rem .8rem; margin-bottom: .6rem; background: var(--surface-2); }
.mock .mq-head { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.mock .mq-head b { color: var(--primary); }
.mock .mq .q { margin-bottom: .4rem; font-size: .92rem; }
.mock .mq-head .auto { color: var(--accent-700); font-weight: 700; }
.mock .mopt { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border: 1.5px solid var(--border); border-radius: 10px; margin-top: .35rem; font-size: .9rem; background: var(--surface); }
.mock .mopt i { width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid #adb5bd; flex: none; }
.mock .mopt em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 800; }
.mock .mopt.sel { border-color: var(--primary); background: var(--primary-50); }
.mock .mopt.sel i { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, transparent 50%); }
.mock .mopt.ok { border-color: #2f9e44; background: #ebfbee; }
.mock .mopt.ok i { border-color: #2f9e44; background: radial-gradient(circle, #2f9e44 45%, transparent 50%); }
.mock .mopt.ok em { color: #2f9e44; }
.mock .mopt.bad { border-color: #e03131; background: #fff5f5; }
.mock .mopt.bad em { color: #e03131; }
.mock .timer-pill.ok { background: var(--accent-50); color: var(--accent-700); }
@media (prefers-reduced-motion: reduce) {
  .mock-slides .slide { animation: none; opacity: 0; }
  .mock-slides .slide:first-child { opacity: 1; }
  .mock-dots i { animation: none; }
  .mock-dots i:first-child { background: #fff; }
}

/* Tests sans courriel */
.test-banner { border-width: 2px; border-style: dashed; }
.test-card { border: 2px dashed var(--border); background: var(--surface-2, #f8f9fc); }

.google-btn { display: flex; align-items: center; justify-content: center; gap: .7rem; border: 1.5px solid var(--border); background: #fff; color: #3c4043; font-weight: 700; }
.google-btn .g-mark { font-weight: 800; font-size: 1.1rem; background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Un bouton désactivé ne reçoit pas la souris : son enveloppe porte l'info-bulle (qui explique pourquoi il est désactivé). */
.tip-wrap { display: inline-block; }
.tip-wrap button:disabled { pointer-events: none; }

.mock .mrow { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mock .mfield { border: 1.5px solid var(--border); border-radius: 10px; padding: .35rem .7rem; margin-top: .4rem; background: var(--surface); }
.mock .mfield small { display: block; font-size: .68rem; font-weight: 700; color: var(--muted); }
.mock .mfield span { font-size: .9rem; color: var(--heading); }

/* Évaluations d'une demande : qui a écrit quoi (une couleur par évaluateur) */
.ev-summaries { display: grid; gap: .8rem; margin-top: .8rem; }
.ev-card, .ev-note { border: 1.5px solid var(--border); border-left-width: 6px; border-radius: 12px; padding: .7rem .9rem; background: var(--surface); scroll-margin-top: 1rem; }
.ev-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.ev-who { font-weight: 800; color: var(--heading); }
.ev-notes { display: grid; gap: .6rem; margin-top: .9rem; }
.ev-c0 { border-left-color: #3b5bdb; } .ev-c1 { border-left-color: #f08c00; } .ev-c2 { border-left-color: #2f9e44; } .ev-c3 { border-left-color: #ae3ec9; }
.ev-c0 .ev-who { color: #3b5bdb; } .ev-c1 .ev-who { color: #d9730d; } .ev-c2 .ev-who { color: #2f9e44; } .ev-c3 .ev-who { color: #ae3ec9; }
.ev-card:target { outline: 3px solid var(--accent, #f5b301); outline-offset: 2px; }

/* Listes : nom du candidat sur une ligne (coupé avec … s'il est très long), dates et avancement jamais coupés */
.nowrap { white-space: nowrap; }
.table .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }
.table .who > div { min-width: 0; }
.who-one { line-height: 1.25; margin-bottom: .25rem; }
.who-one b, .who-one span { display: block; }
.who-one span { font-size: .82rem; }

.steps { margin: .4rem 0 .6rem 1.2rem; padding: 0; }
.steps li { margin: .15rem 0; }

/* Pastille de l'utilisateur : le nom de l'organisation et son numéro sur deux lignes, jamais coupés */
.userchip > div { min-width: 0; }
.userchip > div span { display: block; overflow-wrap: anywhere; line-height: 1.25; }

.topbar .company { margin-bottom: .1rem; }

/* Boîte de recherche qui choisit dans une longue liste (static/js/picker.js) */
.picker { position: relative; }
.picker-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.picker-chips:empty { display: none; }
.pick-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .3rem .25rem .7rem; border-radius: 999px; background: var(--primary-50); color: var(--text); max-width: 100%; }
.pick-label { overflow-wrap: anywhere; }
.pick-x { border: 0; background: transparent; color: var(--text); font-size: 1.1rem; line-height: 1; width: 1.6rem; height: 1.6rem; border-radius: 50%; cursor: pointer; }
.pick-x:hover, .pick-x:focus-visible { background: var(--surface-2); }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; margin: .2rem 0 0; padding: .25rem; list-style: none; background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 18rem; overflow-y: auto; }
.picker-list li { padding: .5rem .65rem; border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.picker-list li[aria-selected="true"], .picker-list li[role="option"]:hover { background: var(--primary-50); }
.picker-list li.picker-none { cursor: default; color: var(--muted, #667); }

/* Un attribut hidden cache toujours l'élément, même quand sa classe lui donne un display (l'avertissement « problème technique » du test restait visible) */
[hidden] { display: none !important; }

/* Petite pastille de couleur d'une personne (sans lettre), à côté de son nom dans les listes */
.avatar.dot { width: 11px; height: 11px; margin-right: .4rem; vertical-align: baseline; }
/* La pastille reste sur la ligne du nom (le nom et le courriel, eux, sont chacun sur leur ligne) */
.who-one > .avatar.dot { display: inline-block; }
.who-one > .avatar.dot + b { display: inline; }

/* Eye button on password fields (static/js/pwtoggle.js) */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 2.9rem; }
.pw-eye { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted, #667085); cursor: pointer; }
.pw-eye:hover { color: var(--text); }
.pw-eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Switch between login and sign-up screens */
.auth-switch { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); text-align: center; }
.auth-switch p { margin: 0 0 .6rem; color: var(--muted, #667085); }
.auth-switch .btn { font-weight: 600; border: 1.5px solid var(--primary); color: var(--primary); }

/* Pop-up forms (static/js/modal.js) */
.popup[hidden] { display: none; }
.popup-box.modal-box { width: min(520px, 100%); max-height: 92vh; overflow-y: auto; }
.modal-box h3 { margin: 0 0 1rem; }
.modal-box .popup-actions { margin-top: 1rem; }

/* Payment result page */
.pay-result { max-width: 640px; margin-inline: auto; text-align: center; padding: 2rem 1.5rem; border-top: 5px solid var(--success, #16a34a); }
.pay-result.pay-ko { border-top-color: var(--danger); }
.pay-result .pay-icon { width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: #fff; background: var(--success, #16a34a); }
.pay-result.pay-ko .pay-icon { background: var(--danger); }
.pay-result .kv { text-align: left; max-width: 360px; margin-inline: auto; }
.pay-result .row { justify-content: center; flex-wrap: wrap; }

/* Google button when Google sign-in is not configured */
.google-btn:disabled { opacity: .55; cursor: not-allowed; }
