/* ═══════════════════════════════════════════════════════════
   YESVOICE ENTERPRISE THEME v6.0 (FINAL STABLE)
   Design System: "Void & Neon"
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette Corporate Dark */
  --bg-deep: #020617;
  --bg-surface: #0f172a;
  --bg-glass: rgba(15, 23, 42, 0.7);
  
  /* Bordures */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-highlight: rgba(99, 102, 241, 0.3);
  
  /* Couleurs */
  --primary: #6366f1;       /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #0ea5e9;     /* Sky Blue */
  --success: #22c55e;       /* Green */
  --warning: #f59e0b;       /* Amber */
  --danger: #ef4444;        /* Red */
  --paypal-yellow: #ffc439; /* PayPal Brand Color */
  
  /* Typographie */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(2,6,23,0) 0%, #020617 100%);
  color: var(--text-main);
  font-family: var(--font-ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.brand-info { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.brand-badge { font-size: 10px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.nav-menu { display: flex; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: 0.2s; padding: 8px 0; position: relative; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.2s; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; border: 1px solid transparent; }
.btn-primary:hover { background: #5558e6; transform: translateY(-2px); box-shadow: 0 4px 20px var(--primary-glow); }
.btn-outline { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

/* Boutons Pricing Spécifiques */
.btn-pricing-secondary {
  display: flex; justify-content: center; align-items: center; width: 100%; padding: 14px 20px; margin-bottom: 32px; font-weight: 700; border-radius: 12px;
  background: transparent; border: 2px solid rgba(148, 163, 184, 0.3); color: #fff; text-decoration: none; transition: all 0.3s;
}
.btn-pricing-secondary:hover { border-color: var(--text-main); background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.btn-pricing-primary {
  display: flex; justify-content: center; align-items: center; width: 100%; padding: 14px 20px; margin-bottom: 32px; font-weight: 700; border-radius: 12px;
  background: var(--primary); border: 2px solid var(--primary); color: #fff; text-decoration: none; box-shadow: 0 0 20px var(--primary-glow); transition: all 0.3s;
}
.btn-pricing-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--primary-glow); }

/* ── PANELS & CARDS ── */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.01);
}

.panel-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

/* ── TABLEAU PRICING (FIXÉ) ── */
.table-container {
  margin-top: 40px; margin-bottom: 80px;
  border-radius: 24px;
  border: 1px solid var(--border-highlight);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  overflow: hidden; /* Important pour les coins */
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.comparison-table {
  width: 100%;
  table-layout: fixed; /* OBLIGATOIRE POUR L'ALIGNEMENT */
  border-collapse: collapse;
  color: var(--text-muted);
}

.comparison-table th, 
.comparison-table td {
  padding: 20px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  word-wrap: break-word;
}

/* Largeurs des colonnes */
.comparison-table th:nth-child(1), .comparison-table td:nth-child(1) { width: 34%; text-align: left; padding-left: 30px; border-right: 1px solid rgba(255,255,255,0.05); }
.comparison-table th:nth-child(2), .comparison-table td:nth-child(2),
.comparison-table th:nth-child(3), .comparison-table td:nth-child(3),
.comparison-table th:nth-child(4), .comparison-table td:nth-child(4) { width: 22%; text-align: center; }

/* Styles spécifiques */
.comparison-table th { background: rgba(2, 6, 23, 0.9); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; height: 60px; }
.comparison-table td:nth-child(3) { background: rgba(99, 102, 241, 0.05); border-left: 1px solid rgba(99, 102, 241, 0.2); border-right: 1px solid rgba(99, 102, 241, 0.2); }
.comparison-table tr:hover td { background: rgba(255, 255, 255, 0.03); color: var(--text-main); }

/* Verdict */
.comparison-table tr:last-child td { border-bottom: none; background: rgba(99, 102, 241, 0.1); font-weight: 800; color: #fff; text-transform: uppercase; font-size: 14px; }

.check { color: var(--success); font-weight: bold; font-size: 18px; }
.cross { color: var(--danger); opacity: 0.3; font-size: 18px; }

/* ── SECTION PAYPAL / DONATION ── */
.paypal-section {
  text-align: center;
  margin: 60px auto 80px auto;
  padding: 60px 40px;
  background: radial-gradient(circle at center, rgba(255, 196, 57, 0.08) 0%, transparent 60%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  max-width: 900px;
  border-radius: 30px;
}

.btn-paypal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paypal-yellow);
  color: #000; /* Texte noir sur jaune pour contraste */
  font-weight: 800;
  padding: 18px 36px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 25px rgba(255, 196, 57, 0.3);
  margin-top: 20px;
}

.btn-paypal:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 50px rgba(255, 196, 57, 0.6);
  background: #ffcf5c;
}

/* ── FAQ & TEXT ── */
.text-gradient { background: linear-gradient(135deg, #fff 0%, #94a3b8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle-caption { text-align: center; color: var(--secondary); font-family: var(--font-mono); font-size: 12px; margin-bottom: 30px; letter-spacing: 0.5px; background: rgba(14, 165, 233, 0.1); display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(14, 165, 233, 0.3); }

.faq-item { border-bottom: 1px solid var(--border-subtle); padding: 24px 0; }
.faq-q { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.faq-a { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ── DOCS / API STYLES ── */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; padding-top: 60px; padding-bottom: 80px; }
.sidebar { position: sticky; top: 100px; height: calc(100vh - 140px); border-right: 1px solid var(--border-subtle); padding-right: 20px; overflow-y: auto; }
.sidebar-title { color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; margin-bottom: 16px; }
.sidebar-link { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.sidebar-link:hover { color: var(--primary); padding-left: 5px; }

.code-window { background: #0d1117; border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; margin-bottom: 30px; }
.code-header { background: rgba(255,255,255,0.03); padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); }
.code-body { padding: 20px; font-family: var(--font-mono); font-size: 13px; color: #e6edf3; overflow-x: auto; white-space: pre; }

.endpoint-badge { font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; border-radius: 4px; font-weight: 700; }
.badge-get { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.badge-post { background: rgba(99, 102, 241, 0.2); color: var(--primary); }

/* ── FOOTER ── */
.footer { margin-top: auto; padding: 80px 0 40px; border-top: 1px solid var(--border-subtle); background: #01040f; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 24px; text-transform: uppercase; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-dim); }

@media (max-width: 768px) {
  .main-grid, .footer-grid, .docs-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .table-container { overflow-x: auto; }
  .comparison-table { min-width: 800px; } /* Scroll horizontal sur mobile */
}

/* ── CHAT SPECIFIC ── */
.input-zone { padding: 20px; background: rgba(2, 6, 23, 0.5); border-top: 1px solid var(--border-subtle); display: flex; gap: 12px; }
.mic-zone { display: flex; flex-direction: column; align-items: center; padding: 40px; background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%); margin-bottom: 24px; border-radius: 20px; }
.mic-btn { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #4338ca); border: none; color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.mic-btn:hover { transform: scale(1.05); }
.mic-btn.active { background: var(--success); box-shadow: 0 0 40px var(--success); }
.feature-card { display: flex; gap: 16px; padding: 16px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-subtle); border-radius: 12px; transition: 0.2s; }
.feature-card:hover { border-color: var(--border-highlight); transform: translateX(4px); }


/* ═══════════════════════════════════════════════════════════
   CORRECTIF INDEX / CONSOLE (HOTFIX)
   ═══════════════════════════════════════════════════════════ */

/* 1. Réparer la grille principale */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2 tiers pour le chat, 1 tiers pour les infos */
  gap: 32px;
  padding: 40px 0;
  align-items: start;
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr; /* Sur mobile, tout en colonne */
  }
}

/* 2. Réparer la zone de saisie (Input) */
.input-zone {
  padding: 20px;
  background: rgba(2, 6, 23, 0.5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  align-items: center;
}

.cmd-input {
  flex: 1; /* Prend toute la largeur disponible */
  width: 100%;
  background: #020617;
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  height: auto; /* Force la hauteur automatique */
}

.cmd-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* 3. Réparer le bouton d'envoi (la flèche) */
#send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0; /* Empêche le bouton de s'écraser */
  transition: 0.2s;
}

#send-btn:hover {
  background: #5558e6;
  transform: scale(1.05);
}

/* 4. Ajustement Panneau Chat */
.chat-viewport {
  height: 500px; /* Hauteur fixe pour le scroll */
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 24px;
  background: radial-gradient(circle at center, #131c33 0%, #0f172a 100%);
}

/* 5. Ajustement Panneau Droite (Micro) */
.mic-zone {
  min-height: 250px; /* Hauteur minimale pour respirer */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* CORRECTIF BARRE DE CHAT */
.input-zone {
  display: flex;
  gap: 12px;
  padding: 20px;
  width: 100%;
  align-items: center;
}

.cmd-input {
  flex-grow: 1; /* Force l'input à prendre toute la place */
  width: 100%;
  min-width: 0; /* Empêche le débordement */
  height: 54px;
  padding: 0 20px;
}

#send-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 12px;
}



/* ═══════════════════════════════════════════════════════════
   RESPONSIVE MENU FIXED (PC & MOBILE)
   ═══════════════════════════════════════════════════════════ */

/* 1. ETAT PAR DÉFAUT (PC / DESKTOP) */
.nav-wrapper {
  display: flex;       /* On force l'affichage en ligne */
  align-items: center;
  gap: 32px;
  position: static;    /* Pas de position fixed sur PC */
  height: auto;        /* Hauteur automatique */
  background: transparent;
  flex-direction: row; /* Horizontal */
}

/* Le Hamburger est caché sur PC */
.hamburger {
  display: none; 
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* Animation Hamburger */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* 2. ETAT MOBILE (Écrans < 900px) */
@media (max-width: 900px) {
  
  /* On affiche le bouton hamburger */
  .hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
  }

  /* On transforme le menu en panneau cachable */
  .nav-wrapper {
    position: fixed;
    top: 80px; /* Juste sous le header */
    left: 0;
    width: 100%;
    height: 0; /* CACHÉ par défaut */
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column; /* Vertical */
    justify-content: center;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 99;
  }

  /* Quand on clique (ajouté par JS) */
  .nav-wrapper.active {
    height: calc(100vh - 80px); /* Prend tout l'écran */
    padding-bottom: 40px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
  }

  .nav-link {
    font-size: 24px; /* Gros texte tactile */
    font-weight: 700;
  }
  
  /* Ajustements généraux mobile */
  .main-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .sidebar { display: none; }
  .docs-layout { grid-template-columns: 1fr; }
  .table-container { overflow-x: auto; }
  .comparison-table { min-width: 700px; }
}


/* ═══════════════════════════════════════════════════════════
   CORRECTIF FEATURES MOBILE (RESPONSIVE GRID)
   ═══════════════════════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Par défaut (PC) : 2 colonnes */
  gap: 40px;
}

/* Règle pour Mobile et Tablettes (< 900px) */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr; /* Force 1 seule colonne */
    gap: 24px; /* Réduit un peu l'espace entre les blocs */
  }
  
  /* On s'assure que les cartes prennent toute la largeur */
  .feature-card {
    width: 100%;
    box-sizing: border-box;
  }
}