/* ============================================
   CYCLES LETELLIER - DESIGN SYSTEM
   Theme: Tech & Performance - Carbon Dark Mode
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Roboto:wght@300;400;500;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Base - Carbon Theme */
  --bg-asphalt: #0f1115;
  --bg-carbon: #181b21;
  --bg-card: #1e2129;

  /* Sport Colors */
  --race-red: #EF4444;
  --race-red-dark: #DC2626;
  --race-red-glow: rgba(239, 68, 68, 0.3);
  --electric-blue: #3B82F6;
  --electric-blue-glow: rgba(59, 130, 246, 0.3);
  --forest-green: #10B981;
  --forest-green-glow: rgba(16, 185, 129, 0.3);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Glassmorphism */
  --glass-tech: rgba(255, 255, 255, 0.05);
  --glass-tech-hover: rgba(255, 255, 255, 0.08);
  --border-tech: rgba(255, 255, 255, 0.1);
  --border-tech-hover: rgba(255, 255, 255, 0.15);

  /* Fonts */
  --font-sport: 'Barlow Condensed', sans-serif;
  --font-tech: 'Roboto', sans-serif;

  /* Effects */
  --skew-angle: -5deg;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-tech);
  background-color: var(--bg-asphalt);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Carbon Texture Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.01) 2px,
      rgba(255, 255, 255, 0.01) 4px
    );
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sport);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-style: italic;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

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

.text-blue {
  color: var(--electric-blue);
}

.text-green {
  color: var(--forest-green);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--race-red);
}

.section-header p {
  max-width: 600px;
  margin: 20px auto 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: 30px;
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-tech);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--race-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sport);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.logo-text {
  font-family: var(--font-sport);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-text span {
  color: var(--race-red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-sport);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--race-red);
  transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sport);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--race-red);
  color: white;
  transform: skewX(var(--skew-angle));
}

.btn-primary > * {
  transform: skewX(calc(var(--skew-angle) * -1));
}

.btn-primary:hover {
  background: var(--race-red-dark);
  box-shadow: 0 0 30px var(--race-red-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-tech-hover);
  transform: skewX(var(--skew-angle));
}

.btn-secondary > * {
  transform: skewX(calc(var(--skew-angle) * -1));
}

.btn-secondary:hover {
  border-color: var(--race-red);
  color: var(--race-red);
}

.btn-blue {
  background: var(--electric-blue);
  color: white;
  transform: skewX(var(--skew-angle));
}

.btn-blue > * {
  transform: skewX(calc(var(--skew-angle) * -1));
}

.btn-blue:hover {
  box-shadow: 0 0 30px var(--electric-blue-glow);
}

.btn-icon {
  font-size: 1.2rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--glass-tech);
  border: 1px solid var(--border-tech);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--glass-tech-hover);
  border-color: var(--border-tech-hover);
  transform: translateY(-5px);
}

/* Colored left border variant */
.card-route {
  border-left: 4px solid var(--race-red);
}

.card-vae {
  border-left: 4px solid var(--electric-blue);
}

.card-vtt {
  border-left: 4px solid var(--forest-green);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--glass-tech);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.card-route .card-icon {
  color: var(--race-red);
  box-shadow: 0 0 20px var(--race-red-glow);
}

.card-vae .card-icon {
  color: var(--electric-blue);
  box-shadow: 0 0 20px var(--electric-blue-glow);
}

.card-vtt .card-icon {
  color: var(--forest-green);
  box-shadow: 0 0 20px var(--forest-green-glow);
}

.card h3 {
  margin-bottom: 15px;
}

.card p {
  margin-bottom: 20px;
}

/* Universe Cards (Large) */
.universe-card {
  background: var(--glass-tech);
  border: 1px solid var(--border-tech);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.universe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.95) 0%, transparent 60%);
  z-index: 1;
}

.universe-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-tech-hover);
}

.universe-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.universe-card:hover .universe-card-bg {
  transform: scale(1.05);
}

.universe-card-content {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.universe-card-tag {
  display: inline-block;
  padding: 5px 15px;
  font-family: var(--font-sport);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 20px;
  margin-bottom: 15px;
}

.universe-card-route .universe-card-tag {
  background: var(--race-red);
}

.universe-card-vae .universe-card-tag {
  background: var(--electric-blue);
}

.universe-card-vtt .universe-card-tag {
  background: var(--forest-green);
}

.universe-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.universe-card p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 17, 21, 0.9) 0%,
    rgba(15, 17, 21, 0.7) 50%,
    rgba(15, 17, 21, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-tech);
  border: 1px solid var(--border-tech);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 30px;
  font-family: var(--font-sport);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--race-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-tech);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-sport);
  font-size: 3rem;
  font-weight: 700;
  color: var(--race-red);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brands-section {
  background: var(--bg-carbon);
  padding: 60px 0;
  border-top: 1px solid var(--border-tech);
  border-bottom: 1px solid var(--border-tech);
}

.brands-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.brand-item {
  opacity: 0.5;
  transition: var(--transition-normal);
  filter: grayscale(100%);
}

.brand-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.brand-item img {
  height: 40px;
  width: auto;
}

/* ============================================
   ATELIER SECTION
   ============================================ */
.atelier-section {
  background: var(--bg-carbon);
}

.atelier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.atelier-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.atelier-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.atelier-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--race-red);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-family: var(--font-sport);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.atelier-content h2 {
  margin-bottom: 20px;
}

.atelier-content > p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.atelier-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.atelier-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.atelier-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--glass-tech);
  border: 1px solid var(--border-tech);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--race-red);
  flex-shrink: 0;
}

.atelier-feature-text h4 {
  margin-bottom: 5px;
  font-family: var(--font-sport);
}

.atelier-feature-text p {
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-carbon);
  border-top: 1px solid var(--border-tech);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--glass-tech);
  border: 1px solid var(--border-tech);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--race-red);
  border-color: var(--race-red);
  color: white;
}

.footer-column h4 {
  font-family: var(--font-sport);
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--race-red);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-contact-item svg {
  color: var(--race-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-tech);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 30px;
}

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

.footer-bottom-links a:hover {
  color: var(--race-red);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-family: var(--font-sport);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--glass-tech);
  border: 1px solid var(--border-tech);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--race-red);
  box-shadow: 0 0 20px var(--race-red-glow);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 160px 0 80px;
  background: var(--bg-carbon);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center top, var(--race-red-glow) 0%, transparent 60%);
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  font-family: var(--font-sport);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--race-red);
}

.breadcrumb span {
  color: var(--text-muted);
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
