/* ============================================================
   DOOM STUDIO — Style NexHost Lab
   Fond quasi-noir, accent bleu #5865f2, mono, minimaliste
   ============================================================ */

:root {
  --bg:        #0a0a0c;
  --bg-soft:   #111116;
  --bg-card:   #16161c;
  --bg-hover:  #1e1e26;
  --line:      rgba(255,255,255,0.06);
  --line-hard: rgba(255,255,255,0.10);
  --text:      #e8e8f0;
  --text-dim:  #7a7a90;
  --text-faint:#3a3a50;
  --blue:      #5865f2;
  --blue-dim:  #3a4299;
  --blue-soft: rgba(88,101,242,0.12);
  --green:     #23c45e;
  --red:       #ed4545;
  --gold:      #c8a96e;       /* gardé pour compatibilité EmbedForge */
  --gold-dim:  #7a6540;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Syne', system-ui, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;
  --r: 6px;
  --t: 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* BRUIT DE FOND (subtil) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 8000;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 22px; height: 22px;
  background: var(--blue);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text);
}

.nav-center {
  display: flex; align-items: center; gap: 40px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center a {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color var(--t); position: relative; padding-bottom: 3px;
}
.nav-center a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--blue); transition: width var(--t);
}
.nav-center a:hover { color: var(--text); }
.nav-center a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); background: var(--blue-soft);
  border: 1px solid var(--blue-dim); padding: 8px 20px;
  cursor: none; text-decoration: none;
  transition: all var(--t); border-radius: var(--r);
}
.nav-cta:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
/* Grille de fond style tech */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(88,101,242,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,101,242,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 56px 80px;
  border-right: 1px solid var(--line);
  position: relative; z-index: 2;
}

.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; opacity: 0; animation: rise .6s ease forwards .1s; }
.hero-eyebrow-line { width: 28px; height: 1px; background: var(--blue); }
.eyebrow-txt { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); }

.hero-h1 { font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: 1.03; color: var(--text); margin-bottom: 20px; opacity: 0; animation: rise .6s ease forwards .25s; }
.hero-h1 em { font-style: italic; color: var(--blue); }

.hero-sub { font-family: var(--mono); font-size: 12px; font-weight: 300; letter-spacing: .4px; color: var(--text-dim); margin-bottom: 44px; line-height: 1.9; max-width: 380px; opacity: 0; animation: rise .6s ease forwards .4s; }

.hero-actions { display: flex; align-items: center; gap: 16px; opacity: 0; animation: rise .6s ease forwards .55s; }

.btn-gold, .btn-primary {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: var(--blue);
  border: 1px solid var(--blue); padding: 12px 26px;
  cursor: none; text-decoration: none;
  transition: all var(--t); border-radius: var(--r); display: inline-block;
}
.btn-gold:hover, .btn-primary:hover {
  background: #6977f5;
  box-shadow: 0 8px 28px rgba(88,101,242,0.3);
  transform: translateY(-1px);
}

.btn-outline, .btn-secondary {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); background: transparent;
  border: 1px solid var(--line-hard); padding: 11px 26px;
  cursor: none; text-decoration: none;
  transition: all var(--t); border-radius: var(--r); display: inline-block;
}
.btn-outline:hover, .btn-secondary:hover {
  color: var(--text); border-color: var(--text-dim);
  transform: translateY(-1px);
}

.hero-right {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 56px 80px;
  position: relative; z-index: 2;
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 36px; opacity: 0; animation: rise .6s ease forwards .65s; }
.stat-item { background: var(--bg); padding: 28px 22px; transition: background var(--t); }
.stat-item:hover { background: var(--bg-card); }
.stat-num { font-family: var(--serif); font-size: 38px; color: var(--text); line-height: 1; margin-bottom: 6px; }
.stat-num span { color: var(--blue); }
.stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); }

.hero-scroll { display: flex; align-items: center; gap: 14px; opacity: 0; animation: rise .6s ease forwards .8s; }
.hero-scroll-line { width: 1px; height: 56px; background: linear-gradient(to bottom, var(--blue), transparent); animation: sp 2s ease-in-out infinite; }
@keyframes sp { 0%,100%{opacity:.3} 50%{opacity:1} }
.hero-scroll-text { font-family: var(--mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint); writing-mode: vertical-lr; }

