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

:root {
  /* Winston Blue Neon Colors */
  --cyber-blue: #577f9d;
  --cyber-blue-dark: #32527b;
  --cyber-blue-glow: rgba(87, 127, 157, 0.8);
  --cyber-red: #F65e5e;

  /* Dark backgrounds */
  --bg-black: #0a0e1a;
  --bg-dark: #131821;
  --bg-darker: #0d1117;

  /* Text */
  --text-primary: #e4e8f0;
  --text-secondary: #9ca3af;
  --text-neon: #8ab4d5;

  /* Borders */
  --border-color: rgba(87, 127, 157, 0.3);
  --border-glow: rgba(87, 127, 157, 0.6);
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20.7px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-black);
  overflow-x: hidden;
}

/* Animated background grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(87, 127, 157, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 127, 157, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

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

/* Scanline effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(87, 127, 157, 0.02) 50%
  );
  background-size: 100% 4px;
  z-index: -1;
  pointer-events: none;
  animation: scanlines 8s linear infinite;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Cyberpunk */
header {
  background: linear-gradient(180deg, var(--bg-darker) 0%, transparent 100%);
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyber-blue-glow) 50%,
    transparent 100%
  );
  box-shadow: 0 0 10px var(--cyber-blue-glow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.07rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
}

header h1 a {
  color: var(--cyber-blue);
  text-decoration: none;
  text-shadow:
    0 0 10px var(--cyber-blue-glow),
    0 0 20px var(--cyber-blue-glow),
    0 0 30px var(--cyber-blue-glow);
  transition: all 0.3s ease;
  position: relative;
}

header h1 a::before {
  content: '>';
  margin-right: 0.5rem;
  color: var(--cyber-blue);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

header h1 a:hover {
  text-shadow:
    0 0 15px var(--cyber-blue-glow),
    0 0 30px var(--cyber-blue-glow),
    0 0 45px var(--cyber-blue-glow);
  transform: translateX(5px);
}

/* Navigation Cyberpunk */
nav ul.nav-main {
  display: flex;
  list-style: none;
  gap: 0;
}

nav li {
  position: relative;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.09rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 1.5rem;
  display: block;
  position: relative;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: transparent;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--cyber-blue-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav a:hover {
  color: var(--cyber-blue);
  text-shadow: 0 0 10px var(--cyber-blue-glow);
}

nav a:hover::before {
  opacity: 0.3;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cyber-blue);
  box-shadow: 0 0 10px var(--cyber-blue-glow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 80%;
}

/* Dropdown menu */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: linear-gradient(135deg, rgba(19, 24, 33, 0.98) 0%, rgba(10, 14, 26, 0.98) 100%);
  border: 2px solid var(--border-color);
  border-top: none;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  box-shadow: 0 8px 32px rgba(87, 127, 157, 0.3);
  backdrop-filter: blur(10px);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyber-blue-glow) 50%,
    transparent 100%
  );
}

.has-dropdown:hover .dropdown {
  display: block;
  animation: dropdownSlide 0.3s ease;
}

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

.dropdown li {
  border-bottom: 1px solid var(--border-color);
}

.dropdown li:last-child {
  border-bottom: none;
}

.dropdown a {
  padding: 1rem 1.5rem;
  font-size: 1.035rem;
  clip-path: none;
  position: relative;
}

.dropdown a::before {
  content: '>';
  position: absolute;
  left: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--cyber-blue);
}

.dropdown a:hover::before {
  opacity: 1;
  left: 0.5rem;
}

.dropdown a:hover {
  background: rgba(87, 127, 157, 0.1);
  padding-left: 2rem;
}

/* Hero Cyberpunk */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-black) 50%, var(--bg-darker) 100%);
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(87, 127, 157, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

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

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 5.175rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 5px;
  background: linear-gradient(135deg, var(--cyber-blue) 0%, var(--text-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  display: inline-block;
}

.hero h1::before {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: -1;
  background: var(--cyber-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  filter: blur(2px);
}

.hero .subtitle {
  font-size: 1.84rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero .subtitle-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.84rem;
  font-weight: 700;
  color: var(--cyber-blue);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow:
    0 0 20px var(--cyber-blue-glow),
    0 0 40px var(--cyber-blue-glow),
    0 0 60px var(--cyber-blue-glow),
    0 0 80px var(--cyber-blue-glow);
  animation: neonPulse 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid var(--cyber-blue);
  background: rgba(87, 127, 157, 0.1);
  clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}

.hero .subtitle-main::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--cyber-blue-glow) 0%, transparent 50%);
  z-index: -1;
  opacity: 0.5;
  clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
  animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 20px var(--cyber-blue-glow),
      0 0 40px var(--cyber-blue-glow),
      0 0 60px var(--cyber-blue-glow);
  }
  50% {
    text-shadow:
      0 0 30px var(--cyber-blue-glow),
      0 0 60px var(--cyber-blue-glow),
      0 0 90px var(--cyber-blue-glow),
      0 0 120px var(--cyber-blue-glow);
  }
}

