/* ==========================================================================
   G-NIXCODE · Studio de Développement Logiciel, Applications & Web
   Feuille de style principale
   Couleurs inspirées de la charte G-NIXCODE : Cyan électrique, Bleu profond, Noir spatial
   ========================================================================== */

/* ---------- Polices locales (100% conforme RGPD, zéro requête externe) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/inter.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../assets/fonts/manrope.woff2) format('woff2');
}

/* ---------- Variables de thème ---------- */
:root {
  --bg-dark: #060913;
  --bg-surface: #0a1124;
  --bg-card: rgba(13, 23, 49, 0.7);
  --bg-card-hover: rgba(18, 32, 68, 0.85);
  
  --cyan-primary: #00d2ff;
  --cyan-light: #5de4ff;
  --blue-vibrant: #0072ff;
  --blue-deep: #0044ff;
  --blue-glow: rgba(0, 210, 255, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(0, 210, 255, 0.18);
  --border-card-hover: rgba(0, 210, 255, 0.5);
  
  --grad-brand: linear-gradient(135deg, #00d2ff 0%, #0072ff 60%, #0044ff 100%);
  --grad-text: linear-gradient(135deg, #ffffff 30%, #5de4ff 75%, #00d2ff 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.12) 0%, rgba(0, 114, 255, 0.04) 50%, transparent 80%);
  
  --font-title: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --max-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --header-height: 76px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Arrière-plan techno ambiant */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(0, 114, 255, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(0, 68, 255, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Typographie & Titres ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyan-text {
  color: var(--cyan-primary);
}

/* ---------- Mise en page générale ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--cyan-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 10px var(--cyan-primary);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--cyan-primary);
  transform: translateY(-2px);
}

.btn-chat {
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 210, 255, 0.55);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------- Bandeau supérieur d'alerte / annonce ---------- */
.top-announcement {
  background: linear-gradient(90deg, rgba(0, 114, 255, 0.2) 0%, rgba(0, 210, 255, 0.2) 50%, rgba(0, 68, 255, 0.2) 100%);
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  padding: 8px 16px;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.top-announcement strong {
  color: var(--cyan-light);
}

.top-announcement a {
  text-decoration: underline;
  color: #ffffff;
  font-weight: 600;
}

.top-announcement a:hover {
  color: var(--cyan-primary);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.95;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #020612;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  border: 1.5px solid rgba(0, 210, 255, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
  border-color: var(--cyan-light);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.65);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.brand-name span {
  color: var(--cyan-primary);
  text-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  display: block;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan-primary);
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.22);
}

.nav-links a.active {
  color: var(--cyan-primary);
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.3);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta .btn {
  white-space: nowrap;
}

.site-header .container {
  max-width: 1400px;
}

.brand-link {
  flex-shrink: 0;
}

.brand-tagline {
  white-space: nowrap;
}

/* Barre étroite : menu burger plutôt que des liens sur deux lignes */
@media (max-width: 1320px) {
  .nav-links, .nav-cta .btn-primary {
    display: none;
  }
  .burger-btn {
    display: block;
  }
}

/* Burger Mobile */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Drawer mobile */
.mobile-nav {
  position: fixed;
  top: var(--mobile-nav-top, calc(var(--header-height) + 36px));
  left: 0;
  width: 100%;
  bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  background: var(--bg-dark);
  padding: 16px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
  z-index: 999;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease-in-out;
}

body.nav-locked {
  overflow: hidden;
}

/* Le bouton flottant de tchat ne doit pas recouvrir le menu ouvert */
body.nav-locked #chatLauncher {
  display: none !important;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 80px 0 100px;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.12;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.proof-icon {
  color: var(--cyan-primary);
  font-size: 1.1rem;
}

/* Visuel Hero Démonstration */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 210, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.visual-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.visual-status {
  font-size: 0.75rem;
  color: var(--cyan-light);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}

.visual-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
}

.visual-logo-container {
  text-align: center;
  margin: 10px 0 24px;
}

.hero-brand-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.35);
  border: 2px solid rgba(0, 210, 255, 0.3);
}

.visual-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 210, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

.metric-pill .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  font-family: var(--font-title);
}

.metric-pill .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  background: rgba(10, 20, 45, 0.9);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 255, 0.3);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.badge-top {
  top: -15px;
  right: -10px;
  animation-delay: 0s;
}

.badge-bottom {
  bottom: -15px;
  left: -10px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Bandeau Chiffres & Crédibilité ---------- */
.stats-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan-primary);
  font-family: var(--font-title);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- 3 Pôles d'Activité (Applications - Web - Solutions) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 210, 255, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1.8rem;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.service-features li svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-footer {
  margin-top: auto;
}

