/* ============================================================
   CYBERGARD AI — REFONTE COMPLÈTE
   Direction : Tactical Dark — Owl Guardian
   Typographie : Orbitron (display) + Syne (body)
   Palette : Noir profond · Rouge sang · Or discret
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Syne:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS VARIABLES — DESIGN TOKENS
============================================================ */
:root {
  --red:          #8B0000;
  --red-light:    #C0392B;
  --red-glow:     rgba(139, 0, 0, 0.5);
  --red-soft:     rgba(139, 0, 0, 0.15);
  --gold:         #C9A84C;
  --gold-soft:    rgba(201, 168, 76, 0.15);
  --bg-void:      #080808;
  --bg-deep:      #0e0e0e;
  --bg-card:      #141414;
  --bg-card-hover:#1a1a1a;
  --border:       rgba(255,255,255,0.06);
  --border-red:   rgba(139,0,0,0.4);
  --text:         #f0f0f0;
  --text-muted:   #888;
  --text-dim:     #444;

  /* Override common.css vars */
  --primary:       #8B0000;
  --primary-light: #C0392B;
  --primary-dark:  #5C0000;
  --primary-glow:  rgba(139, 0, 0, 0.5);
  --surface:       #080808;
  --surface-light: #0e0e0e;
  --surface-card:  #141414;
}

/* ============================================================
   TYPOGRAPHY OVERRIDE
============================================================ */
body {
  font-family: 'Syne', sans-serif;
  background: var(--bg-void);
  color: var(--text);
}

h1, h2, h3, .brand, .ai, .nav-logo span,
.price-amount, .hero-title {
  font-family: 'Orbitron', sans-serif;
}

/* ============================================================
   NAVBAR — Bande horizontale tactique
============================================================ */
.navbar {
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-red);
  box-shadow: 0 0 40px rgba(139,0,0,0.1);
}

.nav-logo span {
  font-size: 0.95rem;
  letter-spacing: 4px;
  color: var(--text);
}

.nav-logo img {
  height: 36px;
  filter: drop-shadow(0 0 8px var(--red-glow));
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

.nav-cta {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  border-radius: 3px !important;
  padding: 0.6rem 1.4rem !important;
}

/* ============================================================
   HERO — Sanctuaire du Gardien
============================================================ */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,0,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139,0,0,0.05) 0%, transparent 70%),
    var(--bg-void);
  position: relative;
  overflow: hidden;
}

/* Grille tactique en fond */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Ligne horizontale centrale */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
  opacity: 0.4;
}

/* Hibou — AGRANDI, central, iconique */
.owl-container {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 2.5rem;
}

.owl-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 40px rgba(139,0,0,0.6))
    drop-shadow(0 0 80px rgba(139,0,0,0.2));
  animation: owlBreath 4s ease-in-out infinite;
}

@keyframes owlBreath {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(139,0,0,0.6)) drop-shadow(0 0 80px rgba(139,0,0,0.2)); }
  50%       { filter: drop-shadow(0 0 60px rgba(139,0,0,0.9)) drop-shadow(0 0 120px rgba(139,0,0,0.35)); }
}

/* Anneaux de pulse autour du hibou */
.owl-pulse {
  position: absolute;
  inset: -30px;
  border: 1px solid var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: owlPulse 3s ease-out infinite;
}
.owl-pulse.delay-1 { animation-delay: 1s; }
.owl-pulse.delay-2 { animation-delay: 2s; }

@keyframes owlPulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Yeux — légèrement plus grands, plus visibles */
.eye-glow {
  position: absolute;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, var(--red) 20%, rgba(139,0,0,0.4) 60%, transparent 100%);
  border-radius: 50%;
  top: 47%;
  transition: transform 0.1s ease-out;
  pointer-events: none;
  opacity: 1;
  z-index: 10;
  box-shadow: 0 0 12px var(--red), 0 0 24px rgba(139,0,0,0.5);
}

.eye-glow.left  { left: 33%; }
.eye-glow.right { right: 33%; }

/* Hero title */
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin: 0 0 0.5rem;
  letter-spacing: -1px;
  line-height: 1;
}

.hero-title .brand {
  color: var(--text);
  display: block;
  font-size: 0.6em;
  letter-spacing: 8px;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.hero-title .ai {
  color: var(--red-light);
  font-size: 1em;
  display: block;
  text-shadow: 0 0 40px var(--red-glow);
}

.hero-tagline {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 1px;
  margin: 0 0 1.5rem;
}

.typing-cursor {
  color: var(--red-light);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 2;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, var(--red-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Séparateur hibou entre sections */
.owl-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 800px;
}

.owl-divider::before,
.owl-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red));
}

.owl-divider::after {
  background: linear-gradient(90deg, var(--border-red), transparent);
}

.owl-divider-icon {
  width: 40px;
  height: 40px;
  opacity: 0.4;
  filter: drop-shadow(0 0 6px var(--red-glow));
  transition: opacity 0.3s, filter 0.3s;
}

.owl-divider:hover .owl-divider-icon {
  opacity: 0.8;
  filter: drop-shadow(0 0 12px var(--red-glow));
}

/* ============================================================
   FEATURES — 9 Modules, layout asymétrique
============================================================ */
.features-section {
  background: var(--bg-void);
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
}

/* Fond watermark hibou en arrière-plan */
.features-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: url('../images/logo_007.png') center/contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
}

/* Grid modulaire : 3 cols sur desktop, priorité aux 3 premiers */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1300px;
  margin: 0 auto;
  background: var(--border-red);
  border: 1px solid var(--border-red);
  border-radius: 2px;
}