.hero-bg-text { position: absolute; bottom: -10px; right: -10px; font-family: var(--serif); font-size: 240px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(88,101,242,0.04); user-select: none; pointer-events: none; z-index: 1; white-space: nowrap; }

@keyframes rise { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--line); position: relative; }
.divider::before { content: ''; position: absolute; left: 48px; top: -1px; width: 60px; height: 2px; background: var(--blue); }

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section { padding: 96px 56px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-label { font-family: var(--mono); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-title { font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); line-height: 1.05; color: var(--text); }
.section-title em { font-style: italic; color: var(--text-dim); }
.section-index { font-family: var(--serif); font-size: 60px; color: var(--bg-hover); line-height: 1; }

/* ============================================================
   SERVICES
   ============================================================ */
#services { border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.svc { background: var(--bg); padding: 40px 32px; transition: background var(--t); position: relative; overflow: hidden; }
.svc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: transparent; transition: background var(--t); }
.svc:hover { background: var(--bg-card); }
.svc:hover::before { background: var(--blue); }
.svc-icon { width: 40px; height: 40px; border: 1px solid var(--line-hard); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 17px; transition: border-color var(--t), background var(--t); }
.svc:hover .svc-icon { border-color: var(--blue-dim); background: var(--blue-soft); }
.svc-name { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--text); margin-bottom: 10px; }
.svc-desc { font-family: var(--mono); font-size: 11.5px; font-weight: 300; color: var(--text-dim); line-height: 1.85; }
.svc-num { position: absolute; bottom: 16px; right: 20px; font-family: var(--serif); font-size: 44px; color: var(--bg-hover); line-height: 1; transition: color var(--t); }
.svc:hover .svc-num { color: var(--bg-card); }

/* ============================================================
   NIXIT — FILTRES & APPS
   ============================================================ */
.nixit-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; margin-bottom: 64px; }
.nixit-tagline { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 36px); line-height: 1.35; color: var(--text); }
.nixit-tagline em { font-style: italic; color: var(--blue); }
.nixit-body { font-family: var(--mono); font-size: 12px; font-weight: 300; color: var(--text-dim); line-height: 1.9; }
.nixit-body strong { color: var(--text); font-weight: 500; }

