/* ============================================================
   Ewakoul Jobs — feuille de style de la Mini App.
   Identité « ndop » : tissu indigo à motifs blancs (losanges,
   diagonales), ourlet ocre. Polices : Familjen Grotesk (titres),
   Figtree (texte), repli système.
   Aucune règle ne dépend d'un style en ligne (CSP stricte) : les
   largeurs variables passent par les classes .pct-N, les couleurs
   de Telegram par des variables posées sur <html> (CSSOM).
   ============================================================ */

/* ---------- jetons : clair ---------- */
:root {
  color-scheme: light;
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --ink: #16203a;
  --ink-dim: #545d73;
  --line: #e3e0d7;
  --line-strong: #c9c4b6;
  --link: #1f3a6b;

  --brand: #1f3a6b;
  --brand-2: #2c4f8f;
  --brand-ink: #1f3a6b;
  --brand-soft: #e7edf8;
  --btn-bg: #1f3a6b;
  --btn-bg-hover: #2a4b86;

  --accent: #e0a526;
  --accent-ink: #7d5200;
  --accent-soft: #fbf1d9;

  --ok: #2f8f5b;
  --ok-ink: #1d6a42;
  --ok-soft: #e3f3ea;
  --danger: #c2412d;
  --danger-ink: #a33220;
  --danger-soft: #fbe7e3;

  --band: #1f3a6b;
  --band-2: #2c4f8f;
  --focus: #1f3a6b;
  --focus-ring: rgba(31, 58, 107, .22);
  --shadow: 0 1px 2px rgba(22, 32, 58, .05), 0 8px 22px -14px rgba(22, 32, 58, .22);
  --shadow-up: 0 -8px 24px -16px rgba(22, 32, 58, .3);
  --scrim: rgba(10, 14, 24, .5);
  --toast-bg: #141b2a;

  --display: 'Familjen Grotesk', 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;

  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-t: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --tabbar-h: 62px;
  --dock: var(--safe-b);

  /* motif ndop (blanc sur indigo) et ourlet en dents de scie */
  --ndop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='1.3'%3E%3Cpath d='M0 0l44 44M44 0L0 44'/%3E%3Cpath d='M22 9l13 13-13 13L9 22z'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.18'%3E%3Cpath d='M22 18l4 4-4 4-4-4z'/%3E%3Ccircle cx='0' cy='22' r='1.6'/%3E%3Ccircle cx='44' cy='22' r='1.6'/%3E%3Ccircle cx='22' cy='0' r='1.6'/%3E%3Ccircle cx='22' cy='44' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --ndop-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%231f3a6b' stroke-opacity='.06' stroke-width='1.2'%3E%3Cpath d='M0 0l44 44M44 0L0 44'/%3E%3Cpath d='M22 9l13 13-13 13L9 22z'/%3E%3C/g%3E%3C/svg%3E");
  --hem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M0 0h14L7 8z'/%3E%3C/svg%3E");
}

/* ---------- jetons : sombre (avant JS : préférence système ; après : data-theme) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1119;
  --surface: #141b27;
  --surface-2: #19212f;
  --ink: #e8ecf3;
  --ink-dim: #a3adbf;
  --line: #263044;
  --line-strong: #39455c;
  --link: #a9c1f0;
  --brand: #2c4f8f;
  --brand-2: #3a63a8;
  --brand-ink: #a9c1f0;
  --brand-soft: #1b2944;
  --btn-bg: #3a63a8;
  --btn-bg-hover: #4672bb;
  --accent: #f0bc4c;
  --accent-ink: #f3c662;
  --accent-soft: #2b2313;
  --ok: #3aa36b;
  --ok-ink: #6fd19b;
  --ok-soft: #12271c;
  --danger: #d4553f;
  --danger-ink: #ff8a75;
  --danger-soft: #2e1713;
  --band: #132748;
  --band-2: #1f3a6b;
  --focus: #f0bc4c;
  --focus-ring: rgba(240, 188, 76, .28);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 26px -16px rgba(0, 0, 0, .7);
  --shadow-up: 0 -8px 24px -14px rgba(0, 0, 0, .7);
  --scrim: rgba(2, 4, 8, .62);
  --toast-bg: #232d40;
  --ndop-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.035' stroke-width='1.2'%3E%3Cpath d='M0 0l44 44M44 0L0 44'/%3E%3Cpath d='M22 9l13 13-13 13L9 22z'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0c1119;
    --surface: #141b27;
    --surface-2: #19212f;
    --ink: #e8ecf3;
    --ink-dim: #a3adbf;
    --line: #263044;
    --line-strong: #39455c;
    --link: #a9c1f0;
    --brand: #2c4f8f;
    --brand-ink: #a9c1f0;
    --brand-soft: #1b2944;
    --btn-bg: #3a63a8;
    --accent: #f0bc4c;
    --accent-ink: #f3c662;
    --accent-soft: #2b2313;
    --band: #132748;
    --band-2: #1f3a6b;
    --focus: #f0bc4c;
    --toast-bg: #232d40;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body.has-tabbar { --dock: calc(var(--tabbar-h) + var(--safe-b)); }
body.has-actionbar { --dock: calc(72px + var(--safe-b)); }
body.has-mainbar { --dock: calc(80px + var(--safe-b)); }
body.has-tabbar.has-mainbar { --dock: calc(var(--tabbar-h) + 80px + var(--safe-b)); }
body.has-sheet { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
img, svg { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-dim); }
.lead { font-size: 17px; line-height: 1.55; color: var(--ink-dim); }
.prose { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.copy-buffer { position: fixed; top: -1000px; left: -1000px; opacity: 0; }

/* ---------- cadre de l'application ---------- */
.app {
  position: relative;
  max-width: 640px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
}
#main { padding-bottom: calc(var(--dock) + 28px); outline: none; }
@media (min-width: 700px) {
  body { background: var(--bg) var(--ndop-faint) repeat; }
  .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(22, 32, 58, .35); }
}
.view { animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- bandeaux du haut ---------- */
.banners:empty { display: none; }
.banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 7px 14px; font-size: 13px; font-weight: 600; text-align: center;
}
.banner .icon { width: 16px; height: 16px; }
.banner-demo { background: var(--accent-soft); color: var(--accent-ink); border-bottom: 1px solid var(--line); }
.banner-dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); flex: none; }
.banner-offline { background: var(--danger-soft); color: var(--danger-ink); }