/* ---------- Showcase Projet Phare : Portail Unix ---------- */
.showcase-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #081026 50%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-card {
  background: rgba(10, 18, 40, 0.8);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 210, 255, 0.12);
}

.showcase-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.showcase-intro h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.showcase-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.showcase-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--cyan-light);
  font-weight: 600;
}

/* Onglets interactifs */
.showcase-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 30px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 210, 255, 0.3);
}

.tab-btn.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 36px;
}

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

.tab-image-wrapper {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.tab-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.tab-text-info h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.tab-text-info p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.tab-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.tab-highlights li strong {
  color: var(--cyan-light);
}

/* ---------- Méthodologie (4 étapes) ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition);
}

.method-card:hover {
  border-color: var(--border-card);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: rgba(0, 210, 255, 0.2);
  line-height: 1;
  margin-bottom: 12px;
}

.method-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.method-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Simulateur de Projet Interactif ---------- */
.simulator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 210, 255, 0.1);
}

.sim-group {
  margin-bottom: 28px;
}

.sim-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sim-option {
  position: relative;
}

.sim-option input[type="radio"],
.sim-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sim-option label {
  display: block;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
}

.sim-option label:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 210, 255, 0.3);
}

.sim-option input:checked + label {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--cyan-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

/* Résultat du simulateur */
.sim-result-card {
  background: rgba(6, 11, 26, 0.8);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.sim-result-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.sim-result-header h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.sim-result-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.sim-estimate-box {
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.sim-estimate-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sim-estimate-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan-primary);
  font-family: var(--font-title);
  line-height: 1.1;
}

.sim-estimate-time {
  font-size: 0.85rem;
  color: var(--cyan-light);
  margin-top: 6px;
}

.sim-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sim-summary-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-summary-list li::before {
  content: '✓';
  color: var(--cyan-primary);
  font-weight: 800;
}

/* ---------- Engagements & Sécurité ---------- */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.commitment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: left;
}

.commitment-card .com-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--cyan-primary);
}

.commitment-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.commitment-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- FAQ Accordéon ---------- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 210, 255, 0.25);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--cyan-primary);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 24px;
}

/* ---------- Section Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.contact-info-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  flex-shrink: 0;
}

.contact-detail-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-text a, .contact-detail-text strong {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.contact-detail-text a:hover {
  color: var(--cyan-primary);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(6, 11, 26, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
  background: rgba(6, 11, 26, 0.9);
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}

/* Modal feedback */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--cyan-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.3);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.modal-box h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #03050c;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cyan-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Pages Légales (Mentions, Confidentialité, CGU) ---------- */
.legal-page {
  padding: 60px 0 100px;
}

.legal-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  color: var(--cyan-light);
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-proof {
    justify-content: center;
  }
  .hero-visual {
    max-width: 540px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .showcase-badges {
    justify-content: center;
  }
  .tab-content.active {
    grid-template-columns: 1fr;
  }
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-container {
    grid-template-columns: 1fr;
  }
  .commitments-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-primary {
    display: none;
  }
  .burger-btn {
    display: block;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .sim-options-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .showcase-card {
    padding: 24px 18px;
  }
  .simulator-container {
    padding: 24px 18px;
  }
  .contact-info-card, .contact-form-card {
    padding: 24px 18px;
  }

  /* Accueil : la grille ne doit jamais dépasser la largeur de l'écran */
  .hero-section {
    padding: 48px 0 70px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .hero-grid > * {
    min-width: 0;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-proof {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .proof-item {
    text-align: left;
  }
  .badge-top {
    right: 8px;
  }
  .badge-bottom {
    left: 8px;
  }
  .services-grid > *, .contact-grid > *, .tab-content > * {
    min-width: 0;
  }
}

/* Petits téléphones : en-tête compact (le tchat reste accessible par la bulle et le menu) */
@media (max-width: 560px) {
  .nav-cta #headerChatBtn {
    display: none !important;
  }
  .brand-link {
    gap: 10px;
  }
  .brand-logo-img {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2.4rem);
  }
  .section-title {
    font-size: clamp(1.6rem, 7.5vw, 2rem);
    overflow-wrap: break-word;
  }
  .container {
    padding: 0 16px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .visual-metrics-grid {
    gap: 8px;
  }
  .metric-pill .label {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }
  .hero-brand-logo {
    width: 130px;
    height: 130px;
  }
}

/* Filet de sécurité : aucun défilement horizontal parasite sur mobile */
html {
  overflow-x: clip;
}

/* ==========================================================================
   WIDGET TCHAT EN DIRECT G-NIXCODE
   ========================================================================== */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 25px rgba(0, 210, 255, 0.45);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-weight: 700;
  font-size: 0.92rem;
  user-select: none;
}

.chat-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(0, 210, 255, 0.65);
}

.chat-launcher-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px;
  height: 24px;
}

