/* global.css - Styles globaux NLTC */

/* ==================== RESET ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================== BASE ==================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #fafbfc;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.nltc-wrapper {
  min-height: 100vh;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a2e;
}

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

/* ==================== UTILITIES ==================== */
.gradient-text {
  background: linear-gradient(135deg, #0066ff 0%, #00a3ff 50%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
}

.gradient-bg-light {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
}

/* ==================== BUTTONS ==================== */
.glow-btn {
  background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
  text-decoration: none;
  display: inline-block;
}

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.glow-btn-sm {
  padding: 12px 24px;
  font-size: 14px;
}

/* Bouton inversé - style outline */
.glow-btn-outline {
  background: transparent;
  color: #0066ff;
  border: 2px solid #0066ff;
  padding: 14px 30px; /* Ajusté pour compenser le border */
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
}

.glow-btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.glow-btn-outline-sm {
  padding: 10px 22px;
  font-size: 14px;
}

/* ==================== CARDS ==================== */
.card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.card:hover {
  border-color: rgba(0, 102, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.1);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #1a1a2e;
}

.section-subtitle {
  font-size: 18px;
  color: rgba(26, 26, 46, 0.6);
  max-width: 600px;
  line-height: 1.6;
}

/* ==================== TAGS ==================== */
.tag {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 163, 255, 0.1) 100%);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 100px;
  font-size: 14px;
  color: #0066ff;
  font-weight: 500;
}

/* ==================== NAVIGATION ==================== */
.nav-link {
  color: rgba(26, 26, 46, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #0066ff;
  background: rgba(0, 102, 255, 0.05);
}

.nav-link.active {
  color: #0066ff;
  background: rgba(0, 102, 255, 0.08);
}

/* Header logo */
.header-logo-text { color: #1a1a2e; transition: color 0.3s ease; }
.header-logo-subtitle { color: #1a1a2e; transition: color 0.3s ease; }

/* Universe switcher */
.logo-wrapper { position: relative; cursor: pointer; }
.universe-switcher {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 8px;
  width: 300px;
  z-index: 1002;
}
.universe-switcher.open { display: block; animation: switcherIn 0.2s ease; }
@keyframes switcherIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.universe-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  color: #1a1a2e !important;
  border: none !important;
  background: transparent !important;
}
.universe-item:hover { background: rgba(0,102,255,0.05) !important; }
.universe-item.active { background: rgba(0,102,255,0.08) !important; }
.universe-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}
.universe-icon svg { flex-shrink: 0; }
.universe-item-text { flex: 1; min-width: 0; }
.universe-item-text h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1a2e !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.universe-item-text p {
  font-size: 12px !important;
  color: rgba(26,26,46,0.5) !important;
  margin: 2px 0 0 !important;
  line-height: 1.4 !important;
}
.universe-switcher-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
}
.universe-switcher-overlay.open { display: block; }
@media (max-width: 480px) {
  .universe-switcher { width: 260px; }
}

/* Header on dark hero (transparent state) */
#nltc-header.header-dark .nav-link {
  color: rgba(255, 255, 255, 0.85);
}
#nltc-header.header-dark .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
#nltc-header.header-dark .header-logo-text { color: #fff; }
#nltc-header.header-dark .header-logo-subtitle { color: #fff; opacity: 0.5; }
#nltc-header.header-dark .mobile-menu-btn { color: #fff; }

/* ==================== FORMS ==================== */
input, textarea, select {
  font-family: inherit;
  font-size: 16px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slideIn {
  animation: slideIn 0.6s ease forwards;
}

/* ==================== LOADING ==================== */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 102, 255, 0.2);
  border-top-color: #0066ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* ==================== RESPONSIVE ==================== */

/* Mobile petit : < 480px (iPhone SE, petits Android) */
@media (max-width: 480px) {
  .section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .card {
    padding: 20px;
    border-radius: 16px;
  }

  .glow-btn {
    padding: 14px 28px;
    font-size: 15px;
    min-height: 44px;
  }

  .glow-btn-sm {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
  }

  .glow-btn-outline {
    padding: 12px 26px;
    font-size: 15px;
    min-height: 44px;
  }

  .glow-btn-outline-sm {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 44px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .tag {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Mobile standard : < 640px (iPhone 12/13, la plupart des mobiles) */
@media (max-width: 640px) {
  .section {
    padding: 50px 24px;
  }

  .section-title {
    font-size: clamp(28px, 5vw, 40px);
  }

  .card {
    padding: 24px;
  }

  .glow-btn {
    padding: 15px 30px;
    font-size: 15px;
  }
}

/* Tablette & grands mobiles : < 768px */
@media (max-width: 768px) {
  .section {
    padding: 60px 24px;
  }

  .section-title {
    font-size: clamp(32px, 5vw, 44px);
  }

  .card {
    padding: 28px;
  }

  .glow-btn {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* Desktop : > 768px */
@media (min-width: 769px) {
  .section {
    padding: 100px 24px;
  }
}

/* ==================== PRINT ==================== */
@media print {
  .no-print {
    display: none !important;
  }
}