/* ---------- bandeau « ndop » ---------- */
.band {
  position: relative;
  isolation: isolate;
  color: #fff;
  background-color: var(--band);
  background-image: var(--ndop), linear-gradient(165deg, var(--band-2) 0%, var(--band) 72%);
  background-size: 44px 44px, auto;
  background-position: -6px -2px, 0 0;
  padding: calc(14px + var(--safe-t)) 16px 24px;
  margin-bottom: 18px;
}
.band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px; height: 8px;
  background: var(--band);
  -webkit-mask: var(--hem) repeat-x 0 0 / 14px 8px;
  mask: var(--hem) repeat-x 0 0 / 14px 8px;
}
.band::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 16px);
  opacity: .85;
}
.band-inner { position: relative; display: grid; gap: 12px; }
.band-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.band-titles { flex: 1; min-width: 0; }
.band-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #f3cf7a; margin-bottom: 2px; overflow-wrap: anywhere;
}
.band-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: 30px; line-height: 1.06; text-wrap: balance; overflow-wrap: anywhere;
}
.band-lead { color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.5; max-width: 52ch; }
.band-sm .band-title { font-size: 23px; }
.band-sm { padding-bottom: 20px; }
.band-lg { padding-top: calc(28px + var(--safe-t)); padding-bottom: 34px; }
.band-lg .band-title { font-size: 34px; }
.band-offer .band-title { font-size: 24px; line-height: 1.15; }
.band-back, .band-btn {
  flex: none; width: 42px; height: 42px; margin-top: -2px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff;
}
.band-back:hover, .band-btn:hover { background: rgba(255, 255, 255, .18); }
.band-back:focus-visible, .band-btn:focus-visible { outline-color: #f3cf7a; }
.band-actions { display: flex; gap: 8px; }

/* recherche posée sur le bandeau */
.search-box { position: relative; display: flex; align-items: center; }
.search-box > .icon { position: absolute; left: 14px; color: var(--ink-dim); pointer-events: none; z-index: 1; }
.input.input-search { padding-left: 46px; padding-right: 46px; }
.input-search::-webkit-search-cancel-button { display: none; }
.search-band .input { border-color: transparent; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .45); min-height: 50px; border-radius: 14px; }
.search-clear { position: absolute; right: 4px; color: var(--ink-dim); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px;
  border: 1.5px solid transparent; border-radius: 13px;
  font: 600 15.5px/1.2 var(--body); text-decoration: none; text-align: center;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:active:not([disabled]) { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--btn-bg); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--btn-bg-hover); }
