/* Entrepreneurs Bordeaux : espace membres */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #0A0A0F; color: #F5F2ED; font-family: 'DM Sans', sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: #F4831F; }
a:hover { color: #FFB066; }
button, input, textarea, select { font-family: inherit; font-size: 15px; }
:focus-visible { outline: 2px solid #F4831F; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons et champs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 100px; border: none; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: #F4831F !important; color: #0A0A0F !important; }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); font-weight: 500; }
.btn--danger { background: rgba(232,57,42,.16); color: #FF8A7E; border: 1px solid rgba(232,57,42,.4); font-weight: 500; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: #C8C8D6; }
.field small { font-size: 12px; color: #A0A0B4; }
.input, .textarea, .select { width: 100%; padding: 13px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #fff; }
.input:focus, .textarea:focus, .select:focus { border-color: #F4831F; outline: none; }
.textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #D6D6E0; margin-bottom: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: #F4831F; flex-shrink: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.muted { color: #A0A0B4; }
.small { font-size: 13px; }
.notice { padding: 14px 16px; border-radius: 12px; font-size: 14px; margin: 0 0 16px; }
.notice--ok { background: rgba(39,174,96,.14); border: 1px solid rgba(39,174,96,.35); color: #7BE0A4; }
.notice--err { background: rgba(232,57,42,.12); border: 1px solid rgba(232,57,42,.35); color: #FF9C92; }
.notice--info { background: rgba(244,131,31,.12); border: 1px solid rgba(244,131,31,.35); color: #F8B57A; }

/* Écrans d'accueil (connexion, candidature) */
.gate { min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; background:
  radial-gradient(ellipse 70% 60% at 70% 20%, rgba(123,47,190,.25) 0%, transparent 60%),
  radial-gradient(ellipse 50% 45% at 85% 85%, rgba(244,131,31,.16) 0%, transparent 60%), #0A0A0F; }
.gate__card { width: 100%; max-width: 640px; background: #12121A; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; padding: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.gate__card--narrow { max-width: 460px; }
.gate h1 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 52px; line-height: .95; margin: 0 0 12px; color: #fff; }
.gate h1 em { font-family: 'Instrument Serif', serif; color: #F4831F; }
.gate p.lead { color: #B8B8C8; margin: 0 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 28px; }
.brand__ring { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(from 0deg, #7B2FBE, #E8392A, #F4831F, #F5C518, #27AE60, #2980B9, #7B2FBE); }
.brand__name { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; color: #fff; line-height: 1; display: block; }
.brand__city { font-size: 9px; letter-spacing: 3px; color: #A0A0B4; display: block; }

/* Application */
.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.side { width: 270px; flex-shrink: 0; background: #12121A; border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; overflow-y: auto; }
.side__top { padding: 18px 18px 10px; }
.side__top .brand { margin-bottom: 14px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); text-decoration: none; color: #fff; }
.me small { display: block; color: #A0A0B4; font-size: 12px; }
.nav-sec { padding: 8px 10px; }
.nav-sec__label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #8C8CA0; margin: 10px 8px 6px; }
.nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.is-on { background: rgba(244,131,31,.16); color: #fff; }
.nav-item.is-unread { color: #fff; font-weight: 600; }
.badge { font-size: 11px; font-weight: 700; color: #0A0A0F; background: #F4831F; border-radius: 100px; padding: 1px 7px; min-width: 20px; text-align: center; }
.side__foot { margin-top: auto; padding: 14px 18px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0A0A0F; }
.topbar h1 { font-size: 17px; margin: 0; color: #fff; }
.topbar p { margin: 0; font-size: 13px; color: #A0A0B4; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.view { flex: 1; overflow-y: auto; padding: 26px 22px 60px; }
.view__inner { max-width: 820px; margin: 0 auto; }
.h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 40px; line-height: 1; margin: 0 0 8px; color: #fff; letter-spacing: .5px; }
.serif { font-family: 'Instrument Serif', serif; }
.card { background: #1A1A26; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; }
.card--hot { border-color: rgba(244,131,31,.45); background: linear-gradient(135deg, rgba(244,131,31,.10), rgba(123,47,190,.10)); }
.card h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.card p { margin: 0 0 10px; color: #C8C8D6; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.avatar--light { color: #0A0A0F; }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.person { display: flex; gap: 12px; align-items: center; }
.person strong { color: #fff; display: block; }
.person div span { font-size: 13px; color: #A0A0B4; }

/* Fil de messages */
.thread { flex: 1; overflow-y: auto; padding: 18px 22px; }
.thread__inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; }
.msg__body { min-width: 0; flex: 1; }
.msg__meta { font-size: 13px; color: #A0A0B4; margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.msg__meta strong { color: #fff; }
.msg__text { font-size: 15px; color: rgba(255,255,255,.92); white-space: pre-wrap; word-wrap: break-word; margin: 0; }
.msg__tools { display: flex; gap: 10px; margin-top: 4px; opacity: 0; transition: opacity .12s; }
.msg:hover .msg__tools, .msg:focus-within .msg__tools { opacity: 1; }
.linkbtn { background: none; border: none; color: #8C8CA0; font-size: 12px; cursor: pointer; padding: 0; }
.linkbtn:hover { color: #F4831F; }
.msg--system .msg__text { color: #F8C79A; }
.msg--hidden .msg__text { color: #8C8CA0; font-style: italic; }
.sysdot { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(from 0deg, #7B2FBE, #E8392A, #F4831F, #F5C518, #27AE60, #2980B9, #7B2FBE); }
.composer { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 22px 18px; background: #0A0A0F; }
.composer form { max-width: 860px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 48px; max-height: 180px; resize: none; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.composer textarea:focus { outline: none; border-color: #F4831F; }
.composer__ro { max-width: 860px; margin: 0 auto; font-size: 13px; color: #8C8CA0; }
.empty { text-align: center; color: #8C8CA0; padding: 40px 10px; }
.progress { height: 8px; border-radius: 100px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress > i { display: block; height: 100%; background: #F4831F; border-radius: 100px; }
.md h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 28px; color: #fff; margin: 22px 0 8px; }
.md p, .md li { color: #D6D6E0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1A1A26; border: 1px solid rgba(255,255,255,.16); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 50; max-width: 90vw; font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.loading { padding: 60px 20px; text-align: center; color: #8C8CA0; }
dialog { background: #12121A; color: #F5F2ED; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 24px; width: min(520px, 92vw); }
dialog::backdrop { background: rgba(0,0,0,.6); }

@media (max-width: 860px) {
  .side { position: fixed; inset: 0 auto 0 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .app.is-menu .side { transform: none; }
  .menu-btn { display: inline-block; }
  .view, .thread, .composer, .topbar { padding-left: 16px; padding-right: 16px; }
  .gate__card { padding: 26px 20px; }
  .msg__tools { opacity: 1; }
}
input[type=range] { width: 100%; accent-color: #F4831F; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '+ '; color: #F4831F; font-weight: 700; }
details[open] > summary::before { content: '- '; }
details[open] > summary { margin-bottom: 12px; }
.card .md h2 { font-size: 22px; margin: 16px 0 6px; }
/* Suivi des tâches de fond */
.jobs { display: flex; flex-direction: column; gap: 10px; }
.job { border-left: 3px solid rgba(255,255,255,.18); padding: 6px 0 6px 12px; }
.job--running { border-color: #F4831F; }
.job--done { border-color: #27AE60; }
.job--skipped { border-color: #A0A0B4; }
.job--error { border-color: #E8392A; }
.job__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.job__head strong { color: #fff; }
.job__state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #C8C8D6; }
.job--running .job__state { color: #F4A25A; }
.job--done .job__state { color: #6FCF97; }
.job--error .job__state { color: #FF8A7A; }
.job__msg { margin: 4px 0 0; font-size: 14px; color: #C8C8D6; }
.job--error .job__msg { color: #FFB4A8; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(244,131,31,.3); border-top-color: #F4831F; animation: eb-spin .8s linear infinite; }
@keyframes eb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.stat { background: #16161F; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat__label { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #A0A0B4; }
.stat__value { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 40px; line-height: 1; color: #fff; }
.stat__sub { font-size: 13px; color: #A0A0B4; }
.bars-wrap { display: flex; gap: 8px; margin-top: 8px; }
.bars__axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: #7A7A8E; text-align: right; min-width: 28px; height: 180px; }
.bars { position: relative; flex: 1; height: 180px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 100% 50%; }
.bars__col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.bars__col i { display: block; width: 100%; max-width: 24px; background: #DE7016; border-radius: 4px 4px 0 0; }
.bars__col:hover i { background: #F4831F; }
.bars__tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: #0A0A0F; border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.bars__dates { display: flex; justify-content: space-between; font-size: 12px; color: #7A7A8E; margin: 6px 0 0 36px; }
.stable { width: 100%; border-collapse: collapse; font-size: 14px; }
.stable th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #A0A0B4; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.stable td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.06); color: #D6D6E0; word-break: break-all; }
.stable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
