/* Import de la police techno/futuriste */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --bg-color: #0d0d0d;
  --primary: #d10000;
  --text-light: #f0f0f0;
  --text-muted: #888;
  --card-bg: #161616;
  --hover-bg: #1f1f1f;
  --border: #333;
}

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

body {
  font-family: 'Share Tech Mono', monospace;
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== HEADER & NAV ========== */

header {
  background-color: #111;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
}

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

.hero {
  text-align: center;
  padding: 100px 20px;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out;
}

.btn {
  background-color: var(--primary);
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #a00000;
}

/* ========== ABOUT & SECTIONS ========== */

section {
  padding: 60px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.about-brief p {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ========== FORMATIONS (produits) ========== */

.preview-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(209, 0, 0, 0.5);
}

.product-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-card span {
  font-weight: bold;
  color: #fff;
}

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

footer {
  background-color: #111;
  padding: 25px 0;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

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

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

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

/* ======== BURGER MENU ======== */
#burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 25px;
  height: 20px;
}

#burger span {
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Transformation burger quand actif */
#burger.toggle span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
#burger.toggle span:nth-child(2) {
  opacity: 0;
}
#burger.toggle span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Nav responsive pour petit écran */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    height: calc(100% - 70px);
    width: 250px;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 2px solid var(--primary);
    z-index: 1000;
  }
  .nav-links.nav-active {
    transform: translateX(0);
  }

  #burger {
    display: flex;
  }
}

/* ======== GLITCH ANIMATION ======== */
.glitch {
  position: relative;
  color: var(--primary);
  font-weight: 700;
  font-size: 3rem;
  user-select: none;
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  animation: glitchTop 2s infinite;
  color: #ff0000;
  z-index: -1;
}

.glitch::after {
  animation: glitchBottom 2s infinite;
  color: #00ff00;
  z-index: -1;
}

@keyframes glitch {
  0% {
    text-shadow: 2px 0 red, -2px 0 green;
  }
  20% {
    text-shadow: -2px 0 red, 2px 0 green;
  }
  40% {
    text-shadow: 2px 2px red, -2px -2px green;
  }
  60% {
    text-shadow: -2px -2px red, 2px 2px green;
  }
  80% {
    text-shadow: 2px 0 red, -2px 0 green;
  }
  100% {
    text-shadow: -2px 0 red, 2px 0 green;
  }
}

@keyframes glitchTop {
  0% {
    clip: rect(0, 900px, 0, 0);
    transform: translate(-2px, -2px);
  }
  20% {
    clip: rect(0, 900px, 30px, 0);
    transform: translate(2px, 2px);
  }
  40% {
    clip: rect(10px, 900px, 45px, 0);
    transform: translate(-2px, 0);
  }
  60% {
    clip: rect(0, 900px, 30px, 0);
    transform: translate(2px, -2px);
  }
  80% {
    clip: rect(5px, 900px, 40px, 0);
    transform: translate(-2px, 2px);
  }
  100% {
    clip: rect(0, 900px, 0, 0);
    transform: translate(0);
  }
}

@keyframes glitchBottom {
  0% {
    clip: rect(0, 900px, 0, 0);
    transform: translate(2px, 2px);
  }
  20% {
    clip: rect(20px, 900px, 50px, 0);
    transform: translate(-2px, -2px);
  }
  40% {
    clip: rect(15px, 900px, 40px, 0);
    transform: translate(2px, 0);
  }
  60% {
    clip: rect(20px, 900px, 50px, 0);
    transform: translate(-2px, 2px);
  }
  80% {
    clip: rect(10px, 900px, 35px, 0);
    transform: translate(2px, -2px);
  }
  100% {
    clip: rect(0, 900px, 0, 0);
    transform: translate(0);
  }
}

/* ======== FADE-IN ON SCROLL ======== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

