/* ===== RESET & BASE STYLES ===== */
:root {
  --primary-color: #00ff55;            /* Vert Matrix vif */
  --secondary-color: #00c144;          /* Vert plus sombre */
  --accent-color: #00e66b;             /* Survols, bordures */
  --highlight-color: #00ff99;          /* Glow lumineux */
  --dark-color: #d0ffd9;               /* Texte vert pâle */
  --metal-color: #000000;              /* Fond noir profond */
  --light-color: rgba(0, 255, 80, 0.03);
  --border-radius: 8px;
  --font-main: 'Share Tech Mono', monospace; /* Style Terminal futuriste */
  --font-secondary: 'Roboto Mono', monospace;
  --shadow: 0 0 18px rgba(0, 255, 100, 0.35);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--metal-color);
  color: var(--dark-color);
  line-height: 1.6;
  background-image: radial-gradient(circle at top left, #020202 0%, #000 100%);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, #000, #002b11);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 255, 80, 0.3);
}

.header .headerContainer {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: nowrap;
  gap: 10px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

.logo img {
  width: 55px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 255, 80, 0.5));
}

/* ===== NAVIGATION ===== */
.navbar {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 12px var(--primary-color);
}

/* ===== ICONES ===== */
.lang-select,
.shopCardIcon,
.notifyMenu {
  color: var(--primary-color);
}

.cart-count,
.notify-count {
  background: var(--primary-color);
  color: black;
  border-radius: 50%;
}

/* ===== MENU BURGER ===== */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    background: #001505;
    width: 65%;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 12px rgba(0, 255, 80, 0.4);
    z-index: 10;
  }

  .navbar.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .header .headerContainer {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* ===== BLOCS ===== */
.block-first,
.block-seco,
.block-terc {
  padding: 25px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  background: rgba(0, 30, 0, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 80, 0.2);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.block-hover:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 120, 0.6);
}

/* ===== TABLEAUX ===== */
.grid {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 80, 0.2);
}

.grid th {
  background: linear-gradient(135deg, #003912, #00a84f);
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
  padding: 12px;
  text-transform: uppercase;
}

.grid td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 255, 80, 0.15);
}

.grid tr:nth-child(even) {
  background-color: rgba(0, 255, 80, 0.04);
}

.grid tr:hover {
  background-color: rgba(0, 255, 80, 0.12);
}

/* ===== BOUTONS ===== */
.button {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #003912, #00a84f);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: var(--border-radius);
  border: 1px solid var(--primary-color);
  text-transform: uppercase;
  font-family: var(--font-secondary);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 255, 80, 0.3);
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 120, 0.6);
}

/* Reflet Matrix */
.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
    rgba(0, 255, 80, 0.1) 0%,
    rgba(0, 255, 80, 0.6) 50%,
    rgba(0, 255, 80, 0.1) 100%);
  transform: skewX(-25deg);
}

.button:hover::before {
  animation: shine 1.2s forwards ease;
}

@keyframes shine {
  from { left: -80%; }
  to { left: 130%; }
}

/* ===== TITRES ===== */
h1, h2, h3 {
  text-shadow: 0 0 12px rgba(0, 255, 80, 0.4);
}

h1 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

h2 {
  color: var(--accent-color);
}

h3 {
  color: var(--primary-color);
}

/* ===== LIENS ===== */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--highlight-color);
  text-shadow: 0 0 10px var(--highlight-color);
}

/* ===== DIALOG ===== */
#dialog {
  background-color: rgba(0, 15, 0, 0.9);
  backdrop-filter: blur(8px);
}

#dialog .dialog-content {
  background: #001505;
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 0 25px rgba(0, 255, 80, 0.4);
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  border-top: 1px solid var(--primary-color);
  text-shadow: 0 0 8px rgba(0, 255, 80, 0.4);
}

.btn-primary{
   background-color: var(--metal-color);
   border-color: var(--metal-color);
   color: var(--primary-color)
}

.btn-primary:hover{
     background-color: var(--metal-color);
   border-color: var(--dark-color);
   color: var(--primary-color)
}