@keyframes borderGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

.hero .tagline {
  font-size: 1.38rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0;
  background: rgba(19, 24, 33, 0.6);
  backdrop-filter: blur(5px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow:
    0 0 20px rgba(87, 127, 157, 0.1),
    inset 0 0 20px rgba(87, 127, 157, 0.05);
}

/* Main content */
main {
  padding: 5rem 0;
  min-height: 60vh;
  position: relative;
}

article h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.45rem;
  color: var(--cyber-blue);
  margin-bottom: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--cyber-blue-glow);
  position: relative;
  padding-bottom: 1rem;
}

article h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--cyber-blue);
  box-shadow: 0 0 10px var(--cyber-blue-glow);
}

article h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.3rem;
  color: var(--cyber-blue);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--cyber-blue-glow);
}

article h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.61rem;
  color: var(--text-neon);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

article p {
  margin-bottom: 1.5rem;
  text-align: justify;
  line-height: 1.8;
}

article strong {
  font-weight: 700;
  color: var(--cyber-blue);
  text-shadow: 0 0 5px var(--cyber-blue-glow);
}

article em {
  font-style: italic;
  color: var(--text-secondary);
}

/* Links to Defsquare and Projet Winston */
article a[href*="defsquare.io"],
article a[href*="projetwinston.fr"] {
  display: inline-block;
  color: var(--cyber-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.7rem 1.5rem;
  border: 3px solid var(--cyber-red);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  transition: all 0.3s ease;
  background: rgba(246, 94, 94, 0.05);
  text-shadow: 0 0 10px rgba(246, 94, 94, 0.3);
}

article a[href*="defsquare.io"]:hover,
article a[href*="projetwinston.fr"]:hover {
  background: var(--cyber-red);
  color: var(--bg-black);
  box-shadow: 0 0 25px rgba(246, 94, 94, 0.7);
  transform: translateX(5px);
  border-color: var(--cyber-red);
  text-shadow: none;
}

/* Email links - more subtle style */
article a[href^="mailto:"] {
  display: inline;
  color: var(--cyber-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
  padding: 0;
  border: none;
  clip-path: none;
  background: transparent;
  text-shadow: 0 0 5px var(--cyber-blue-glow);
  border-bottom: 1px solid var(--cyber-blue);
  transition: all 0.3s ease;
}

article a[href^="mailto:"]:hover {
  color: var(--text-neon);
  text-shadow: 0 0 10px var(--cyber-blue-glow);
  border-bottom-color: var(--text-neon);
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* General links in articles - enhanced visibility */
article a:not([href*="defsquare.io"]):not([href*="projetwinston.fr"]):not([href^="mailto:"]) {
  display: inline;
  color: var(--text-neon);
  text-decoration: none;
  font-weight: 700;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.4rem;
  border: none;
  clip-path: none;
  background: rgba(87, 127, 157, 0.15);
  text-shadow: 0 0 8px var(--cyber-blue-glow);
  border-bottom: 2px solid var(--cyber-blue);
  transition: all 0.3s ease;
  position: relative;
}

article a:not([href*="defsquare.io"]):not([href*="projetwinston.fr"]):not([href^="mailto:"]):hover {
  color: var(--cyber-blue);
  text-shadow: 0 0 15px var(--cyber-blue-glow);
  border-bottom-color: var(--text-neon);
  background: rgba(87, 127, 157, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(87, 127, 157, 0.3);
}

/* Hero Image Cyberpunk - Ultra Stylized */
.hero-image {
  position: relative;
  margin: 5rem auto;
  text-align: center;
  max-width: 600px;
}

.cyber-img {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 3px solid var(--cyber-blue);
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
  box-shadow:
    0 0 50px rgba(87, 127, 157, 0.8),
    0 0 100px rgba(87, 127, 157, 0.5),
    0 0 150px rgba(87, 127, 157, 0.3),
    inset 0 0 50px rgba(87, 127, 157, 0.2);
  transition: all 0.5s ease;
  position: relative;
  filter: contrast(1.15) brightness(0.9) saturate(1.2);
  animation: imagePulse 4s ease-in-out infinite;
}

.cyber-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(87, 127, 157, 0.1) 0px,
    transparent 2px,
    transparent 4px,
    rgba(87, 127, 157, 0.1) 4px
  );
  pointer-events: none;
  z-index: 2;
  animation: scanline 8s linear infinite;
}

@keyframes imagePulse {
  0%, 100% {
    box-shadow:
      0 0 50px rgba(87, 127, 157, 0.8),
      0 0 100px rgba(87, 127, 157, 0.5),
      0 0 150px rgba(87, 127, 157, 0.3),
      inset 0 0 50px rgba(87, 127, 157, 0.2);
  }
  50% {
    box-shadow:
      0 0 60px rgba(87, 127, 157, 1),
      0 0 120px rgba(87, 127, 157, 0.7),
      0 0 180px rgba(87, 127, 157, 0.5),
      inset 0 0 60px rgba(87, 127, 157, 0.3);
  }
}

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

.cyber-img:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--text-neon);
  box-shadow:
    0 0 70px rgba(87, 127, 157, 1),
    0 0 140px rgba(87, 127, 157, 0.8),
    0 0 210px rgba(87, 127, 157, 0.6),
    inset 0 0 70px rgba(87, 127, 157, 0.4);
  filter: contrast(1.2) brightness(1) saturate(1.4);
}

