/*
Theme Name: Impuls-Coding
Theme URI: https://impuls-coding.com
Author: Impuls-Coding
Author URI: https://impuls-coding.com
Description: Thème WordPress personnalisé pour Impuls-Coding avec design Cyberpunk Afrofuturisme
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impuls-coding
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   IMPULS-CODING THEME - CYBERPUNK AFROFUTURISME
   Design: Dark tech avec énergie africaine
   Colors: Bleu marine #0a1628 + Cyan #00e5ff + Vert néon #69f0ae
   Typography: Rajdhani (titres) + Space Grotesk (corps) + JetBrains Mono (code)
   ============================================ */

:root {
  --color-navy: #0a1628;
  --color-navy-light: #0d1f3c;
  --color-navy-mid: #112244;
  --color-cyan: #00e5ff;
  --color-cyan-dim: #00bcd4;
  --color-green-neon: #69f0ae;
  --color-blue-accent: #1565c0;
  --color-text: #e8f0fe;
  --color-text-secondary: #a0aec0;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-navy);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Links */
a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-green-neon);
}

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

.btn, button, input[type="submit"] {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary, .elementor-button.elementor-button-primary {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-cyan-dim));
  color: var(--color-navy);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-green-neon), var(--color-cyan));
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-outline, .elementor-button.elementor-button-secondary {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* ============================================
   CONTAINERS & SECTIONS
   ============================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

section {
  padding: 4rem 0;
}

section.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 50%, var(--color-navy) 100%);
  position: relative;
  overflow: hidden;
}

section.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ============================================
   CARDS & BOXES
   ============================================ */

.card, .elementor-widget-container {
  background: rgba(13, 31, 60, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
  transform: translateY(-4px);
}

/* ============================================
   FORMS
   ============================================ */

input, textarea, select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--color-text);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  width: 100%;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
  background: rgba(0, 229, 255, 0.05);
}

input::placeholder, textarea::placeholder {
  color: rgba(232, 240, 254, 0.35);
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #000;
  border: 2px solid rgba(0, 229, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-cyan);
  font-family: var(--font-mono);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-cyan);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-cyan);
}

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

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

.site-footer {
  background: #060e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-menu {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 0;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient-cyan {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-green-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #90caf9, var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(0, 229, 255, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hexagon-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 0 L60 17.3 L60 34.6 L30 52 L0 34.6 L0 17.3 Z' fill='none' stroke='rgba(0,229,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.6); }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

/* ============================================
   ELEMENTOR OVERRIDES
   ============================================ */

.elementor-section {
  padding: 4rem 0;
}

.elementor-container {
  max-width: 1280px;
}

.elementor-heading-title {
  font-family: var(--font-display);
  color: var(--color-text);
}

.elementor-text-editor {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}

.elementor-button {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.5);
}