.chat-status-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #060913;
  box-shadow: 0 0 6px #10b981;
}

.chat-status-dot.pulse {
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chat-unread-badge {
  display: none;
  position: absolute;
  top: -6px;
  left: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 2px 7px;
  border: 2px solid #060913;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
}

.chat-unread-badge.active {
  display: inline-block;
  animation: bounceBadge 0.4s ease;
}

@keyframes bounceBadge {
  0% { transform: scale(0.3); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Bulle / Fenêtre de conversation */
.chat-widget-window {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: rgba(8, 14, 30, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 210, 255, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(0, 114, 255, 0.25) 100%);
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--cyan-primary);
  background: #000;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-status {
  font-size: 0.75rem;
  color: var(--cyan-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: var(--transition);
}

.chat-header-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--cyan-primary);
}

/* Zone d'identification facultative du visiteur */
.chat-identity-bar {
  background: rgba(0, 210, 255, 0.06);
  border-bottom: 1px solid rgba(0, 210, 255, 0.12);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.chat-identity-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  flex: 1;
  font-family: inherit;
}

.chat-identity-input:focus {
  outline: none;
  border-color: var(--cyan-primary);
}

/* Corps des messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.chat-bubble.admin {
  align-self: flex-start;
  background: rgba(13, 23, 49, 0.9);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: #ffffff;
  border-bottom-left-radius: 4px;
}

.chat-bubble.admin .sender-label {
  font-size: 0.72rem;
  color: var(--cyan-primary);
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.chat-bubble.visitor {
  align-self: flex-end;
  background: linear-gradient(135deg, #0084ff 0%, #00b4ff 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}

.chat-bubble-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  text-align: right;
  display: block;
}

/* Suggestions rapides */
.chat-suggestions {
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(6, 11, 26, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-chip {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--cyan-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.chat-chip:hover {
  background: rgba(0, 210, 255, 0.2);
  color: #fff;
  border-color: var(--cyan-primary);
}

/* Zone de saisie */
.chat-input-bar {
  padding: 12px 14px;
  background: rgba(6, 11, 26, 0.9);
  border-top: 1px solid rgba(0, 210, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  resize: none;
  height: 42px;
  max-height: 80px;
  transition: border-color 0.2s;
}

.chat-textarea:focus {
  outline: none;
  border-color: var(--cyan-primary);
  background: rgba(255, 255, 255, 0.08);
}

.chat-send-btn {
  background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.55);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* Lien discret Espace Admin dans le footer */
.admin-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  text-decoration: none;
}

.admin-badge-link:hover {
  color: var(--cyan-primary);
  border-color: rgba(0, 210, 255, 0.3);
  background: rgba(0, 210, 255, 0.05);
}

/* Réseaux sociaux (ajoutés depuis l'administration) */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-social a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--cyan-primary);
  border-color: rgba(0, 210, 255, 0.3);
}

/* ==========================================================================
   MOTEUR CYBERNÉTIQUE · ASSEMBLAGE TEXTUEL AU DÉFILEMENT & EXPÉRIENCE DEV PRO
   ========================================================================== */

/* 1. Barres de progression & HUD Développeur */
.gnx-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-primary) 0%, #0072ff 50%, #5de4ff 100%);
  z-index: 10000;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.8), 0 0 24px rgba(0, 114, 255, 0.5);
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* HUD Flottant Télémétrie Développeur */
.gnx-dev-hud {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(6, 9, 19, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.12);
  font-family: monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
  font-size: 0.76rem;
  color: var(--text-muted);
  user-select: none;
  transition: var(--transition);
}

.gnx-dev-hud:hover {
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 255, 0.25);
  transform: translateY(-2px);
}

.gnx-hud-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan-light);
  font-weight: 700;
}

.gnx-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: gnxPulseDot 2s infinite ease-in-out;
}

@keyframes gnxPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #10b981; }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 2px #10b981; }
}

.gnx-hud-sep {
  color: rgba(255, 255, 255, 0.18);
}

