@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }

/* Si ton header devient fixed plus tard, garde une marge pour ne pas cacher le titre */
#install { scroll-margin-top: 90px; } /* ajuste 90px si besoin */

:root {
  --neon-blue: #00f5ff;
  --neon-purple: #bf00ff;
  --neon-pink: #ff0080;
  --neon-green: #39ff14;
  --neon-orange: #ff6600;
  --cyber-dark: #0a0a0f;
  --cyber-darker: #050508;
  --cyber-light: #1a1a2e;
  --cyber-accent: #16213e;
  --text-glow: #e0e6ed;
  --text-dim: #8892b0;
  --border-glow: rgba(0, 245, 255, 0.3);
  --card-bg: rgba(26, 26, 46, 0.8);
  --gradient-cyber: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  --gradient-matrix: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
  --gradient-danger: linear-gradient(45deg, var(--neon-pink), var(--neon-orange));
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--cyber-dark);
  color: var(--text-glow);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 245, 255, 0.02) 2px,
      rgba(0, 245, 255, 0.02) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(191, 0, 255, 0.02) 2px,
      rgba(191, 0, 255, 0.02) 4px
    );
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating particles */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, var(--neon-blue), transparent),
    radial-gradient(2px 2px at 40% 70%, var(--neon-purple), transparent),
    radial-gradient(1px 1px at 90% 40%, var(--neon-pink), transparent),
    radial-gradient(1px 1px at 60% 90%, var(--neon-green), transparent),
    radial-gradient(2px 2px at 80% 10%, var(--neon-orange), transparent);
  background-repeat: repeat;
  background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px, 100px 100px;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

/* Container with cyber effect */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--gradient-cyber);
  transform: translateX(-50%);
  opacity: 0.5;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 5px var(--neon-blue); }
  50% { opacity: 1; box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple); }
}

/* Futuristic headers */
h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.5));
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.3)); }
  to { filter: drop-shadow(0 0 50px rgba(191, 0, 255, 0.6)); }
}

h1::before,
h1::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background: var(--gradient-cyber);
  animation: expandLine 2s ease-in-out infinite alternate;
}

h1::before {
  left: -120px;
}

h1::after {
  right: -120px;
}

@keyframes expandLine {
  from { width: 50px; opacity: 0.5; }
  to { width: 100px; opacity: 1; }
}

h1 + h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 1.3rem;
  font-weight: 400;
}

h1 + h2 a {
  color: var(--neon-green);
  text-decoration: none;
  padding: 1rem 2rem;
  background: rgba(57, 255, 20, 0.1);
  border: 2px solid var(--neon-green);
  border-radius: 0;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

h1 + h2 a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.2), transparent);
  transition: left 0.5s ease;
}

h1 + h2 a:hover::before {
  left: 100%;
}

h1 + h2 a:hover {
  background: rgba(57, 255, 20, 0.2);
  box-shadow: 
    0 0 20px var(--neon-green),
    inset 0 0 20px rgba(57, 255, 20, 0.1);
  transform: translateY(-3px);
  text-shadow: 0 0 10px var(--neon-green);
}

h2 {
  color: var(--text-glow);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

h2::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--gradient-matrix);
  margin-left: 1rem;
  opacity: 0.7;
}

/* Cyber code styling */
code {
  background: rgba(0, 245, 255, 0.15);
  color: var(--neon-blue);
  padding: 0.3rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  font-weight: 500;
  border: 1px solid rgba(0, 245, 255, 0.3);
  position: relative;
  text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
}

code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 48%, rgba(0, 245, 255, 0.1) 50%, transparent 52%);
  pointer-events: none;
}

/* Futuristic sections */
section {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glow);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-cyber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

section::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  background: var(--neon-blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0.7;
}

section:hover::before {
  transform: scaleX(1);
}

section:hover {
  border-color: var(--neon-blue);
  box-shadow: 
    0 10px 30px rgba(0, 245, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-5px) scale(1.02);
}

section:nth-child(odd) {
  border-left: 3px solid var(--neon-purple);
}

section:nth-child(even) {
  border-left: 3px solid var(--neon-blue);
}

