/* ============================================================
   THEME 3 — AMBER TERMINAL — Retro CRT Orange
   Usage : remplacez theme-default.css par theme-amber.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700&family=IBM+Plex+Sans:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g: #ffb347;
  --g2: #e07b00;
  --g3: #3a1f00;
  --bg: #080500;
  --bg2: #100a00;
  --bg3: #180f00;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,179,71,0.12);
  --border2: rgba(255,179,71,0.28);
  --text: #fff3d4;
  --muted: rgba(255,243,212,0.42);
  --font-display: 'IBM Plex Mono', monospace;
  --font-secondary: 'IBM Plex Mono', monospace;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; line-height: 1.7; overflow-x: hidden; cursor: none; }
/* CRT scanlines */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9990; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px); }
a { text-decoration: none; }

#cursor { position: fixed; width: 2px; height: 18px; background: var(--g); pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); animation: blink-cur 1s step-end infinite; }
#cursor-ring { position: fixed; width: 36px; height: 36px; border: 1px solid rgba(255,179,71,0.35); pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: all 0.18s; }
@keyframes blink-cur { 0%,100%{opacity:1} 50%{opacity:0} }

body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); opacity: 0.04; }

#progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 200; background: var(--g); width: 0%; transition: width 0.1s linear; box-shadow: 0 0 10px var(--g); }

section { position: relative; z-index: 1; }

.nav-logo, .sb-logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--g); letter-spacing: 0.04em; }
.nav-logo span, .sb-logo span { color: var(--text); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); position: relative; transition: color 0.2s; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--g); transition: width 0.25s; }
.nav-links a.active, .nav-links a:hover { color: var(--g); text-shadow: 0 0 8px rgba(255,179,71,0.5); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 2rem 3rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.12; }
.hero-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #e07b00, transparent 70%); top: -10%; left: -5%; animation: float1 16s ease-in-out infinite; }
.hero-orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, #ffb347, transparent 70%); bottom: 5%; right: 5%; animation: float2 20s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,-15px)} }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,179,71,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,179,71,0.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent); }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,179,71,0.06); border: 1px solid var(--border2); padding: 6px 14px; border-radius: 2px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--g); margin-bottom: 2rem; animation: fadeInDown 0.8s both; }
.badge-dot { width: 8px; height: 8px; background: var(--g); animation: blink-dot 1.2s step-end infinite; box-shadow: 0 0 6px var(--g); }
@keyframes blink-dot { 0%,100%{opacity:1} 50%{opacity:0} }

h1 { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem; animation: fadeInUp 0.9s 0.2s both; text-shadow: 0 0 40px rgba(255,179,71,0.15); }
.h1-accent { color: var(--g); display: block; text-shadow: 0 0 20px rgba(255,179,71,0.4); }
.hero-sub { font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--muted); max-width: 560px; margin-bottom: 2.5rem; animation: fadeInUp 0.9s 0.35s both; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.9s 0.5s both; }

.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--g); color: var(--bg); border: none; padding: 12px 24px; border-radius: 2px; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; cursor: none; transition: box-shadow 0.2s; }
.btn-primary:hover { box-shadow: 0 0 24px rgba(255,179,71,0.5), 0 0 4px var(--g); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--g); border: 1px solid var(--border2); padding: 12px 24px; border-radius: 2px; font-family: var(--font-mono); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.04em; cursor: none; transition: background 0.2s, box-shadow 0.2s; }
.btn-ghost:hover { background: rgba(255,179,71,0.06); box-shadow: 0 0 12px rgba(255,179,71,0.2); }

.hero-metrics { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); animation: fadeInUp 0.9s 0.65s both; flex-wrap: wrap; }
.metric-item { display: flex; flex-direction: column; gap: 4px; }
.metric-val { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--g); line-height: 1; text-shadow: 0 0 12px rgba(255,179,71,0.3); }
.metric-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); }

.section-inner { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.section-tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g); opacity: 0.6; margin-bottom: 0.75rem; }
.section-tag::before { content: '> '; }
h2 { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.1; margin-bottom: 1.25rem; }
.section-lead { font-size: 1rem; color: var(--muted); max-width: 600px; margin-bottom: 3rem; line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; } .reveal-delay-3 { transition-delay: 0.3s; }

#dream { background: var(--bg2); }
.dream-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.dream-text p { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.85; }
.dream-text strong { color: var(--g); }
.dream-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.dream-stat { background: var(--bg2); padding: 1.5rem; transition: background 0.3s; }
.dream-stat:hover { background: var(--bg3); }
.dream-stat .val { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--g); line-height: 1; margin-bottom: 6px; text-shadow: 0 0 10px rgba(255,179,71,0.25); }
.dream-stat .lbl { font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); }