.gnx-hud-telemetry {
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.gnx-hud-telemetry strong {
  color: var(--cyan-primary);
  font-weight: 600;
}

.gnx-hud-btn {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan-light);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gnx-hud-btn:hover {
  background: var(--cyan-primary);
  color: #060913;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* 2. Toile Canvas Fond Constellation Cybernétique */
#gnxTechCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
}

/* 3. Moteur d'Assemblage Textuel : mots qui apparaissent en fondu, sans décalage de mise en page */
.gnx-assemble-text {
  display: block;
}

.gnx-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
}

.gnx-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease-out,
    filter 0.5s ease-out;
}

.gnx-char.assembled {
  transform: none;
  opacity: 1;
  filter: none;
}

/* Dégradé : le fondu s'applique au mot entier (un enfant transformé disparaît d'un texte en dégradé) */
.gradient-text.gnx-has-words {
  display: inline;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.gradient-text .gnx-word {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(22px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

.gradient-text .gnx-word:has(.gnx-char.assembled) {
  opacity: 1;
  transform: none;
}

.gradient-text .gnx-char {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
  display: inline;
}

.gnx-char.assembling {
  color: #ffffff;
}

/* 4. Déchiffrement Scramble Matrix au Défilement */
.gnx-scramble-text {
  position: relative;
  display: inline;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.gnx-scramble-text.scrambling {
  color: var(--cyan-light) !important;
  text-shadow: 0 0 12px rgba(0, 210, 255, 0.85);
}

/* 5. Spotlight Bento Laser Border Effect */
.gnx-spotlight-card {
  position: relative;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.gnx-spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(0, 210, 255, 0.6) 0%,
    rgba(0, 114, 255, 0.25) 35%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.gnx-spotlight-card:hover::before {
  opacity: 1;
}

/* 6. Bandeau d'Assemblage Cinétique Développeur */
.gnx-kinetic-ribbon {
  position: relative;
  overflow: hidden;
  padding: 44px 0;
  margin: 30px 0 60px;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  background: linear-gradient(90deg, rgba(6, 9, 19, 0.95), rgba(10, 23, 56, 0.6) 50%, rgba(6, 9, 19, 0.95));
}

.gnx-ribbon-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 2;
}

.gnx-ribbon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(13, 23, 49, 0.65);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-pill);
  font-family: monospace, ui-monospace, sans-serif;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gnx-ribbon-tag:hover {
  border-color: var(--cyan-primary);
  background: rgba(0, 210, 255, 0.12);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.25);
  color: #ffffff;
}

.gnx-ribbon-tag .tag-prefix {
  color: var(--cyan-primary);
  font-weight: 700;
}

.gnx-ribbon-tag .tag-val {
  color: var(--cyan-light);
  font-weight: 600;
}

/* 7. Onglets Interactifs du Lab Héro (Terminal & Architecture) */
.hero-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.hero-deck-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(6, 9, 19, 0.7);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-deck-tab {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-deck-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.hero-deck-tab.active {
  background: rgba(0, 210, 255, 0.18);
  color: var(--cyan-light);
  border: 1px solid rgba(0, 210, 255, 0.3);
  font-weight: 600;
}

.hero-deck-pane {
  display: none;
  animation: gnxPaneFade 0.3s ease forwards;
}

.hero-deck-pane.active {
  display: block;
}

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

/* Terminal Interactif dans le Hero */
.gnx-terminal-box {
  background: #03060f;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  font-family: monospace, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
  font-size: 0.8rem;
  color: #d1d5db;
  text-align: left;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

.gnx-terminal-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 165px;
}

.gnx-term-line {
  line-height: 1.45;
  word-break: break-all;
}

.gnx-term-line .cmd {
  color: var(--cyan-light);
}

.gnx-term-line .success {
  color: #10b981;
  font-weight: 600;
}

.gnx-term-line .highlight {
  color: #fbbf24;
}

.gnx-term-line .comment {
  color: #64748b;
}

.gnx-terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

.gnx-terminal-btn {
  background: linear-gradient(135deg, var(--cyan-primary), #0072ff);
  color: #060913;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.74rem;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gnx-terminal-btn:hover {
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.7);
  transform: translateY(-1px);
}

/* 8. Révélation au Défilement (Scroll Reveal) */
.gnx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.gnx-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Compteur de stats digital avec spin */
.stat-number.spinning {
  color: var(--cyan-light);
  text-shadow: 0 0 15px rgba(0, 210, 255, 0.8);
}

/* 9. Support Mobilité & Accessibilité */
@media (max-width: 768px) {
  /* Le HUD est masqué sur téléphone : il déborde et recouvre les textes */
  .gnx-dev-hud {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .gnx-char,
  .gradient-text .gnx-word,
  .gnx-reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  
  #gnxTechCanvas {
    display: none !important;
  }
}