.image-caption {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--cyber-blue);
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow:
    0 0 20px var(--cyber-blue-glow),
    0 0 40px var(--cyber-blue-glow);
  animation: captionGlow 2s ease-in-out infinite alternate;
}

@keyframes captionGlow {
  0% {
    text-shadow:
      0 0 20px var(--cyber-blue-glow),
      0 0 40px var(--cyber-blue-glow);
  }
  100% {
    text-shadow:
      0 0 30px var(--cyber-blue-glow),
      0 0 60px var(--cyber-blue-glow),
      0 0 90px var(--cyber-blue-glow);
  }
}

/* Images Cyberpunk normales dans les articles (sauf team photos) */
article img:not(.team-photo img) {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 3rem auto;
  border: 2px solid var(--cyber-blue);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  box-shadow:
    0 0 30px rgba(87, 127, 157, 0.4),
    0 8px 32px rgba(87, 127, 157, 0.2),
    inset 0 0 0 1px rgba(87, 127, 157, 0.3);
  transition: all 0.3s ease;
  position: relative;
  filter: contrast(1.05) brightness(0.95);
}

article img:not(.team-photo img):hover {
  transform: translateY(-5px);
  border-color: var(--cyber-blue);
  box-shadow:
    0 0 40px rgba(87, 127, 157, 0.6),
    0 12px 48px rgba(87, 127, 157, 0.4),
    inset 0 0 0 1px var(--cyber-blue);
  filter: contrast(1.1) brightness(1);
}

/* Override pour s'assurer que les team photos ne sont pas affectées */
.team-photo img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: none !important;
  clip-path: none !important;
  box-shadow: none !important;
  filter: contrast(1.1) saturate(0.9) !important;
  object-fit: cover !important;
}

/* Cards Cyberpunk */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.card {
  background: linear-gradient(135deg, rgba(19, 24, 33, 0.8) 0%, rgba(10, 14, 26, 0.8) 100%);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(87, 127, 157, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; 
}

.card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--cyber-blue-glow) 0%, transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow:
    0 10px 30px rgba(87, 127, 157, 0.3),
    0 0 50px rgba(87, 127, 157, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 0.5;
}