#features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.feature-card { background: var(--bg); padding: 2rem; position: relative; overflow: hidden; transition: background 0.4s; }
.feature-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,179,71,0.05) 0%, transparent 60%); opacity: 0; transition: opacity 0.4s; }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { background: var(--bg3); }
.feature-num { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,179,71,0.3); letter-spacing: 0.1em; margin-bottom: 1rem; }
.feature-icon { width: 40px; height: 40px; background: rgba(255,179,71,0.06); border: 1px solid var(--border2); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--g); margin-bottom: 1.2rem; }
.feature-card h3 { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.feature-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1rem; }
.tag { font-family: var(--font-mono); font-size: 0.62rem; background: rgba(255,179,71,0.06); border: 1px solid var(--border); color: rgba(255,179,71,0.55); padding: 3px 8px; border-radius: 2px; }

#tech { background: var(--bg2); position: relative; }
#tech::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border2), transparent); }
.tech-table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: rgba(255,179,71,0.05); }
thead th { padding: 1rem 1.25rem; text-align: left; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g); font-weight: 400; border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,179,71,0.03); }
tbody td { padding: 1rem 1.25rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.82rem; }
tbody td:first-child { color: var(--g); }

#partners { background: var(--bg); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.partner-card { background: var(--bg); padding: 1.75rem 2rem; display: flex; align-items: center; gap: 1.25rem; transition: background 0.3s; }
.partner-card:hover { background: var(--bg3); }
.partner-avatar { width: 48px; height: 48px; flex-shrink: 0; background: rgba(255,179,71,0.06); border: 1px solid var(--border2); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--g); }
.partner-info { flex: 1; min-width: 0; }
.partner-name { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; color: var(--text); }
.partner-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.partner-country { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,179,71,0.45); }

.ticker-wrap { overflow: hidden; padding: 1rem 0; background: rgba(255,179,71,0.03); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ticker-track { display: flex; gap: 4rem; white-space: nowrap; animation: ticker 25s linear infinite; }
.ticker-item { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,179,71,0.38); display: inline-flex; align-items: center; gap: 1rem; }
.ticker-item::before { content: '>'; color: var(--g2); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center; }
.footer-logo { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--g); margin-bottom: 0.75rem; text-shadow: 0 0 12px rgba(255,179,71,0.3); }
footer p { color: var(--muted); font-size: 0.82rem; font-family: var(--font-mono); }
footer a { color: var(--g); }
.footer-divider { width: 60px; height: 1px; background: var(--border2); margin: 1.5rem auto; }
.s-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border2), transparent); }

.sb-btn { background: transparent; border: 1px solid rgba(255,179,71,0.25); color: var(--g); width: 36px; height: 36px; border-radius: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.sb-btn:hover { background: rgba(255,179,71,0.08); }
.sb-btn svg { width: 16px; height: 16px; stroke: var(--g); fill: none; stroke-width: 2; stroke-linecap: round; }
.sb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sb-overlay.open { opacity: 1; pointer-events: all; }
.sb-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: var(--bg2); border-right: 1px solid var(--border); z-index: 999; transform: translateX(-100%); transition: transform .32s cubic-bezier(0.23,1,0.32,1); display: flex; flex-direction: column; }
.sb-drawer.open { transform: translateX(0); }
.sb-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; height: 64px; border-bottom: 1px solid var(--border); }
.sb-close { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: 4px; }
.sb-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: 0.75rem 1.25rem; color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: 0.82rem; transition: background .2s, color .2s; position: relative; cursor: pointer; }
.sb-link:hover, .sb-link.active { background: rgba(255,179,71,0.06); color: var(--g); }
.sb-link.active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px; background: var(--g); }
.sb-link.danger { color: rgba(255,100,100,0.6); }
.sb-link.danger:hover { background: rgba(255,80,80,0.06); color: #ff9090; }
.sb-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; flex-shrink: 0; }
.sb-badge { margin-left: auto; background: rgba(255,179,71,0.1); color: var(--g); font-family: var(--font-mono); font-size: 0.62rem; padding: 2px 7px; border-radius: 2px; }
.sb-sep { height: 1px; background: var(--border); margin: 0.5rem 1.25rem; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 0.75rem 1.25rem; background: rgba(255,179,71,0.03); border-bottom: 1px solid var(--border); }
.sb-avatar { width: 28px; height: 28px; border-radius: 2px; background: rgba(255,179,71,0.12); border: 1px solid rgba(255,179,71,0.3); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--g); font-family: var(--font-mono); flex-shrink: 0; }
.sb-username { font-size: 0.8rem; color: var(--text); font-family: var(--font-mono); }
.sb-username small { display: block; font-size: 0.68rem; color: var(--muted); }
.sb-footer { padding: 0.75rem 0; border-top: 1px solid var(--border); }

@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

@media (max-width: 768px) {
  .dream-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (max-width: 480px) {
  #hero { padding: 8rem 2rem 4rem; }
  .section-inner { padding: 6rem 1.2rem; }
  .hero-ctas .btn-ghost { display: none; }
}
