/* ==========================================
   KOJI - Site Vitrine Styles
   ========================================== */

:root {
  /* Colors - KOJI Theme avec couleur signature */
  --primary-color: #000000;
  --primary-gradient: linear-gradient(135deg, #888C59, #6a6d47);
  --secondary-color: #ffffff;
  --accent-color: #888C59; /* Couleur signature KOJI */
  --accent-light: #a3a76b;
  --accent-dark: #6a6d47;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --background-dark: #0a0a0a;
  --background-card: #1a1a1a;
  --border-color: #333333;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 20px;
  --border-radius: 16px;
  --border-radius-small: 8px;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.8rem;
  --font-size-body: 1.1rem;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Effects */
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 8px 25px rgba(136, 140, 89, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

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

body {
  font-family: var(--font-family);
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

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

.gradient-text {
  background: linear-gradient(135deg, #ffffff, #cccccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(136, 140, 89, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

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

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-mobile {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at center, rgba(136, 140, 89, 0.15) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  background: linear-gradient(145deg, var(--accent-color), var(--accent-dark));
  border-radius: 40px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.phone-screen {
  width: 300px;
  height: 600px;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(136, 140, 89, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(136, 140, 89, 0.4);
  animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 10%; animation-delay: 1s; }
.floating-icon:nth-child(3) { top: 60%; left: 5%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 5%; animation-delay: 3s; }
.floating-icon:nth-child(5) { bottom: 10%; left: 15%; animation-delay: 4s; }
.floating-icon:nth-child(6) { top: 40%; right: 20%; animation-delay: 5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* ==========================================
   SECTIONS
   ========================================== */

section {
  padding: var(--section-padding);
}

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

.section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
  background: var(--background-card);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--background-dark);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: white;
}

.feature-card h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==========================================
   APP PREVIEW SECTION
   ========================================== */

.app-preview {
  background: var(--background-dark);
}

.preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.preview-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
}

.preview-description {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.preview-features {
  list-style: none;
}

.preview-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: var(--font-size-body);
}

.preview-features i {
  color: var(--accent-color);
  font-size: 18px;
}

.screen-carousel {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
}

.screen {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition);
  background: var(--background-card);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.screen.active {
  opacity: 1;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: white;
}

.screen-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent-color);
}

/* ==========================================
   SPORTS SECTION
   ========================================== */

.sports {
  background: var(--background-card);
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.sport-item {
  background: var(--background-dark);
  padding: 24px;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.sport-item:hover {
  transform: scale(1.05);
  background: var(--accent-color);
  color: white;
}

/* ==========================================
   DOWNLOAD SECTION
   ========================================== */

.download {
  background: var(--background-dark);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.download-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
}

.download-subtitle {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.download-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.download-btn {
  display: block;
  transition: var(--transition);
}

.download-btn:hover {
  transform: scale(1.05);
}

.download-btn img {
  height: 60px;
  width: auto;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-body);
  color: var(--text-secondary);
}

.info-item i {
  color: var(--accent-color);
  font-size: 20px;
}

.download-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.download-phones {
  position: relative;
}

.phone {
  width: 200px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.phone-1 {
  position: relative;
  z-index: 2;
}

.phone-2 {
  position: absolute;
  top: 40px;
  left: 60px;
  z-index: 1;
  transform: rotate(15deg);
}

.phone img {
  width: 100%;
  height: auto;
}

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

.footer {
  background: var(--background-card);
  border-top: 1px solid var(--border-color);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

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

.social-links a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.link-group h4 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 20px;
}

.link-group a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

.footer-bottom p {
  margin-bottom: 8px;
}

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

@media (max-width: 768px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .preview-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .download-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .download-buttons {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .phone-mockup {
    padding: 15px;
  }

  .phone-screen {
    width: 250px;
    height: 500px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .sports-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}