.card h3 {
  color: var(--cyber-blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.725rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card p {
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: left;
  color: var(--text-primary);
}

.card a {
  color: var(--cyber-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: 1rem;
}

.card a:hover {
  text-shadow: 0 0 10px var(--cyber-blue-glow);
  transform: translateX(5px);
}

/* Alert box Cyberpunk */
.alert {
  background: rgba(19, 24, 33, 0.8);
  border: 2px solid var(--cyber-blue);
  border-left: 5px solid var(--cyber-blue);
  padding: 2rem;
  margin: 2.5rem 0;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  box-shadow:
    0 0 20px rgba(87, 127, 157, 0.2),
    inset 0 0 20px rgba(87, 127, 157, 0.05);
}

.alert::before {
  content: '>';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--cyber-blue);
  opacity: 0.3;
}

.alert-warning {
  border-color: var(--cyber-red);
  border-left-color: var(--cyber-red);
  box-shadow:
    0 0 20px rgba(246, 94, 94, 0.2),
    inset 0 0 20px rgba(246, 94, 94, 0.05);
}

.alert h3 {
  color: var(--cyber-blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.495rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Lists */
article ul {
  margin: 2rem 0;
  padding-left: 3rem;
}

article li {
  margin-bottom: 1rem;
  line-height: 1.7;
  position: relative;
}

article li::marker {
  color: var(--cyber-blue);
  font-weight: bold;
}

/* Approach list with > symbol instead of bullets */
.approach-list {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.approach-list li {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.approach-list li::marker {
  content: none;
}

/* CTA Cyberpunk */
.cta {
  background: linear-gradient(135deg, rgba(50, 82, 123, 0.2) 0%, rgba(19, 24, 33, 0.9) 100%);
  border: 2px solid var(--cyber-blue);
  padding: 3.5rem;
  text-align: center;
  margin: 5rem 0;
  position: relative;
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
  box-shadow:
    0 0 40px rgba(87, 127, 157, 0.3),
    inset 0 0 40px rgba(87, 127, 157, 0.1);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--cyber-blue);
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
  animation: ctaBorder 3s infinite;
}

@keyframes ctaBorder {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.cta h2 {
  color: var(--cyber-blue);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--cyber-blue-glow);
}

.cta p {
  font-size: 1.38rem;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyber-blue-dark) 0%, var(--cyber-blue) 100%);
  color: white;
  padding: 1.2rem 3rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 0 20px var(--cyber-blue-glow);
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 5px 30px var(--cyber-blue-glow),
    0 0 50px var(--cyber-blue-glow);
}

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

/* Footer Cyberpunk */
footer {
  background: linear-gradient(180deg, transparent 0%, var(--bg-darker) 50%);
  border-top: 2px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyber-blue-glow) 50%,
    transparent 100%
  );
  box-shadow: 0 0 10px var(--cyber-blue-glow);
}

footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

footer h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.495rem;
  margin-bottom: 1.5rem;
  color: var(--cyber-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
}

footer p, footer a {
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.9;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--cyber-blue);
  text-shadow: 0 0 10px var(--cyber-blue-glow);
}

footer .copyright {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
}