/* Les 3 modules "cœur" — légèrement plus grands */
.feature-card:nth-child(1),
.feature-card:nth-child(2),
.feature-card:nth-child(3) {
  border-top: 2px solid var(--red);
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  border-radius: 0;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* Numéro de module en fond */
.feature-card::before {
  content: attr(data-index);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(139,0,0,0.07);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.feature-card:hover::before {
  color: rgba(139,0,0,0.14);
}

/* Ligne rouge qui apparaît en bas au hover */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--red-light);
  transition: right 0.4s ease;
}

.feature-card:hover::after {
  right: 0;
}

/* Icône SVG dans un carré tactique */
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--red-soft);
  border: 1px solid var(--border-red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  position: relative;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(139,0,0,0.25);
  border-color: var(--red);
  box-shadow: 0 0 20px var(--red-soft);
}

/* Cacher le ring circle, remplacé par carré */
.icon-ring { display: none; }

.feature-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.feature-description {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.feature-details {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, color 0.3s;
}

.feature-card:hover .feature-details {
  max-height: 150px;
  color: var(--text-muted);
}

.feature-metric {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-light);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-red);
  border-radius: 2px;
  background: var(--red-soft);
}

/* Supprimer l'ancien glow */
.feature-glow { display: none; }

/* ============================================================
   PRICING — Hiérarchie claire : Free / Pro / Enterprise
============================================================ */
.pricing-section {
  background: var(--bg-deep);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: url('../images/logo_007.png') center/contain no-repeat;
  opacity: 0.03;
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
  border: 1px solid var(--border-red);
  border-radius: 4px;
  overflow: hidden;
}

.pricing-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  position: relative;
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.pricing-card:last-child {
  border-right: none;
}

.pricing-card:hover {
  background: var(--bg-card-hover);
  transform: none;
  box-shadow: none;
}

/* Plan Enterprise — mis en avant */
.pricing-card.featured {
  background: #0f0808;
  border: none;
  border-right: 1px solid var(--border);
  transform: none;
  box-shadow: inset 0 0 60px rgba(139,0,0,0.08);
}

.pricing-card.featured:hover {
  background: #130909;
  transform: none;
}

/* Barre rouge en haut du plan featured */
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-light), var(--red));
}

.featured-badge {
  position: static;
  transform: none;
  display: inline-block;
  background: var(--red);
  color: var(--text);
  padding: 0.35rem 1rem;
  border-radius: 2px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pricing-badge {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.75rem;
}

.pricing-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  text-align: left;
}

.pricing-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.5px;
}

.pricing-card.featured .pricing-header h3 {
  color: var(--red-light);
}

.price-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.pricing-card.featured .price-amount {
  color: var(--red-light);
  text-shadow: 0 0 30px var(--red-glow);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-left: 0.25rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
  font-size: 0.87rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  color: var(--red-light);
  font-weight: bold;
  flex-shrink: 0;
}

.pricing-features .x {
  color: var(--text-dim);
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-red);
  background: transparent;
  color: var(--text-muted);
  border-radius: 3px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.pricing-cta:hover {
  background: var(--red);
  color: var(--text);
  border-color: var(--red);
  box-shadow: 0 0 30px var(--red-glow);
}

.pricing-cta.featured-cta {
  background: var(--red);
  color: var(--text);
  border-color: var(--red);
}

.pricing-cta.featured-cta:hover {
  background: var(--red-light);
  box-shadow: 0 0 40px var(--red-glow);
}

/* ============================================================
   FOOTER — Signature du Gardien
============================================================ */
.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-red);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: url('../images/logo_007.png') center/contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  justify-self: start;
}

.footer-brand img {
  height: 40px;
  filter: drop-shadow(0 0 10px var(--red-glow));
  transition: filter 0.3s;
}

.footer-brand:hover img {
  filter: drop-shadow(0 0 20px var(--red-glow));
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-self: center;
}

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

.footer-links a:hover { color: var(--red-light); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  justify-self: end;
  text-align: right;
}

/* Ligne séparatrice footer */
.footer-content::after {
  content: '';
  position: absolute;
  bottom: 3.5rem;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), transparent);
}

/* ============================================================
   TRANSITIONS ENTRE SECTIONS — Séparateurs hibou
============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--border-red), transparent);
}

.section-divider img {
  width: 32px;
  height: 32px;
  margin: 0 1.5rem;
  opacity: 0.3;
  filter: drop-shadow(0 0 6px var(--red-glow));
  transition: opacity 0.4s, filter 0.4s;
}

.section-divider:hover img {
  opacity: 0.7;
  filter: drop-shadow(0 0 14px var(--red-glow));
}

/* ============================================================
   BOUTONS GLOBAUX
============================================================ */
.cta-primary {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  background: var(--red);
  box-shadow: 0 0 30px var(--red-glow);
}

.cta-primary:hover {
  background: var(--red-light);
  box-shadow: 0 0 50px var(--red-glow);
  transform: translateY(-2px);
}

.cta-secondary {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  border-color: var(--border-red);
  color: var(--text-muted);
}

.cta-secondary:hover {
  background: var(--red);
  color: var(--text);
  border-color: var(--red);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    border-radius: 4px;
  }
  .pricing-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pricing-card:last-child { border-bottom: none; }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-copy { justify-self: center; text-align: center; }
  .footer-brand { justify-self: center; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .owl-container { width: 180px; height: 180px; }
  .hero-title { font-size: 2.8rem; }
}
