/* IB Forum — pages applicatives (inscription, espace membre, administration) */
:root {
  --bg: #070608; --panel: #121019; --panel-2: #1c1926; --deep: #0b0a10;
  --ink: #f4f1ff; --sand: #070608; --paper: #070608; --sand-2: #1c1926;
  --yellow: #c6ff00; --lat: #c6ff00; --lat-2: #c6ff00; --gold: #c6ff00; --green: #19c46e; --red: #ff2e88; --indigo: #7b5cff; --pink: #ff9fb6; --violet: #b9a8ff;
  --line: rgba(244,241,255,.14); --line-2: rgba(244,241,255,.24);
  --f: 'Manrope', system-ui, sans-serif; --d: 'Syne', system-ui, sans-serif; --s: 'Manrope', system-ui, sans-serif; --m: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1); --spring: cubic-bezier(.34,1.56,.64,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.app { font-family: var(--f); background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--lat-2); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a, button, input, select, textarea, label { -webkit-tap-highlight-color: transparent; }
em { font-family: var(--s); font-style: italic; font-weight: 300; color: var(--lat-2); }
code { font-family: var(--m); font-size: .9em; background: var(--sand-2); padding: .1em .4em; border-radius: 3px; }

.app-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(.8rem + env(safe-area-inset-top)) clamp(1rem, 4vw, 2.5rem) .8rem; background: rgba(244,241,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); }
.app-brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.app-brand img { border-radius: 50%; background: var(--panel); }
.app-nav { display: flex; align-items: center; gap: 1.2rem; font-size: .9rem; }
.app-nav a, .app-nav button { color: var(--ink); text-decoration: none; opacity: .85; }
.app-nav a:hover, .app-nav button:hover { opacity: 1; }
.app-nav .pill { background: var(--lat); color: var(--ink); padding: .5rem 1rem; border-radius: 100px; opacity: 1; font-weight: 600; }
.app-main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 4rem; }
body.wide .app-main { max-width: 1240px; }
.app-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: 1.4rem clamp(1rem, 4vw, 2.5rem) calc(1.4rem + env(safe-area-inset-bottom)); font-family: var(--m); font-size: .7rem; border-top: 1px solid var(--line); opacity: .7; }

.kicker { display: inline-block; font-family: var(--m); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lat-2); margin-bottom: .8rem; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin-bottom: 1rem; }
h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 1rem; }
h3 { font-family: var(--m); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--lat-2); margin: 1.8rem 0 .8rem; }
.muted { color: rgba(244,241,255,.6); font-size: .92rem; }
.alt { margin-top: 2rem; text-align: center; font-size: .95rem; }