/* Team page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.team-member {
  background: linear-gradient(135deg, rgba(19, 24, 33, 0.8) 0%, rgba(10, 14, 26, 0.8) 100%);
  border: 2px solid var(--border-color);
  padding: 2.5rem;
  position: relative;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  transition: all 0.3s ease;
}

.team-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyber-blue) 0%, transparent 100%);
  box-shadow: 0 0 10px var(--cyber-blue-glow);
}

.team-member:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 8px 32px rgba(87, 127, 157, 0.3);
  transform: translateY(-5px);
}

.team-member h3 {
  color: var(--cyber-blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.725rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-member h3::before {
  content: '>';
  margin-right: 0.5rem;
  color: var(--cyber-blue);
}

.team-member h4 {
  color: var(--text-neon);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.265rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-member p {
  font-size: 1.09rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: left;
}

.team-photo {
  float: right;
  width: 180px;
  height: 220px;
  margin: 0 0 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(87, 127, 157, 0.3);
  transition: all 0.3s ease;
}

.team-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(87, 127, 157, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.team-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--cyber-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.team-member:hover .team-photo {
  border-color: var(--cyber-blue);
  box-shadow:
    0 0 20px var(--cyber-blue-glow),
    0 4px 16px rgba(87, 127, 157, 0.5);
}

.team-member:hover .team-photo::after {
  opacity: 1;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(0.9);
  transition: filter 0.3s ease;
}

.team-member:hover .team-photo img {
  filter: contrast(1.15) saturate(1);
}

.team-links {
  margin: 1.5rem 0;
}

.team-links a {
  display: inline-block;
  color: var(--cyber-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.21rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.7rem 1.5rem;
  border: 3px solid var(--cyber-red);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  transition: all 0.3s ease;
  background: rgba(246, 94, 94, 0.05);
  text-shadow: 0 0 10px rgba(246, 94, 94, 0.3);
}

.team-links a:hover {
  background: var(--cyber-red);
  color: var(--bg-black);
  box-shadow: 0 0 25px rgba(246, 94, 94, 0.7);
  transform: translateX(5px);
  border-color: var(--cyber-red);
  text-shadow: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: 2px solid var(--cyber-blue);
  padding: 0.5rem;
  cursor: pointer;
  gap: 0.3rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

/* Mobile Menu Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--cyber-blue);
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--cyber-blue-glow);
}

.mobile-menu-toggle:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 0 15px var(--cyber-blue-glow);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    position: relative;
  }

  header h1 {
    font-size: 1.495rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98) 0%, rgba(19, 24, 33, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-left: 2px solid var(--cyber-blue);
    box-shadow: -5px 0 30px rgba(87, 127, 157, 0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    padding: 5rem 0 2rem 0;
  }

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

  nav ul.nav-main {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
  }

  nav ul.nav-main li {
    width: 100%;
    border-bottom: 1px solid rgba(87, 127, 157, 0.2);
  }

  nav a {
    padding: 1rem 1.5rem;
    font-size: 1.15rem;
    display: block;
    text-align: left;
    border: none;
  }

  .dropdown {
    position: static;
    width: 100%;
    min-width: auto;
    margin: 0;
    padding: 0;
    display: none;
    background: rgba(19, 24, 33, 0.5);
    border: none;
    box-shadow: none;
    clip-path: none;
  }

  .has-dropdown.active .dropdown {
    display: block;
  }

  .dropdown li {
    border-bottom: 1px solid rgba(87, 127, 157, 0.1);
  }

  .dropdown li:last-child {
    border-bottom: none;
  }

  .dropdown li a {
    padding: 0.9rem 1.5rem 0.9rem 2.5rem;
    font-size: 1.035rem;
  }

  .has-dropdown:hover .dropdown {
    animation: none;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 2.3rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }

  .hero .subtitle {
    font-size: 1.15rem;
  }

  .hero .subtitle-main {
    font-size: 1.495rem;
    letter-spacing: 1px;
    padding: 0.7rem 1.2rem;
    margin: 1rem auto;
    max-width: 90%;
  }

  .hero .tagline {
    font-size: 0.98rem;
    padding: 0 1.5rem;
    line-height: 1.7;
    margin-top: 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  article {
    padding: 2rem 0;
  }

  article h1 {
    font-size: 2.185rem;
    margin-bottom: 1.5rem;
  }

  article h2 {
    font-size: 1.725rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
  }

  article h3 {
    font-size: 1.44rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  article p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }

  article li {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
  }

  article ul {
    padding-left: 2rem;
  }

  article img:not(.team-photo img) {
    margin: 2rem auto;
    max-width: 100%;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  }

  .hero-image {
    margin: 3rem auto;
  }

  .cyber-img {
    width: 70%;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  }

  .image-caption {
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-top: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .card h3 {
    font-size: 1.495rem;
    margin-bottom: 1rem;
  }

  .card p {
    font-size: 1.15rem;
    line-height: 1.7;
  }

  .approach-list li {
    font-size: 1.15rem;
    line-height: 1.7;
  }

  .card a {
    font-size: 1.15rem;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.2rem 0;
  }

  footer {
    padding: 3rem 0 2rem;
  }

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

  footer h3 {
    font-size: 1.38rem;
  }

  footer p, footer a {
    font-size: 1.09rem;
  }

  .cta {
    padding: 2.5rem 1.5rem;
    margin: 3rem 0;
  }

  .cta h2 {
    font-size: 1.61rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
  }

  .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
    width: 100%;
    min-height: 48px;
    font-weight: 700;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
  }

  .team-member {
    padding: 2rem 1.5rem;
  }

  .team-member h3 {
    font-size: 1.61rem;
    margin-top: 0;
  }

  .team-member h4 {
    font-size: 1.265rem;
  }

  .team-member p {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .team-photo {
    float: none;
    width: 100%;
    max-width: 280px;
    height: 340px;
    margin: 0 auto 2rem auto;
    display: block;
  }

  .team-links {
    margin: 2rem 0 1rem 0;
  }

  .team-links a {
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
    border-width: 2px;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 48px;
  }

  .alert {
    padding: 1.8rem;
    margin: 2rem 0;
  }

  .alert h3 {
    font-size: 1.38rem;
  }

  .alert p {
    font-size: 1.09rem;
  }

  /* Improve touch targets */
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  header .container {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.15rem;
  }

  .mobile-menu-toggle {
    padding: 0.4rem;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2.5px;
  }

  .nav-menu {
    width: 85%;
  }

  nav a {
    padding: 0.9rem 1.2rem;
    font-size: 1.09rem;
  }

  .dropdown li a {
    padding: 0.8rem 1.2rem 0.8rem 2rem;
  }

  .hero {
    padding: 1.5rem 0;
  }

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

  .hero .subtitle-main {
    font-size: 1.265rem;
    padding: 0.6rem 1rem;
  }

  .hero .tagline {
    font-size: 0.92rem;
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  article h1 {
    font-size: 1.84rem;
  }

  article h2 {
    font-size: 1.495rem;
    margin-top: 2rem;
  }

  article h3 {
    font-size: 1.32rem;
  }

  article p, article li {
    font-size: 1.09rem;
  }

  article img:not(.team-photo img) {
    margin: 1.5rem auto;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  }

  .hero-image {
    margin: 2rem auto;
  }

  .cyber-img {
    width: 85%;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  }

  .image-caption {
    font-size: 1.035rem;
    letter-spacing: 1px;
    margin-top: 1rem;
  }

  .card {
    padding: 1.5rem 1.2rem;
  }

  .card h3 {
    font-size: 1.38rem;
  }

  .card p {
    font-size: 1.09rem;
  }

  .approach-list li {
    font-size: 1.09rem;
  }

  .team-photo {
    max-width: 220px;
    height: 280px;
  }

  .team-member {
    padding: 1.5rem 1.2rem;
  }

  .team-member h3 {
    font-size: 1.495rem;
  }

  .team-member p {
    font-size: 1.09rem;
  }

  .team-links a {
    font-size: 1.09rem;
    padding: 0.9rem 1.2rem;
  }

  .cta {
    padding: 2rem 1.2rem;
  }

  .cta h2 {
    font-size: 1.44rem;
  }

  .cta p {
    font-size: 1.09rem;
  }

  .btn {
    padding: 1.1rem 2rem;
    font-size: 1.09rem;
  }

  .alert {
    padding: 1.5rem 1.2rem;
  }

  footer {
    padding: 2.5rem 0 1.5rem;
  }
}

