/* Onde — feuille de style des sites web (accueil, portail developpeur, administration) */
:root {
  --ink: #0b0d11; --panel: #13161c; --panel-2: #1a1e26; --panel-3: #222733; --line: #262c38;
  --text: #e8eaf0; --dim: #8a92a3; --faint: #5b6375;
  --signal: #c6f25a; --signal-ink: #141a05; --signal-soft: rgba(198,242,90,.12);
  --hot: #ff6a3d; --hot-soft: rgba(255,106,61,.14); --live: #3ee08f; --sky: #5bc8ff; --gold: #f5c451;
  --r: 16px; --r-sm: 10px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "Cascadia Code", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14.5px; color: var(--text); background: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--signal); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -.02em; margin: 0; }
.hidden { display: none !important; }
.dim { color: var(--dim); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .grow { flex: 1; }
.mono { font-family: var(--mono); }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Barre du haut */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 14px 28px; background: rgba(11,13,17,.85); backdrop-filter: blur(10px); border-bottom: 1px solid #161a21; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo .bars { display: flex; gap: 2.5px; align-items: center; height: 18px; }
.logo .bars span { width: 3.5px; border-radius: 2px; background: var(--signal); }
.logo .bars span:nth-child(1) { height: 7px; } .logo .bars span:nth-child(2) { height: 15px; } .logo .bars span:nth-child(3) { height: 18px; } .logo .bars span:nth-child(4) { height: 10px; }
.logo .tagline { font-family: var(--font); font-weight: 600; font-size: 12px; color: var(--signal); background: var(--signal-soft); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--dim); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--panel-3); color: var(--text); }
.who { display: flex; align-items: center; gap: 10px; }

/* Mise en page */
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 28px 60px; }
.panel { background: var(--panel); border: 1px solid #181c24; border-radius: var(--r); }
.card { background: var(--panel); border: 1px solid #181c24; border-radius: var(--r); padding: 20px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { font-size: 30px; }
.head p { margin: 4px 0 0; color: var(--dim); }
.sec { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 26px 0 10px; }

/* Controles */
.btn { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--panel-3); text-decoration: none; }
.btn.signal { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn.signal:hover { background: #d4f97a; }
.btn.hot { background: var(--hot); color: #1a0a04; border-color: var(--hot); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label.f { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 16px 0 0; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); outline: none; background: var(--ink); color: var(--text); font-size: 14.5px; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--signal); }
textarea { resize: vertical; min-height: 70px; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0 10px 0 0; accent-color: var(--signal); }
input[type=color] { padding: 2px; height: 40px; width: 60px; }
.check { display: flex; align-items: center; margin-top: 12px; cursor: pointer; }
.search { max-width: 320px; margin: 0; }
.seg { display: inline-flex; gap: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a, .seg button { border: 0; background: transparent; color: var(--dim); font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 13px; }
.seg .on { background: var(--panel-3); color: var(--text); }
.error { color: var(--hot); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* Elements */
.av { width: 36px; height: 36px; border-radius: 32%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-d); font-weight: 700; color: #0b0d11; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -8px 14px rgba(0,0,0,.18); position: relative; }
.av.sm { width: 28px; height: 28px; font-size: 12px; } .av.lg { width: 64px; height: 64px; font-size: 26px; }
.av .st { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--faint); border: 2.5px solid var(--panel); }
.av .st.on { background: var(--live); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--panel-3); color: var(--dim); white-space: nowrap; }
.chip.signal { background: var(--signal-soft); color: var(--signal); }
.chip.hot { background: var(--hot-soft); color: var(--hot); }
.chip.sky { background: rgba(91,200,255,.13); color: var(--sky); }
.chip.gold { background: rgba(245,196,81,.14); color: var(--gold); }
.stat { padding: 18px 20px; }
.stat .n { font-family: var(--font-d); font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }
.stat .l { color: var(--dim); font-size: 12.5px; font-weight: 600; }
.stat.accent { background: linear-gradient(135deg, rgba(198,242,90,.15), rgba(198,242,90,.03)); border-color: rgba(198,242,90,.25); }
.stat.accent .n { color: var(--signal); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid #191d25; vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
.empty { padding: 40px; text-align: center; color: var(--dim); }
.code { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; font-family: var(--mono); font-size: 13px; white-space: pre; overflow-x: auto; color: #cfd6e4; line-height: 1.55; }
.code .k { color: var(--signal); } .code .s { color: #ffb38a; } .code .c { color: var(--faint); }
.token { display: flex; gap: 8px; align-items: center; }
.token input { font-family: var(--mono); margin: 0; }
.msg { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #191d25; }
.msg:last-child { border-bottom: 0; }
.msg .body { flex: 1; min-width: 0; }
.msg .content { white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.callout { border-radius: var(--r-sm); padding: 12px 16px; background: var(--signal-soft); border: 1px solid rgba(198,242,90,.25); }
.callout.hot { background: var(--hot-soft); border-color: rgba(255,106,61,.35); }

/* Modale / toasts */
.backdrop { position: fixed; inset: 0; background: rgba(5,6,9,.72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; width: 500px; max-width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h2 { margin-bottom: 6px; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; }
.toasts { position: fixed; top: 76px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel-3); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.err { border-color: rgba(255,106,61,.5); } .toast.ok { border-color: rgba(198,242,90,.5); }

/* Connexion */
.login { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 30px; }
.login form { width: 400px; max-width: 100%; }
.login form h1 { font-size: 28px; margin-bottom: 4px; }
.login .btn { width: 100%; justify-content: center; margin-top: 20px; padding: 12px; }

/* Accueil */
.hero { padding: 90px 28px 60px; max-width: 1180px; margin: 0 auto; position: relative; }
.hero h1 { font-size: clamp(56px, 10vw, 120px); line-height: .9; letter-spacing: -.05em; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p { font-size: 19px; color: var(--dim); max-width: 560px; line-height: 1.5; margin: 22px 0 30px; }
.waves { display: flex; align-items: center; gap: 5px; height: 120px; margin-bottom: 30px; }
.waves span { flex: 1; border-radius: 4px; background: linear-gradient(var(--signal), rgba(198,242,90,.08)); opacity: .55; animation: eq 1.6s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.feat { padding: 22px; }
.feat h3 { font-size: 17px; margin: 12px 0 6px; }
.feat p { margin: 0; color: var(--dim); line-height: 1.5; }
.feat .ico { width: 42px; height: 42px; border-radius: 14px; background: var(--signal-soft); color: var(--signal); display: flex; align-items: center; justify-content: center; }

/* Documentation */
.doc { line-height: 1.65; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; }
.doc p { margin: 8px 0; color: #cdd2dc; }
.doc code { background: var(--panel-3); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: 13px; }
.doc .code code { background: none; padding: 0; }
.doc table { margin: 10px 0; }
.doc td code { white-space: nowrap; }
.method { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--panel-3); }
.method.get { color: var(--sky); } .method.post { color: var(--signal); } .method.patch { color: var(--gold); } .method.delete { color: var(--hot); } .method.put { color: var(--sky); }
.side { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.side nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: var(--dim); padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.side nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
@media (max-width: 860px) { .side { grid-template-columns: 1fr; } .side nav { position: static; flex-direction: row; flex-wrap: wrap; } .top { flex-wrap: wrap; padding: 12px 16px; } }
