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

:root {
  --primary-color: #ff3c00;
  --secondary-color: #0a0a0a;
  --accent-blue: #2EA3F2;
  --dark-bg: #0d0d0d;
  --darker-bg: #050505;
  --light-text: #ffffff;
  --muted-text: #cccccc;
  --border-color: #333333;
  --glow-color: rgba(255, 60, 0, 0.3);
  --noise-opacity: 0.05;
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--darker-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/noisebg.gif') repeat;
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.welcome-banner {
  background: linear-gradient(90deg, rgba(255, 60, 0, 0.8), rgba(255, 60, 0, 0.9), rgba(255, 60, 0, 0.8));
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(255, 60, 0, 0.5);
  border-bottom: 2px solid rgba(255, 60, 0, 0.5);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: scanBanner 3s linear infinite;
}

.welcome-content {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--light-text);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255, 60, 0, 0.8), 0 0 40px rgba(255, 60, 0, 0.4);
  animation: pulseText 2s ease-in-out infinite;
}

@keyframes scanBanner {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes pulseText {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 60, 0, 0.8), 0 0 40px rgba(255, 60, 0, 0.4); }
  50% { text-shadow: 0 0 30px rgba(255, 60, 0, 1), 0 0 60px rgba(255, 60, 0, 0.6); }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.9));
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 2px solid rgba(255, 60, 0, 0.3);
  animation: slideDown 0.8s ease-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  position: relative;
}

.header-content::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: headerScan 4s linear infinite;
}

@keyframes headerScan {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo img {
  height: 55px;
  width: auto;
  filter: brightness(1.2) contrast(1.1);
  transition: all 0.3s ease;
}

.logo:hover img {
  filter: brightness(1.5) contrast(1.3) drop-shadow(0 0 15px var(--glow-color));
  transform: scale(1.1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  background: rgba(13, 13, 13, 0.4);
  border-radius: 25px;
  padding: 0.5rem;
  border: 1px solid rgba(255, 60, 0, 0.2);
}

nav li {
  position: relative;
}

nav a {
  display: block;
  color: var(--muted-text);
  text-decoration: none;
  font-weight: 500;
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--light-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 60, 0, 0.2);
}


nav a:hover::after {
  transform: scaleX(1);
}

nav a.active {
  background: rgba(255, 60, 0, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(255, 60, 0, 0.3);
}

nav a.active::after {
  transform: scaleX(1);
  background: var(--primary-color);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, var(--darker-bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 60, 0, 0.05) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.hero-content {
  z-index: 2;
  animation: fadeInUp 1s ease-out 0.5s both;
}

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

.hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--light-text), var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--primary-color), #ff6600);
  color: var(--light-text);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Orbitron', monospace;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 60, 0, 0.3);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-color);
  animation: expandLine 2s ease-out;
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: rgba(26, 26, 26, 0.8);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 60, 0, 0.1);
}

.card h3 {
  font-family: 'Orbitron', monospace;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

footer {
  background: var(--darker-bg);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--muted-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Menu burger styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light-text);
  display: block;
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: var(--primary-color);
}

/* Navigation mobile */
@media (max-width: 768px) {
  .header-content {
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.98), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 2px solid rgba(255, 60, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
    background: transparent;
    border: none;
    padding: 5rem 2rem 2rem;
    border-radius: 0;
    height: 100%;
  }

  .nav-menu li {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(255, 60, 0, 0.2);
    background: rgba(13, 13, 13, 0.5);
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    background: rgba(255, 60, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
  }

  .nav-menu a.active {
    background: rgba(255, 60, 0, 0.2);
    border-color: var(--primary-color);
  }

  /* Overlay pour fermer le menu */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 1;
    pointer-events: all;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 20s infinite linear;
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.particle:nth-child(3n) {
    background: rgba(46, 163, 242, 0.6);
    box-shadow: 0 0 6px rgba(46, 163, 242, 0.8);
}
.particle:nth-child(5n) {
    background: rgba(255, 255, 255, 0.4);
    animation-duration: 8s;
}
.particle:nth-child(7n) {
    width: 4px !important;
    height: 4px !important;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--glow-color);
}
.particle:nth-child(11n) {
    animation-direction: reverse;
    background: rgba(255, 102, 0, 0.5);
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 60, 0, 0.03) 2px,
    rgba(255, 60, 0, 0.03) 4px
  );
  animation: scanlineMove 10s linear infinite;
}

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(100px); }
}

.slogan {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--glow-color);
}

.content-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent, var(--primary-color));
    animation: scanLine 4s linear infinite;
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted-text);
}

.metiers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metier-item {
    background: rgba(13, 13, 13, 0.6);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.metier-item:hover {
    transform: translateY(-3px);
    border-left-color: #ff6600;
    box-shadow: 0 10px 20px rgba(255, 60, 0, 0.1);
}

.metier-item h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.metier-item p {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0;
}

.adhesion-section {
    background: rgba(255, 60, 0, 0.05);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 12px;
}

.adhesion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.adhesion-card {
    background: rgba(13, 13, 13, 0.9);
    padding: 3rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.adhesion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff6600);
}

.adhesion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 60, 0, 0.2);
}

.adhesion-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .slogan {
        font-size: 1.2rem;
    }

    .content-card {
        padding: 2rem;
    }

    .metiers-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .adhesion-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}