/* Glitch effect on hover (optional) */
.glitch {
  position: relative;
}

.glitch:hover::before,
.glitch:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch:hover::before {
  animation: glitch-1 0.3s infinite;
  color: var(--cyber-blue);
  z-index: -1;
}

.glitch:hover::after {
  animation: glitch-2 0.3s infinite;
  color: var(--cyber-red);
  z-index: -2;
}

@keyframes glitch-1 {
  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); }
}

@keyframes glitch-2 {
  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); }
}

/* ============================================
   INFOGRAPHIE 3 NIVEAUX
   ============================================ */

.niveaux-progression {
  width: 100%;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.niveau-card {
  width: 100%;
  max-width: 420px;
  min-width: 280px;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
  flex: 1 1 auto;
}

.niveau-card:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(87, 127, 157, 0.6));
}

/* Flèche de progression entre les niveaux */
.niveau-arrow {
  font-size: 3.5rem;
  color: var(--cyber-blue);
  text-align: center;
  margin: 0 0.5rem;
  animation: arrowBounceHorizontal 2s ease-in-out infinite;
  text-shadow:
    0 0 10px var(--cyber-blue-glow),
    0 0 20px var(--cyber-blue-glow);
  flex-shrink: 0;
}

@keyframes arrowBounceHorizontal {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(10px);
    opacity: 1;
  }
}

/* Responsive tablette et petits écrans - passage en vertical */
@media (max-width: 1200px) {
  .niveaux-progression {
    flex-direction: column;
    max-width: 500px;
    gap: 1rem;
  }

  .niveau-card {
    max-width: 420px;
  }

  .niveau-card:hover {
    transform: scale(1.08);
  }

  .niveau-arrow {
    font-size: 3rem;
    margin: 0.5rem 0;
    animation: arrowBounceVertical 2s ease-in-out infinite;
  }

  @keyframes arrowBounceVertical {
    0%, 100% {
      transform: translateY(0);
      opacity: 0.7;
    }
    50% {
      transform: translateY(10px);
      opacity: 1;
    }
  }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .niveaux-progression {
    max-width: 100%;
    padding: 0 1rem;
    margin: 1.5rem auto;
    gap: 0.5rem;
  }

  .niveau-card {
    max-width: 100%;
  }

  .niveau-card:hover {
    transform: scale(1.05);
  }

  .niveau-arrow {
    font-size: 2.5rem;
    margin: 0.25rem 0;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .niveaux-progression {
    padding: 0 0.5rem;
  }

  .niveau-arrow {
    font-size: 2rem;
  }
}
