/* ═══════════════════════════════════════════════════════════════════
   HappyLinking BigData — feuille de style
   Couleurs tirées du logo : turquoise → rose → orange → jaune
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --teal: #4AAFC8;
  --teal-d: #2E93AD;
  --slate: #7D94B3;
  --pink: #EE4F86;
  --pink-d: #D93A71;
  --coral: #F3706A;
  --orange: #F8903F;
  --yellow: #FDB022;
  --ink: #1D1D2B;
  --ink-2: #4A4F5E;
  --muted: #8B91A0;
  --line: #E8EAF0;
  --line-2: #F1F2F6;
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --off: #C3C8D2;
  --grad: linear-gradient(90deg, var(--teal) 0%, var(--pink) 55%, var(--orange) 100%);
  --grad-warm: linear-gradient(90deg, var(--pink) 0%, var(--orange) 70%, var(--yellow) 100%);
  --grad-cool: linear-gradient(90deg, var(--teal) 0%, var(--slate) 50%, var(--pink) 100%);
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(29,29,43,.04), 0 4px 16px rgba(29,29,43,.06);
  --shadow-l: 0 10px 40px rgba(29,29,43,.18);
  --topbar-h: 68px;
  --bottombar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--teal-d); text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.ic.mini { width: 14px !important; height: 14px !important; vertical-align: -2px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Barre du haut ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h); display: flex; align-items: center; gap: 24px;
  padding: 0 24px; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 46px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand-txt em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs { display: flex; gap: 4px; margin-left: 12px; height: 100%; }
.tab {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  color: var(--ink-2); font-weight: 600; font-size: 14.5px; height: 100%;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active .ic { stroke: var(--pink); }
.tab.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.tab.is-soon { color: var(--muted); }
.soon { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: var(--line-2); color: var(--muted); letter-spacing: .02em; }
.logout { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.logout:hover { background: var(--line-2); color: var(--pink); }

.bottombar { display: none; }

.main { max-width: 1280px; margin: 0 auto; padding: 24px 24px 48px; }

/* ── Boutons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-grad { background: var(--grad-warm); color: #fff; box-shadow: 0 4px 14px rgba(238,79,134,.3); }
.btn-grad:hover { box-shadow: 0 6px 20px rgba(238,79,134,.42); }
.btn-teal { background: #fff; color: var(--teal-d); border-color: var(--teal); }
.btn-teal:hover { background: #EEF8FB; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--off); color: var(--ink); }
.btn-danger { background: #fff; color: #D2334B; border-color: #F4C9D0; }
.btn-danger:hover { background: #FFF2F4; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; }

/* ── Formulaires ──────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .01em; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(74,175,200,.15); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field.is-filled input { border-color: #BFE3EC; background: #F5FBFD; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.alert { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #FFF2F4; color: #B4233A; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.info { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #EEF8FB; color: #1F6F84; font-size: 13.5px; font-weight: 500; margin-bottom: 16px; }
.info .ic { stroke: var(--teal-d); margin-top: 1px; }
.info.warn { background: #FFF6EA; color: #8A4B0B; }
.info.warn .ic { stroke: var(--orange); }

/* ── Connexion ────────────────────────────────────────────────────── */
.login-wrap { min-height: calc(100vh - 48px); display: grid; place-items: center; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 34px 30px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.login-logo { display: block; width: 190px; height: auto; margin: 0 auto 8px; }
.login-sub { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 26px; }
.login-sub .grad-txt { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ── En-tête de page Vivier ───────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.page-head h1 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.page-head p { margin: 4px 0 0; color: var(--muted); font-weight: 500; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.search { position: relative; flex: 1; max-width: 520px; }
.search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 44px 0 46px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-size: 16px; outline: none; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(74,175,200,.15); }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.search-clear:hover { background: var(--line-2); }
.search-hint { position: absolute; left: 46px; top: 100%; margin-top: 4px; font-size: 12px; color: var(--muted); }
.toolbar .spacer { flex: 1; }

.meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin: 14px 2px 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.meta b { color: var(--ink); }

/* ── Liste des candidats ──────────────────────────────────────────── */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: clip; }
.row-head { border-radius: var(--radius) var(--radius) 0 0; }
.row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 40px minmax(90px,1fr) minmax(100px,1.1fr) 150px minmax(160px,1.6fr) minmax(130px,1.4fr) 142px;
  padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line-2);
}
.row-head {
  position: sticky; top: var(--topbar-h); z-index: 5; background: #FBFBFD;
  font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.row-head .sort { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.row-head .sort .ic { width: 14px; height: 14px; opacity: 0; transition: transform .15s, opacity .15s; }
.row-head .sort:hover .ic { opacity: .5; }
.row-head .sort.is-on { color: var(--ink); }
.row-head .sort.is-on .ic { opacity: 1; stroke: var(--pink); }
.row-head .sort.is-asc .ic { transform: rotate(180deg); }
.row-head .c-actions { text-align: right; }

.cand { cursor: pointer; transition: background .12s; animation: rowIn .25s ease both; }
.cand:hover { background: #FAFBFD; }
.cand:last-child { border-bottom: 0; }
.cand.is-new { animation: rowFlash 1.6s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rowFlash { 0%,30% { background: #FFF3E8; } 100% { background: #fff; } }

.cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-prenom, .c-nom { font-weight: 700; }
.c-tel, .c-email { color: var(--ink-2); font-size: 14px; }
.c-tel a, .c-email a { color: inherit; }
.c-tel a:hover, .c-email a:hover { color: var(--teal-d); }
.c-metier { font-size: 14px; }
.metier-chip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 3px 10px; border-radius: 20px; background: #F3F0FA; color: #5B4C82; font-weight: 600; font-size: 13px; }
.empty-val { color: var(--off); }
.c-name, .c-contact { display: none; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; background: var(--grad-cool); }
.avatar.v1 { background: linear-gradient(135deg, var(--pink), var(--orange)); }
.avatar.v2 { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.avatar.v3 { background: linear-gradient(135deg, var(--teal), var(--slate)); }
.avatar.v4 { background: linear-gradient(135deg, var(--slate), var(--pink)); }

.c-actions { display: flex; justify-content: flex-end; gap: 6px; }
.act {
  width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--off);
  transition: background .15s, color .15s, transform .12s;
}
.act:hover { background: var(--line-2); color: var(--muted); }
.act:active { transform: scale(.92); }
.act.is-on.act-notes { color: var(--orange); background: #FFF3E8; }
.act.is-on.act-cv { color: var(--teal-d); background: #E9F6FA; }
.act.is-on:hover { filter: brightness(.97); }
.act.act-info { color: #7A63B8; background: #F3F0FA; }
.act.act-info:hover { background: #E9E3F7; color: #5B4C82; }

/* Historique (icône « i ») */
.histo { list-style: none; margin: 0; padding: 4px 0 12px; position: relative; }
.histo::before { content: ''; position: absolute; left: 17px; top: 22px; bottom: 30px; width: 2px; background: var(--line-2); }
.histo li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.histo .h-ic { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: #F3F0FA; color: #7A63B8; box-shadow: 0 0 0 4px #fff; }
.histo .h-ic .ic { width: 18px; height: 18px; }
.histo .t-creation .h-ic { background: #FFF0F5; color: var(--pink); }
.histo .t-note .h-ic { background: #FFF3E8; color: var(--orange); }
.histo .t-cv .h-ic { background: #E9F6FA; color: var(--teal-d); }
.histo .t-fiche .h-ic { background: #F3F0FA; color: #7A63B8; }
.histo .h-txt { min-width: 0; padding-top: 7px; font-size: 14.5px; line-height: 1.45; }
.histo .h-date { font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.histo .h-act { color: var(--ink-2); font-weight: 600; }
.histo .h-det { display: block; color: var(--muted); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.histo li:first-child .h-act { color: var(--ink); }
.histo-vide { padding: 28px 8px 36px; text-align: center; color: var(--muted); font-weight: 500; }

.cand.drop-target { outline: 2px dashed var(--pink); outline-offset: -2px; background: #FFF0F5 !important; }
.field .hint .ic.mini { stroke: var(--pink); }

mark { background: linear-gradient(transparent 55%, rgba(253,176,34,.45) 55%); color: inherit; padding: 0 1px; border-radius: 2px; }

.list-empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.list-empty .big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--line-2); }
.list-empty .big .ic { width: 30px; height: 30px; stroke: var(--pink); }
.list-empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.list-empty p { margin: 0 0 18px; }
.list-empty .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.more { display: flex; justify-content: center; padding: 18px 0 4px; }
.skeleton .bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), #fff, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Modales ──────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(29,29,43,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--shadow-l);
  animation: pop .22s cubic-bezier(.2,.9,.3,1.2); overflow: hidden;
}
.modal-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); z-index: 2; }
.modal-lg .modal-box { max-width: 900px; height: min(760px, calc(100vh - 40px)); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px 24px; }
.modal-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-head .sub { display: block; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--line-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.modal-close:hover { background: var(--line); }
.modal-body { padding: 4px 24px 8px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--line-2); }
.modal-foot .spacer { flex: 1; }
.modal-lg .modal-body { padding: 0 24px; display: flex; flex-direction: column; }
.notes-editor { flex: 1; min-height: 300px; }
.notes-editor .tox-tinymce { border-radius: 12px !important; border-color: var(--line) !important; }
.save-state { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
body.modal-open { overflow: hidden; }

.cv-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #F5FBFD; border: 1.5px dashed #BFE3EC; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: #1F6F84; }
.cv-line .ic { stroke: var(--teal-d); }
.cv-line a { margin-left: auto; font-weight: 700; }

/* Feuille d'actions (choix photo / fichier) */
.sheet .modal-box { max-width: 420px; }
.sheet-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; margin-bottom: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.sheet-opt:hover { border-color: var(--off); background: #FCFCFE; }
.sheet-opt .bubble { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.sheet-opt .bubble .ic { width: 22px; height: 22px; }
.sheet-opt.o-photo .bubble { background: #FFF0F5; color: var(--pink); }
.sheet-opt.o-file .bubble { background: #E9F6FA; color: var(--teal-d); }
.sheet-opt.o-view .bubble { background: #FFF3E8; color: var(--orange); }
.sheet-opt strong { display: block; font-size: 15px; }
.sheet-opt small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* Analyse IA en cours */
.busy { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(255,255,255,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.busy-card { text-align: center; padding: 24px; max-width: 320px; }
.busy-ring { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: conic-gradient(var(--teal), var(--pink), var(--orange), var(--yellow), var(--teal)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); animation: spin 1s linear infinite; }
.busy-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.busy-card p { margin: 0; color: var(--muted); font-weight: 500; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Glisser-déposer (ordinateur) */
.dropzone { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 32px; background: rgba(246,247,251,.35); box-shadow: inset 0 0 0 4px rgba(238,79,134,.5); pointer-events: none; animation: fade .15s; }
.dropzone-box { padding: 22px 40px; border-radius: 24px; border: 3px dashed var(--pink); background: #fff; text-align: center; box-shadow: var(--shadow-l); }
.dropzone-box .ic { width: 34px; height: 34px; stroke: var(--pink); margin-bottom: 6px; }
.dropzone-box strong { display: block; font-size: 20px; }
.dropzone-box span { color: var(--muted); font-weight: 600; }

/* Notifications */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
body.modal-open .toasts { bottom: auto !important; top: 20px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-l); animation: toastIn .25s ease; pointer-events: auto; }
.toast .ic { stroke: #7FE0B0; }
.toast.err .ic { stroke: #FF8FA8; }
.toast.warn .ic { stroke: var(--yellow); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Invitation d'installation */
.install-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; padding: 12px 12px calc(12px + var(--safe-b)); animation: slideUp .35s cubic-bezier(.2,.9,.3,1); }
.install-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 -4px 40px rgba(29,29,43,.22); overflow: hidden; max-width: 520px; margin: 0 auto; }
.install-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.install-icon { border-radius: 14px; box-shadow: var(--shadow); flex-shrink: 0; }
.install-body { flex: 1; min-width: 0; }
.install-body strong { font-size: 16px; }
.install-txt { margin: 4px 0 12px; color: var(--ink-2); font-size: 14px; }
.kbd { display: inline-flex; vertical-align: -4px; padding: 2px; border-radius: 6px; background: var(--line-2); }
.kbd .ic { width: 16px; height: 16px; stroke: #0A84FF; }
.install-actions { display: flex; gap: 8px; justify-content: flex-end; }
.install-actions .btn { min-height: 42px; }
@keyframes slideUp { from { transform: translateY(100%); } }

/* Pages "bientôt" */
.soon-page { max-width: 460px; margin: 8vh auto 0; text-align: center; background: #fff; border-radius: 22px; padding: 40px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.soon-page h1 { margin: 6px 0 0; font-size: 26px; }
.soon-page p { margin: 0 0 6px; color: var(--muted); font-weight: 500; }
.soon-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); }
.soon-ic .ic { width: 34px; height: 34px; stroke: #fff; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.chip-soon { background: #FFF3E8; color: #B9620F; margin-bottom: 8px; }

/* ═══════════ Tablette ═══════════ */
@media (max-width: 1080px) {
  .row { grid-template-columns: 40px minmax(80px,1fr) minmax(90px,1fr) 136px minmax(130px,1.3fr) minmax(110px,1.1fr) 138px; gap: 10px; }
}

/* ═══════════ Smartphone ═══════════ */
@media (max-width: 820px) {
  :root { --topbar-h: 58px; --bg: #ECEEF4; }
  body.has-nav { padding-bottom: calc(var(--bottombar-h) + var(--safe-b)); }
  .topbar { padding: 0 8px 0 14px; gap: 10px; padding-top: env(safe-area-inset-top, 0px); height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); }
  .tabs { display: none; }
  .brand img { width: 40px; }
  .main { padding: 14px 12px 28px; }

  .bottombar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--bottombar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .bb-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 700; position: relative; }
  .bb-item .ic { width: 23px; height: 23px; }
  .bb-item.is-active { color: var(--ink); }
  .bb-item.is-active .ic { stroke: var(--pink); }
  .bb-item.is-active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
  .bb-item.is-soon { opacity: .55; }

  .page-head { margin-bottom: 12px; }
  .page-head h1 { font-size: 23px; }
  .page-head p { font-size: 13.5px; }

  .toolbar { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 20; margin: 0 -12px; padding: 8px 12px; background: var(--bg); gap: 8px; }
  .search { max-width: none; }
  .search input { height: 46px; }
  .toolbar .spacer { display: none; }
  .toolbar .btn { width: 46px; padding: 0; min-height: 46px; }
  .toolbar .btn .lbl { display: none; }
  .search-hint { display: none; }
  .meta { margin-top: 6px; }

  /* Une « tuile » par candidat, séparée par le fond gris */
  .list { background: transparent; box-shadow: none; overflow: visible; }
  .list > #rows { display: flex; flex-direction: column; gap: 12px; }
  .row-head { display: none; }
  .row.cand {
    grid-template-columns: 42px 1fr auto; grid-template-areas: "av name act" "av metier act" "contact contact contact";
    gap: 2px 12px; padding: 12px 10px 12px 14px; background: #fff; border-radius: 16px; border: 0; box-shadow: 0 1px 2px rgba(29,29,43,.06), 0 2px 8px rgba(29,29,43,.05);
  }
  .cand .c-av { grid-area: av; align-self: start; padding-top: 2px; }
  .cand .c-prenom, .cand .c-nom, .cand .c-tel, .cand .c-email, .cand .c-metier.desk { display: none; }
  .cand .c-name { display: block; grid-area: name; font-weight: 800; font-size: 15.5px; }
  .cand .c-metier { grid-area: metier; }
  .cand .c-metier .metier-chip { font-size: 12.5px; padding: 2px 9px; }
  .cand .c-actions { grid-area: act; align-self: start; gap: 3px; }
  .cand .act { width: 40px; height: 40px; }
  .cand .c-contact { display: flex; grid-area: contact; gap: 8px; margin-top: 8px; flex-wrap: wrap; white-space: normal; }
  .c-contact a, .c-contact span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); font-size: 13.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .c-contact a .ic, .c-contact span .ic { width: 16px; height: 16px; }
  .c-contact .t .ic { stroke: var(--teal-d); }
  .c-contact .m .ic { stroke: var(--pink); }
  .c-contact:empty { display: none; }
  .cand:hover { background: #fff; }
  .cand .c-metier:has(.empty-val) { display: none; }
  .row.skeleton { grid-template-columns: 42px 1fr; background: #fff; border-radius: 16px; border: 0; padding: 16px 14px; box-shadow: var(--shadow); }
  .row.skeleton .bar:nth-child(n+3) { display: none; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-width: none !important; border-radius: 22px 22px 0 0; max-height: 94vh; animation: slideUp .3s cubic-bezier(.2,.9,.3,1); padding-bottom: var(--safe-b); }
  .modal-lg .modal-box { height: 94vh; }
  .modal-head { padding: 18px 16px 10px 20px; }
  .modal-body { padding: 4px 20px 8px; }
  .modal-lg .modal-body { padding: 0 12px; }
  .modal-foot { padding: 12px 20px 16px; }
  .modal-foot .btn { flex: 1; }
  .modal-foot .spacer { display: none; }
  .modal-foot .btn-danger { flex: 0 0 46px; padding: 0; }
  .modal-foot .btn-danger .lbl { display: none; }
  .grid-2 { gap: 0 10px; }

  .toasts { bottom: calc(var(--bottombar-h) + var(--safe-b) + 12px); }
  body.no-nav .toasts { bottom: 20px; }
  .soon-page { margin-top: 4vh; }
}
