/* ========================================
   SYSTENOV - STYLE COMPLET (OPTIMISÉ)
   Version optimisée Mobile + Tablet + Desktop
   ======================================== */

/* ===== VARIABLES ===== */
:root {
  --bg-dark: #0a0f1e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.06);
  --border-card-hover: rgba(96, 165, 250, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;
  --gradient-blue: linear-gradient(135deg, #2563eb, #38bdf8);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 40px;
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --transition-smooth: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Amélioration Accessibilité Clavier */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 1200px;
  margin: 16px auto;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  gap: 20px;
  flex-wrap: nowrap;
  transition: var(--transition-smooth);
}

.navbar:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ========================================
   LOGO
   ======================================== */

.logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg, #f1f5f9, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   NAV LINKS
   ======================================== */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 4px;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--blue-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .btn-nav {
  background: var(--blue);
  color: white !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-links .btn-nav::after {
  display: none;
}

.nav-links .btn-nav:hover {
  background: var(--blue-light);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ========================================
   MENU BURGER
   ======================================== */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.08);
}

/* Admin hidden by default */
.admin-link {
  display: none !important;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  text-align: center;
  padding: 55px 20px 65px;
}

.hero .tag {
  display: inline-block;
  background: rgba(96, 165, 250, 0.12);
  color: var(--blue-light);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f1f5f9 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-danger {
  background: var(--danger);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ========================================
   STATS
   ======================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.stat-card {
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

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

.stat-card h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-light);
}

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

/* ========================================
   SERVICES
   ======================================== */

.services {
  padding: 60px 0;
}

.services h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.services .sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), var(--shadow-glass);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.service-card .icon.ai { color: #60a5fa; }
.service-card .icon.website { color: #34d399; }
.service-card .icon.saas { color: #f472b6; }
.service-card .icon.business { color: #fbbf24; }
.service-card .icon.industrial { color: #f87171; }
.service-card .icon.products { color: #a78bfa; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.service-card .tag {
  display: inline-block;
  margin-top: 10px;
  background: rgba(96, 165, 250, 0.08);
  color: var(--blue-light);
  font-size: 0.65rem;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.service-card .tag.pro {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.service-card .tag.free {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.service-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue-light);
  font-size: 0.85rem;
  font-weight: 500;
}

.service-card a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ========================================
   PRICING
   ======================================== */

.pricing-section {
  padding: 40px 0;
  text-align: center;
}

.pricing-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.pricing-section .sub {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 280px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--bg-card-hover);
}

.pricing-card.popular {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--blue);
  position: relative;
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--blue);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-light);
  margin: 12px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 2.2;
}

.pricing-card ul li i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.pricing-card .btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 28px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pricing-card .btn:hover {
  background: var(--blue-light);
  transform: scale(1.02);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

footer a {
  color: var(--text-secondary);
  margin: 0 12px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--blue-light);
}

/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1024px) {
  .navbar {
    width: calc(100% - 32px);
    padding: 10px 20px;
    border-radius: 45px;
  }

  .logo-img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .logo-text {
    font-size: 1.55rem;
  }

  .nav-links {
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 10px 14px;
    border-radius: 36px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .logo-link {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .logo-img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: var(--radius-sm);
    padding: 2px;
  }

  .logo-text {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 9px;
    font-size: 0.95rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .btn-nav {
    width: 100%;
    padding: 10px;
  }

  .hero {
    padding: 35px 16px 50px;
  }

  .hero .tag {
    font-size: 0.75rem;
    padding: 7px 16px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 2.45rem;
    line-height: 1.1;
    margin-bottom: 18px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: 26px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    max-width: 340px;
    min-height: 54px;
    justify-content: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 30px 0;
  }

  .stat-card {
    padding: 16px 10px;
  }

  .stat-card h3 {
    font-size: 1.8rem;
  }

  .stat-card p {
    font-size: 0.82rem;
  }

  .services {
    padding: 45px 0;
  }

  .services h2 {
    font-size: 1.8rem;
  }

  .services .sub {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-card {
    padding: 20px 12px;
    border-radius: 17px;
  }

  .service-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 0.82rem;
  }

  .pricing-section {
    padding: 35px 0;
  }

  .pricing-section h2 {
    font-size: 1.8rem;
  }

  .pricing-grid {
    gap: 16px;
  }

  .pricing-card {
    width: 100%;
    max-width: 340px;
  }
}

/* ========================================
   SMALL PHONES
   ======================================== */

@media (max-width: 480px) {
  .navbar {
    width: calc(100% - 16px);
    padding: 9px 12px;
    margin: 8px auto;
    border-radius: 32px;
  }

  .logo-link {
    gap: 9px;
  }

  .logo-img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 11px;
  }

  .logo-text {
    font-size: 1.38rem;
    letter-spacing: -0.4px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.85rem;
  }

  .hero {
    padding: 30px 14px 42px;
  }

  .hero .tag {
    font-size: 0.7rem;
    padding: 7px 13px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.15rem;
    line-height: 1.12;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    max-width: 320px;
    min-height: 52px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 12px 6px;
  }

  .stat-card h3 {
    font-size: 1.5rem;
  }

  .stat-card p {
    font-size: 0.75rem;
  }

  .services {
    padding: 38px 0;
  }

  .services h2 {
    font-size: 1.55rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .service-card {
    padding: 17px 9px;
    border-radius: 15px;
  }

  .service-card .icon {
    font-size: 1.7rem;
  }

  .service-card h3 {
    font-size: 0.88rem;
  }

  .service-card p {
    font-size: 0.76rem;
  }

  .service-card .tag {
    font-size: 0.58rem;
    padding: 2px 8px;
  }

  .service-card a {
    font-size: 0.78rem;
  }

  .pricing-card {
    padding: 22px 18px;
    max-width: 320px;
  }

  .pricing-card .price {
    font-size: 1.7rem;
  }

  footer {
    padding: 24px 12px;
    font-size: 0.7rem;
  }

  footer a {
    margin: 0 5px;
  }
}

/* ========================================
   VERY SMALL PHONES
   ======================================== */

@media (max-width: 360px) {
  .logo-img {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .menu-toggle {
    font-size: 1.7rem;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero p {
    font-size: 0.88rem;
  }
}

/* ========================================
   UTILITAIRES
   ======================================== */

.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* ========================================
   SCROLLBAR & SELECTION
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-light);
}

::selection {
  background: var(--blue);
  color: white;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

.hero-content {
  animation: fadeUp 0.8s ease forwards;
}
