/* ═══════════════════════════════════════════════════════
   BEAMREACTOR — Homepage Redesign
   Theme: BeamReactor Gold / Warm Dark
   Aligned with core.css variables
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── BeamReactor Core Palette (from core.css) ── */
  --primary-color: #FFC735;
  --primary-hover: #E6B330;
  --primary-glow: rgba(255, 199, 53, 0.15);
  --primary-glow-strong: rgba(255, 199, 53, 0.3);
  --secondary-color: #2c3e50;

  --body-bg-start: #262929;
  --body-bg-middle: #333639;
  --body-bg-end: #333639;
  --card-bg: #232323;
  --frame-bg: #2F3235;
  --bubble-bg: #4f4f4f;
  --sidebar-bg: #222629;

  --text-primary: #fff;
  --text-secondary: #DDDDDD;
  --text-muted: #888;
  --text-gray: #CCC;

  --link-color: #FFC735;
  --link-hover: #E6B330;

  --border-color: #666;
  --border-dark: #212121;
  --border-subtle: #3a3d42;
  --shadow-inset: rgba(0,0,0, 0.25);
  --shadow-default: rgba(0,0,0,0.1);

  --success-color: #00ff88;
  --error-color: #ff4500;
  --info-color: #1e90ff;

  /* ── Extended for homepage ── */
  --accent-amber: #FFC735;
  --accent-green: #00ff88;
  --accent-red: #ff4500;
  --accent-cyan: #06b6d4;
  --accent-blue: #1e90ff;

  --bg-card-hover: #2a2d30;

  /* ── Layout ── */
  --sidebar-width: 280px;
  --sidebar-collapsed: 62px;

  --border-radius: 7px;
  --border-radius-small: 5px;
  --border-radius-tiny: 3px;
  --radius: 7px;
  --radius-sm: 5px;

  /* ── Fonts ── */
  --font-body: 'Ropa Sans', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', 'Source Code Pro', monospace;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Widget compat (used by general_performance_widget) ── */
  --accent-amber: #FFC735;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17pt;
  font-weight: 300;
  line-height: 1.75em;
  background: var(--body-bg-middle);
  background-image: linear-gradient(to bottom, var(--body-bg-start) 0%, var(--body-bg-middle) 10%, var(--body-bg-end) 100%);
  background-repeat: repeat-x;
  color: var(--text-primary);
  overflow-x: hidden;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover); text-shadow: var(--link-color) 0 0 2px; }

/* ═══════════════════════════════════════════════════════
   SIDEBAR — Minimaliste avec animations subtiles
   Respecte l'identité BeamReactor (#222629, or)
   ═══════════════════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-collapsed);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-dark);
  box-shadow: -.25em 0 .25em 0 var(--shadow-default) inset;
  z-index: 9999;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar:hover,
.sidebar.expanded {
  width: var(--sidebar-width);
}

.sidebar-logo {
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-dark);
  min-height: 62px;
  cursor: pointer;
}

.sidebar-logo .logo-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--primary-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
  position: relative;
  transition: all var(--transition);
}

.sidebar:hover .logo-icon {
  box-shadow: 0 0 16px rgba(255, 199, 53, 0.35);
}

.sidebar-logo .logo-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
  letter-spacing: 0.5px;
}

.sidebar:hover .logo-text,
.sidebar.expanded .logo-text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  position: relative;
  transition: all var(--transition);
  white-space: nowrap;
  font-size: 15px;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary-color);
  border-radius: 0 3px 3px 0;
  transition: height var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 199, 53, 0.06);
  text-shadow: none;
}

.nav-item:hover::before,
.nav-item.active::before {
  height: 22px;
}

.nav-item.active {
  color: var(--primary-color);
  background: var(--primary-glow);
}

.nav-icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border-radius: var(--border-radius-small);
  transition: all var(--transition);
}

.nav-item:hover .nav-icon {
  transform: scale(1.08);
}

.nav-label {
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.sidebar:hover .nav-label,
.sidebar.expanded .nav-label {
  opacity: 1;
  transform: translateX(0);
}

.nav-item:nth-child(2) .nav-label { transition-delay: 0.06s; }
.nav-item:nth-child(3) .nav-label { transition-delay: 0.08s; }
.nav-item:nth-child(4) .nav-label { transition-delay: 0.10s; }
.nav-item:nth-child(5) .nav-label { transition-delay: 0.12s; }
.nav-item:nth-child(6) .nav-label { transition-delay: 0.14s; }

.sidebar-footer {
  padding: 14px 15px;
  border-top: 1px solid var(--border-dark);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

.status-text {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.sidebar:hover .status-text,
.sidebar.expanded .status-text { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════ */

.main {
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay — hexagonal/industrial feel */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
	linear-gradient(rgba(255, 199, 53, 0.02) 1px, transparent 1px),
	linear-gradient(90deg, rgba(255, 199, 53, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Warm glow top-right */
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 199, 53, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-glow);
  border: 1px solid rgba(255, 199, 53, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary-color);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  width: fit-content;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse-dot-gold 2s infinite;
}

@keyframes pulse-dot-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 199, 53, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(255, 199, 53, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px) !important;
  font-weight: 900;
  /* Augmentation du line-height pour laisser respirer le texte */
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 24px; /* Un peu plus d'espace sous le titre */
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-color);
  text-shadow: 0 0 30px rgba(255, 199, 53, 0.2);
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
  padding: 13px 30px;
  border-radius: var(--border-radius-small);
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-color);
  color: #1a1a1a;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 199, 53, 0.25);
}