.btn-ghost { background: var(--surface); color: var(--brand-ink); border-color: var(--line-strong); }
.btn-ghost:hover:not([disabled]) { border-color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #241703; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger-ink); border-color: var(--line-strong); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 54px; font-size: 16.5px; border-radius: 15px; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite;
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-dim);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.link { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
.link-arrow::after { content: " →"; }
.link-btn {
  border: 0; background: none; padding: 8px 0; color: var(--link);
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--brand-ink); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- barre d'outils collante : onglets + filtres ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; gap: 10px;
  padding: 10px 0 10px;
  margin-top: -6px;
  background: var(--bg);
}
.toolbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(var(--bg), transparent); pointer-events: none;
}
.toolbar-plain { position: static; margin-top: -4px; padding: 0 0 6px; }
.toolbar-plain::after { display: none; }
.tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  margin: 0 16px; padding: 4px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink-dim); font: 700 15px/1.2 var(--body);
}
.tab[aria-selected="true"] { background: var(--btn-bg); color: #fff; box-shadow: 0 2px 8px -2px rgba(22, 32, 58, .35); }
.tab-count { font-size: 12px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 16px;
  /* fondu à droite : on devine qu'il y a d'autres filtres */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 14.5px/1.2 var(--body); white-space: nowrap;
}
.chip.is-on { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.chip-caret { width: 16px; height: 16px; opacity: .7; }
.chip-reset { color: var(--danger-ink); border-style: dashed; }
.chip-reset .icon { width: 16px; height: 16px; }
.chip-count { font-size: 12px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #241703; }

.feed-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 6px; min-height: 44px;
}
.feed-count { font-size: 14px; font-weight: 600; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 4px;
  border: 0; background: none; color: var(--brand-ink); font-weight: 700; font-size: 14px;
}
.sort-btn .icon { width: 18px; height: 18px; }

/* ---------- cartes d'offre ---------- */
.feed { display: grid; gap: 12px; padding: 0 12px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 10px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.offer-card { transition: transform .15s ease, box-shadow .15s ease; }
.offer-card:has(.card-link:active) { transform: scale(.992); }
.offer-card::before {
  content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px;
  border-radius: 0 4px 4px 0; background: transparent;
}
.offer-card.lvl-today::before { background: var(--danger); }
.offer-card.lvl-tomorrow::before { background: var(--accent); }
.offer-card.lvl-soon::before { background: var(--accent); opacity: .55; }
.card-main { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.card-main > .logo { width: 46px; height: 46px; border-radius: 13px; font-size: 15px; }
.card-head { min-width: 0; }
.card-title {
  font-family: var(--display); font-weight: 700; font-size: 17.5px; line-height: 1.22; letter-spacing: -.012em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -2px; }
.card-sub {
  display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px;
  font-size: 14px; color: var(--ink-dim); min-width: 0;
}
.card-co { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.card-place { display: inline-flex; align-items: center; gap: 3px; }
.card-place .icon { width: 14px; height: 14px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-dim);
  font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere;
}
.tag .icon { width: 13px; height: 13px; }
.tag-hot { background: var(--danger-soft); border-color: transparent; color: var(--danger-ink); }
.tag-warm { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.tag-soon { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.tag-muted { opacity: .75; text-decoration: line-through; }
.tag-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok-ink); }
.tag-informal { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.tag-formal { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.tag-money { color: var(--ink); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 65, 45, .55); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(194, 65, 45, 0); }
}
.why {
  list-style: none; display: grid; gap: 2px; margin-top: 10px; padding: 8px 11px;
  border-radius: 12px; background: var(--ok-soft); color: var(--ok-ink);
  font-size: 13.5px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere;
}
.why-warn { background: var(--danger-soft); color: var(--danger-ink); }
.card-foot {
  display: flex; align-items: center; gap: 8px; min-height: 36px;
  margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-dim);
}
.card-src { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-btn {
  position: relative; z-index: 2; flex: none;
  width: 44px; height: 44px; margin: -6px -8px -6px 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-dim);
}
.save-btn:hover { background: var(--surface-2); }
.save-btn.is-saved { color: var(--accent); }
.save-btn .icon { width: 22px; height: 22px; }
.status-badge {
  position: relative; z-index: 2; flex: none;
  padding: 3px 9px; border-radius: 99px; font-weight: 700; font-size: 12.5px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.status-badge.st-interview { background: var(--accent-soft); color: var(--accent-ink); }
.status-badge.st-offer { background: var(--ok-soft); color: var(--ok-ink); }
.status-badge.st-rejected { background: var(--surface-2); color: var(--ink-dim); }

/* apparition en cascade (premier écran seulement) */
.rv { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.rv-1 { animation-delay: .04s; }
.rv-2 { animation-delay: .08s; }
.rv-3 { animation-delay: .12s; }
.rv-4 { animation-delay: .16s; }
.rv-5 { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* anneau de correspondance */
.ring { position: relative; display: grid; place-items: center; width: 50px; height: 50px; flex: none; }
.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 3.2; }
.ring-val { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; animation: ring-draw 1s cubic-bezier(.2, .8, .2, 1) both; }
.ring-lo .ring-val { stroke: var(--line-strong); }
.ring-num { position: relative; font: 700 15px/1 var(--display); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.ring-lg { width: 76px; height: 76px; }
.ring-lg .ring-num { font-size: 24px; }
@keyframes ring-draw { from { stroke-dasharray: 0 100; } }

/* pied de liste */
.feed-foot { padding: 16px 12px 0; display: grid; gap: 10px; }
.sentinel { height: 1px; }
.feed-loading, .slow-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: var(--ink-dim); padding: 10px 0;
}
.slow-hint .icon { width: 16px; height: 16px; }
.feed-end { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--ink-dim); padding: 8px 0; }
.feed-end-mark { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.inline-error { display: grid; gap: 8px; justify-items: center; text-align: center; color: var(--danger-ink); font-weight: 600; }

/* squelettes */
.skel-list { display: grid; gap: 12px; }
.skel { display: grid; gap: 12px; box-shadow: none; }
.skel-row { display: flex; gap: 12px; align-items: center; }
.skel-lines { flex: 1; display: grid; gap: 8px; }
.skel-tile, .skel-line, .skel-pill {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 45%, var(--surface-2) 90%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skel-tile { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.skel-line { height: 12px; }
.skel-pill { width: 72px; height: 24px; border-radius: 99px; }
.skel-block { display: grid; gap: 12px; padding: 18px 16px; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }
.w-100 { width: 100%; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- états : vide, erreur ---------- */
.state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 34px 24px 20px; }
.state-art {
  width: 78px; height: 78px; margin: 4px 0 12px;
  display: grid; place-items: center; border-radius: 22px; transform: rotate(45deg);
  background-color: var(--band); background-image: var(--ndop); background-size: 30px 30px;
  color: #fff; box-shadow: 0 0 0 5px var(--accent-soft);
}
.state-art > * { transform: rotate(-45deg); font-size: 32px; line-height: 1; }
.state-art .icon { width: 30px; height: 30px; }
.state-error .state-art { background-color: #7a2a1d; }
.state-title { font: 700 21px/1.2 var(--display); letter-spacing: -.01em; text-wrap: balance; max-width: 30ch; overflow-wrap: anywhere; }
.state-text { color: var(--ink-dim); max-width: 42ch; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 14.5px;
}
.notice .icon { width: 20px; height: 20px; margin-top: 1px; }
.notice-warn { background: var(--danger-soft); color: var(--danger-ink); }
.notice-ok { background: var(--ok-soft); color: var(--ok-ink); }

/* ---------- sections (cartes blanches à titre) ---------- */
.sect {
  margin: 12px 12px 0; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 0;
}
.sect-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 28px; }
.sect-title { flex: 1; font: 700 17px/1.25 var(--display); letter-spacing: -.01em; }
.sect-aside { font: 700 15px var(--display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.sect-edit { width: 40px; height: 40px; margin: -8px -8px -8px 0; color: var(--brand-ink); }
.sect-edit .icon { width: 18px; height: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fact { min-width: 0; }
.fact dt { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dim); }
.fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.fact.is-empty dd { color: var(--ink-dim); font-weight: 500; }
.fact dd small { display: block; font-weight: 600; font-size: 13px; }
.dl-today, .dl-past { color: var(--danger-ink); }
.dl-tomorrow, .dl-soon { color: var(--accent-ink); }

/* ---------- détail d'une offre ---------- */
.offer-hero { display: grid; gap: 12px; }
.offer-where { display: flex; flex-wrap: wrap; gap: 4px 12px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.offer-employer { font-weight: 700; color: #fff; }
.offer-place { display: inline-flex; align-items: center; gap: 4px; }
.offer-place .icon { width: 15px; height: 15px; }
.band .tags { margin-top: 0; }
.band .tag { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.band .tag-hot { background: #fde3dd; color: #8c2615; border-color: transparent; }
.band .tag-warm, .band .tag-soon, .band .tag-informal { background: #fbefcf; color: #6b4600; border-color: transparent; }
.band .tag-ok { background: #dff2e7; color: #17573a; border-color: transparent; }
.offer-body > * + * { margin-top: 0; }
.offer-body > .notice { margin: 0 12px 12px; }
.why-block { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.why-lg { margin-top: 0; font-size: 14.5px; }
.reqs { list-style: none; display: grid; gap: 8px; }
.reqs li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.req-emoji { width: 24px; text-align: center; flex: none; }
.req-ok { color: var(--ok-ink); }
.body-text {
  white-space: pre-line; overflow-wrap: anywhere; line-height: 1.62; font-size: 15.5px; color: var(--ink);
}
.body-text.is-clamped {
  max-height: 15.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.sect-apply { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.apply-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.apply-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.apply-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.apply-main { display: grid; min-width: 0; }
.apply-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-dim); }
.apply-value { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; font-variant-numeric: tabular-nums; }
.apply-note { font-size: 13px; color: var(--ink-dim); }
.apply-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.safety {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 12px;
  font-size: 13.5px; color: var(--ink-dim); font-weight: 500;
}
.safety .icon { width: 18px; height: 18px; color: var(--ok-ink); margin-top: 1px; }
.offer-stats { display: flex; align-items: center; gap: 6px; padding: 14px 16px 0; font-size: 13.5px; color: var(--ink-dim); }
.offer-stats .icon { width: 16px; height: 16px; }
.sect-similar { background: transparent; border: 0; padding: 16px 0 0; margin: 4px 0 0; }
.sect-similar .sect-head { padding: 0 16px; }
.feed-similar { padding: 0; }
.nudge {
  display: grid; gap: 10px; margin: 12px 12px 0; padding: 16px;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600;
}

/* barre d'actions du détail */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; justify-content: center;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-up);
}
.actionbar:empty { display: none; }
.act {
  flex: 1; max-width: 220px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 50px; padding: 8px 10px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 700 15px/1.15 var(--body);
}
.act .icon { width: 20px; height: 20px; }
.act-save.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.act-primary { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.act-report { flex: 0 0 auto; width: 54px; padding: 0; color: var(--danger-ink); }
.act-report span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.act-status { flex: 1; max-width: none; }
.act[disabled] { opacity: .55; }

/* ---------- suivi ---------- */
.counts { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 12px; }
.count {
  display: grid; justify-items: center; gap: 2px; padding: 10px 2px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center;
}
.count b { font: 700 22px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.count span { font-size: 11.5px; font-weight: 700; color: var(--ink-dim); overflow-wrap: anywhere; }
.c-interview.is-some { border-color: var(--accent); background: var(--accent-soft); }
.c-interview.is-some span { color: var(--accent-ink); }
.c-offer.is-some { border-color: var(--ok); background: var(--ok-soft); }
.c-offer.is-some span { color: var(--ok-ink); }
.track-group { margin-top: 18px; }
.group-label {
  display: flex; align-items: center; gap: 8px; padding: 0 16px 8px;
  font: 700 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
}
.group-count { padding: 1px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); letter-spacing: 0; }
.track-list { list-style: none; display: grid; gap: 8px; padding: 0 12px; }
.track-item {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; align-items: start;
  padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.track-item.st-interview { border-color: var(--accent); }
.track-text { min-width: 0; }
.track-title { font: 700 16px/1.25 var(--display); overflow-wrap: anywhere; }
.track-sub { font-size: 13.5px; color: var(--ink-dim); margin-top: 2px; overflow-wrap: anywhere; }
.track-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.track-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-dim); font-weight: 600; }
.track-meta .icon { width: 14px; height: 14px; }
.follow { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); }
.follow.is-due { background: var(--danger-soft); color: var(--danger-ink); }
.track-note { margin-top: 6px; font-size: 13.5px; font-style: italic; color: var(--ink-dim); overflow-wrap: anywhere; }
.track-edit {
  position: static; align-self: center; width: 24px; height: 24px; padding: 0;
  border: 0; background: none; color: var(--ink-dim); display: grid; place-items: center;
}
.track-edit::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.track-edit:focus-visible { outline: none; }
.track-edit:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -2px; }

/* logos à initiales */
.logo {
  display: grid; place-items: center; flex: none; border-radius: 11px;
  color: #fff; font: 700 14px/1 var(--display); letter-spacing: .02em;
}
.logo-md { width: 40px; height: 40px; }
.logo-sm { width: 36px; height: 36px; font-size: 13px; }
.tone-0 { background: #2c4f8f; }
.tone-1 { background: #8a5c0a; }
.tone-2 { background: #2b7350; }
.tone-3 { background: #a64a2a; }
.tone-4 { background: #644a8a; }
.tone-5 { background: #286b76; }
.logo-none { background: var(--brand-soft); color: var(--brand-ink); }
.is-informal .logo-none { background: var(--accent-soft); color: var(--accent-ink); }
.logo-none .icon { width: 20px; height: 20px; }

/* ---------- profil ---------- */
.ndop-banner {
  position: relative; height: 132px;
  background-color: var(--band);
  background-image: var(--ndop), linear-gradient(120deg, var(--band) 0%, var(--band-2) 100%);
  background-size: 44px 44px, auto;
  padding: calc(12px + var(--safe-t)) 12px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.ndop-banner::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 16px);
}
.banner-actions { margin-left: auto; display: flex; gap: 8px; }
.identity { position: relative; padding: 0 16px 6px; margin-top: -50px; display: grid; gap: 6px; justify-items: start; }
.avatar {
  position: relative; display: grid; place-items: center; overflow: hidden; flex: none;
  border-radius: 50%; background: linear-gradient(140deg, #f3cf7a, var(--accent));
  color: #1f3a6b; box-shadow: 0 0 0 4px var(--bg), 0 8px 20px -8px rgba(0, 0, 0, .35);
}
.avatar-xl { width: 100px; height: 100px; }
.avatar-initials { font: 700 34px/1 var(--display); letter-spacing: -.02em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar:not(.has-photo) img { opacity: 0; }
.identity-name { font: 700 27px/1.1 var(--display); letter-spacing: -.02em; margin-top: 6px; overflow-wrap: anywhere; }
.identity-headline { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.identity-place { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--ink-dim); font-size: 14.5px; }
.identity-place .icon { width: 16px; height: 16px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-dim);
}
.pill .icon { width: 14px; height: 14px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok-ink); }
.pill-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.pill-brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.identity-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.meter { height: 10px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #f3cf7a); }
.tips { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.tip {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px;
  border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-2);
  color: var(--ink); font-weight: 600; text-align: left;
}
.tip span { flex: 1; }
.tip .icon { width: 18px; height: 18px; color: var(--brand-ink); }
.tip-done { margin-top: 10px; font-weight: 700; color: var(--ok-ink); }
.sect-switches { display: grid; padding-top: 4px; padding-bottom: 4px; }
.sect-switches .switch + .switch { border-top: 1px solid var(--line); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fam-chip, .skill-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere;
}
.fam-chip { background: var(--brand-soft); color: var(--brand-ink); }
.skill-chip { background: var(--surface-2); border: 1px solid var(--line); }
.skill-chip.is-removable { padding-right: 4px; }
.chip-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-dim); }
.chip-x .icon { width: 16px; height: 16px; }
.timeline { list-style: none; display: grid; gap: 16px; }
.tl-item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.tl-item:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: -14px; border-left: 2px dashed var(--line); }
.tl-title { font-weight: 700; overflow-wrap: anywhere; }
.tl-sub { font-size: 14px; color: var(--ink-dim); overflow-wrap: anywhere; }
.tl-about { margin-top: 4px; font-size: 14.5px; white-space: pre-line; overflow-wrap: anywhere; }
.menu { margin: 12px 12px 0; }
.menu ul { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu-item, .menu-inner {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.menu-item:has(.menu-inner) { padding: 0; }
.menu-inner { width: 100%; }
.menu-item span, .menu-inner > span { flex: 1; }
.menu-item .icon { color: var(--brand-ink); }
.menu-chev { color: var(--ink-dim) !important; width: 18px; height: 18px; }
.menu-badge { flex: none !important; font-weight: 700; color: var(--ok-ink); }
.menu-item:focus-visible { outline-offset: -3px; }
.banner-back { position: relative; z-index: 1; }

/* ---------- formulaires ---------- */
.form { display: grid; gap: 18px; padding: 0 16px; }
.form .notice { margin: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-label { font-weight: 700; font-size: 15px; }
.field-opt { font-weight: 500; color: var(--ink-dim); font-size: 13.5px; }
.field-count { font-size: 12.5px; color: var(--ink-dim); font-variant-numeric: tabular-nums; flex: none; }
.field-count.is-near { color: var(--accent-ink); font-weight: 700; }
.field-hint { font-size: 13.5px; color: var(--ink-dim); }
.field-error { font-size: 14px; font-weight: 700; color: var(--danger-ink); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 13px;
  background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-dim); opacity: .8; }
.input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input-area { min-height: 130px; resize: vertical; line-height: 1.5; }
.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-dim); }
.picker { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.picker .icon { color: var(--ink-dim); }
.picker-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.picker-value.is-empty { font-weight: 400; color: var(--ink-dim); }
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.add-row .field-hint { grid-column: 1 / -1; }
.chip-edit { margin-top: 2px; }
.entries { display: grid; gap: 14px; }
.entry {
  display: grid; gap: 14px; margin: 0; padding: 14px; min-width: 0;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.entry-legend { padding: 0 6px; font: 700 14px var(--display); color: var(--brand-ink); }
.entry-remove { justify-self: start; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions .btn-block { flex: 1 1 220px; }
.dl-holder { display: none; }

/* choix (cases et boutons radio natifs, habillés) */
.choices { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.choices-legend { padding: 0; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.choices-box { display: grid; gap: 8px; }
.choices-grid .choices-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices-chips .choices-box { display: flex; flex-wrap: wrap; }
.choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.choice-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; margin: 0; }
.choice-box {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 15px; line-height: 1.25;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.choice:active .choice-box { transform: scale(.985); }
.choices-chips .choice-box { min-height: 44px; padding: 8px 14px; border-radius: 999px; }
.choices-chips .choice-tick { display: none; }
.choice-emoji { font-size: 21px; line-height: 1; flex: none; }
.choice-text { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.choice-sub { font-size: 12.5px; font-weight: 600; color: var(--ink-dim); }
.choice-tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent;
}
.choice-tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.choice-input:checked + .choice-box { border-color: var(--brand-ink); background: var(--brand-soft); color: var(--brand-ink); }
.choice-input:checked + .choice-box .choice-tick { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.choice-input:checked + .choice-box .choice-sub { color: var(--brand-ink); }
.choice-input:focus-visible + .choice-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice.is-disabled { cursor: not-allowed; }
.choice.is-disabled .choice-box { opacity: .5; }
/* grille de métiers : tuiles de texte, coche à droite (ton sobre, sans pictogramme) */
.choices-grid .choice-box { min-height: 66px; padding: 10px 12px; }
.choices-grid .choice-text { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.choices-grid .choice-tick { width: 22px; height: 22px; }
.choices-grid .choice-input:not(:checked) + .choice-box .choice-tick { opacity: .55; }

/* interrupteur */
.switch { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 0; cursor: pointer; }
.switch-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.switch-label { font-weight: 700; }
.switch-hint { font-size: 13.5px; color: var(--ink-dim); }
.switch-input { position: absolute; right: 0; top: 50%; width: 54px; height: 32px; margin: -16px 0 0; opacity: 0; cursor: pointer; }
.switch-ui {
  position: relative; flex: none; width: 54px; height: 32px; border-radius: 99px;
  background: var(--line-strong); transition: background-color .2s ease; pointer-events: none;
}
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .2s ease;
}
.switch-input:checked + .switch-ui { background: var(--ok); }
.switch-input:checked + .switch-ui::after { transform: translateX(22px); }
.switch-input:focus-visible + .switch-ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch-input:disabled + .switch-ui { opacity: .5; }

/* listes d'options (feuilles de filtres, villes) */
.opt-list { list-style: none; display: grid; gap: 6px; }
.opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink);
  font: 600 15px/1.25 var(--body); text-align: left;
}
.opt:hover { border-color: var(--line-strong); }
.opt.is-on { border-color: var(--brand-ink); background: var(--brand-soft); color: var(--brand-ink); }
.opt[disabled] { opacity: .5; }
.opt-emoji { font-size: 20px; flex: none; }
.opt-text { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.opt-sub { font-size: 12.5px; color: var(--ink-dim); }
.opt-check { width: 18px; height: 18px; flex: none; }
.list-label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-dim); margin: 14px 0 8px;
}
.city-list { display: grid; gap: 4px; }
.city-none { padding: 18px 4px; text-align: center; }

/* ---------- feuille du bas ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s ease; }
.sheet {
  position: relative; display: flex; flex-direction: column;
  width: 100%; max-width: 640px; max-height: 88vh; max-height: 88dvh;
  background: var(--surface); color: var(--ink);
  border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .3);
  transform: translateY(28px); opacity: 0;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
  outline: none;
}
.sheet::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 16px); opacity: .9;
}
.sheet-layer.is-open .sheet { transform: none; opacity: 1; }
.sheet-layer.is-open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 18px; flex: none; }
.sheet-title { flex: 1; font: 700 20px/1.2 var(--display); letter-spacing: -.01em; }
.sheet-sub { font-weight: 700; color: var(--ink-dim); overflow-wrap: anywhere; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 18px; -webkit-overflow-scrolling: touch; }
.sheet-foot { flex: none; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.sheet-body:last-child { padding-bottom: calc(18px + var(--safe-b)); }

/* ---------- notification ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock) + 14px); z-index: 120;
  width: max-content; max-width: min(92vw, 520px);
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-box {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px;
  border-radius: 14px; background: var(--toast-bg); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); font-weight: 600; font-size: 15px; line-height: 1.35;
  border-left: 4px solid #6f86b3;
}
.toast-ok { border-left-color: #4cbf83; }
.toast-error { border-left-color: #ff7a63; }
.toast-msg { flex: 1; }
.toast-action {
  flex: none; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .1); color: #f3cf7a; font-weight: 800;
}

/* ---------- barre du bas ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar-list { list-style: none; max-width: 640px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabbar-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--tabbar-h); padding: 6px 2px;
  color: var(--ink-dim); text-decoration: none; font-size: 12.5px; font-weight: 700;
}
.tabbar-item .icon { width: 24px; height: 24px; }
.tabbar-item.is-on { color: var(--brand-ink); }
.tabbar-item.is-on::before {
  content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--accent);
}
.tabbar-item.is-on .icon { stroke-width: 2.4; }
.tabbar-item:focus-visible { outline-offset: -4px; }
.tabbar-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* bouton principal hors Telegram (même rôle que le MainButton) */
.mainbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(transparent, var(--bg) 26%);
}
.has-tabbar .mainbar { bottom: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: 12px; }
.mainbar-btn { max-width: 608px; margin: 0 auto; box-shadow: 0 10px 24px -12px rgba(22, 32, 58, .6); }

/* ---------- inscription ---------- */
.onb .onb-body { padding: 0 16px; display: grid; gap: 14px; }
.onb-hero .onb-body { padding: 0; }
.onb-top {
  position: sticky; top: 0; z-index: 10; display: grid; gap: 10px;
  padding: calc(12px + var(--safe-t)) 16px 12px; background: var(--bg);
}
.onb-top-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.onb-back { margin-left: -10px; color: var(--ink); }
.onb-brand { display: flex; align-items: center; gap: 8px; font: 700 15px var(--display); color: var(--brand-ink); flex: 1; }
.onb-mark {
  width: 18px; height: 18px; border-radius: 4px; transform: rotate(45deg);
  background-color: var(--band); background-image: var(--ndop); background-size: 12px 12px;
  box-shadow: 0 0 0 2px var(--accent);
}
.onb-count { font-size: 13.5px; font-weight: 700; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.onb-progress { display: flex; gap: 5px; }
.onb-seg { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.onb-seg.is-done { background: var(--accent); }
.onb-seg.is-now { background: var(--btn-bg); }
.onb-title { font: 700 29px/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; margin-top: 6px; }
.onb-hint { color: var(--ink-dim); font-size: 15.5px; }
.onb-count-live { font-weight: 700; color: var(--brand-ink); }
.onb-chosen {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  padding: 7px 13px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700;
}
.onb-chosen .icon { width: 16px; height: 16px; }
.onb-skip { margin-top: 4px; }
.onb-consent, .onb-done { display: grid; gap: 18px; padding: 4px 16px 0; }
.promise { list-style: none; display: grid; gap: 12px; }
.promise li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; font-weight: 600; }
.promise .icon {
  width: 40px; height: 40px; padding: 9px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.summary { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.summary-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700;
}
.summary-chip .icon { width: 16px; height: 16px; }

/* ---------- apporter une offre, recruteur ---------- */
.contrib, .recruiter { display: grid; gap: 14px; }
.steps { list-style: none; display: grid; gap: 8px; padding: 0 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr); gap: 10px; align-items: center; font-weight: 600; }
/* Le losange est dessiné à part : seul lui tourne, le chiffre reste droit. */
.step-n {
  position: relative; isolation: isolate; width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--accent-ink); font: 700 13px var(--display);
}
.step-n::before {
  content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: 7px; transform: rotate(45deg);
  background: var(--accent-soft);
}
.steps .icon { color: var(--brand-ink); }
.contrib > .result, .contrib > .btn, .recruiter > .result, .recruiter > .btn { margin: 0 16px; width: auto; }
.result { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); }
.result-title { font: 700 22px/1.2 var(--display); }
.result-scam { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-ink); }
.result-scam .why { background: var(--surface); }
.result-ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); }
.result-info { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.cta-card {
  display: flex; align-items: center; gap: 12px; margin: 0 12px; padding: 14px 16px;
  border-radius: var(--radius); background-color: var(--band); background-image: var(--ndop); background-size: 34px 34px;
  color: #fff; text-decoration: none; font-weight: 700;
}
.cta-emoji { font-size: 24px; }
.cta-text { flex: 1; }
.subs { list-style: none; display: grid; gap: 10px; }
.sub { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sub-kind { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-dim); }
.sub-status { font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }
.ss-approved, .ss-imported { background: var(--ok-soft); color: var(--ok-ink); }
.ss-scam, .ss-rejected { background: var(--danger-soft); color: var(--danger-ink); }
.ss-pending { background: var(--accent-soft); color: var(--accent-ink); }
.sub-title { font-weight: 700; overflow-wrap: anywhere; }
.sub-meta, .sub-note, .sub-stats { font-size: 13.5px; color: var(--ink-dim); }
.sub-stats { display: flex; align-items: center; gap: 6px; }
.sub-stats .icon { width: 15px; height: 15px; }
.mine .sect { margin-top: 4px; }
.paste-row { display: flex; justify-content: flex-end; }

/* ---------- premium ---------- */
.band-premium { padding-bottom: 40px; }
.price {
  justify-self: start; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 16px; border-radius: 99px; background: #fbefcf; color: #3d2900;
  font: 700 18px/1 var(--display);
}
.price b { font-size: 26px; }
.price-days { font-size: 15px; font-family: var(--body); font-weight: 700; }
.premium { display: grid; gap: 14px; padding: 0 12px; }
.premium .notice { margin: 0; }
.benefits { list-style: none; display: grid; gap: 10px; }
.benefit {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.benefit-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.benefit-title { font: 700 17px/1.25 var(--display); margin-bottom: 2px; }
.benefit p { color: var(--ink-dim); }
.fine { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-dim); padding: 0 4px; }
.fine .icon { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- réglages ---------- */
.settings { display: grid; }
.sect-settings .choices + .choices, .sect-settings .field-hint + .choices { margin-top: 14px; }
.sect-settings .btn-accent { margin-top: 14px; }
.sect-danger { border-color: var(--danger-soft); }
.danger-zone { margin-top: 12px; }
.confirm {
  display: grid; gap: 10px; padding: 14px; border-radius: 14px;
  border: 1.5px solid var(--danger); background: var(--danger-soft); color: var(--danger-ink);
}
.confirm-title { display: flex; align-items: center; gap: 8px; font: 700 18px var(--display); }
.confirm p { color: var(--ink); }

/* ---------- administration ---------- */
.admin { display: grid; }
.mod-card {
  display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface-2);
  border: 1px solid var(--line); transition: opacity .2s ease, transform .2s ease;
}
.mod-card + .mod-card { margin-top: 10px; }
.mod-card.is-done { opacity: 0; transform: translateX(30px); }
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.mod-title { font: 700 16px/1.3 var(--display); overflow-wrap: anywhere; }
.mod-meta { font-size: 13.5px; color: var(--ink-dim); overflow-wrap: anywhere; }
.mod-text {
  white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; max-height: 9.5em; overflow: auto;
  padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
}
.mod-flags-title { font-weight: 700; font-size: 13.5px; color: var(--danger-ink); }
.stat-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; padding: 0 12px; }
.stat-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stat-tile b { font: 600 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: 13px; color: var(--ink-dim); font-weight: 600; }
/* une ligne = libellé entier + valeur, puis la barre (jamais de libellé coupé) */
.bars { list-style: none; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.bar-label { grid-column: 1; grid-row: 1; font-weight: 600; overflow-wrap: anywhere; }
.bar-value { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.bar-track { grid-column: 1 / -1; grid-row: 2; display: block; height: 10px; }
.bar-fill { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--btn-bg); }

/* largeurs par pas de 5 % (jauges, barres) — pas de style en ligne */
.pct-0 { width: 0; }
.pct-5 { width: 5%; }
.pct-10 { width: 10%; }
.pct-15 { width: 15%; }
.pct-20 { width: 20%; }
.pct-25 { width: 25%; }
.pct-30 { width: 30%; }
.pct-35 { width: 35%; }
.pct-40 { width: 40%; }
.pct-45 { width: 45%; }
.pct-50 { width: 50%; }
.pct-55 { width: 55%; }
.pct-60 { width: 60%; }
.pct-65 { width: 65%; }
.pct-70 { width: 70%; }
.pct-75 { width: 75%; }
.pct-80 { width: 80%; }
.pct-85 { width: 85%; }
.pct-90 { width: 90%; }
.pct-95 { width: 95%; }
.pct-100 { width: 100%; }

/* ---------- écran de démarrage et d'erreur ---------- */
.boot { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; padding: 24px; }
.boot-mark {
  width: 74px; height: 74px; border-radius: 20px; transform: rotate(45deg);
  background-color: var(--band); background-image: var(--ndop); background-size: 26px 26px;
  box-shadow: 0 0 0 5px var(--accent-soft), 0 14px 30px -12px rgba(31, 58, 107, .6);
  animation: boot-breathe 1.6s ease-in-out infinite;
}
.boot-name { font: 700 24px/1.1 var(--display); letter-spacing: -.02em; color: var(--brand-ink); }
.boot-line { width: 120px; height: 4px; border-radius: 4px; overflow: hidden; background: var(--line); }
.boot-line span { display: block; width: 40%; height: 100%; background: var(--accent); animation: boot-slide 1.1s ease-in-out infinite; }
@keyframes boot-breathe { 50% { transform: rotate(45deg) scale(.94); } }
@keyframes boot-slide { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.boot-error .band { margin-bottom: 4px; }
.noscript { padding: 24px; text-align: center; font-weight: 600; }

/* ---------- page « confidentialité » ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 0 0 48px; }
.doc-body { padding: 0 18px; display: grid; gap: 14px; }
.doc-body h2 { font: 700 21px/1.25 var(--display); margin-top: 18px; letter-spacing: -.01em; }
.doc-body p, .doc-body li { line-height: 1.65; }
.doc-body ul { padding-left: 20px; display: grid; gap: 6px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.doc-body th { font-family: var(--display); }
.doc-table { overflow-x: auto; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.doc-updated { color: var(--ink-dim); font-size: 14px; }

/* ---------- petits écrans ---------- */
@media (max-width: 374px) {
  .band-title { font-size: 26px; }
  .band-lg .band-title { font-size: 29px; }
  .onb-title { font-size: 25px; }
  .banner { font-size: 12px; padding: 6px 10px; }
  .choices-grid .choice-box { padding: 10px; min-height: 60px; }
  .choices-grid .choice-box, .opt { font-size: 14.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .counts { gap: 4px; padding: 0 8px; }
  .count span { font-size: 10.5px; }
  .act { font-size: 14px; gap: 5px; }
}

/* ---------- moins d'animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .pulse { animation: none; box-shadow: 0 0 0 3px rgba(194, 65, 45, .25); }
  .skel-tile, .skel-line, .skel-pill { animation: none; }
}

/* ---------- couleurs forcées (Windows) ---------- */
@media (forced-colors: active) {
  .band, .ndop-banner, .cta-card, .state-art, .boot-mark { forced-color-adjust: none; }
  .choice-input:checked + .choice-box, .opt.is-on, .chip.is-on, .tab[aria-selected="true"] { outline: 2px solid CanvasText; }
}

/* ---------- ton sobre : icônes dessinées à la place des emojis ---------- */
.opt-emoji .icon, .choice-emoji .icon, .req-emoji .icon { width: 18px; height: 18px; color: var(--brand-ink); }
.cta-emoji .icon, .price-star .icon { width: 22px; height: 22px; }
.sub-status .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