/* Formulaires */
.fld { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.fld > span, .file > span { font-family: var(--m); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(244,241,255,.7); }
.fld i, .file i { color: var(--lat-2); font-style: normal; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid rgba(244,241,255,.2); border-radius: 8px; padding: .8rem .9rem; min-height: 48px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { border-color: var(--lat); box-shadow: 0 0 0 3px rgba(198,255,0,.18); }
textarea { resize: vertical; min-height: 90px; }
.hint { font-size: .78rem; color: rgba(244,241,255,.55); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.btn-p, .btn-s { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .8rem 1.6rem; border-radius: 100px; font-weight: 600; transition: transform .2s, background .3s, color .3s; text-decoration: none; }
.btn-p { background: var(--yellow); color: #070608; }
.btn-p:hover { background: var(--lat); color: var(--ink); }
.btn-p:disabled { opacity: .6; cursor: wait; }
.btn-p.ok { background: var(--green); color: #fff; }
.btn-s { border: 1px solid var(--ink); color: var(--ink); }
.btn-s.ko { border-color: var(--red); color: var(--red); }
.btn-p:active, .btn-s:active { transform: scale(.98); }
.linkbtn { color: var(--lat-2); text-decoration: underline; font-size: .9rem; margin-top: .8rem; }
.form-msg { min-height: 1.2em; margin-top: 1rem; color: var(--red); font-size: .92rem; font-weight: 600; }
.check { display: flex; gap: .8rem; align-items: flex-start; margin: 1.4rem 0; font-size: .92rem; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; flex: 0 0 22px; padding: 0; border-radius: 5px; margin-top: .1rem; cursor: pointer; }
.check input:checked { background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f1ff' stroke-width='3'><path d='M5 12l5 5 9-10'/></svg>") center/16px no-repeat; border-color: var(--ink); }
.file { display: grid; gap: .4rem; margin-bottom: 1rem; position: relative; }
.file input { position: absolute; inset: auto 0 0 0; height: 52px; opacity: 0; cursor: pointer; min-height: 0; }
.file .file-name { display: flex; align-items: center; min-height: 52px; padding: .8rem 1rem .8rem 3rem; border: 1.5px dashed rgba(244,241,255,.3); border-radius: 8px; font-style: normal; font-size: .9rem; color: rgba(244,241,255,.6); background: var(--deep) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6ff00' stroke-width='1.8'><path d='M12 16V4M7 9l5-5 5 5M4 20h16'/></svg>") 1rem center/20px no-repeat; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.has .file-name { border-style: solid; border-color: var(--green); color: var(--ink); }

/* Inscription */
.reg-head p { color: rgba(244,241,255,.7); max-width: 560px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 2rem 0; }
.stepper li { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(244,241,255,.45); border-top: 3px solid var(--sand-2); padding-top: .7rem; transition: color .3s, border-color .3s; }
.stepper b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sand-2); font-size: .72rem; flex: 0 0 24px; }
.stepper li.on { color: var(--ink); border-color: var(--lat); }
.stepper li.on b { background: var(--lat); color: var(--ink); }
.stepper li.done { color: var(--ink); border-color: var(--green); }
.stepper li.done b { background: var(--green); color: #fff; }
.reg-form, .step-otp, .auth-form, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.3rem, 4vw, 2.2rem); box-shadow: 0 20px 60px -30px rgba(244,241,255,.25); }
.step { border: 0; display: none; animation: fade .5s var(--ease); }
.step.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
legend { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 1.2rem; padding: 0; }
legend + * { margin-top: 0; }
.step legend:not(:first-child) { margin-top: 2rem; }
.cat-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.cat-opt { position: relative; cursor: pointer; }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cat-opt span { display: grid; gap: .3rem; height: 100%; padding: 1rem 1.1rem; border: 1.5px solid rgba(244,241,255,.15); border-radius: 10px; transition: border-color .2s, background .2s; }
.cat-opt b { font-size: .98rem; line-height: 1.25; }
.cat-opt small { font-size: .76rem; color: rgba(244,241,255,.6); line-height: 1.35; }
.cat-opt input:checked + span { border-color: var(--lat); background: rgba(198,255,0,.07); box-shadow: inset 0 0 0 1px var(--lat); }
.cat-opt input:focus-visible + span { outline: 2px solid var(--lat); outline-offset: 2px; }
.actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; }
.actions .btn-p:only-child { margin-left: auto; }
.step-otp { text-align: center; }
.otp-id { display: inline-grid; gap: .2rem; padding: .9rem 1.4rem; border-radius: 10px; background: var(--panel-2); color: var(--ink); margin-bottom: 1.4rem; }
.otp-id small { font-family: var(--m); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.otp-id b { font-family: var(--m); font-size: 1.3rem; letter-spacing: .04em; color: var(--lat); }
.otp-form { display: flex; gap: .6rem; justify-content: center; margin: 1.4rem auto 0; max-width: 360px; }
.otp-form input { text-align: center; font-family: var(--m); font-size: 1.5rem; letter-spacing: .4em; }

/* Connexion */
.auth { max-width: 460px; margin: 0 auto; }
.auth-form .btn-p { width: 100%; margin-top: .4rem; }

/* Espace membre */
.banner { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.4rem; font-size: .95rem; }
.banner.ok { background: rgba(25,196,110,.1); border: 1px solid rgba(25,196,110,.35); }
.banner.ko { background: rgba(255,46,136,.08); border: 1px solid rgba(255,46,136,.35); }
.acct-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.idcard { position: relative; overflow: hidden; border-radius: 16px; padding: 1.4rem 1.4rem 1.8rem; color: var(--ink); aspect-ratio: 1.586; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 100% 0%, rgba(198,255,0,.35), transparent 55%), linear-gradient(140deg, #3a1f8a, #070608 75%); box-shadow: 0 30px 60px -25px rgba(244,241,255,.6); }
.idcard::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border: 1px solid rgba(198,255,0,.25); border-radius: 50%; }
.idcard.is-verified { background: radial-gradient(120% 90% at 100% 0%, rgba(198,255,0,.4), transparent 55%), linear-gradient(140deg, #3a1f8a, #070608 75%); }
.idc-top { display: flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .12em; font-size: .85rem; }
.idc-top img { border-radius: 50%; background: var(--panel); }
.idc-top small { display: block; font-family: var(--m); font-weight: 400; font-size: .58rem; letter-spacing: .14em; opacity: .6; }
.idc-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; position: relative; z-index: 1; }
.idc-id { font-family: var(--m); font-size: clamp(1rem, 3.4vw, 1.35rem); letter-spacing: .04em; color: var(--lat); }
.idc-name { font-size: clamp(1.1rem, 3.6vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: .2rem 0; }
.idc-cat { font-family: var(--m); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-bottom: .6rem; }
.idc-qr { width: 84px; height: 84px; flex: 0 0 84px; background: var(--panel); padding: 6px; border-radius: 8px; }
.idc-qr svg { width: 100%; height: 100%; display: block; }
.idc-flag { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-rows: 1fr 1fr; height: 6px; }
.idc-flag i:first-child { background: var(--red); } .idc-flag i:last-child { background: var(--green); }
.st { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 100px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.st-wait { background: rgba(198,255,0,.2); color: #c6ff00; }
.st-rev { background: rgba(198,255,0,.16); color: var(--lat-2); }
.st-ok { background: rgba(25,196,110,.16); color: var(--green); }
.st-ko { background: rgba(255,46,136,.12); color: var(--red); }
.idcard .st-wait, .idcard .st-rev { background: rgba(244,241,255,.14); color: var(--ink); }
.idcard .st-ok { background: var(--gold); color: var(--ink); }
.track { list-style: none; display: grid; gap: .1rem; margin-bottom: 1.2rem; }
.track li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; color: rgba(244,241,255,.5); }
.track b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(244,241,255,.2); font-size: .78rem; }
.track li.ok { color: var(--ink); }
.track li.ok b { background: var(--green); border-color: var(--green); color: #fff; }
.acct-side .btn-s { margin-top: 1rem; }
.acct-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.kv { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: .55rem 1rem; font-size: .92rem; }
.kv dt { font-family: var(--m); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(244,241,255,.55); padding-top: .2rem; }
.kv dd { word-break: break-word; }
.tag { display: inline-block; font-size: .68rem; padding: .1rem .45rem; border-radius: 4px; background: rgba(198,255,0,.2); margin-left: .3rem; }
.tag.ok { background: rgba(25,196,110,.15); color: var(--green); }
.docs { list-style: none; margin-bottom: 1.2rem; }
.docs li { display: grid; gap: .1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.docs b { font-family: var(--m); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lat-2); }
.docs em { font-style: normal; font-size: .75rem; color: rgba(244,241,255,.5); }
.doc-form { display: grid; gap: .6rem; }

/* Vérification publique */
.verify-res { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; }
.verify-res .st { font-size: 1rem; padding: .5rem 1rem; margin-bottom: 1.2rem; }
.verify-res dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; }
.verify-res dt { font-family: var(--m); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(244,241,255,.55); }

/* Charte */
.doc h2 { margin-top: 2rem; }
.doc p, .doc li { margin-bottom: .8rem; max-width: 680px; }
.doc ul { padding-left: 1.2rem; }

/* Administration */
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.adm-stats { display: flex; gap: .6rem; }
.adm-stats div { display: grid; background: var(--panel-2); color: var(--ink); border-radius: 10px; padding: .8rem 1.2rem; min-width: 110px; }
.adm-stats b { font-size: 1.8rem; line-height: 1; }
.adm-stats span { font-family: var(--m); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin-top: .3rem; }
.adm-tools { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.adm-tools input { max-width: 320px; }
.seg { display: flex; flex-wrap: wrap; gap: .3rem; background: var(--sand-2); padding: .3rem; border-radius: 100px; }
.seg button { padding: .55rem 1rem; border-radius: 100px; font-size: .86rem; min-height: 40px; }
.seg button.on { background: var(--panel-2); color: var(--ink); }
.adm-list { display: grid; gap: .5rem; }
.adm-row { display: grid; grid-template-columns: 11rem 1.4fr 1fr 6rem 8rem auto; align-items: center; gap: 1rem; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; transition: border-color .2s, transform .2s; }
.adm-row:hover { border-color: var(--lat); transform: translateX(3px); }
.ar-id { font-family: var(--m); font-size: .8rem; color: var(--lat-2); }
.ar-name { display: grid; min-width: 0; }
.ar-name small { font-size: .8rem; color: rgba(244,241,255,.55); overflow: hidden; text-overflow: ellipsis; }
.ar-cat, .ar-docs, .ar-age { font-size: .84rem; color: rgba(244,241,255,.7); }
.ar-age.late { color: var(--red); font-weight: 600; }
.empty { padding: 2rem; text-align: center; }
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-bg { position: absolute; inset: 0; background: rgba(244,241,255,.5); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: calc(1.4rem + env(safe-area-inset-top)) 1.6rem calc(2rem + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.on .drawer-bg { opacity: 1; }
.drawer.on .drawer-panel { transform: none; }
.dp-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.dp-head h2 { font-size: 1.6rem; margin: .3rem 0 .5rem; }
.dp-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.6rem; line-height: 1; flex: 0 0 44px; }
.dp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.log { list-style: none; font-size: .8rem; }
.log li { display: grid; grid-template-columns: 9rem 1fr auto; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.log span, .log em { color: rgba(244,241,255,.55); font-style: normal; }
.log b { font-family: var(--m); font-weight: 400; font-size: .75rem; }

/* Mobile */
@media (max-width: 760px) {
  .app-nav { gap: .8rem; font-size: .82rem; }
  .app-nav a:not(.pill):first-child:nth-last-child(3) { display: none; }
  .row2, .cat-pick, .acct-grid, .acct-cols { grid-template-columns: 1fr; }
  .stepper span { display: none; }
  .stepper li { justify-content: center; }
  .actions { flex-direction: column-reverse; }
  .actions .btn-p, .actions .btn-s { width: 100%; }
  .reg-form, .step-otp { border-radius: 12px; }
  .otp-form { flex-direction: column; }
  .otp-form .btn-p { width: 100%; }
  .adm-row { grid-template-columns: 1fr auto; gap: .3rem .8rem; }
  .adm-row .ar-name { grid-column: 1 / -1; order: -1; }
  .ar-cat, .ar-docs { display: none; }
  .adm-stats { width: 100%; }
  .adm-stats div { flex: 1; min-width: 0; padding: .7rem; }
  .adm-tools input { max-width: none; }
  .log li { grid-template-columns: 1fr; gap: 0; }
  .idc-qr { width: 70px; height: 70px; flex-basis: 70px; }
}

/* ================= Modules : navigation ================= */
.app-links { display: flex; gap: .3rem; margin-right: auto; margin-left: 1.4rem; }
.app-links a { color: var(--ink); text-decoration: none; font-size: .86rem; padding: .45rem .85rem; border-radius: 100px; border: 1px solid rgba(244,241,255,.18); transition: background .2s, border-color .2s; white-space: nowrap; }
.app-links a:hover, .app-links a[aria-current] { background: rgba(198,255,0,.18); border-color: var(--lat); }
.small { font-size: .8rem; }
.mono { font-family: var(--m); font-size: .8rem; }
.btn-p.sm, .btn-s.sm { min-height: 38px; padding: .45rem 1rem; font-size: .84rem; }
.panel + .panel, .panel + .match-box { margin-top: 1.2rem; }
.panel.warn { border-color: rgba(198,255,0,.45); background: rgba(198,255,0,.08); }
.form-msg.ok { color: var(--green); }
.crumb { font-family: var(--m); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; color: rgba(244,241,255,.55); }
.crumb a { color: inherit; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tags .tag { margin: 0; }
.tag.st-ok, .tag.st-ko, .tag.st-rev, .tag.st-wait { font-weight: 600; }
.vbadge { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--m); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: .12rem .45rem; border-radius: 3px; vertical-align: middle; }
.vbadge::before { content: '✓'; font-weight: 700; }

/* ================= Industry Map ================= */
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.map-head > div:first-child { max-width: 700px; }
.head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.obs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; margin-bottom: 1.6rem; }
.obs-card { position: relative; display: grid; align-content: space-between; gap: .6rem; min-height: 110px; padding: 1rem 1.1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.obs-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--gold)); }
.obs-card b { font-size: 2.2rem; line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.obs-card span { font-family: var(--m); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,241,255,.6); line-height: 1.3; }
.obs-card.big { background: var(--panel-2); color: var(--ink); border-color: var(--ink); }
.obs-card.big::before { background: var(--lat); }
.obs-card.big b { color: var(--lat); font-size: 2.8rem; }
.obs-card.big span { color: rgba(244,241,255,.7); }
.map-tools { display: grid; grid-template-columns: 2fr 1.3fr 1.1fr auto; gap: .5rem; margin-bottom: .8rem; }
.jobs-page .map-tools { grid-template-columns: 2fr 1.3fr 1.1fr 1fr; }
.map-tools .btn-s { min-height: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; min-height: 40px; border-radius: 100px; border: 1px solid rgba(244,241,255,.18); background: var(--panel); font-size: .84rem; opacity: .5; transition: opacity .2s, border-color .2s; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip.on { opacity: 1; border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.map-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1rem; align-items: start; }
.map-box { position: sticky; top: 84px; }
#map { height: min(72vh, 680px); border-radius: 14px; border: 1px solid var(--line); background: #e8e2d6; z-index: 1; }
.map-note { font-size: .74rem; color: rgba(244,241,255,.55); margin-top: .5rem; }
.map-list { display: grid; gap: .5rem; max-height: min(72vh, 680px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: .2rem; }
.list-count { font-family: var(--m); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,241,255,.55); margin-bottom: .2rem; }
.ind-row { display: grid; gap: .3rem; padding: .95rem 1.1rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.ind-row:hover { border-color: var(--lat); transform: translateX(3px); }
.ind-row b { font-size: 1rem; line-height: 1.25; }
.ir-top, .ir-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ir-id { font-family: var(--m); font-size: .72rem; color: var(--lat-2); letter-spacing: .04em; }
.ir-meta { font-size: .8rem; color: rgba(244,241,255,.6); }
.ir-prod { font-size: .8rem; color: rgba(244,241,255,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 600; padding: .2rem .6rem; border-radius: 100px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.badge.big { font-size: .82rem; padding: .35rem .85rem; }
.conf { font-family: var(--m); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 3px; }
.conf-verifie { background: rgba(25,196,110,.14); color: var(--green); }
.conf-a_confirmer { background: rgba(198,255,0,.22); color: #c6ff00; }
.conf-historique { background: rgba(74,90,112,.14); color: #4a5a70; }
.conf-projection { background: rgba(123,79,176,.14); color: #7b4fb0; }
.jobs-tag { font-size: .72rem; font-weight: 600; color: var(--lat-2); }
.jobs-tag::before { content: '● '; }
.dq { margin-top: 2.4rem; padding: 1.6rem; border-radius: 14px; background: var(--panel-2); color: var(--ink); }
.dq h2 { color: var(--gold); font-size: 1.05rem; }
.dq ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem 1.6rem; list-style: none; font-size: .88rem; opacity: .9; }
.dq li { padding-left: 1rem; border-left: 2px solid var(--lat); }
.pop { display: grid; gap: .2rem; font-family: var(--f); min-width: 190px; }
.pop-id { font-family: var(--m); font-size: .66rem; color: var(--lat-2); }
.pop b { font-size: .95rem; line-height: 1.2; }
.pop small { color: rgba(244,241,255,.6); }
.pop em { font-style: normal; font-size: .78rem; font-family: var(--f); }
.pop a { margin-top: .3rem; font-weight: 600; }
.leaflet-popup-content-wrapper { border-radius: 10px; }

/* Fiche industrielle */
.ind-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.ind-head h1 { margin: .3rem 0 .8rem; font-size: clamp(1.9rem, 5.5vw, 3rem); }
.ind-status { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ind-trust { display: grid; gap: .4rem; justify-items: end; text-align: right; font-size: .8rem; }
.ind-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
.ind-grid > div > * + * { margin-top: 1.2rem; }
.mini-map { height: 260px; border-radius: 14px; border: 1px solid var(--line); z-index: 1; }
.todo { display: inline-block; font-family: var(--m); font-size: .72rem; color: #c6ff00; background: repeating-linear-gradient(135deg, rgba(198,255,0,.18) 0 6px, rgba(198,255,0,.08) 6px 12px); padding: .15rem .5rem; border-radius: 3px; }
.panel.note { background: rgba(198,255,0,.07); border-left: 4px solid var(--gold); }
.rel { list-style: none; display: grid; gap: .4rem; font-size: .9rem; }
.rel a { display: flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; }
.rel a:hover { color: var(--lat-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.docs li a { word-break: break-all; font-size: .82rem; }

/* ================= Talents & Jobs ================= */
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem; }
.job-list .list-count, .job-list .empty { grid-column: 1 / -1; }
.job-list .empty { background: var(--panel); border: 1px dashed rgba(244,241,255,.25); border-radius: 14px; }
.job-card { position: relative; display: grid; gap: .5rem; align-content: start; padding: 1.3rem 1.3rem 1.1rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.job-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.job-card:hover { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(244,241,255,.4); }
.job-card h3 { font-family: var(--f); font-size: 1.2rem; text-transform: none; letter-spacing: -.02em; color: var(--ink); margin: 0; line-height: 1.2; font-weight: 600; }
.jc-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.jc-sector { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--m); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(244,241,255,.65); }
.jc-sector i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.jc-emp { font-size: .9rem; color: rgba(244,241,255,.75); }
.jc-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem; color: rgba(244,241,255,.65); }
.jc-meta li + li::before { content: '·'; margin-right: .9rem; margin-left: -.5rem; opacity: .5; }
.jc-foot { display: flex; justify-content: space-between; gap: .6rem; font-family: var(--m); font-size: .64rem; color: rgba(244,241,255,.5); border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .3rem; }
.match { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--m); font-size: .72rem; padding: .25rem .55rem; border-radius: 100px; white-space: nowrap; }
.match b { font-size: .95rem; }
.match.mhi { background: rgba(25,196,110,.14); color: var(--green); }
.match.mmid { background: rgba(198,255,0,.24); color: #c6ff00; }
.match.mlo { background: rgba(244,241,255,.07); color: rgba(244,241,255,.6); }
.match.big { padding: .8rem 1rem; border-radius: 14px; }
.match.big b { font-size: 2.2rem; line-height: 1; }

.job-head { padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.job-head h1 { margin: .6rem 0 .6rem; font-size: clamp(1.9rem, 6vw, 3rem); }
.job-head .jc-emp { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
body.app:has(#job) .app-main { max-width: 1100px; }
.job-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; }
.job-grid > aside { position: sticky; top: 84px; }
.prose { font-size: 1rem; line-height: 1.7; }
.linked { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.mb-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.mb-head h2 { margin: 0; }
.bars { list-style: none; display: grid; gap: .5rem; margin-bottom: 1rem; }
.bars li { display: grid; grid-template-columns: 7.5rem 1fr 2.8rem; align-items: center; gap: .7rem; font-size: .84rem; }
.bars i { height: 8px; border-radius: 10px; background: var(--sand-2); overflow: hidden; }
.bars i b { display: block; height: 100%; background: linear-gradient(90deg, var(--lat), var(--gold)); border-radius: inherit; }
.bars em { font-family: var(--m); font-style: normal; font-size: .72rem; text-align: right; color: rgba(244,241,255,.6); }
.bars.sm li { grid-template-columns: 6.2rem 1fr 2.4rem; font-size: .76rem; }
.match-box p { margin-top: .6rem; font-size: .9rem; line-height: 1.9; }
.match-box .tag { margin: 0 .15rem 0 0; }
.panel.applied { border-color: rgba(25,196,110,.4); background: rgba(25,196,110,.08); }

.sector-pick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: .5rem .85rem; border-radius: 100px; border: 1px solid rgba(244,241,255,.2); background: var(--panel); font-size: .84rem; transition: background .2s, border-color .2s, color .2s; }
.pick input:checked + span { background: var(--panel-2); color: var(--ink); border-color: var(--ink); }
.pick input:disabled + span { opacity: .4; }
.pick input:focus-visible + span { outline: 2px solid var(--lat); outline-offset: 2px; }
fieldset.fld { border: 0; }
#my-apps { margin-top: 2rem; }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.app-row a { color: var(--ink); }
.app-side { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.app-side .tag { margin: 0; }

.rec-list { display: grid; gap: .6rem; }
.rec-row { display: grid; grid-template-columns: 1.6fr auto auto; align-items: center; gap: 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.rec-row.fermee { opacity: .7; }
.rec-row h3 { font-family: var(--f); text-transform: none; letter-spacing: -.01em; font-size: 1.08rem; margin: .15rem 0 .2rem; font-weight: 600; }
.rec-row h3 a { color: var(--ink); text-decoration: none; }
.rr-stats { display: flex; gap: 1rem; align-items: center; font-size: .82rem; color: rgba(244,241,255,.65); }
.rr-stats b { color: var(--ink); font-size: 1.05rem; }
.rr-act { display: flex; gap: .4rem; }
.dp-sub { margin-top: 2rem; }
.cand { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; margin-bottom: .8rem; }
.cand header { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.cand header .match b { font-size: 1.3rem; }
.cand h3 { font-family: var(--f); text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1rem; margin: 0; font-weight: 600; }
.kv.sm { font-size: .82rem; gap: .3rem .8rem; margin-bottom: .6rem; }
.cand .small { line-height: 1.9; }
.cand .tag { margin: 0 .15rem 0 0; }
.cand blockquote { font-family: var(--s); font-style: italic; font-size: .95rem; border-left: 3px solid var(--gold); padding: .3rem 0 .3rem .8rem; margin: .6rem 0; color: rgba(244,241,255,.8); }
.cand-st { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.cand-st button { padding: .45rem .75rem; min-height: 36px; border-radius: 100px; border: 1px solid rgba(244,241,255,.18); font-size: .76rem; }
.cand-st button.on { background: var(--panel-2); color: var(--ink); border-color: var(--ink); }

/* Mobile — modules */
@media (max-width: 1000px) {
  .map-grid, .ind-grid, .job-grid { grid-template-columns: 1fr; }
  .map-box, .job-grid > aside { position: static; }
  #map { height: 58vh; min-height: 340px; }
  .map-list { max-height: none; overflow: visible; }
  .rec-row { grid-template-columns: 1fr; gap: .7rem; }
}
@media (max-width: 760px) {
  .app-head { flex-wrap: wrap; row-gap: .6rem; }
  .app-links { order: 3; width: 100%; margin: 0; }
  .app-links a { flex: 1; text-align: center; padding: .5rem .4rem; }
  .map-tools, .jobs-page .map-tools { grid-template-columns: 1fr 1fr; }
  .map-tools input { grid-column: 1 / -1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem 1rem; padding: 0 1rem .2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .obs { grid-template-columns: repeat(2, 1fr); }
  .obs-card { min-height: 92px; padding: .85rem; }
  .obs-card b { font-size: 1.8rem; }
  .obs-card.big { grid-column: 1 / -1; min-height: 0; display: flex; align-items: center; gap: 1rem; }
  #map { height: 52vh; min-height: 300px; }
  .ind-trust { justify-items: start; text-align: left; }
  .job-list { grid-template-columns: 1fr; }
  .head-actions { width: 100%; }
  .head-actions a { flex: 1; }
  .map-head .btn-s, .map-head .btn-p { min-height: 46px; }
  .app-row { flex-direction: column; align-items: flex-start; }
  .app-side { justify-content: flex-start; }
  .rr-act { flex-wrap: wrap; }
  .rr-act button { flex: 1; }
  .bars li { grid-template-columns: 6rem 1fr 2.4rem; }
  .drawer-panel { padding-left: 1.1rem; padding-right: 1.1rem; }
}
.mod-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
/* Fond OSM adouci pour s'accorder à la palette */
#map .leaflet-tile-pane, .mini-map .leaflet-tile-pane { filter: grayscale(.85) sepia(.18) contrast(.92) brightness(1.04); }
.mb-head h2 { line-height: 1.15; }

/* ================= Thème « Nuit du Faso » (C1) — pages applicatives ================= */
body.app { background: var(--bg); color: var(--ink); font-family: var(--f); }
body.app::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60vw 60vw at 100% -10%, rgba(123,92,255,.45), transparent 60%), radial-gradient(40vw 40vw at -10% 50%, rgba(255,46,136,.12), transparent 60%); }
a { color: var(--yellow, #c6ff00); }
h1, h2, legend, .dp-head h2, .ind-head h1, .job-head h1 { font-family: var(--d); font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.02; }
h2 { font-weight: 600; }
h1 em, h2 em { font-family: var(--d); font-style: normal; font-weight: 800; color: var(--red); }
h3 { font-family: var(--d); font-weight: 600; font-size: .74rem; letter-spacing: .1em; color: var(--yellow); }
.kicker { font-family: var(--d); font-weight: 600; font-size: .68rem; color: var(--yellow); letter-spacing: .12em; }
.muted { color: rgba(244,241,255,.62); }
code { background: rgba(198,255,0,.14); color: var(--yellow); }

/* En-tête flottant */
.app-head { position: sticky; top: 0; z-index: 40; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: calc(.7rem + env(safe-area-inset-top)) clamp(.8rem, 3vw, 2.5rem) .7rem; }
.app-head::before { content: ''; position: absolute; inset: calc(.5rem + env(safe-area-inset-top)) clamp(.6rem, 3vw, 2.3rem) .5rem; z-index: -1; border-radius: 100px; background: rgba(18,16,25,.8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -14px rgba(123,92,255,.7); }
.app-brand { font-family: var(--d); font-weight: 800; color: var(--ink); padding-left: .3rem; }
.app-brand img { background: #fff; }
.app-links a { color: rgba(244,241,255,.72); border-color: transparent; font-weight: 600; }
.app-links a:hover, .app-links a[aria-current] { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }
.app-nav a, .app-nav button { color: rgba(244,241,255,.78); font-weight: 600; }
.app-nav .pill { background: var(--yellow); color: var(--bg); }
.app-foot { border-top: 0; opacity: 1; color: rgba(244,241,255,.55); font-family: var(--f); font-size: .8rem; position: relative; padding-top: calc(1.4rem + 22px); }
.app-foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, #ff2e88 0 18px, #070608 18px 22px, #c6ff00 22px 34px, #070608 34px 38px, #19c46e 38px 56px, #f4f1ff 56px 60px, #7b5cff 60px 72px, #f4f1ff 72px 76px); opacity: .9; }
.app-foot a { color: rgba(244,241,255,.75); }

/* Boutons pilule */
.btn-p, .btn-s { border-radius: 100px; font-weight: 700; transition: transform .25s var(--spring), box-shadow .25s, background .25s, color .25s; }
.btn-p { background: var(--yellow); color: var(--bg); }
.btn-p:hover { background: var(--yellow); color: var(--bg); transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(198,255,0,.3), 0 0 30px rgba(198,255,0,.4); }
.btn-p.ok { background: var(--green); color: #fff; }
.btn-s { border: 1.5px solid var(--line-2); color: var(--ink); background: transparent; }
.btn-s:hover { border-color: var(--ink); }
.btn-s.ko { border-color: var(--red); color: var(--red); }

/* Formulaires */
input, select, textarea { background-color: var(--deep); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; }
input::placeholder, textarea::placeholder { color: rgba(244,241,255,.38); }
input:focus, select:focus, textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(198,255,0,.2); }
select { background-image: linear-gradient(45deg, transparent 50%, #f4f1ff 50%), linear-gradient(135deg, #f4f1ff 50%, transparent 50%); }
select option { background: #121019; color: #f4f1ff; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.fld > span, .file > span { font-family: var(--f); font-weight: 700; color: rgba(244,241,255,.7); }
.check input { background: var(--deep); }
.check input:checked { background-color: var(--yellow); border-color: var(--yellow); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23070608' stroke-width='3'><path d='M5 12l5 5 9-10'/></svg>"); }
.file .file-name { border-radius: 14px; border-color: var(--line-2); }
.form-msg { color: var(--red); }
.form-msg.ok { color: var(--green); }

/* Panneaux / cartes */
.reg-form, .step-otp, .auth-form, .panel, .verify-res { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 80px -40px rgba(123,92,255,.8); }
.panel.warn { border-color: rgba(198,255,0,.45); background: rgba(198,255,0,.07); }
.panel.note { border-left: 4px solid var(--yellow); background: rgba(198,255,0,.06); }
.panel.applied { border-color: rgba(25,196,110,.45); background: rgba(25,196,110,.08); }
.stepper li { border-top-color: var(--line-2); color: rgba(244,241,255,.45); }
.stepper b { background: var(--panel-2); }
.stepper li.on { color: var(--ink); border-color: var(--yellow); }
.stepper li.on b { background: var(--yellow); color: var(--bg); box-shadow: 0 0 18px rgba(198,255,0,.5); }
.cat-opt span { border-color: var(--line-2); border-radius: 18px; background: var(--deep); }
.cat-opt small { color: rgba(244,241,255,.58); }
.cat-opt input:checked + span { border-color: var(--yellow); background: rgba(198,255,0,.08); box-shadow: inset 0 0 0 1px var(--yellow), 0 0 26px -8px rgba(198,255,0,.6); }
.otp-id { background: var(--deep); border: 1px solid var(--line-2); border-radius: 16px; }
.otp-id b { color: var(--yellow); }
.banner { border-radius: 18px; }
.banner.ok { background: rgba(25,196,110,.1); border-color: rgba(25,196,110,.4); }
.banner.ko { background: rgba(255,46,136,.1); border-color: rgba(255,46,136,.4); }

/* Carte membre IBF ID */
.idcard { border-radius: 22px; border: 1px solid rgba(143,142,255,.35); box-shadow: 0 30px 70px -30px rgba(123,92,255,.9); padding-left: 2.4rem; }
.idcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: repeating-linear-gradient(0deg, #ff2e88 0 14px, #070608 14px 17px, #c6ff00 17px 26px, #070608 26px 29px, #19c46e 29px 43px, #f4f1ff 43px 46px); }
.idcard::after { border-color: rgba(198,255,0,.2); }
.idc-top { font-family: var(--d); }
.idc-id { font-family: var(--d); color: var(--yellow); }
.idc-name { font-family: var(--d); }
.idc-flag { display: none; }
.idcard .st-ok { background: var(--green); color: #fff; box-shadow: 0 0 18px rgba(25,196,110,.6); }
.st-wait { background: rgba(198,255,0,.16); color: var(--yellow); }
.st-rev { background: rgba(143,142,255,.18); color: #d2c8ff; }
.st-ok { background: rgba(25,196,110,.18); color: #3ee08a; }
.st-ko { background: rgba(255,46,136,.16); color: #ff6fae; }
.track b { border-color: var(--line-2); }
.track li.ok b { box-shadow: 0 0 14px rgba(25,196,110,.6); }
.tag { background: rgba(198,255,0,.14); color: var(--ink); border-radius: 100px; padding: .15rem .6rem; }
.tag.ok { background: rgba(25,196,110,.18); color: #3ee08a; }
.docs b, .kv dt { font-family: var(--f); font-weight: 700; color: rgba(244,241,255,.55); }
.docs b { color: var(--yellow); }
.vbadge { background: var(--green); color: #fff; font-family: var(--f); font-weight: 700; border-radius: 100px; padding: .15rem .55rem; box-shadow: 0 0 14px rgba(25,196,110,.5); }

/* Administration */
.adm-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.adm-stats b { font-family: var(--d); color: var(--yellow); }
.seg { background: var(--panel); border: 1px solid var(--line); }
.seg button.on { background: var(--yellow); color: var(--bg); }
.adm-row { background: var(--panel); border-color: var(--line); border-radius: 18px; color: var(--ink); }
.adm-row:hover { border-color: var(--yellow); }
.ar-id { font-family: var(--d); font-size: .72rem; color: var(--yellow); }
.drawer-bg { background: rgba(4,3,8,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.drawer-panel { background: var(--panel); border-left: 1px solid var(--line-2); }
.dp-x { border-color: var(--line-2); color: var(--ink); }
.dp-x:hover { background: var(--yellow); color: var(--bg); }
.log b { font-family: var(--f); }

/* Industry Map */
.obs-card { background: var(--panel); border-color: var(--line); border-radius: 20px; }
.obs-card b { font-family: var(--d); font-weight: 800; }
.obs-card span { font-family: var(--f); font-weight: 700; color: rgba(244,241,255,.6); }
.obs-card::before { box-shadow: 0 0 14px var(--c, var(--yellow)); }
.obs-card.big { background: linear-gradient(145deg, #3a1f8a, #12091f 70%); border-color: rgba(143,142,255,.35); }
.obs-card.big b { color: var(--yellow); }
.chip { background: var(--panel); border-color: var(--line-2); color: var(--ink); }
.chip i { box-shadow: 0 0 10px var(--c); }
.chip.on { background: color-mix(in srgb, var(--c) 18%, var(--panel)); }
#map, .mini-map { border-radius: 22px; border-color: var(--line-2); background: #0b0a10; }
#map .leaflet-tile-pane, .mini-map .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.82) contrast(.9) saturate(.5); }
.leaflet-container { font-family: var(--f); }
.leaflet-bar a { background: var(--panel) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(7,6,8,.7) !important; color: rgba(244,241,255,.6) !important; }
.leaflet-control-attribution a { color: rgba(244,241,255,.8) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.leaflet-popup-close-button { color: var(--ink) !important; }
.pop small { color: rgba(244,241,255,.6); }
.ind-row { background: var(--panel); border-color: var(--line); border-radius: 18px; color: var(--ink); }
.ind-row:hover { border-color: var(--yellow); }
.ir-id { font-family: var(--d); font-size: .66rem; color: var(--yellow); }
.badge { background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff); }
.badge::before { box-shadow: 0 0 8px var(--c); }
.conf { font-family: var(--f); font-weight: 700; border-radius: 100px; padding: .15rem .55rem; }
.conf-verifie { background: rgba(25,196,110,.18); color: #3ee08a; }
.conf-a_confirmer { background: rgba(198,255,0,.16); color: var(--yellow); }
.conf-historique { background: rgba(244,241,255,.1); color: rgba(244,241,255,.75); }
.conf-projection { background: rgba(143,142,255,.18); color: #d2c8ff; }
.jobs-tag { color: var(--yellow); }
.dq { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; }
.dq h2 { color: var(--yellow); font-family: var(--d); }
.dq li { border-left-color: var(--yellow); }
.todo { color: var(--yellow); background: repeating-linear-gradient(135deg, rgba(198,255,0,.16) 0 6px, rgba(198,255,0,.06) 6px 12px); border-radius: 6px; }
.rel a { color: var(--ink); }
.ind-head, .job-head { border-bottom-color: var(--line); }

/* Talents & Jobs */
.job-card { background: var(--panel); border-color: var(--line); border-radius: 22px; color: var(--ink); }
.job-card::before { height: 4px; box-shadow: 0 0 16px var(--c); }
.job-card:hover { box-shadow: 0 24px 60px -30px var(--c); }
.job-card h3 { font-family: var(--d); font-size: 1.1rem; color: var(--ink); }
.jc-sector { font-family: var(--f); font-weight: 700; color: rgba(244,241,255,.65); }
.jc-sector i { box-shadow: 0 0 8px var(--c); }
.jc-foot { font-family: var(--f); }
.match { font-family: var(--d); font-weight: 700; }
.match.mhi { background: rgba(25,196,110,.2); color: #3ee08a; box-shadow: 0 0 18px -4px rgba(25,196,110,.7); }
.match.mmid { background: rgba(198,255,0,.18); color: var(--yellow); }
.match.mlo { background: rgba(244,241,255,.08); color: rgba(244,241,255,.6); }
.bars i { background: var(--deep); border: 1px solid var(--line); }
.bars i b { background: linear-gradient(90deg, var(--red), var(--yellow)); box-shadow: 0 0 10px rgba(198,255,0,.5); }
.bars em { font-family: var(--f); }
.pick span { background: var(--deep); border-color: var(--line-2); color: var(--ink); }
.pick input:checked + span { background: var(--yellow); color: var(--bg); border-color: var(--yellow); box-shadow: 0 0 18px -4px rgba(198,255,0,.7); }
.app-row a { color: var(--ink); }
.rec-row { background: var(--panel); border-color: var(--line); border-radius: 20px; }
.rec-row h3 { font-family: var(--d); color: var(--ink); }
.rec-row h3 a { color: var(--ink); }
.rr-stats b { color: var(--ink); font-family: var(--d); }
.cand { background: var(--deep); border-color: var(--line); border-radius: 18px; }
.cand h3 { color: var(--ink); font-family: var(--d); }
.cand blockquote { font-family: var(--f); border-left-color: var(--yellow); color: rgba(244,241,255,.8); }
.cand-st button { border-color: var(--line-2); color: var(--ink); }
.cand-st button.on { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }
.job-list .empty { background: var(--panel); border-color: var(--line-2); }
.mono { font-family: var(--f); font-weight: 700; letter-spacing: .02em; }
.crumb { font-family: var(--f); font-weight: 700; }

@media (max-width: 760px) {
  .app-head::before { border-radius: 26px; }
  .app-links a { background: rgba(244,241,255,.06); }
}

/* ================= Modules CCT §2.2–§2.7 (Nuit du Faso) ================= */
.mod-loading { display: flex; justify-content: center; gap: .5rem; padding: 5rem 0; }
.mod-loading span { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); animation: mdot 1s infinite ease-in-out; }
.mod-loading span:nth-child(2) { background: var(--red); animation-delay: .15s; }
.mod-loading span:nth-child(3) { background: var(--green); animation-delay: .3s; }
@keyframes mdot { 0%, 100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(-10px); opacity: 1 } }
.mod .crumb { display: inline-block; margin-bottom: 1.2rem; font-weight: 700; text-decoration: none; font-size: .9rem; }
.mod .panel { margin-bottom: 1.2rem; }
.mod .panel h2 { font-size: 1.15rem; }
.mod .empty { background: var(--panel); border: 1px dashed var(--line-2); border-radius: 22px; }
.mod .rec-list { display: grid; gap: .6rem; }
.mod .rec-row { border-radius: 18px; background: var(--deep); }
.mod .rec-row p { margin: .2rem 0 0; }
.mod .rec-row a { color: var(--ink); }
.mod .small { font-size: .82rem; color: rgba(244,241,255,.6); }
.mod .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.gate p { margin: 0; }
.admin-box { border-color: rgba(143,142,255,.45) !important; }
.admin-box summary { cursor: pointer; font-family: var(--d); font-weight: 600; }
.admin-box form { margin-top: 1rem; }
.mod-tabs { margin-bottom: 1.4rem; width: max-content; max-width: 100%; }
.mod .seg label { cursor: pointer; padding: .55rem 1rem; border-radius: 100px; font-size: .86rem; }
.mod .seg label.on { background: var(--yellow); color: var(--bg); font-weight: 700; }
.btn-s.on { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }
.prose p { margin: 0 0 1rem; line-height: 1.7; }
.prose b { color: var(--ink); }

/* Media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.media-card { position: relative; display: grid; align-content: start; gap: .7rem; padding: 1.5rem; min-height: 220px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .3s var(--spring), border-color .3s; }
.media-card::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--c); opacity: .18; transition: transform .4s var(--ease); }
.media-card:hover { transform: translateY(-4px); border-color: var(--c); }
.media-card:hover::after { transform: scale(1.5); }
.media-card.lead { grid-column: span 2; background: linear-gradient(135deg, var(--panel-2), var(--panel)); min-height: 280px; }
.media-card.lead h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.media-card h2 { font-size: 1.2rem; line-height: 1.15; margin: 0; }
.media-card p { color: rgba(244,241,255,.7); font-size: .92rem; margin: 0; }
.mc-kind { justify-self: start; font-family: var(--d); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--c); color: var(--bg); padding: .3rem .7rem; border-radius: 100px; }
.mc-foot { margin-top: auto; font-size: .78rem; color: rgba(244,241,255,.55); display: flex; align-items: center; gap: .4rem; }
.mc-foot i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.art { max-width: 760px; margin: 0 auto; }
.art h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.art-lead { font-size: 1.15rem; color: rgba(244,241,255,.8); }
.art-meta { font-size: .82rem; color: rgba(244,241,255,.55); border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.art-body { font-size: 1.05rem; }
.art-share { display: flex; gap: .5rem; margin-top: 2rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; margin: 1rem 0 1.4rem; background: var(--deep); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Academy */
.course-grid, .stand-grid, .chamber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.course-card, .stand-card, .chamber-card { position: relative; display: grid; align-content: start; gap: .6rem; padding: 1.5rem 1.5rem 1.3rem; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .3s var(--spring), border-color .3s, box-shadow .3s; }
.course-card::before, .chamber-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.course-card:hover, .stand-card:hover, .chamber-card:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 24px 60px -30px var(--c); }
.course-card h2, .stand-card h2, .chamber-card h2 { font-size: 1.15rem; line-height: 1.2; margin: 0; }
.course-card p, .stand-card p { font-size: .9rem; color: rgba(244,241,255,.68); margin: 0; }
.cc-pillar, .sc-cat { font-family: var(--d); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.cc-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: .2rem 0 0; }
.cc-meta li { font-size: .74rem; padding: .2rem .6rem; border-radius: 100px; background: rgba(244,241,255,.08); }
.cc-cert { font-size: .82rem; font-weight: 600; }
.cc-st { font-size: .78rem; color: rgba(244,241,255,.6); }
.cc-prog { height: 6px; border-radius: 10px; background: rgba(244,241,255,.1); overflow: hidden; }
.cc-prog i { display: block; height: 100%; background: var(--c, var(--yellow)); border-radius: inherit; transition: width .6s var(--ease); }
.cc-prog.big { height: 10px; margin: 1.2rem 0 .5rem; max-width: 520px; }
.course-head { margin-bottom: 1.6rem; }
.course-head .kicker { color: var(--c); }
.lessons { list-style: none; padding: 0; display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.lesson details { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 0 1.3rem; }
.lesson details[open] { border-color: var(--line-2); padding-bottom: 1.2rem; }
.lesson summary { list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1rem 0; cursor: pointer; font-weight: 600; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson summary b { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--panel-2); font-family: var(--d); font-size: .8rem; }
.lesson summary span { flex: 1; }
.lesson summary em { font-style: normal; color: var(--green); font-weight: 800; }
.lesson.done summary b { background: var(--green); color: #fff; }
.quiz .q { border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; margin-bottom: .8rem; }
.quiz legend { font-family: var(--f); font-weight: 700; font-size: 1rem; letter-spacing: 0; padding: 0 .3rem; }
.opt { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 12px; cursor: pointer; }
.opt:hover { background: rgba(244,241,255,.05); }
.opt input { width: 20px; height: 20px; min-height: 0; flex: 0 0 20px; padding: 0; margin-top: .15rem; accent-color: #c6ff00; }
.q.right { border-color: rgba(25,196,110,.6); }
.q.wrong { border-color: rgba(255,46,136,.6); }
.opt.good { background: rgba(25,196,110,.14); }
.q-exp { font-size: .86rem; margin: .5rem 0 0; color: rgba(244,241,255,.8); }
.cert-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.cert-list a { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1rem; border-radius: 14px; background: var(--deep); color: var(--ink); text-decoration: none; }
.cert-list span { font-size: .8rem; color: var(--yellow); }
.certificate { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; max-width: 860px; margin: 0 auto 1.4rem; padding: clamp(1.8rem, 5vw, 3.4rem) clamp(1.5rem, 5vw, 3.4rem) clamp(1.8rem, 5vw, 3.4rem) calc(clamp(1.5rem, 5vw, 3.4rem) + 18px); border-radius: 28px; background: radial-gradient(90% 120% at 100% 0, rgba(123,92,255,.55), transparent 60%), var(--panel); border: 1px solid rgba(198,255,0,.35); overflow: hidden; }
.cf-weave, .bc-weave, .sh-weave { position: absolute; left: 0; top: 0; bottom: 0; width: 18px; background: repeating-linear-gradient(0deg, #ff2e88 0 16px, #070608 16px 19px, #c6ff00 19px 29px, #070608 29px 32px, #19c46e 32px 48px, #f4f1ff 48px 51px); }
.certificate h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: .3rem 0; }
.certificate h2 { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--yellow); margin: .3rem 0; }
.cf-small { color: rgba(244,241,255,.65); margin: .8rem 0 0; }
.cf-id { font-family: var(--d); color: var(--yellow); font-size: .85rem; }
.cf-cert { font-weight: 600; }
.cf-kv { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; }
.cf-kv dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(244,241,255,.55); }
.cf-kv dd { font-family: var(--d); font-size: .9rem; }
.cf-qr { width: 120px; height: 120px; background: #fff; padding: 8px; border-radius: 12px; }
.cf-qr svg, .bc-qr svg { width: 100%; height: 100%; display: block; }

/* Orient */
.orient { max-width: 720px; }
.or-prog { height: 8px; border-radius: 10px; background: rgba(244,241,255,.1); overflow: hidden; margin-bottom: .8rem; }
.or-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); transition: width .5s var(--ease); }
.or-opts { display: grid; gap: .6rem; margin: 1.2rem 0; }
.or-opt { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1rem 1.1rem; min-height: 60px; border-radius: 18px; background: var(--deep); border: 1px solid var(--line-2); font-weight: 600; transition: border-color .2s, transform .2s var(--spring), background .2s; }
.or-opt:hover, .or-opt.on { border-color: var(--yellow); background: rgba(198,255,0,.08); transform: translateX(4px); }
.or-opt b { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--bg); font-family: var(--d); }
.orient-res { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.2rem; }
.orient-res .panel { margin: 0; }
.or-jobs { list-style: none; padding: 0; display: grid; gap: .6rem; }
.or-jobs li { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: var(--deep); border-left: 4px solid var(--c); }
.or-jobs b { display: block; }
.or-jobs span { font-size: .78rem; color: rgba(244,241,255,.6); }
.or-jobs em { font-family: var(--d); font-style: normal; color: var(--yellow); }
.orient-res + .panel { margin-top: 1.2rem; }

/* Projets / Marketplace / RFQ */
.proj-h { font-size: clamp(1.5rem, 4vw, 2.4rem); }
.int-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.int-list li { padding: .9rem 1rem; border-radius: 14px; background: var(--deep); }
.int-list .tag { margin-left: .4rem; }
.int-list p { margin: .4rem 0 0; }
.stand-card { padding-top: 2.2rem; }
.sc-band { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--c) 0 22px, transparent 22px 26px, rgba(244,241,255,.6) 26px 32px, transparent 32px 36px); }
.stand-hero { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.4rem; padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 2.6rem) calc(clamp(1.4rem, 4vw, 2.6rem) + 18px); margin-bottom: 1.2rem; border-radius: 28px; overflow: hidden; background: radial-gradient(80% 140% at 100% 0, color-mix(in srgb, var(--c) 35%, transparent), transparent 60%), var(--panel); border: 1px solid var(--line-2); }
.stand-hero h1 { margin: .2rem 0 .4rem; }
.sh-tag { font-size: 1.05rem; color: rgba(244,241,255,.8); margin-bottom: .8rem; }
.sh-act { display: flex; flex-wrap: wrap; gap: .5rem; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.prod { display: grid; align-content: start; gap: .5rem; padding: 1.1rem; border-radius: 18px; background: var(--deep); border: 1px solid var(--line); }
.prod h3 { margin: 0; font-size: .82rem; }
.prod p { font-size: .88rem; margin: 0; color: rgba(244,241,255,.75); }
.prod details summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--yellow); }
.prod .btn-s { justify-self: start; }
.swatches { display: flex; gap: .5rem; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; }
.swatches i { display: block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; transition: transform .2s var(--spring); }
.swatches input:checked + i { border-color: var(--ink); transform: scale(1.12); }
.rfq-row { text-decoration: none; grid-template-columns: 1.6fr auto auto auto; }
.thread { display: grid; gap: .8rem; }
.enc { font-size: .78rem; color: var(--green); font-weight: 700; margin: 0; }
.bubble { max-width: 80%; justify-self: start; padding: .8rem 1rem; border-radius: 18px 18px 18px 4px; background: var(--deep); border: 1px solid var(--line); }
.bubble.me { justify-self: end; border-radius: 18px 18px 4px 18px; background: rgba(198,255,0,.1); border-color: rgba(198,255,0,.35); }
.bubble span { font-size: .72rem; color: rgba(244,241,255,.55); }
.bubble p { margin: .3rem 0 0; }
.r-form { display: grid; gap: .6rem; margin-top: .6rem; }
.r-form .btn-p { justify-self: end; }
.tt-reg { margin-top: 1.4rem; }
.dir-row { border-left: 4px solid var(--c); }

/* Network */
.chamber-card { min-height: 180px; }
.ch-ico { width: 46px; height: 46px; border-radius: 14px; background: repeating-linear-gradient(45deg, var(--c) 0 6px, transparent 6px 10px); border: 2px solid var(--c); }
.thread-card { border-left: 4px solid var(--c) !important; }
.thread-card h3 { font-family: var(--d); font-size: 1.05rem; text-transform: none; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .2rem; }
.reply { margin: .6rem 0 0 1rem; padding: .7rem 1rem; border-radius: 14px; background: var(--deep); }
.reply p { margin: .2rem 0 0; }
.rep-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: start; margin-top: .8rem; }
.rep-form textarea { min-height: 48px; }
.rep-form .form-msg { grid-column: 1 / -1; margin: 0; }
.unit-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.unit-list li { display: grid; font-size: .9rem; }
.idx-kpi { grid-template-columns: repeat(7, 1fr); margin-bottom: 1.2rem; }
.idx-kpi .obs-card.big { grid-column: span 2; }
.idx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.idx-grid .panel { margin: 0; }
.idx-grid .bars li { grid-template-columns: minmax(8rem, 13rem) 1fr 2.8rem; }
.obs-card small { font-size: .5em; color: rgba(244,241,255,.6); }

/* Event : badge */
.ticket-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.4rem; align-items: start; }
.ticket-grid > form:only-child { grid-column: 1 / -1; max-width: 720px; }
.badge-card { position: relative; border-radius: 28px; overflow: hidden; background: radial-gradient(100% 70% at 50% 0, rgba(123,92,255,.7), transparent 70%), var(--panel); border: 1px solid rgba(198,255,0,.4); box-shadow: 0 40px 80px -40px rgba(123,92,255,.9); padding: 1.8rem 1.6rem 1.6rem calc(1.6rem + 18px); text-align: center; }
.bc-body { display: grid; gap: .3rem; justify-items: center; }
.bc-ev { font-family: var(--d); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,241,255,.7); }
.bc-pass { font-family: var(--d); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--bg); padding: .35rem 1rem; border-radius: 100px; margin: .6rem 0; }
.badge-card h2 { font-size: 1.5rem; margin: 0; }
.bc-id { font-family: var(--d); color: var(--yellow); font-size: .8rem; margin: 0; }
.bc-cat { font-size: .82rem; color: rgba(244,241,255,.65); margin: 0; }
.bc-qr { width: 190px; height: 190px; background: #fff; padding: 12px; border-radius: 18px; margin: 1rem 0 .4rem; }
.bc-code { font-family: var(--d); font-size: .72rem; letter-spacing: .08em; color: rgba(244,241,255,.7); margin: 0; }
.bc-days { font-size: .76rem; text-transform: capitalize; margin: .4rem 0 0; }
.bc-in { color: var(--green); font-weight: 700; margin: .4rem 0 0; }
.pass-pick { display: grid; gap: .5rem; }
.days-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.days-pick .check { margin: .4rem 0; text-transform: capitalize; }
.verdict.ok { border-color: rgba(25,196,110,.6) !important; background: rgba(25,196,110,.1) !important; }
.verdict.ko { border-color: rgba(255,46,136,.6) !important; background: rgba(255,46,136,.1) !important; }
.verdict.warn { border-color: rgba(198,255,0,.6) !important; background: rgba(198,255,0,.1) !important; }
.people { display: grid; gap: .3rem; margin: -.6rem 0 1rem; }
.people button { display: grid; text-align: left; padding: .6rem .8rem; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); }
.people button:hover { border-color: var(--yellow); }
.people span { font-size: .76rem; color: rgba(244,241,255,.6); }
.meet { grid-template-columns: 1.6fr auto auto; }

/* Awards */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.award { display: grid; align-content: start; gap: .8rem; padding: 1.5rem; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.award::after { content: '★'; position: absolute; right: 1rem; top: .6rem; font-size: 3rem; color: var(--yellow); opacity: .14; }
.award h2 { font-size: 1.15rem; margin: .6rem 0 .3rem; }
.award header .muted { margin: 0; font-size: .88rem; }
.nominees { list-style: none; padding: 0; display: grid; gap: .5rem; }
.nominees li { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: var(--deep); border: 1px solid var(--line); }
.nominees li.voted { border-color: var(--green); }
.nominees b, .nominees span { display: block; }
.nominees em { font-family: var(--d); font-style: normal; color: var(--yellow); font-size: .85rem; }
.nominees details summary, .nom > summary { cursor: pointer; font-size: .8rem; color: var(--yellow); font-weight: 700; }
.nom > summary { list-style: none; display: inline-flex; color: var(--ink); }
.nom > summary::-webkit-details-marker { display: none; }
.nom-form { margin-top: .8rem; }

@media (max-width: 1000px) {
  .idx-kpi { grid-template-columns: repeat(3, 1fr); }
  .idx-grid, .orient-res, .ticket-grid { grid-template-columns: 1fr; }
  .badge-card { max-width: 420px; width: 100%; justify-self: center; }
}
@media (max-width: 760px) {
  .media-card.lead { grid-column: auto; }
  .media-grid, .course-grid, .stand-grid, .chamber-grid, .award-grid { grid-template-columns: 1fr; }
  .mod-tabs { width: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mod-tabs button { flex: 0 0 auto; }
  .idx-kpi { grid-template-columns: repeat(2, 1fr); }
  .idx-kpi .obs-card.big { grid-column: 1 / -1; }
  .idx-grid .bars li { grid-template-columns: 7rem 1fr 2.4rem; }
  .certificate { grid-template-columns: 1fr; }
  .cf-qr { width: 110px; height: 110px; }
  .or-jobs li { grid-template-columns: 1fr auto; }
  .or-jobs .btn-s { grid-column: 1 / -1; }
  .rfq-row, .meet, .nominees li { grid-template-columns: 1fr; }
  .bubble { max-width: 92%; }
  .days-pick { grid-template-columns: 1fr; }
  .rep-form { grid-template-columns: 1fr; }
  .stand-hero { flex-direction: column; align-items: flex-start; }
}
@media print {
  .app-head, .app-foot, .no-print, body.app::before { display: none !important; }
  body.app { background: #fff; color: #111; }
  .certificate { border: 2px solid #111; background: #fff; color: #111; }
  .certificate h2, .cf-id { color: #6a4c00; }
}

/* Menu modules */
.mods-menu { position: relative; }
.mods-menu summary { list-style: none; cursor: pointer; font-size: .86rem; font-weight: 700; padding: .45rem .85rem; border-radius: 100px; color: var(--bg); background: var(--yellow); }
.mods-menu summary::-webkit-details-marker { display: none; }
.mods-menu summary::after { content: ' ▾'; }
.mods-pop { position: absolute; left: 0; top: calc(100% + .7rem); z-index: 60; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 1.2rem; padding: 1.3rem 1.4rem; border-radius: 24px; background: #121019; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.mods-pop div { display: grid; gap: .15rem; align-content: start; }
.mods-pop b { font-family: var(--d); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: .3rem; }
.mods-pop a { color: var(--ink) !important; padding: .35rem .5rem !important; border-radius: 10px !important; border: 0 !important; font-size: .88rem !important; text-align: left !important; background: none !important; }
.mods-pop a:hover { background: rgba(198,255,0,.14) !important; color: var(--yellow) !important; }
@media (max-width: 1100px) { .app-links > a:nth-child(3), .app-links > a:nth-child(4) { display: none; } }
@media (max-width: 760px) {
  .mods-menu { flex: 0 0 auto; position: static; }
  .mods-pop { position: absolute; left: .6rem; right: .6rem; top: 100%; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.1rem; max-height: 70vh; overflow-y: auto; }
}

/* Photos & logos des unités industrielles */
.ind-row.has-media { grid-template-columns: 96px 1fr; column-gap: .9rem; }
.ind-row.has-media > :not(.ir-media) { grid-column: 2; }
.ir-media { grid-row: 1 / span 5; position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--deep); align-self: start; }
.ir-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ir-media .ir-logo { position: absolute; right: 4px; bottom: 4px; width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.ir-media img.ir-logo:only-child { position: static; width: 100%; height: 100%; padding: 10px; border-radius: 0; }
.pop-img { display: block; width: calc(100% + 2px); height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: .5rem; }
.ind-logo { height: 1em; max-width: 2.6em; object-fit: contain; vertical-align: -0.12em; margin-right: .35em; background: #fff; border-radius: 10px; padding: .08em; }
.ind-gallery { margin: 0 0 1.4rem; }
.ig-main { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: var(--deep); aspect-ratio: 16 / 7; border: 1px solid var(--line); }
.ig-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-main figcaption { position: absolute; left: .8rem; bottom: .8rem; font-size: .74rem; padding: .3rem .7rem; border-radius: 100px; background: rgba(7,6,8,.78); color: rgba(244,241,255,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ig-main figcaption a { color: var(--yellow); }
.ig-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.ig-thumbs button { flex: 0 0 auto; width: 92px; height: 62px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; padding: 0; }
.ig-thumbs button.on { border-color: var(--yellow); opacity: 1; }
.ig-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ig-none { margin-bottom: 1rem; font-size: .85rem; }
@media (max-width: 760px) {
  .ig-main { aspect-ratio: 4 / 3; border-radius: 20px; }
  .ind-row.has-media { grid-template-columns: 72px 1fr; }
  .ir-media { width: 72px; height: 72px; }
}

/* Téléversement d'images */
.up-form { display: grid; gap: .7rem; }
.up-kind { width: max-content; }
.up-kind label { cursor: pointer; padding: .5rem 1rem; border-radius: 100px; font-size: .86rem; font-weight: 600; }
.up-kind label.on { background: var(--yellow); color: var(--bg); }
.up-drop { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 1.2rem 1rem; border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--deep); cursor: pointer; text-align: center; transition: border-color .2s; }
.up-drop:hover { border-color: var(--yellow); }
.up-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.up-btn { font-weight: 700; color: var(--yellow); }
.up-hint { font-size: .74rem; color: rgba(244,241,255,.55); }
.up-prev img { display: block; max-width: 100%; max-height: 220px; margin: .2rem auto 0; border-radius: 14px; object-fit: contain; background: repeating-conic-gradient(#2a2950 0 25%, #121019 0 50%) 0 0 / 16px 16px; }
.up-info { margin: 0; text-align: center; }
.up-rights { margin: .2rem 0; font-size: .8rem; }
.up-rights span { color: rgba(244,241,255,.75); }
.mm-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.mm-item { display: grid; grid-template-columns: 92px 1fr; gap: .8rem; align-items: start; padding: .7rem; border-radius: 16px; background: var(--deep); border: 1px solid var(--line); }
.mm-item.en_attente { border-color: rgba(198,255,0,.45); }
.mm-item.refuse { opacity: .6; }
.mm-item img { width: 92px; height: 70px; object-fit: cover; border-radius: 10px; background: #fff; }
.mm-item p { margin: .3rem 0; }
.mm-item .rr-act { flex-wrap: wrap; }
.adm-media { margin-top: 1.4rem; }
.sm-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; }
.sm-up { padding: 1rem; border-radius: 18px; background: var(--deep); border: 1px solid var(--line); align-content: start; }
.sm-up h3 { margin: 0; }
.sm-cur { display: flex; align-items: center; gap: .8rem; }
.sm-cur img { max-height: 90px; max-width: 60%; border-radius: 12px; object-fit: contain; background: #fff; }
.sm-cur.cover img { object-fit: cover; background: none; max-width: 70%; }
.stand-card.has-cover { padding-top: 0; }
.stand-card .sc-cover { display: block; width: calc(100% + 3rem); margin: 0 -1.5rem .4rem; height: 150px; object-fit: cover; }
.stand-card .sc-logo { width: 58px; height: 58px; object-fit: contain; background: #fff; border-radius: 14px; padding: 4px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.stand-card.has-cover .sc-logo { margin-top: -42px; position: relative; }
.stand-hero.has-cover { background: linear-gradient(90deg, rgba(18,17,42,.96) 0, rgba(18,17,42,.8) 55%, rgba(18,17,42,.35)), var(--cover) center / cover, var(--panel); min-height: 280px; }
.sh-logo { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 18px; padding: 6px; margin-bottom: .8rem; display: block; }
@media (max-width: 760px) { .sm-grid { grid-template-columns: 1fr; } }

/* ================= Lecteur vidéo (Industry Map) ================= */
.vd-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--deep); isolation: isolate; box-shadow: 0 24px 60px -30px rgba(123,92,255,.9); }
.vd-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-stage.vd-err { display: grid; place-items: center; color: rgba(244,241,255,.6); }
.vd-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; color: #fff; text-align: left; }
.vd-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.16,1,.3,1), filter .4s; }
.vd-facade:hover img, .vd-facade:focus-visible img { transform: scale(1.04); filter: saturate(1.15); }
.vd-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,8,.1) 30%, rgba(7,6,8,.88)); }
.vd-play { position: absolute; left: 50%; top: 50%; width: 76px; transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.vd-play svg { display: block; width: 100%; }
.vd-play .vp-bg { fill: #ff2e88; transition: fill .25s; }
.vd-facade:hover .vd-play, .vd-facade:focus-visible .vd-play { transform: translate(-50%, -50%) scale(1.12); }
.vd-facade:hover .vp-bg { fill: #ff2f1c; }
.vd-play::after { content: ''; position: absolute; inset: -14px; border-radius: 22px; border: 2px solid rgba(255,46,136,.55); animation: vdPulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes vdPulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.vd-play.sm { width: 48px; } .vd-play.sm::after { display: none; }
.vd-facade:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.vd-cap { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; display: grid; gap: .15rem; }
.vd-cap b { font-family: var(--d); font-weight: 600; font-size: clamp(.9rem, 1.6vw, 1.15rem); line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-cap small { font-size: .78rem; color: rgba(244,241,255,.8); }
.vd-stage.playing .vd-facade { display: none; }
.vd-off, .vd-press { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 100px; margin-right: .35rem; vertical-align: 1px; }
.vd-off { background: var(--green); color: #0b0a10; }
.vd-press { background: rgba(143,142,255,.25); color: #d6d5ff; }

.vd-panel { margin: 0 0 1.4rem; }
.vd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin-bottom: 1rem; }
.vd-head h2 { margin: 0; }
.vd-layout { display: grid; gap: 1rem; }
.vd-layout.multi { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.vd-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 1rem; margin-top: .8rem; }
.vd-meta > div:first-child { display: grid; gap: .15rem; min-width: 0; flex: 1 1 260px; }
.vd-meta b { font-weight: 700; line-height: 1.3; }
.vd-meta small { font-size: .8rem; color: rgba(244,241,255,.65); }
.vd-meta .vd-off, .vd-meta .vd-press { width: fit-content; }
.vd-act { display: flex; gap: .4rem; flex-wrap: wrap; }
.vd-act button[disabled] { opacity: .35; pointer-events: none; }
.vd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.vd-list button { display: grid; grid-template-columns: 120px 1fr; gap: .7rem; width: 100%; padding: .45rem; border-radius: 14px; border: 1px solid transparent; background: rgba(244,241,255,.04); color: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.vd-list button:hover { background: rgba(244,241,255,.08); transform: translateX(3px); }
.vd-list button.on { border-color: var(--yellow); background: rgba(198,255,0,.1); }
.vl-th { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--deep); }
.vl-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vl-th i { position: absolute; left: .3rem; top: .3rem; font-style: normal; font-size: .68rem; font-weight: 700; background: rgba(7,6,8,.8); padding: .05rem .4rem; border-radius: 6px; }
.vd-list button.on .vl-th::after { content: '▶ En cours'; position: absolute; inset: auto 0 0; font-size: .62rem; font-weight: 700; text-align: center; padding: .15rem; background: var(--yellow); color: #070608; }
.vl-tx { display: grid; align-content: center; gap: .25rem; min-width: 0; }
.vl-tx b { font-size: .84rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vl-tx small { font-size: .72rem; color: rgba(244,241,255,.6); }

.vd-admin { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.vd-admin summary { cursor: pointer; font-weight: 700; }
.vd-form { display: grid; gap: .7rem; margin-top: .9rem; }
.vd-prev:not(:empty) { display: flex; gap: .8rem; align-items: center; padding: .6rem; border-radius: 12px; background: var(--deep); }
.vd-prev img { width: 120px; border-radius: 8px; }
.vd-prev span { display: grid; gap: .2rem; } .vd-prev small { color: rgba(244,241,255,.6); }
.ko-t { color: #ff6fae; }
.vd-mgr { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.vd-mgr li { display: grid; grid-template-columns: 72px 1fr auto; gap: .7rem; align-items: center; font-size: .85rem; }
.vd-mgr img { width: 72px; border-radius: 6px; }
.vd-mgr small { display: block; color: rgba(244,241,255,.6); }

/* Vidéothèque */
.vtheque { margin: 2.4rem 0 1.6rem; }
.vt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.2rem; }
.vt-head h2 { font-family: var(--d); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.05; margin: 0 0 .4rem; }
.vt-head h2 em { font-style: normal; color: var(--red); }
.vt-head p { max-width: 620px; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.vd-card { display: grid; gap: .6rem; padding: 0 0 .9rem; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: inherit; text-align: left; cursor: pointer; transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s; animation: vcIn .6s cubic-bezier(.16,1,.3,1) both; }
.vd-card:nth-child(3n+2) { animation-delay: .06s; } .vd-card:nth-child(3n) { animation-delay: .12s; }
@keyframes vcIn { from { opacity: 0; transform: translateY(18px); } }
.vd-card:hover, .vd-card:focus-visible { transform: translateY(-6px); border-color: var(--yellow); box-shadow: 0 22px 50px -24px rgba(198,255,0,.55); }
.vd-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.vc-th { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.vc-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.vd-card:hover .vc-th img { transform: scale(1.07); }
.vc-tx { display: grid; gap: .3rem; padding: 0 1rem; }
.vc-tx .vd-off, .vc-tx .vd-press { width: fit-content; }
.vc-tx b { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-tx small { font-size: .76rem; color: rgba(244,241,255,.62); }
.vc-tx em { font-style: normal; font-weight: 700; color: var(--yellow); }
.vt-more { margin: 1.2rem auto 0; display: flex; }
.vid-tag { font-size: .72rem; font-weight: 700; color: var(--red); }
.pop-vid { display: block; width: 100%; margin: .4rem 0 .2rem; padding: .45rem .6rem; border-radius: 8px; border: 0; background: #ff2e88; color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; }

/* Modale */
.vd-modal { width: min(1100px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.vd-modal::backdrop { background: rgba(8,7,24,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vd-modal[open] .vd-box { animation: vdIn .45s cubic-bezier(.16,1,.3,1); }
@keyframes vdIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.vd-box { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(.6rem, 2vw, 1rem); }
.vd-x { position: absolute; right: -10px; top: -14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: #070608; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
html.vd-lock { overflow: hidden; }

@media (max-width: 900px) {
  .vd-layout.multi { grid-template-columns: 1fr; }
  .vd-list { max-height: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .vd-list li { scroll-snap-align: start; }
  .vd-list button { grid-template-columns: 1fr; }
  .vd-list button:hover { transform: none; }
  .vd-play { width: 62px; }
  .vd-stage { border-radius: 14px; }
  .vt-grid { grid-template-columns: 1fr; }
  .vd-modal { width: 100vw; max-height: 100vh; margin: auto 0; }
  .vd-box { border-radius: 0; border-left: 0; border-right: 0; padding: .5rem .5rem 1rem; }
  .vd-x { right: 8px; top: -52px; }
  .vd-mgr li { grid-template-columns: 56px 1fr; } .vd-mgr .rr-act { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-play::after, .vd-card, .vd-modal[open] .vd-box { animation: none; }
  .vd-facade img, .vc-th img, .vd-card { transition: none; }
}

/* ================= FLUX — écosystème vivant (pages intérieures) ================= */
@property --fa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
body.flux { --bg: #070608; --panel: #121019; --panel-2: #1c1926; --deep: #0b0a10; --ink: #f4f1ff; --yellow: #c6ff00; --lat: #c6ff00; --lat-2: #c6ff00; --gold: #c6ff00; --green: #3dffb0; --red: #ff2e88; --indigo: #7b5cff; --pink: #ff2e88; --violet: #b9a8ff;
  --mag: #ff2e88; --cy: #00e5ff; --lim: #c6ff00; --sun: #ffb21a; --vio: #b9a8ff; --mint: #3dffb0;
  --line: rgba(244,241,255,.1); --line-2: rgba(244,241,255,.2); --dim: rgba(244,241,255,.62);
  --snap: cubic-bezier(.77,0,.18,1); --ease: cubic-bezier(.16,1,.3,1); --spring: cubic-bezier(.34,1.56,.64,1);
  background: var(--bg); font-family: var(--f); overflow-x: clip; }
body.flux::before { display: none; }
body.flux ::selection { background: var(--mag); color: #fff; }

/* Fond fluide léger (CSS seul, 3 blobs) */
.fx-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx-bg i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(70px); opacity: .32; will-change: transform; animation: fxDrift 26s ease-in-out infinite alternate; }
.fx-bg i:nth-child(1) { background: var(--mag); left: -22vmax; top: -26vmax; }
.fx-bg i:nth-child(2) { background: var(--cy); right: -26vmax; top: 18vh; animation-duration: 32s; animation-delay: -8s; opacity: .22; }
.fx-bg i:nth-child(3) { background: #7b5cff; left: 20vw; bottom: -34vmax; animation-duration: 38s; animation-delay: -16s; opacity: .26; }
.fx-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(7,6,8,.7)); }
@keyframes fxDrift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(8vw,6vh,0) scale(1.12); } 100% { transform: translate3d(-6vw,10vh,0) scale(.94); } }

/* Typo */
body.flux h1, body.flux h2, body.flux legend, body.flux .dp-head h2, body.flux .ind-head h1, body.flux .job-head h1 { font-family: var(--d); font-weight: 800; letter-spacing: -.045em; }
body.flux h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: .92; text-wrap: balance; }
body.flux h1 em, body.flux h2 em { font-family: var(--d); font-style: normal; font-weight: 800; color: transparent; background: linear-gradient(90deg, var(--mag), var(--sun) 55%, var(--lim)); -webkit-background-clip: text; background-clip: text; }
body.flux h3 { font-family: var(--f); font-weight: 800; color: var(--cy); letter-spacing: .14em; }
body.flux .kicker { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f); font-weight: 800; font-size: .7rem; letter-spacing: .14em; color: var(--ink); background: rgba(244,241,255,.07); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 100px; }
body.flux .kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lim); box-shadow: 0 0 10px var(--lim); animation: fxPulse 2s ease-in-out infinite; }
@keyframes fxPulse { 50% { opacity: .35; transform: scale(.7); } }
body.flux .muted { color: var(--dim); }
body.flux a { color: var(--cy); }

/* En-tête verre */
body.flux .app-head { padding: calc(.7rem + env(safe-area-inset-top)) clamp(.8rem, 3vw, 2.5rem) .7rem; }
body.flux .app-head::before { background: rgba(14,12,20,.62); border: 1px solid rgba(244,241,255,.1); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 18px 50px -24px rgba(255,46,136,.45); }
body.flux .app-brand { gap: .55rem; font-family: var(--d); font-weight: 800; font-size: 1.3rem; letter-spacing: -.05em; color: var(--ink); }
body.flux .app-brand em { color: var(--lim); font-style: normal; font-family: var(--d); font-weight: 800; }
.fx-mark { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from var(--fa), var(--mag), var(--sun), var(--lim), var(--cy), #7b5cff, var(--mag)); animation: fxSpin 6s linear infinite; flex: 0 0 26px; }
@keyframes fxSpin { to { --fa: 360deg; } }
body.flux .app-links a { color: rgba(244,241,255,.75); font-weight: 700; border-radius: 100px; }
body.flux .app-links a:hover, body.flux .app-links a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
body.flux .mods-menu summary { background: linear-gradient(90deg, var(--mag), var(--sun)); color: #fff; }
body.flux .mods-pop { background: rgba(18,16,25,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 28px; }
body.flux .mods-pop b { font-family: var(--f); font-weight: 800; color: var(--cy); }
body.flux .mods-pop a:hover { background: rgba(255,46,136,.16) !important; color: var(--ink) !important; }
body.flux .app-nav a, body.flux .app-nav button { color: rgba(244,241,255,.8); font-weight: 700; }
body.flux .app-nav .pill { background: var(--ink); color: var(--bg); padding: .55rem 1.1rem; }

/* Boutons « blob » */
body.flux .btn-p { position: relative; isolation: isolate; overflow: hidden; background: var(--lim); color: #070608; font-weight: 800; letter-spacing: -.01em; }
body.flux .btn-p::before { content: ''; position: absolute; inset: 0; z-index: -1; background: conic-gradient(from var(--fa), var(--mag), var(--sun), var(--lim), var(--cy), var(--mag)); opacity: 0; transition: opacity .35s; animation: fxSpin 4s linear infinite; }
body.flux .btn-p:hover { background: var(--lim); color: #070608; transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 40px -12px rgba(198,255,0,.6); }
body.flux .btn-p:hover::before { opacity: 1; }
body.flux .btn-p.ok { background: var(--mint); color: #070608; }
body.flux .btn-s { border: 1.5px solid rgba(244,241,255,.22); background: rgba(244,241,255,.04); color: var(--ink); font-weight: 700; }
body.flux .btn-s:hover { border-color: var(--cy); color: var(--cy); background: rgba(0,229,255,.06); }
body.flux .btn-s.ko { border-color: var(--mag); color: var(--mag); }

/* Formulaires */
body.flux input, body.flux select, body.flux textarea { background-color: rgba(11,10,16,.75); border: 1.5px solid rgba(244,241,255,.12); border-radius: 18px; }
body.flux input:focus, body.flux select:focus, body.flux textarea:focus { border-color: var(--cy); box-shadow: 0 0 0 4px rgba(0,229,255,.14), 0 0 30px -8px rgba(0,229,255,.5); }
body.flux select option { background: #121019; }
body.flux .fld > span, body.flux .file > span { font-family: var(--f); font-weight: 800; color: rgba(244,241,255,.6); }
body.flux .check input:checked { background-color: var(--lim); border-color: var(--lim); }
body.flux .form-msg { color: var(--mag); }
body.flux .form-msg.ok { color: var(--mint); }

/* Panneaux : verre + liseré conique animé */
body.flux .reg-form, body.flux .step-otp, body.flux .auth-form, body.flux .panel, body.flux .verify-res, body.flux .dq { position: relative; background: linear-gradient(160deg, rgba(28,25,38,.82), rgba(14,12,20,.86)); border: 1px solid rgba(244,241,255,.09); border-radius: 32px; box-shadow: 0 40px 90px -50px rgba(255,46,136,.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.flux .reg-form::before, body.flux .auth-form::before, body.flux .step-otp::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--fa), var(--mag), transparent 25%, var(--cy) 50%, transparent 75%, var(--mag)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: fxSpin 8s linear infinite; }
body.flux .panel.warn { border-color: rgba(255,178,26,.45); background: rgba(255,178,26,.07); }
body.flux .panel.note { border-left: 4px solid var(--cy); background: rgba(0,229,255,.05); }
body.flux .panel.applied { border-color: rgba(61,255,176,.45); background: rgba(61,255,176,.07); }
body.flux .dq h2 { color: var(--lim); }
body.flux .dq li { border-left-color: var(--mag); }

/* Stepper : bulles */
body.flux .stepper li { border-top: 0; padding: .55rem .7rem; border-radius: 100px; background: rgba(244,241,255,.05); }
body.flux .stepper li.on { background: rgba(198,255,0,.1); color: var(--ink); }
body.flux .stepper li.on b { background: var(--lim); color: #070608; box-shadow: 0 0 20px rgba(198,255,0,.6); }
body.flux .stepper li.done { background: rgba(61,255,176,.08); }
body.flux .stepper li.done b { background: var(--mint); color: #070608; }
body.flux .cat-opt span { border-radius: 24px; background: rgba(11,10,16,.7); transition: transform .3s var(--spring), border-color .25s, box-shadow .25s; }
body.flux .cat-opt:hover span { transform: translateY(-3px); }
body.flux .cat-opt input:checked + span { border-color: var(--mag); background: rgba(255,46,136,.09); box-shadow: inset 0 0 0 1px var(--mag), 0 0 34px -8px rgba(255,46,136,.7); }

/* IBF ID */
body.flux .idcard { background: linear-gradient(135deg, #1b1030, #0b0a10 60%); border: 1px solid rgba(244,241,255,.12); border-radius: 30px; box-shadow: 0 40px 90px -40px rgba(255,46,136,.7); }
body.flux .idcard::before { width: 10px; background: linear-gradient(180deg, var(--mag), var(--sun), var(--lim), var(--cy)); }
body.flux .idc-id { color: var(--lim); }
body.flux .st-wait { background: rgba(255,178,26,.16); color: var(--sun); }
body.flux .st-rev { background: rgba(0,229,255,.14); color: var(--cy); }
body.flux .st-ok, body.flux .tag.ok { background: rgba(198,255,0,.14); color: var(--lim); }
body.flux .idcard .st-ok { background: var(--lim); color: #070608; box-shadow: 0 0 18px rgba(198,255,0,.6); }
body.flux .st-ko { background: rgba(255,46,136,.16); color: #ff6fae; }
body.flux .tag { background: rgba(244,241,255,.08); }
body.flux .vbadge { background: var(--lim); color: #070608; box-shadow: 0 0 14px rgba(198,255,0,.5); }

/* Cartes & listes : formes organiques, survol vivant */
body.flux .obs-card, body.flux .ind-row, body.flux .job-card, body.flux .adm-row, body.flux .adm-stats div, body.flux .media-card, body.flux .course-card, body.flux .stand-card { background: linear-gradient(160deg, rgba(28,25,38,.78), rgba(14,12,20,.82)); border: 1px solid rgba(244,241,255,.08); border-radius: 26px; transition: transform .45s var(--spring), border-color .3s, box-shadow .3s; }
body.flux .ind-row:hover, body.flux .job-card:hover, body.flux .adm-row:hover, body.flux .media-card:hover, body.flux .course-card:hover, body.flux .stand-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c, var(--mag)) 70%, transparent); box-shadow: 0 24px 60px -30px var(--c, var(--mag)); }
body.flux .obs-card { border-radius: 28px 28px 28px 8px; }
body.flux .obs-card b { font-family: var(--d); font-weight: 800; letter-spacing: -.05em; }
body.flux .obs-card:nth-child(4n+1) b { color: var(--lim); }
body.flux .obs-card:nth-child(4n+2) b { color: var(--mag); }
body.flux .obs-card:nth-child(4n+3) b { color: var(--cy); }
body.flux .obs-card:nth-child(4n) b { color: var(--sun); }
body.flux .obs-card.big { background: linear-gradient(135deg, var(--mag), #7b5cff 60%, var(--cy)); border: 0; }
body.flux .obs-card.big b, body.flux .obs-card.big span { color: #fff; }
body.flux .chip { border-radius: 100px; background: rgba(18,16,25,.75); font-weight: 700; transition: transform .3s var(--spring), background .25s; }
body.flux .chip:hover { transform: translateY(-2px); }
body.flux .chip.on { background: var(--c, var(--lim)); color: #070608; border-color: transparent; box-shadow: 0 0 22px -4px var(--c, var(--lim)); }
body.flux .chip.on i { background: #070608 !important; box-shadow: none; }
body.flux .ir-id, body.flux .ar-id { font-family: var(--f); font-weight: 800; color: var(--cy); }
body.flux .adm-stats b { color: var(--lim); }
body.flux .seg { border-radius: 100px; background: rgba(18,16,25,.75); }
body.flux .seg button.on { background: var(--ink); color: var(--bg); }
body.flux .ir-media { border-radius: 22px 22px 22px 6px; }
body.flux #map, body.flux .mini-map { border-radius: 32px; border: 1px solid rgba(244,241,255,.12); box-shadow: 0 40px 90px -50px rgba(0,229,255,.55); }
body.flux #map .leaflet-tile-pane, body.flux .mini-map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.78) contrast(1.05) saturate(.35); }
body.flux .leaflet-popup-content-wrapper { border-radius: 22px; background: rgba(18,16,25,.96); }
body.flux .leaflet-popup-tip { background: rgba(18,16,25,.96); }
body.flux .todo { color: var(--sun); background: repeating-linear-gradient(135deg, rgba(255,178,26,.16) 0 6px, rgba(255,178,26,.05) 6px 12px); }

/* Tiroirs : ouverture « mitose » (cercle depuis le bord) */
body.flux .drawer-bg { background: rgba(4,3,8,.72); }
body.flux .drawer-panel { background: linear-gradient(170deg, #15121e, #0b0a10); border-left: 1px solid rgba(244,241,255,.1); border-radius: 36px 0 0 36px; transform: none; clip-path: circle(0% at 100% 50%); transition: clip-path .7s var(--snap); }
body.flux .drawer.on .drawer-panel { clip-path: circle(150% at 100% 50%); }
body.flux .dp-x:hover { background: var(--mag); border-color: var(--mag); color: #fff; }
body.flux .vd-modal::backdrop { background: rgba(4,3,8,.88); }

/* Pied de page */
body.flux .app-foot { padding-top: 1.6rem; border-top: 1px solid var(--line); }
body.flux .app-foot::before { display: none; }

/* Apparition des blocs principaux */
body.flux .app-main > * { animation: fxRise .8s var(--ease) both; }
body.flux .app-main > *:nth-child(2) { animation-delay: .08s; }
body.flux .app-main > *:nth-child(3) { animation-delay: .16s; }
body.flux .app-main > *:nth-child(n+4) { animation-delay: .24s; }
@keyframes fxRise { from { opacity: 0; transform: translateY(26px); } }

/* Dock mobile */
.fx-dock { display: none; }
@media (max-width: 760px) {
  .fx-dock { position: fixed; z-index: 45; left: 50%; bottom: calc(.7rem + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: .15rem; padding: .3rem; border-radius: 100px; background: rgba(14,12,20,.8); border: 1px solid rgba(244,241,255,.12); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); max-width: calc(100vw - 1rem); }
  .fx-dock a { padding: .6rem .7rem; border-radius: 100px; color: rgba(244,241,255,.75) !important; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
  .fx-dock a.on { background: var(--ink); color: #070608 !important; }
  .fx-dock a.fx-id { background: linear-gradient(90deg, var(--mag), var(--sun), var(--lim)); color: #070608 !important; }
  body.flux .app-foot { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  body.flux .reg-form, body.flux .step-otp, body.flux .auth-form, body.flux .panel { border-radius: 26px; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20,18,28,.94); }
  body.flux .reg-form::before, body.flux .auth-form::before, body.flux .step-otp::before { animation: none; }
  .fx-bg i { filter: blur(50px); animation: none; }
  body.flux .drawer-panel { border-radius: 28px 28px 0 0; clip-path: circle(0% at 50% 100%); }
  body.flux .drawer.on .drawer-panel { clip-path: circle(150% at 50% 100%); }
  body.flux .stepper li { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-bg i, .fx-mark, body.flux .btn-p::before, body.flux .reg-form::before, body.flux .auth-form::before, body.flux .step-otp::before, body.flux .kicker::before { animation: none !important; }
  body.flux .app-main > * { animation: none !important; }
  body.flux .drawer-panel { transition: none; }
}