.filter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); margin-right: 4px; }
.pill {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; background: transparent; border: 1px solid var(--line-hard);
  color: var(--text-dim); cursor: none; transition: all var(--t); border-radius: 100px;
}
.pill:hover { border-color: var(--blue-dim); color: var(--blue); }
.pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 8px; margin-bottom: 44px; }
.app-card {
  background: var(--bg-card); border: 1px solid var(--line); padding: 18px 16px;
  cursor: none; transition: all var(--t); position: relative; border-radius: var(--r); user-select: none;
}
.app-card:hover { border-color: var(--line-hard); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.app-card.selected { border-color: var(--blue-dim); background: var(--blue-soft); }
.app-check { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border: 1px solid var(--line-hard); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; color: transparent; transition: all var(--t); }
.app-card.selected .app-check { background: var(--blue); border-color: var(--blue); color: #fff; }
.app-icon { font-size: 24px; margin-bottom: 10px; display: block; }
.app-name { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.app-desc { font-family: var(--mono); font-size: 10px; font-weight: 300; color: var(--text-faint); line-height: 1.6; margin-bottom: 10px; }
.app-tag { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; padding: 2px 7px; border-radius: 100px; border: 1px solid var(--line-hard); color: var(--text-faint); }

/* ============================================================
   PANNEAU COMMANDE
   ============================================================ */
.cmd-panel { background: var(--bg-soft); border: 1px solid var(--line-hard); border-radius: var(--r); overflow: hidden; }
.cmd-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--line); }
.cmd-top-left { display: flex; align-items: center; gap: 12px; }
.cmd-dots { display: flex; gap: 5px; }
.cmd-dot { width: 10px; height: 10px; border-radius: 50%; }
.cmd-dot:nth-child(1) { background: #ff5f57; }
.cmd-dot:nth-child(2) { background: #febc2e; }
.cmd-dot:nth-child(3) { background: #28c840; }
.cmd-title-bar { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--text-faint); }
.cmd-badge { font-family: var(--mono); font-size: 10px; padding: 3px 10px; border-radius: 100px; background: rgba(35,196,94,0.08); border: 1px solid rgba(35,196,94,0.2); color: var(--green); }
.cmd-badge.zero { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text-faint); }
.cmd-body { padding: 22px; min-height: 90px; font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.7; color: var(--green); white-space: pre-wrap; word-break: break-all; }
.cmd-body.empty { color: var(--text-faint); font-style: italic; }
.cmd-prompt { color: var(--blue); user-select: none; }
.cmd-footer { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.btn-copy {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 9px 20px; background: var(--blue); color: #fff;
  border: none; border-radius: var(--r); cursor: none; transition: all var(--t);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-copy:hover { background: #6977f5; box-shadow: 0 4px 16px rgba(88,101,242,0.3); }
.btn-copy.ok { background: var(--green); }
.btn-reset {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  padding: 9px 16px; background: transparent; color: var(--text-faint);
  border: 1px solid var(--line-hard); border-radius: var(--r); cursor: none; transition: all var(--t);
}
.btn-reset:hover { color: var(--text-dim); border-color: var(--text-faint); }

.howto-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); margin-top: 20px; border-radius: var(--r); overflow: hidden; }
.howto-step { background: var(--bg-card); padding: 18px 16px; }
.howto-num { font-family: var(--serif); font-size: 26px; color: var(--blue-dim); margin-bottom: 8px; line-height: 1; }
.howto-text { font-family: var(--mono); font-size: 11px; font-weight: 300; color: var(--text-dim); line-height: 1.7; }
.howto-text strong { color: var(--text); font-weight: 500; }

/* ============================================================
   PROJETS
   ============================================================ */
#projects { border-bottom: 1px solid var(--line); }
.projects-list { display: flex; flex-direction: column; }
.proj { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding-left var(--t), background var(--t); border-radius: var(--r); }
.proj:last-child { border-bottom: none; }
.proj:hover { padding-left: 10px; }
.proj-num { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--text-faint); }
.proj-name { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.proj-desc { font-family: var(--mono); font-size: 11.5px; font-weight: 300; color: var(--text-dim); line-height: 1.7; }
.proj-tags { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.ptag { font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-hard); color: var(--text-faint); }
.ptag.live { border-color: rgba(35,196,94,0.3); color: var(--green); background: rgba(35,196,94,0.06); }
.proj-arrow { font-size: 18px; color: var(--text-faint); transition: all var(--t); }
.proj:hover .proj-arrow { color: var(--blue); transform: translateX(4px); }

/* Badge de statut (style NexHost) */
.badge {
  display: inline-block;
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px;
  border: 1px solid var(--line-hard); color: var(--text-faint);
}
.badge-alpha { border-color: rgba(237,69,69,0.3); color: var(--red); background: rgba(237,69,69,0.06); }
.badge-beta { border-color: rgba(200,169,110,0.3); color: var(--gold); background: rgba(200,169,110,0.06); }
.badge-live { border-color: rgba(35,196,94,0.3); color: var(--green); background: rgba(35,196,94,0.06); }
.badge-dev { border-color: var(--blue-dim); color: var(--blue); background: var(--blue-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 52px 56px 36px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; align-items: start;
}
.foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-logo-mark { width: 20px; height: 20px; background: var(--blue); clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); }
.foot-logo-text { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text); }
.foot-tag { font-family: var(--mono); font-size: 11px; font-weight: 300; color: var(--text-faint); line-height: 1.8; }
.foot-col-title { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { font-family: var(--mono); font-size: 12px; font-weight: 300; color: var(--text-faint); text-decoration: none; transition: color var(--t); }
.foot-links a:hover { color: var(--blue); }
.foot-bottom { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--text-faint); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 3px; }

/* EmbedForge — boutons spéciaux */
.btn-send {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: var(--blue); border: 1px solid var(--blue);
  padding: 14px 22px; cursor: none; transition: all var(--t); border-radius: var(--r); display: block; width: 100%;
}
.btn-send:hover { background: #6977f5; box-shadow: 0 6px 24px rgba(88,101,242,0.3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .nixit-intro { grid-template-columns: 1fr; gap: 24px; }
  .howto-strip { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  .section { padding: 60px 20px; }
  .hero-left { padding: 100px 20px 60px; }
  .services-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 20px; grid-template-columns: 1fr; }
  .proj { grid-template-columns: 48px 1fr; }
  .proj-arrow { display: none; }
  .divider::before { left: 20px; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
}