/* ==========================================================================
   VertexCyber — Design System
   Palette : Navy / Teal / Gold — esthétique "cyber / terminal"
   ========================================================================== */

:root {
  /* Couleurs de base */
  --navy-950: #060a14;
  --navy-900: #0a1020;
  --navy-800: #0f1830;
  --navy-700: #16213f;
  --navy-600: #1f2d52;
  --navy-border: #223052;

  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --teal-glow: rgba(45, 212, 191, 0.35);

  --gold-500: #d4af37;
  --gold-400: #e8c766;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --ink-100: #f4f7fb;
  --ink-300: #c4cede;
  --ink-500: #8b98b4;
  --ink-700: #5a6684;

  --danger: #ef4444;
  --success: #22c55e;

  /* Typo */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Rythme */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1180px;
  --shadow-soft: 0 10px 30px rgba(4, 8, 20, 0.35);
  --shadow-lift: 0 20px 60px rgba(4, 8, 20, 0.5);
}

/* ---- Reset ---- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink-100);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-300); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: "▹"; color: var(--gold-400); }

.text-gradient {
  background: linear-gradient(90deg, var(--teal-300), var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--navy-950);
  box-shadow: 0 8px 24px var(--teal-glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px var(--teal-glow); }
.btn-ghost {
  background: transparent;
  color: var(--ink-100);
  border-color: var(--navy-border);
}
.btn-ghost:hover { border-color: var(--teal-400); color: var(--teal-300); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950);
  box-shadow: 0 8px 24px var(--gold-glow);
}
.btn-block { width: 100%; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.brand .brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
  border: 1px solid var(--teal-glow);
}
.brand .brand-mark svg { width: 20px; height: 20px; }
.brand .brand-suffix { color: var(--gold-400); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.94rem;
  color: var(--ink-300);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--gold-400));
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--navy-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 110%, rgba(212, 175, 55, 0.12), transparent 60%),
    var(--navy-950);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, black, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero-lead { font-size: 1.12rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: #fff;
  font-weight: 700;
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Terminal decorative panel */
.terminal {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--navy-700);
  border-bottom: 1px solid var(--navy-border);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-500);
}
.terminal-body {
  padding: 22px 22px 28px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--teal-300);
  min-height: 260px;
}
.terminal-body .line { margin: 0 0 10px; white-space: pre-wrap; }
.terminal-body .prompt { color: var(--gold-400); }
.terminal-body .ok { color: var(--success); }
.terminal-body .muted { color: var(--ink-500); }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--teal-300);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Section headers ---- */
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: var(--shadow-soft);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--teal-300);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-bottom: 0; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--teal-400);
  font-weight: 600;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-300);
  background: var(--navy-700);
  border: 1px solid var(--navy-border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---- Bandeau confiance / logos ---- */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  background: var(--navy-900);
}
.trust-bar .trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 22px;
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  text-align: center;
}
.trust-row span { color: var(--ink-300); }

/* ---- Process / étapes ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  background: var(--navy-900);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--teal-400), var(--gold-400));
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; margin: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 52ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Tableaux tarifs / offres ---- */
.pricing-card {
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card.featured {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), var(--navy-900));
  box-shadow: var(--shadow-soft);
}
.pricing-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-950);
  background: var(--gold-400);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pricing-price {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: #fff;
  margin: 6px 0 4px;
}
.pricing-price span { font-size: 0.95rem; color: var(--ink-500); font-family: var(--font-body); }
.pricing-list { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.pricing-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--ink-300);
}
.pricing-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-400); width: 16px; height: 16px; }

/* ---- Formulaire ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.86rem; color: var(--ink-300); font-weight: 500; }
input, select, textarea {
  background: var(--navy-900);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-400);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-700); }

/* ---- Contact info cards ---- */
.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  background: var(--navy-900);
  margin-bottom: 16px;
}
.contact-info-card .icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-400);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info-card .icon svg { width: 20px; height: 20px; }
.contact-info-card h4 { margin: 0 0 4px; font-size: 0.98rem; }
.contact-info-card p { margin: 0; font-size: 0.9rem; }

/* ---- Placeholder block (à personnaliser) ---- */
.placeholder-block {
  border: 1px dashed var(--gold-500);
  background: rgba(212, 175, 55, 0.06);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 0.9rem;
  color: var(--ink-300);
}
.placeholder-block strong { color: var(--gold-400); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-border);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink-300); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--navy-border);
  font-size: 0.82rem;
  color: var(--ink-700);
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-300);
}
.footer-socials a:hover { border-color: var(--teal-400); color: var(--teal-300); }

/* ---- Page header (pages internes) ---- */
.page-header {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(45, 212, 191, 0.14), transparent 60%),
    var(--navy-950);
  border-bottom: 1px solid var(--navy-border);
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--teal-400); }

/* ---- Legal / prose pages ---- */
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-300); }
.prose li { margin-bottom: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--teal-400); text-decoration: underline; }

/* ---- Utilitaires ---- */
/* Par défaut (JS absent ou bloqué) : contenu visible. L'animation de révélation
   n'est activée que si le script a pu poser la classe .js-ready sur <html>. */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
