/* Zone Obstra - styles communs (noir / blanc / gris) */
:root {
  --bg: #0a0a0a;
  --bg2: #0e0e0e;
  --card: #141414;
  --line: #262626;
  --line2: #333333;
  --txt: #f2f2f2;
  --mut: #9a9a9a;
  --dim: #6f6f6f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--txt); font-family: 'Manrope', system-ui, sans-serif; }
a { color: #bdbdbd; text-decoration: none; }
a:hover { color: #ffffff; }
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; margin: 0; color: #ffffff; }
p { margin: 0; }
img.logo { object-fit: contain; mix-blend-mode: screen; }
input::placeholder { color: #6a6a6a; }
input[type="date"] { color-scheme: dark; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 8px; background: #ffffff; color: #0a0a0a; font: 700 15px 'Manrope', sans-serif; cursor: pointer; }
.btn:hover { background: #e6e6e6; color: #0a0a0a; }
.btn-ghost { background: #1b1b1b; color: #ffffff; border: 1px solid var(--line2); }
.btn-ghost:hover { background: #242424; color: #ffffff; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; color: #d6d6d6; border: 1px solid #3a3a3a; border-radius: 999px; padding: 4px 12px; }
.pill-lock { display: inline-flex; align-items: center; gap: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.input { min-height: 44px; width: 100%; padding: 0 14px; background: #0a0a0a; border: 1px solid var(--line2); border-radius: 8px; color: #ffffff; font: 15px 'Manrope', sans-serif; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
.field label { font-size: 13px; font-weight: 700; color: #bdbdbd; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.24em; color: #7d7d7d; text-transform: uppercase; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ===== Site public ===== */
.site-header { border-bottom: 1px solid #1f1f1f; background: var(--bg); }
.header-inner { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 0.08em; color: #ffffff; text-transform: uppercase; line-height: 0.95; display: block; }
.brand-sub { font-size: 10px; letter-spacing: 0.42em; color: #8c8c8c; text-transform: uppercase; font-weight: 600; margin-top: 4px; display: block; }
.header-left { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.main-nav a.active { color: #ffffff; border-bottom: 2px solid #ffffff; padding-bottom: 4px; }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.online { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #d6d6d6; letter-spacing: 0.04em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ffffff; display: inline-block; }

.login-wrap { position: relative; z-index: 50; }
.login-panel { position: absolute; right: 0; top: 56px; width: 320px; max-width: calc(100vw - 48px); background: #141414; border: 1px solid #2c2c2c; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px #000000bb; }
.login-panel h2 { font-size: 26px; letter-spacing: 0.06em; }
.login-panel .field { flex: none; }
.login-msg { font-size: 13px; line-height: 1.5; color: #a0a0a0; }

.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 78% 30%, #262626 0%, #0a0a0a 70%), #0a0a0a; }
.hero-watermark { position: absolute; right: -120px; top: -40px; width: 760px; max-width: none; opacity: 0.07; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.tag { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.3em; color: #9a9a9a; text-transform: uppercase; border: 1px solid #333333; border-radius: 999px; padding: 6px 16px; }
.hero h1 { font-weight: 800; font-size: 96px; line-height: 0.92; letter-spacing: 0.01em; }
.hero h1 span { color: #6e6e6e; }
.hero-lead { font-size: 18px; line-height: 1.6; color: #a8a8a8; max-width: 520px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.video-wrap { flex: 1 1 460px; min-width: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid #2c2c2c; background: linear-gradient(135deg, #1d1d1d 0%, #0d0d0d 100%); box-shadow: 0 30px 80px #000000aa; display: flex; align-items: center; justify-content: center; }
.video img { position: absolute; width: 62%; opacity: 0.22; }
.play { position: relative; width: 84px; height: 60px; border: 0; border-radius: 16px; background: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px; background: linear-gradient(0deg, #000000dd, #00000000); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: #ffffff; }

.band { border-top: 1px solid #1f1f1f; }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-weight: 800; font-size: 56px; }
.server-card { padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.server-id { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 16px; }
.server-logo { width: 60px; height: 60px; border-radius: 12px; background: #000000; border: 1px solid #2c2c2c; display: flex; align-items: center; justify-content: center; flex: none; }
.server-id h3 { font-weight: 700; font-size: 28px; letter-spacing: 0.04em; }
.server-id small { font-size: 13px; color: #7d7d7d; font-weight: 600; display: block; margin-top: 4px; }
.server-stats { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.server-line { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #9a9a9a; }
.server-line b { color: #ffffff; font-weight: 600; }
.bar { height: 6px; border-radius: 999px; background: #262626; overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: #ffffff; width: 0; transition: width 0.4s; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { border-top: 1px solid var(--line2); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.feature .num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.2em; color: #5f5f5f; }
.feature h3 { font-weight: 700; font-size: 32px; }
.feature p { font-size: 16px; line-height: 1.6; color: #a0a0a0; }

.cta { margin: 0 auto 88px; max-width: 1200px; border: 1px solid #2c2c2c; border-radius: 18px; background: linear-gradient(120deg, #1c1c1c 0%, #0f0f0f 100%); padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-wrap { padding: 0 24px; }
.cta h2 { font-weight: 800; font-size: 44px; }
.cta p { font-size: 16px; line-height: 1.6; color: #a0a0a0; max-width: 520px; margin-top: 10px; }

.site-footer { background: #070707; border-top: 1px solid #1f1f1f; }
.footer-inner { padding-top: 48px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 600; }
.copy { padding-bottom: 32px; font-size: 13px; color: #6a6a6a; }

.cookies { background: #111111; border-top: 1px solid #ffffff; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cookies p { font-size: 14px; color: #cfcfcf; flex: 1 1 360px; }
.cookies a { color: #ffffff; text-decoration: underline; }
.cookies div { display: flex; gap: 10px; }

/* ===== Tableau de bord ===== */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.sidebar { flex: 1 1 264px; max-width: 264px; min-width: 240px; background: #0d0d0d; border-right: 1px solid #1f1f1f; padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; }
.sidebar .brand { padding: 0 8px 20px; }
.sidebar .brand-name { font-size: 22px; }
.sidebar .brand-sub { font-size: 9px; letter-spacing: 0.4em; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-title { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: #6a6a6a; text-transform: uppercase; padding: 20px 14px 6px; display: block; }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.side-link:hover { background: #151515; }
.side-link.active { background: #1a1a1a; border-left: 3px solid #ffffff; font-weight: 700; color: #ffffff; }
.side-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 8px; background: #ffffff; color: #0a0a0a; font-size: 14px; font-weight: 700; }
.side-cta:hover { background: #e6e6e6; color: #0a0a0a; }
.help { margin-top: auto; padding-top: 24px; }
.help > div { background: #141414; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.help strong { font-size: 14px; color: #ffffff; }
.help span { font-size: 12px; line-height: 1.5; color: #8c8c8c; }
.help a { font-size: 13px; font-weight: 700; color: #ffffff; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { border-bottom: 1px solid #1f1f1f; padding: 16px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.search { flex: 1 1 280px; max-width: 460px; }
.search input { background: #111111; border-color: #2a2a2a; border-radius: 10px; }
.user { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 8px; border: 1px solid #2a2a2a; background: #111111; border-radius: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #ffffff; }
.user strong { display: block; font-size: 13px; color: #ffffff; line-height: 1.15; }
.user small { display: block; font-size: 11px; color: #8c8c8c; font-weight: 600; line-height: 1.15; }
.topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.logout { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #2a2a2a; border-radius: 10px; font-size: 13px; font-weight: 700; }
.page { padding: 32px; display: flex; flex-direction: column; gap: 28px; max-width: 1240px; width: 100%; }
.page h1 { font-weight: 800; font-size: 44px; }
.page .sub { font-size: 16px; color: var(--mut); margin-top: 6px; }
.banner { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(700px 300px at 85% 40%, #2a2a2a 0%, #0f0f0f 70%); padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.banner img { position: absolute; right: -40px; top: -30px; width: 380px; max-width: none; opacity: 0.1; pointer-events: none; }
.banner > * { position: relative; }
.banner h2 { font-weight: 800; font-size: 40px; line-height: 1; max-width: 640px; }
.banner p { font-size: 15px; line-height: 1.6; color: #a8a8a8; max-width: 520px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.stat span { font-size: 13px; font-weight: 700; color: var(--mut); }
.stat b { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: #ffffff; }
.panel { overflow: hidden; }
.panel-head { padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-weight: 800; font-size: 32px; }
.panel-head span.t { font-size: 14px; color: var(--mut); display: block; margin-top: 4px; }
.entry-form { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; background: #101010; }
.entry-form .field.date { flex: 0 1 180px; }
.empty { padding: 28px 24px; font-size: 14px; color: #7d7d7d; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
thead tr { text-align: left; color: #7d7d7d; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
th { padding: 14px 12px; font-weight: 700; text-align: left; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
tbody tr { border-top: 1px solid #222222; }
td { padding: 14px 12px; color: #a8a8a8; }
td.name { font-weight: 700; color: #ffffff; }
td.right, th.right { text-align: right; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.id-form { padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; background: #101010; border-bottom: 1px solid var(--line); }
.id-form .field { flex: 1 1 240px; }
fieldset.perms { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 1px solid #2a2a2a; border-radius: 10px; }
fieldset.perms legend { margin-left: 12px; padding: 0 8px; font-size: 13px; font-weight: 700; color: #bdbdbd; }
.perms table { min-width: 420px; }
.perms th, .perms td { padding: 12px 20px; }
.perms td.c, .perms th.c { text-align: center; }
.perms input[type="checkbox"] { width: 22px; height: 22px; accent-color: #ffffff; cursor: pointer; }
.id-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.id-actions small { font-size: 13px; color: #7d7d7d; flex: 1 1 280px; }
.id-msg { flex: 1 1 100%; font-size: 14px; color: #d6d6d6; }

@media (max-width: 700px) {
  .hero h1 { font-size: 56px; }
  .section-head h2 { font-size: 40px; }
  .cta { padding: 36px 24px; }
  .page { padding: 20px; }
  .topbar { padding: 16px 20px; }
}
