/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */

/* ========== Import Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ========== Body Styles ========== */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--text-white);
  background: var(--background-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ========== Typography ========== */

/* Titres Principaux (H1) - Hero */
h1,
.h1 {
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: var(--font-size-hero);
  background: linear-gradient(135deg, #00D9E1 0%, #CCFF00 50%, #00ff88 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  letter-spacing: 4px;
  line-height: 1.2;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Titres Secondaires (H2) */
h2,
.h2 {
  font-family: var(--font-titles);
  font-weight: 700;
  font-size: var(--font-size-h2);
  color: var(--primary-cyan);
  text-shadow: 0 0 20px rgba(0, 217, 225, 0.5);
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

/* Sous-titres (H3) */
h3,
.h3 {
  font-family: var(--font-subtitles);
  font-weight: 600;
  font-size: var(--font-size-h3);
  color: var(--accent-lime);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

/* H4, H5, H6 */
h4,
.h4 {
  font-family: var(--font-titles);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-cyan);
  margin-bottom: var(--spacing-sm);
}

h5,
.h5 {
  font-family: var(--font-titles);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: var(--spacing-xs);
}

h6,
.h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Paragraphes */
p {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

/* Liens */
a {
  color: var(--text-cyan);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
}

a:hover {
  color: var(--accent-lime);
}

/* Strong & Em */
strong {
  font-weight: 700;
  color: var(--text-white);
}

em {
  font-style: italic;
  color: var(--text-cyan);
}

/* Code */
code {
  font-family: var(--font-mono);
  background: rgba(0, 217, 225, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--accent-lime);
  font-size: 0.9em;
}

/* ========== Layout Utilities ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
}

.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.section-description {
  font-size: 1.3rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== Grid System ========== */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ========== Flexbox Utilities ========== */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* ========== Text Utilities ========== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-cyan {
  color: var(--primary-cyan);
}

.text-lime {
  color: var(--accent-lime);
}

.text-white {
  color: var(--text-white);
}

.text-gray {
  color: var(--text-gray);
}

/* ========== Spacing Utilities ========== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

/* ========== Highlights ========== */
.highlight-cyan {
  color: var(--primary-cyan);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 217, 225, 0.4);
}

.highlight-lime {
  color: var(--accent-lime);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(204, 255, 0, 0.4);
}

/* ========== Visibility ========== */
.hidden {
  display: none;
}

.visible {
  display: block;
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none;
  }
}
