
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* =========================================
   CYBRIX 3D — CYBERPUNK FUSION
   Feuille de style globale
========================================= */

:root {
  --bg: #070912;
  --bg-soft: #0b1020;
  --panel: #111a2d;
  --panel-light: #17243a;

  --cyan: #27d7ff;
  --cyan-glow: rgba(39, 215, 255, .45);
  --pink: #ff3ca6;
  --pink-glow: rgba(255, 60, 166, .4);
  --green: #a8ff3f;
  --purple: #925cff;

  --text: #f4f7ff;
  --muted: #9aa8c4;
  --line: rgba(75, 190, 255, .22);
  --danger: #ff5277;

  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;

  --radius: 14px;
  --transition: .25s ease;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(39, 215, 255, .09), transparent 35%),
    radial-gradient(ellipse at 85% 20%, rgba(255, 60, 166, .08), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .15;
  background-image:
    linear-gradient(rgba(39, 215, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 215, 255, .08) 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

/* TYPOGRAPHIE */

h1, h2, h3, h4,
.cyber-title {
  font-family: var(--font-title);
  line-height: 1.25;
  letter-spacing: .04em;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* CONTENEURS */

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 35px;
}

.section-heading p {
  margin-top: 10px;
}

/* COULEURS ET EFFETS */

.neon-text {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.neon-pink {
  color: var(--pink);
  text-shadow: 0 0 12px var(--pink-glow);
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.neon-border {
  border: 1px solid var(--line);
  box-shadow: 0 0 18px rgba(39, 215, 255, .08);
}

/* BARRE DE NAVIGATION */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 18, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.logo span {
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}

/* BOUTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: rgba(39, 215, 255, .1);
  color: var(--cyan);
  font-weight: 700;
  transition: var(--transition);
}

.btn:hover {
  background: var(--cyan);
  color: #050914;
  box-shadow: 0 0 22px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(100deg, var(--cyan), #648aff);
  border: none;
  color: #050914;
  box-shadow: 0 0 18px rgba(39, 215, 255, .2);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 0 28px var(--cyan-glow);
}

.btn-pink {
  border-color: var(--pink);
  background: rgba(255, 60, 166, .1);
  color: var(--pink);
}

.btn-pink:hover {
  background: var(--pink);
  color: white;
  box-shadow: 0 0 22px var(--pink-glow);
}

/* CARTES */

.card {
  background: linear-gradient(145deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 8px 30px rgba(39, 215, 255, .1);
}

/* GRILLES */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

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

/* PRODUITS */

.product-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 8px 30px rgba(255, 60, 166, .12);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-soft);
}

.product-info {
  padding: 18px;
}

.product-price {
  color: var(--green);
  font-family: var(--font-title);
  font-weight: 700;
}

.product-old-price {
  color: var(--muted);
  text-decoration: line-through;
}

/* FORMULAIRES */

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  color: var(--muted);
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #080e1c;
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* BADGES */

.badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid var(--line);
  color: var(--cyan);
  background: rgba(39, 215, 255, .08);
  font-size: .85rem;
  font-weight: 700;
}

.badge-pink {
  color: var(--pink);
  border-color: rgba(255, 60, 166, .4);
  background: rgba(255, 60, 166, .08);
}

/* SÉPARATEUR LUMINEUX */

.neon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
  box-shadow: 0 0 10px var(--cyan-glow);
}

/* PIED DE PAGE */

.site-footer {
  margin-top: 80px;
  padding: 45px 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 17, .8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

/* ANIMATIONS */

@keyframes neon-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px var(--cyan-glow));
  }
  50% {
    filter: drop-shadow(0 0 13px var(--cyan-glow));
  }
}

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

.animate-neon {
  animation: neon-pulse 2.5s ease-in-out infinite;
}

.animate-up {
  animation: fade-up .7s ease both;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .section {
    padding: 55px 0;
  }

  .grid,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .navbar {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .logo {
    font-size: 1.3rem;
  }
}

/* ACCESSIBILITÉ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
