/**
 * BUREAU DES LÉGENDES - STYLES
 * Design moderne inspiré de frenchteam.co
 */

/* ===== VARIABLES ===== */
:root {
  /* Palette Formation - GitHub Dark / Gaming */
  --bg-dark: #0D1117;
  --bg-darker: #010409;
  --text-light: #E6EDF3;
  --accent-gold: #FFD700;
  --accent-green: #00FF7F;
  --accent-orange: #FF6B35;
  --accent-purple: #BB86FC;
  --accent-red: #FF4444;
  --border-subtle: rgba(255,255,255,0.1);

  /* Alias pour compatibilité */
  --primary: #BB86FC;
  --primary-dark: #9965d4;
  --secondary: #00FF7F;
  --dark: #0D1117;
  --dark-light: #1e293b;
  --gray: #8b949e;
  --gray-light: #c9d1d9;
  --white: #E6EDF3;
  --accent: #FFD700;

  --gradient-primary: linear-gradient(135deg, #BB86FC 0%, #FF6B35 100%);
  --gradient-hero: linear-gradient(135deg, #010409 0%, #0D1117 100%);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--gray-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  color: var(--white) !important;
}

.nav-btn::after {
  display: none;
}

.nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

/* Vidéo en arrière-plan */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(124, 58, 237, 0.7) 50%, rgba(219, 39, 119, 0.7) 100%),
    radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.highlight {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.85;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== MISSION ===== */
.mission {
  background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mission-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.mission-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.mission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.mission-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* ===== BENEFITS ===== */
.benefits {
  background: var(--dark);
  color: var(--white);
}

.benefits .section-title {
  color: var(--white);
}

.benefits .section-subtitle {
  color: var(--gray-light);
}

.benefits-content {
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--dark-light);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(10px);
  background: rgba(99, 102, 241, 0.1);
}

.benefit-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
}

.benefit-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.benefit-text p {
  color: var(--gray-light);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: linear-gradient(180deg, #f8fafc 0%, var(--white) 100%);
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.step-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.step-number {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.step p {
  color: var(--gray);
  line-height: 1.6;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.testimonials .section-title,
.testimonials .section-subtitle {
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.testimonial-stars {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.author-name {
  font-weight: 600;
}

.author-rank {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 2rem;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: 3rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-note {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--dark-light);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--dark);
    flex-direction: column;
    padding: 3rem 2rem;
    transition: left 0.3s ease;
    gap: 1.5rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    gap: 2rem;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease-out backwards;
}

.hero-title {
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.hero-description {
  animation-delay: 0.3s;
}

.hero-cta {
  animation-delay: 0.4s;
}

.hero-stats {
  animation-delay: 0.5s;
}
