/* ============================================================
   KAYTEK INTER — Shared Design System (Dark Theme)
   Linked by: index.html, tarifs.html, demo.html,
              tester-gratuitement.html, success.html, cancel.html
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  /* Backgrounds */
  --bg:              #040d1e;
  --bg-alt:          #07102a;
  --surface:         rgba(255,255,255,0.04);
  --surface-2:       rgba(255,255,255,0.07);

  /* Brand */
  --blue:            #2d7ef7;
  --blue-light:      #5b9bff;
  --cyan:            #00d4e8;
  --violet:          #7c3aed;
  --green:           #10b981;
  --red:             #f87171;

  /* Gradients */
  --grad-btn:        linear-gradient(135deg, #2d7ef7 0%, #00d4e8 100%);
  --grad-card:       linear-gradient(135deg, rgba(45,126,247,0.08) 0%, rgba(0,212,232,0.04) 100%);

  /* Text */
  --white:           #ffffff;
  --text:            rgba(255,255,255,0.92);
  --text-secondary:  rgba(255,255,255,0.62);
  --text-muted:      rgba(255,255,255,0.36);

  /* Borders & glows */
  --border:          rgba(255,255,255,0.08);
  --border-blue:     rgba(45,126,247,0.45);
  --border-cyan:     rgba(0,212,232,0.4);
  --glow-btn:        0 0 32px rgba(45,126,247,0.55), 0 4px 16px rgba(0,212,232,0.3);
  --glow-card:       0 0 40px rgba(45,126,247,0.14);
  --glow-cyan:       0 0 32px rgba(0,212,232,0.35);

  /* Shadows */
  --shadow-sm:       0 2px 16px rgba(0,0,0,0.3);
  --shadow-md:       0 8px 32px rgba(0,0,0,0.45);
  --shadow-float:    0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);

  /* Legacy aliases — old CSS var names remapped to dark values */
  --navy:            #040d1e;
  --navy-mid:        #07102a;
  --blue-pale:       rgba(45,126,247,0.1);
  --gray-bg:         #07102a;
  --gray-light:      rgba(255,255,255,0.08);
  --gray-text:       rgba(255,255,255,0.62);

  --radius:          14px;
  --radius-lg:       20px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY UTILITIES ===== */
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-title .gradient-text {
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 48px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-btn);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover { box-shadow: var(--glow-btn); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--blue-light);
  background: rgba(45,126,247,0.12);
  transform: translateY(-2px);
}

/* ===== GLASS CARD UTILITY ===== */
.card-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card-glass:hover {
  transform: translateY(-6px);
  border-color: var(--border-blue);
  box-shadow: var(--glow-card);
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,13,30,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.logo:hover .logo-icon {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(37,99,235,0.6));
}
.logo-wordmark {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-wordmark em {
  font-style: normal;
  color: var(--blue-light);
}
/* Legacy compat */
.logo-bolt  { color: var(--cyan); font-size: 22px; }
.logo-inter { color: var(--cyan); }
.logo-img   { height: 34px; width: auto; display: block; }

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo-icon { height: 28px; width: auto; display: block; flex-shrink: 0; }
.footer-logo-img  { height: 26px; width: auto; display: block; }
.footer-logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}
.footer-logo-em { color: var(--blue-light); }

/* Hero brand logo */
.hero-brand-mark {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.hero-brand-icon {
  width: 68px;
  height: auto;
  filter: drop-shadow(0 6px 28px rgba(37,99,235,0.5));
  animation: float-brand 4s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes float-brand {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35%       { transform: translateY(-10px) rotate(-1deg); }
  65%       { transform: translateY(-8px) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand-icon { animation: none; }
  .logo:hover .logo-icon { transform: none; }
}
@media (max-width: 479px) {
  .logo-wordmark { font-size: 15px; }
  .logo-icon { height: 28px; }
}

nav { display: flex; gap: 28px; }
nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover, nav a.nav-active { color: var(--white); }

.header-cta {
  background: var(--grad-btn);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.header-cta:hover { box-shadow: var(--glow-btn); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

#mobileMenu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(4,13,30,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
}
#mobileMenu.open { display: block; }
#mobileMenu a {
  display: block;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
#mobileMenu a:hover { color: var(--white); }
#mobileMenu .mobile-cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: center;
  background: var(--grad-btn);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  padding: 60px 24px 0;
  border-top: 1px solid var(--border);
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--cyan); }
.footer-tagline {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact a { color: var(--text-secondary); transition: color 0.2s; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright { color: var(--text-muted); font-size: 12px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-size: 12px; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* Minimal footer (demo, success, cancel pages) */
footer.footer-slim { padding: 20px 24px; border-top: 1px solid var(--border); }
footer.footer-slim .footer-bottom { padding: 0; }
footer.footer-slim .footer-logo { margin-bottom: 0; }

/* ===== REASSURANCE BADGES ===== */
.pricing-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE — HEADER / FOOTER ===== */
@media (max-width: 1199px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-col:first-child { grid-column: auto; }
}