section:nth-child(4n) {
  border-left: 3px solid var(--neon-green);
}

section:nth-child(4n+1) {
  border-left: 3px solid var(--neon-pink);
}

/* Section content */
section {
  padding: 2rem;
}

/* Cyber lists */
ul {
  list-style: none;
  margin-bottom: 2rem;
}

li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

li:last-child {
  border-bottom: none;
}

li::before {
  content: '▸';
  color: var(--neon-blue);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px var(--neon-blue);
}

li:hover::before {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  transform: translateX(5px) scale(1.2);
}

li:hover {
  color: var(--text-glow);
  padding-left: 1rem;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.05), transparent);
  border-bottom-color: var(--neon-blue);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Terminal-style code blocks */
pre {
  background: var(--cyber-darker);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-left: 4px solid var(--neon-blue);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  position: relative;
  margin: 1rem 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

pre::before {
  content: '> TERMINAL_OUTPUT';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 30px;
  background: linear-gradient(90deg, var(--cyber-light), var(--cyber-accent));
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.7rem;
  color: var(--neon-blue);
  font-weight: 600;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

pre {
  padding-top: 3rem;
}

pre code {
  background: none;
  border: none;
  color: var(--text-glow);
  padding: 0;
  font-size: inherit;
  text-shadow: 0 0 3px rgba(224, 230, 237, 0.3);
}

/* Enhanced syntax highlighting */
pre .comment { color: var(--text-dim); font-style: italic; }
pre .string { color: var(--neon-green); text-shadow: 0 0 5px rgba(57, 255, 20, 0.3); }
pre .number { color: var(--neon-orange); text-shadow: 0 0 5px rgba(255, 102, 0, 0.3); }
pre .keyword { color: var(--neon-purple); font-weight: 600; text-shadow: 0 0 5px rgba(191, 0, 255, 0.3); }
pre .function { color: var(--neon-blue); text-shadow: 0 0 5px rgba(0, 245, 255, 0.3); }
pre .operator { color: var(--neon-pink); text-shadow: 0 0 5px rgba(255, 0, 128, 0.3); }

footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px;
}
footer , a {
  padding: 20px ;
}
.modal-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95); /* fond sombre semi-transparent */
  color: #fff;
  display: none; /* caché par défaut */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999; /* passe devant tout */
  padding: 2rem;
  box-sizing: border-box;
}

.modal-section.active {
  display: flex; /* quand on l’active → elle occupe tout l’écran */
}

.modal-section h2 {
  margin-bottom: 1rem;
}

.close-btn {
  margin-top: 1rem;
  background: var(--neon-blue, #0ff);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}
#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* espace entre les champs */
  max-width: 400px; /* largeur limitée pour garder joli */
  margin: 0 auto;   /* centrer le formulaire */
}

#contact label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

header ,.liste {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .container::before {
    display: none;
  }
  
  section {
    padding: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h1::before,
  h1::after {
    display: none;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  pre {
    font-size: 0.8rem;
    padding: 2.5rem 1rem 1rem 1rem;
  }
}

/* Glitch effect for errors */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.glitch {
  animation: glitch 0.3s ease-in-out infinite;
}

/* Cyber scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--cyber-dark);
  border: 1px solid var(--border-glow);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-cyber);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-matrix);
  box-shadow: 0 0 10px var(--neon-blue);
}

/* Links */
a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-green);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
  box-shadow: 0 0 5px var(--neon-green);
}

/* Selection */
::selection {
  background: rgba(0, 245, 255, 0.3);
  color: var(--text-glow);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Focus states */
*:focus {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
  box-shadow: 0 0 10px var(--neon-blue);
}

/* Loading animations */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.loading::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-cyber);
  animation: scanline 2s ease-in-out infinite;
  z-index: 9999;
}

/* Matrix rain effect for special sections */
@keyframes matrix {
  0% { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.matrix-rain::before {
  content: '0101010101';
  position: absolute;
  top: -10%;
  left: 10%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--neon-green);
  opacity: 0.3;
  animation: matrix 10s linear infinite;
}

@media screen and (max-width:680px) {
  header ,.liste {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

}