a.btn-primary:visited {
	color: #382e16;
	background-color: var(--primary-hover); /* Légèrement plus sombre */
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 199, 53, 0.35);
  text-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  text-shadow: none;
}


/* ═══════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════ */

.timeline-section {
  padding: 80px 60px;
}

.timeline {
  position: relative;
  max-width: 880px;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-cyan), var(--success-color));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 44px 30px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--body-bg-middle);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transition: all var(--transition);
}

.timeline-item:hover::before {
  background: var(--primary-color);
  box-shadow: 0 0 12px rgba(255, 199, 53, 0.5);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-tag {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: var(--border-radius-tiny);
  margin-top: 8px;
  background: var(--primary-glow);
  color: var(--primary-color);
  border: 1px solid rgba(255, 199, 53, 0.2);
}

.timeline-tag.security {
  background: rgba(0, 255, 136, 0.08);
  color: var(--success-color);
  border-color: rgba(0, 255, 136, 0.2);
}

.timeline-tag.milestone {
  background: rgba(255, 199, 53, 0.1);
  color: var(--primary-color);
  border-color: rgba(255, 199, 53, 0.3);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   CMS COMPARISON TABLE
   ═══════════════════════════════════════════════════════ */

.compare-section {
  padding: 80px 60px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.compare-table-wrap {
  max-width: 1000px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.compare-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-dark);
  white-space: nowrap;
}

.compare-table thead th.highlight {
  color: var(--primary-color);
  background: var(--primary-glow);
  border-radius: var(--radius) var(--radius) 0 0;
}

.compare-table tbody td {
  padding: 13px 18px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(33, 33, 33, 0.6);
  vertical-align: middle;
  font-size: 13px;
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

.compare-table tbody td.highlight {
  background: rgba(255, 199, 53, 0.03);
  color: var(--text-primary);
  font-weight: 600;
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

.check { color: var(--success-color); font-size: 16px; }
.cross { color: var(--error-color); opacity: 0.7; font-size: 16px; }
.partial { color: var(--primary-color); font-size: 16px; }

/* ═══════════════════════════════════════════════════════
   ZERO BS BADGE
   ═══════════════════════════════════════════════════════ */

.zerobs-section {
  padding: 80px 60px;
  display: flex;
  justify-content: center;
}

.zerobs-card {
  max-width: 680px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px var(--shadow-inset);
}

.zerobs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--success-color), var(--accent-cyan), var(--primary-color));
}

.zerobs-badge-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  background: rgba(0, 255, 136, 0.08);
  border: 2px solid rgba(0, 255, 136, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  position: relative;
}

.zerobs-badge-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 136, 0.12);
  animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.3; }
}

.zerobs-title {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.zerobs-subtitle {
  font-size: 15px;
  color: var(--success-color);
  font-weight: 600;
  margin-bottom: 22px;
}

.zerobs-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

.zerobs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
}

.zerobs-metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--success-color);
}

.zerobs-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════════════════ */

.features-section {
  padding: 80px 60px;
  background: var(--card-bg);
  border-top: 1px solid var(--border-dark);
}

.section-header,
.features-grid,
.compare-table-wrap,
.timeline,
.stats-dashboard,
.counters-grid {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--frame-bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px;
  transition: all var(--transition);
  box-shadow: inset 0 0 6px var(--shadow-inset);
}

.feature-card:hover {
  border-color: rgba(255, 199, 53, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: var(--primary-glow);
  border-radius: var(--border-radius-small);
  margin-bottom: 14px;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════ */

.cta-section {
  padding: 100px 60px;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 199, 53, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  padding: 28px 60px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.footer-left { color: var(--text-muted); }
.footer-left a { color: var(--primary-color); text-decoration: none; }
.footer-right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .stats-dashboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
	width: 100%;
	height: auto;
	position: relative;
	flex-direction: row;
	overflow-x: auto;
  }
  .sidebar-nav { flex-direction: row; padding: 0; }
  .nav-label { display: none; }
  .sidebar-logo .logo-text { display: none; }
  .sidebar-footer { display: none; }
  .main { margin-left: 0; }

  .hero, .counters-section, .stats-section, .timeline-section,
  .compare-section, .zerobs-section, .features-section, .cta-section {
	padding-left: 20px;
	padding-right: 20px;
  }
  .hero { min-height: auto; padding-top: 50px; padding-bottom: 50px; }
  .stats-dashboard { grid-template-columns: 1fr; }
  .zerobs-metrics { grid-template-columns: 1fr; }
  .compare-table { font-size: 11px; }
  .site-footer { padding: 20px; }
}



/* ═══════════════════════════════════════════════════════
   ANIMATED COUNTERS
   ═══════════════════════════════════════════════════════ */

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.counter-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.counter-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.counter-card:hover {
  border-color: var(--primary-color);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(255, 199, 53, 0.08);
}

.counter-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.counter-card:hover::after { opacity: 1; }

.counter-value {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-value .counter-suffix {
  font-size: 20px;
  color: var(--primary-color);
}

.counter-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Counter accent colors */
.counter-card[data-accent="gold"] .counter-value { color: var(--primary-color); }
.counter-card[data-accent="green"] .counter-value { color: var(--success-color); }
.counter-card[data-accent="cyan"] .counter-value { color: var(--accent-cyan); }
.counter-card[data-accent="red"] .counter-value { color: var(--error-color); }
