/* Alternativ eAgency — charte : bleu nuit #1E2A38, vert #1A9C82, sable #C9A96E */
:root {
  --navy: #1E2A38;
  --navy-2: #26354a;
  --navy-3: #2f405a;
  --green: #12A594;
  --green-2: #22b596;
  --sand: #C9A96E;
  --bg: #121a24;
  --card: #1E2A38;
  --card-2: #253343;
  --line: rgba(255,255,255,.08);
  --text: #eef2f6;
  --muted: #94a3b8;
  --danger: #e5484d;
  --neon: #2BE4A8;
  --display: Unbounded, Inter, system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(1200px 600px at 80% -10%, rgba(26,156,130,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(201,169,110,.10), transparent 60%),
    #0f1620;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
p { margin: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---- Marque ---- */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #12A594; color: #fff; padding: 9px;
  box-shadow: 0 6px 18px rgba(26,156,130,.35);
}
.brand-mark.small { width: 32px; height: 32px; border-radius: 10px; padding: 6px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name .v, .topbar-title .v { color: #2BE4A8; }
.brand-kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); font-weight: 600; }
.brand-name { font-size: 20px; font-weight: 800; }
.brand-name span { color: var(--green-2); }

/* ---- Connexion ---- */
.screen { min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow);
}
/* Visuel de connexion */
.login-hero { width: 100%; max-width: 420px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.hero-svg { width: min(62vw, 240px); height: auto; }
.hero-text { display: none; }
.hero-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 10px; }
.orbit { transform-origin: 210px 210px; animation: spin 60s linear infinite; }
.orbit.slow { animation-duration: 90s; animation-direction: reverse; }
.node { animation: float 4s ease-in-out infinite; }
.node.n2 { animation-delay: -.7s; } .node.n3 { animation-delay: -1.4s; } .node.n4 { animation-delay: -2.1s; } .node.n5 { animation-delay: -2.8s; } .node.n6 { animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .orbit, .node, .hub-ring { animation: none; } }
@media (min-width: 900px) {
  .login-wrap { grid-template-columns: 1.1fr 1fr; gap: 48px; max-width: 1040px; margin: 0 auto; }
  .login-hero { max-width: none; justify-items: start; text-align: left; gap: 0; }
  .hero-svg { width: min(38vw, 420px); margin-bottom: 8px; }
  .hero-text { display: block; max-width: 440px; }
  .hero-text p { font-size: 15px; line-height: 1.5; }
  .login-card { justify-self: start; }
  #version-label { grid-column: 1 / -1; }
}
.login-card form { margin-top: 18px; display: grid; gap: 12px; }
#form-newpwd h2 { font-size: 16px; margin: 0; }

/* ---- Formulaires ---- */
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--navy-3);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,156,130,.25); }
select option { color: #111; }
.form { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.form-info { color: #5ee0c3; background: rgba(26,156,130,.12); border: 1px solid rgba(26,156,130,.35); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.form-error { color: #ffb4b6; background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.3); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
fieldset.segment { border: 0; padding: 0; margin: 0; }
fieldset.segment legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.seg-btns { display: flex; gap: 8px; }
.seg-btns label { flex: 1; }
.seg-btns input { position: absolute; opacity: 0; pointer-events: none; }
.seg-btns span {
  display: block; text-align: center; padding: 12px; border-radius: 12px; cursor: pointer;
  background: var(--navy-3); border: 1px solid var(--line); color: var(--text); font-weight: 600;
}
.seg-btns input:checked + span { background: var(--green); border-color: var(--green); }
.upload { display: grid; gap: 8px; }
.upload-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.upload-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.preview { min-height: 0; }
.preview img, .preview .file-pill { display: block; }
.preview img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.file-pill { padding: 10px 12px; border-radius: 10px; background: var(--navy-3); font-size: 13px; }

/* ---- Boutons ---- */
.btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer;
  color: var(--text); background: var(--navy-3); transition: transform .08s, filter .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: linear-gradient(135deg, var(--green-2), var(--green)); color: #fff; box-shadow: 0 6px 16px rgba(26,156,130,.3); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-soft { background: var(--navy-3); border: 1px solid var(--line); font-weight: 600; }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 600; }
.btn-block { width: 100%; }

/* ---- Barre haute / basse ---- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(18,26,36,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; }
.topbar-title { font-weight: 600; } .topbar-title b { color: var(--green-2); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-meta { display: none; text-align: right; line-height: 1.1; }
.user-meta b { display: block; font-size: 13px; } .user-meta small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--neon); border: 1.5px solid var(--neon); background: rgba(43,228,168,.08); }
.btn-icon { padding: 6px 8px; display: grid; place-items: center; } .btn-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) { .user-meta { display: block; } }
.view { max-width: 1040px; margin: 0 auto; padding: 20px 16px 96px; }
.bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(18,26,36,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.nav-btn { flex: 1; max-width: 160px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; display: grid; justify-items: center; gap: 2px; padding: 6px; border-radius: 12px; cursor: pointer; }
.nav-btn .nav-ico { font-size: 18px; }
.nav-btn.active { color: var(--neon); background: rgba(43,228,168,.1); }
#screen-app { display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .view { padding-bottom: 40px; order: 2; width: 100%; }
  .bottombar { order: 1; position: static; justify-content: center; gap: 8px; padding: 8px 16px; border-top: 0; border-bottom: 1px solid var(--line); background: transparent; backdrop-filter: none; }
  .nav-btn { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 16px; max-width: none; flex: 0 0 auto; }
  .nav-btn .nav-ico { font-size: 15px; }
}

/* ---- Accueil ---- */
.home { display: grid; gap: 26px; }
.kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--neon); font-weight: 700; margin-bottom: 10px; }
.hero-h1 { font-family: var(--display); font-size: clamp(26px, 4.2vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 20px; }
.hero-h1 .accent { color: var(--neon); }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-tile { background: rgba(30,42,56,.75); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; }
.stat-tile b { display: block; font-family: var(--display); font-size: 26px; color: #fff; }
.stat-tile span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.btn-neon { background: var(--neon); color: #0c1a16; border-radius: 999px; box-shadow: 0 8px 24px rgba(43,228,168,.28); }
.btn-neon:hover { filter: brightness(1.05); }
.recent .recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.recent h2 { font-family: var(--display); font-size: 15px; margin: 0; }
.link { background: none; border: 0; color: var(--neon); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.recent-list { display: grid; gap: 8px; }
.recent-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.recent-row:first-child { border-top: 0; }
.recent-row small { color: var(--muted); display: block; }

/* Schéma radial */
.radial { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.radial > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radial .spoke { stroke: var(--neon); stroke-opacity: .7; stroke-width: 2; stroke-dasharray: 7 9; vector-effect: non-scaling-stroke; animation: dash 1.4s linear infinite; }
.radial .spoke.off { stroke: #7f8fa3; stroke-opacity: .45; animation-duration: 3.2s; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.radial .ring { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hub-core { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, #1b2838, #0f1620 70%); border: 2px solid var(--neon); box-shadow: 0 0 0 10px rgba(43,228,168,.08), 0 0 60px rgba(43,228,168,.18); }
.hub-kicker { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hub-name { font-family: var(--display); font-weight: 800; font-size: clamp(14px, 2.2vw, 24px); line-height: 1.05; margin-top: 4px; }
.hub-name .accent { color: var(--neon); display: block; }
.hub-agency { font-size: 10px; color: var(--sand); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-top: 6px; }
.rnode { position: absolute; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center;
  background: #1a2634; border: 1px solid var(--line); color: var(--text); font: inherit; cursor: default; padding: 0; transition: transform .15s, box-shadow .15s; }
.rnode .ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #9fb0c3; }
.rnode .lbl { font-size: clamp(9px, 1.2vw, 12px); font-weight: 700; line-height: 1.1; padding: 0 8%; }
.rnode .sub { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rnode.live { cursor: pointer; border-color: var(--neon); background: rgba(43,228,168,.1); box-shadow: 0 0 30px rgba(43,228,168,.25); }
.rnode.live .ico { color: var(--neon); }
.rnode.live:hover { transform: translate(-50%, -50%) scale(1.06); }
.rnode.locked { opacity: .45; }
@media (min-width: 900px) { .home { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; } }
@media (max-width: 899px) { .home-right { order: -1; } .radial { width: min(100%, 360px); } }

/* ---- Cartes / pages ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.page-head { margin-bottom: 16px; }
.page-head.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.item-title { font-weight: 700; }
.item-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.empty { color: var(--muted); text-align: center; padding: 24px; }

/* ---- Statuts ---- */
.status { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.status-nouvelle  { background: rgba(201,169,110,.18); color: var(--sand); }
.status-en_cours  { background: rgba(59,130,246,.18); color: #93c5fd; }
.status-accreditee{ background: rgba(26,156,130,.2); color: #5ee0c3; }
.status-refusee   { background: rgba(229,72,77,.18); color: #fda4a7; }

/* ---- Admin ---- */
.subnav { display: flex; gap: 6px; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 5px; width: fit-content; max-width: 100%; }
.subnav-btn { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.subnav-btn.active { background: var(--green); color: #fff; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-xs { padding: 7px 10px; font-size: 12px; border-radius: 9px; }
.btn-danger { background: rgba(229,72,77,.15); color: #fda4a7; border: 1px solid rgba(229,72,77,.35); }
.state { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.state-on { background: rgba(26,156,130,.2); color: #5ee0c3; }
.state-off { background: rgba(148,163,184,.18); color: var(--muted); }
textarea { resize: vertical; min-height: 90px; }
.dialog-wide { width: min(94vw, 600px); }
.tile.locked { opacity: .45; cursor: default; }
.tile.locked .tile-badge { color: var(--muted); border-color: rgba(148,163,184,.4); }

/* ---- Droits par rubrique (interrupteurs) ---- */
fieldset.perms { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; }
fieldset.perms legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 520px) { .perm-grid { grid-template-columns: 1fr; } }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--navy-3); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; background: #3b4a60; position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch.off { color: var(--muted); }
.switch .sw-label small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }

/* ---- Équipe / comptes ---- */
.member { display: grid; grid-template-columns: 1fr auto; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.member.off { opacity: .6; }
.member-name { font-weight: 700; }
.member-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pchip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(26,156,130,.16); color: #5ee0c3; }
.pchip.off { background: rgba(148,163,184,.12); color: var(--muted); text-decoration: line-through; }
.pchip.all { background: rgba(201,169,110,.16); color: var(--sand); }
.role-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(201,169,110,.16); color: var(--sand); margin-left: 6px; vertical-align: middle; }
.agency-group { margin-bottom: 18px; }
.agency-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 0 4px; }
.agency-head h2 { margin: 0; font-size: 16px; }
.agency-head h2 small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 8px; }
.member-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.member-actions .row-actions { justify-content: flex-end; }
.form-actions .tiny { margin-right: auto; align-self: center; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filters select { max-width: 200px; } .filters input { flex: 1; min-width: 200px; }
.table-wrap { padding: 0; overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--card-2); position: sticky; top: 0; }
.table td select { padding: 8px 10px; border-radius: 10px; font-size: 12px; }
.table a { color: var(--green-2); font-weight: 600; text-decoration: none; }
.dialog { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 24px; width: min(92vw, 440px); }
.dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 50;
  background: var(--green); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}
.toast.error { background: var(--danger); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } h1 { font-size: 21px; } }

/* ---- Admin : outils ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
input[type=file] { padding: 10px; }

/* ---- Formations ---- */
.train-progress { padding: 14px 16px; margin-bottom: 14px; }
.tp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.tp-row b { display: block; font-family: var(--display); font-size: 22px; color: #fff; }
.tp-row span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tp-bar { height: 6px; border-radius: 999px; background: #263445; overflow: hidden; } .tp-bar i { display: block; height: 100%; background: var(--neon); transition: width .4s; }
.fiche-list { gap: 8px; }
.fiche-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; width: 100%; font: inherit; color: var(--text); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: transform .1s, border-color .15s; }
.fiche-card:hover { border-color: rgba(43,228,168,.5); } .fiche-card:active { transform: scale(.99); }
.fiche-card.done { border-color: rgba(43,228,168,.35); }
.fiche-num { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: rgba(43,228,168,.12); color: var(--neon); }
.fiche-num.big { width: 48px; height: 48px; font-size: 20px; border-radius: 14px; }
.fiche-main { display: grid; gap: 2px; min-width: 0; } .fiche-main b { font-size: 15px; } .fiche-main small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.fiche-meta { font-size: 11px; color: var(--sand); letter-spacing: .04em; margin-top: 2px; } .fiche-meta em { color: #fda4a7; font-style: normal; }
.fiche-badge { display: grid; justify-items: center; font-size: 24px; line-height: 1; } .fiche-badge small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.fiche-page .back { display: inline-block; margin-bottom: 12px; padding: 0; }
.fiche-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; } .fiche-head .kicker { margin-bottom: 4px; }
.fb { padding: 16px 18px; margin-bottom: 10px; }
.fb-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); font-weight: 700; margin-bottom: 8px; }
.fb p { line-height: 1.5; font-size: 15px; }
.fb.amorce { border-left: 4px solid var(--sand); font-style: italic; }
.fb.message { background: linear-gradient(135deg, rgba(43,228,168,.14), rgba(30,42,56,.9)); border-color: rgba(43,228,168,.35); }
.big-msg { font-family: var(--display); font-size: 17px !important; font-weight: 700; line-height: 1.35 !important; }
.fb.erreur { border-left: 4px solid var(--danger); } .fb.erreur .fb-k { color: #fda4a7; }
.fb.defi { border-left: 4px solid var(--neon); } .fb.defi .fb-k { color: var(--neon); }
.say { margin: 0; padding-left: 18px; display: grid; gap: 8px; } .say li { line-height: 1.5; font-size: 15px; }
.media-imgs { display: grid; gap: 12px; } .media-imgs figure { margin: 0; } .media-imgs img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.media-imgs figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--navy-3); border-radius: 12px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--neon); color: #0c1a16; font-weight: 800; font-size: 13px; }
.steps li b { display: block; } .steps li span { font-size: 13px; color: var(--muted); grid-column: 2; }
.mots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mot { font: inherit; font-weight: 700; color: var(--text); background: var(--navy-3); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.mot.good { background: rgba(43,228,168,.2); border-color: var(--neon); } .mot.bad { background: rgba(229,72,77,.15); border-color: var(--danger); text-decoration: line-through; opacity: .7; }
.checklist { display: grid; gap: 6px; }
.check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--navy-3); border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.temps { display: grid; gap: 6px; margin-bottom: 12px; } .temps span { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.temps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: #1E2A38; font-size: 12px; flex: 0 0 auto; }
.objections { display: grid; gap: 8px; } .obj { background: var(--navy-3); border-radius: 12px; padding: 12px 14px; }
.obj-q { font-weight: 700; color: #fda4a7; margin-bottom: 6px; } .obj-a { line-height: 1.45; font-size: 14px; } .obj-t { font-size: 11px; color: var(--sand); margin-top: 6px; letter-spacing: .06em; }
/* Scène vidéo */
.scene .tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.scene .tab { flex: 1; border: 1px solid var(--line); background: var(--navy-3); color: var(--text); border-radius: 12px; padding: 10px; font: inherit; font-weight: 700; cursor: pointer; font-size: 13px; }
.scene .tab.mou.on { border-color: #ff5a5f; background: rgba(255,90,95,.12); } .scene .tab.dir.on { border-color: var(--neon); background: rgba(43,228,168,.12); }
.scene .stage { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--line); }
.scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; } .scene video.on { opacity: 1; }
.scene .bubble { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(15,22,32,.88); backdrop-filter: blur(4px); border-radius: 12px; padding: 9px 12px; font-size: 14px; line-height: 1.35; min-height: 52px; border-left: 4px solid var(--sand); }
.scene .stage.mou .bubble { border-left-color: #ff5a5f; } .scene .stage.dir .bubble { border-left-color: var(--neon); }
.scene .tag { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-top: 3px; } .scene .stage.mou .tag { color: #ff5a5f; } .scene .stage.dir .tag { color: var(--neon); }
.scene .ctrl { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.scene .bar { flex: 1; height: 6px; background: #263445; border-radius: 999px; overflow: hidden; } .scene .bar i { display: block; height: 100%; width: 0; background: var(--sand); }
.scene .score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.scene .sc { background: var(--navy-3); border-radius: 12px; padding: 10px; text-align: center; } .scene .sc b { display: block; font-size: 20px; font-family: var(--display); } .scene .sc span { font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.scene .stage.mou ~ .score .sc b { color: #ff5a5f; } .scene .stage.dir ~ .score .sc b { color: var(--neon); }
.scene [data-foot] { margin-top: 10px; }
/* Quiz */
.quiz { padding: 16px 18px; border-color: rgba(201,169,110,.35); }
.q-prog { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.q-text { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.q-opts { display: grid; gap: 8px; }
.q-opt { font: inherit; text-align: left; color: var(--text); background: var(--navy-3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; line-height: 1.35; }
.q-opt:hover:not(:disabled) { border-color: rgba(43,228,168,.5); }
.q-opt.good { background: rgba(43,228,168,.18); border-color: var(--neon); } .q-opt.bad { background: rgba(229,72,77,.15); border-color: var(--danger); }
.q-why { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(201,169,110,.12); border: 1px solid rgba(201,169,110,.3); font-size: 14px; line-height: 1.45; }
.q-result { text-align: center; } .q-medal { font-size: 56px; line-height: 1; margin: 6px 0 8px; } .q-result h2 { font-family: var(--display); }
.q-result .form-actions { justify-content: center; margin-top: 14px; }
.table.suivi td, .table.suivi th { padding: 10px 8px; } .table.suivi td:first-child, .table.suivi th:first-child { padding-left: 14px; } .table.suivi td.center { font-size: 18px; }
.lex { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; } .lex b { color: var(--neon); } .lex p { font-size: 14px; margin-top: 4px; line-height: 1.4; }
.lex-say { color: var(--sand); font-style: italic; }
@media (max-width: 520px) { .tp-row b { font-size: 18px; } .fiche-card { gap: 10px; padding: 12px; } }
.subnav.scroll { overflow-x: auto; width: auto; max-width: 100%; scrollbar-width: none; } .subnav.scroll::-webkit-scrollbar { display: none; } .subnav.scroll .subnav-btn { white-space: nowrap; }
.fiche-num.first { background: rgba(229,72,77,.18); color: #fda4a7; }
.mode-row { display: flex; gap: 8px; margin-bottom: 14px; } .mode-row .btn.on { border-color: var(--neon); color: var(--neon); }
.dt { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.dt-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .dt-head b { font-size: 15px; }
.dt-say { font-size: 16px; line-height: 1.5; font-weight: 500; }
.dt-say[data-hidden] { filter: blur(7px); user-select: none; pointer-events: none; }
.dt .btn-xs { margin-top: 8px; }
.dt-tip { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--sand); }
.fb.ultime { margin-top: 12px; border-color: rgba(255,90,95,.35); } .fb.ultime .obj-q { margin-bottom: 8px; }
.rule-grid { display: grid; gap: 10px; margin-bottom: 14px; } @media (min-width: 700px) { .rule-grid { grid-template-columns: 1fr 1fr; } }
.rule { border-radius: 14px; padding: 12px 14px; } .rule ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
.rule-k { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }
.rule.interdit { background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.4); } .rule.interdit .rule-k { color: #fda4a7; }
.rule.oblig { background: rgba(43,228,168,.1); border: 1px solid rgba(43,228,168,.4); } .rule.oblig .rule-k { color: var(--neon); }
.proc { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .proc a { color: var(--neon); text-decoration: none; }
.proc .steps li b { font-weight: 600; font-size: 14px; }
.view { overflow-x: clip; min-width: 0; width: 100%; } .page { min-width: 0; max-width: 100%; } .subnav.scroll { display: flex; width: 100%; }
mark.hl { background: rgba(43,228,168,.18); color: var(--neon); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
mark.hl.red { background: rgba(229,72,77,.18); color: #fda4a7; }
.btn-call { display: flex; justify-content: center; background: linear-gradient(135deg, #2F6DF6, #1d4ed8); color: #fff; text-decoration: none; margin-bottom: 14px; font-size: 15px; box-shadow: 0 8px 20px rgba(47,109,246,.3); }
.vid { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #000; display: block; aspect-ratio: 16/9; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.man-steps { display: grid; gap: 14px; }
.man-step { background: var(--navy-3); border-radius: 14px; padding: 12px; }
.man-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .man-head b { font-size: 14px; }
.man-step img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; background: #fff; }
.man-do { font-size: 14px; line-height: 1.45; margin-top: 8px; }
.man-say { font-size: 14px; line-height: 1.45; margin-top: 6px; color: var(--neon); font-style: italic; }
.tp-row.four { grid-template-columns: repeat(4, 1fr); }
.tp-btn { font: inherit; display: grid; justify-items: center; gap: 4px; align-content: center; border: 1px solid rgba(43,228,168,.5); background: rgba(43,228,168,.12); color: var(--neon); border-radius: 12px; padding: 8px 6px; cursor: pointer; font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; }
.tp-btn:first-line { font-size: 20px; }
.speech { padding: 22px 20px; font-size: 17px; line-height: 1.65; }
.speech .sp { margin-bottom: 18px; } .speech .sp:last-child { margin-bottom: 0; }
.speech h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.speech h3 span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(43,228,168,.15); color: var(--neon); font-size: 11px; font-weight: 800; letter-spacing: 0; }
.speech p { margin: 0; }
.speech .ult { border-top: 1px solid var(--line); padding-top: 16px; } .speech .ult h3 { color: #fda4a7; } .speech .ult h3 span { background: rgba(229,72,77,.18); color: #fda4a7; }
.speech .sp-q { color: #fda4a7; font-style: italic; margin-bottom: 6px; font-size: 15px; }
@media (max-width: 520px) { .tp-row.four { grid-template-columns: 1fr 1fr; } .speech { font-size: 16px; padding: 18px 16px; } }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.doc:hover { border-color: rgba(43,228,168,.5); } .doc.must { border-color: rgba(201,169,110,.5); }
.doc-ico { font-size: 28px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy-3); border-radius: 12px; }
.doc-main { display: grid; gap: 3px; min-width: 0; } .doc-main b { font-size: 15px; } .doc-main small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.doc-dl { display: grid; justify-items: center; color: var(--neon); font-size: 22px; line-height: 1; } .doc-dl small { font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-top: 2px; }
.radial.dense .rnode { width: 20%; } .radial.dense .rnode .lbl { font-size: clamp(8px, 1.05vw, 11px); }
.team-sep { font-size: 15px; margin: 18px 4px 8px; } .team-sep small { font-weight: 500; font-size: 12px; margin-left: 6px; }
/* ---- Recrutement ---- */
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rec-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 12px; display: grid; gap: 2px; }
.rec-card .rec-ic { font-size: 18px; } .rec-card b { font-family: var(--display); font-size: 26px; color: #fff; } .rec-card span:not(.rec-ic) { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rec-card small { font-size: 11px; color: var(--sand); margin-top: 2px; }
.rec-alert { background: rgba(229,72,77,.14); border: 1px solid rgba(229,72,77,.45); color: #fda4a7; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; } .rec-alert small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.rec-ok { background: rgba(43,228,168,.1); border: 1px solid rgba(43,228,168,.35); color: var(--neon); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.token-box { background: var(--navy-3); border-radius: 12px; padding: 10px 12px; } .token-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .token-row code { flex: 1; min-width: 160px; font-size: 13px; background: #0f1620; padding: 8px 10px; border-radius: 8px; word-break: break-all; }
@media (max-width: 520px) { .rec-grid { grid-template-columns: 1fr 1fr; } .rec-card b { font-size: 22px; } }
@media (min-width: 900px) { .rec-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Admin : candidats (v0.10) ---------- */
.view.wide { max-width: 1320px; }
.cand-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px; margin-bottom: 14px;
  background: radial-gradient(900px 220px at 0% 0%, rgba(43,228,168,.14), transparent 60%), radial-gradient(600px 200px at 100% 100%, rgba(201,169,110,.12), transparent 60%), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cand-hero h1 { margin: 2px 0 6px; } .cand-hero p { margin: 0; color: var(--muted); max-width: 640px; line-height: 1.5; }
.cand-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cand-hero-actions .btn { display: inline-flex; align-items: center; gap: 8px; } .cand-hero-actions .ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--c); opacity: .9; }
.stat-ic { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); }
.stat-ic .ico { width: 20px; height: 20px; stroke: var(--c); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat b { font-family: var(--display); font-size: 24px; line-height: 1; color: #fff; } .stat > span:last-child { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }
.stat.c-blue { --c: #60a5fa; } .stat.c-violet { --c: #a78bfa; } .stat.c-sand { --c: var(--sand); } .stat.c-green { --c: var(--neon); } .stat.c-red { --c: #f87171; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px; border-radius: 16px; }
.toolbar select { max-width: 190px; padding: 10px 12px; border-radius: 12px; font-size: 13px; } .toolbar input { flex: 1; min-width: 220px; padding: 10px 14px; border-radius: 12px; }
.toolbar-info { font-size: 12px; color: var(--muted); white-space: nowrap; padding: 0 6px; }
.cand-wrap { border-radius: 18px; }
.table.cand th { padding: 12px 12px; } .table.cand td { padding: 13px 12px; } .table.cand td:first-child, .table.cand th:first-child { padding-left: 18px; }
.table.cand tr.age30 > td:nth-child(2) { box-shadow: inset 3px 0 0 #f59e0b; }
.table.cand tr.clos > td { opacity: .5; } .table.cand tr.clos > td select { opacity: 1; }
.table.cand select { min-width: 140px; padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.cand-name { color: #fff !important; font-size: 14px; text-decoration: none; } .cand-name:hover { color: var(--neon) !important; }
.cand-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.age { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); white-space: nowrap; }
.age.est { border: 1px dashed rgba(255,255,255,.3); background: transparent; }
.cand-note { display: grid; gap: 6px; max-width: 340px; }
.note-pill { position: relative; display: inline-flex; align-items: baseline; gap: 1px; width: 58px; padding: 3px 8px 5px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--sand); overflow: hidden; }
.note-pill b { font-family: var(--display); font-size: 15px; } .note-pill small { font-size: 10px; opacity: .7; }
.note-pill i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); background: currentColor; }
.note-pill.n5, .note-pill.n4 { color: var(--neon); } .note-pill.n2, .note-pill.n1, .note-pill.n0 { color: #fda4a7; }
.pourquoi { font-size: 12.5px; line-height: 1.4; color: var(--text); opacity: .85; }
.cand-more > td { background: var(--card-2); padding: 0 18px 14px !important; }
.cand-detail { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 13px; } .cand-detail p { margin: 0 0 6px; }
.journal { margin: 8px 0; padding-left: 16px; font-size: 12px; color: var(--muted); } .journal li { margin: 2px 0; } .journal small { color: var(--sand); margin-right: 6px; }
.cand-empty { display: grid; justify-items: center; gap: 6px; padding: 44px 20px; text-align: center; color: var(--muted); }
.cand-empty .ico { width: 44px; height: 44px; stroke: var(--sand); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; margin-bottom: 6px; }
.cand-empty b { color: var(--text); font-size: 15px; } .cand-empty span { max-width: 460px; line-height: 1.5; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .stat-row .stat:last-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .cand-hero { padding: 20px; } .cand-note { max-width: 240px; } .toolbar select { max-width: none; flex: 1; } }
