* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: 
    linear-gradient(rgba(7,18,38,0.85), rgba(7,18,38,0.95)),
    url("images/robot-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

a {
  text-decoration: none;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: rgba(13, 27, 52, 0.75);
  border-bottom: 1px solid #12345a;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: #c7d7f2;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
}

main {
  padding: 0 40px 60px;
}

.hero {
  display: grid;
  grid-template-columns: 650px 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 110px 40px 90px;
  text-align: left;
}

.hero-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-logo img {
  width: 560px;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 0 60px rgba(77, 163, 255, 0.85));
}

.hero-left {
  max-width: 720px;
  justify-self: center;
}

.hero-tag {
  color: #7ea6d9;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-align: center;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.02;
  margin: 0 0 24px 0;
  text-align: center;
  max-width: none;
}

.hero h1 span {
  display: block;
  color: #4da3ff;
}

.hero-text {
  color: #b6c2d9;
  font-size: 20px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: #2f6bff;
  color: white;
  border: 1px solid #2f6bff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.28);
}

.btn-secondary {
  background: transparent;
  color: #d9e7ff;
  border: 1px solid #234a79;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.featured {
  margin-top: 10px;
}

.section-title p {
  color: #7ea6d9;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  font-size: 36px;
  margin: 0 0 28px 0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: rgba(13, 27, 52, 0.92);
  border: 1px solid #12345a;
  border-radius: 22px;
  padding: 24px;
  width: 320px;
  transition: 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card:hover {
  transform: translateY(-4px);
  border-color: #245d96;
}

.card-label {
  color: #7ea6d9;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 24px;
  margin: 0 0 12px 0;
}

.card p {
  color: #9db0d0;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1100px) {
  .header {
    padding: 18px 20px;
    flex-direction: column;
    gap: 14px;
  }

  main {
    padding: 0 20px 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 20px 60px;
  }

  .hero-logo {
    justify-content: center;
  }

  .hero-logo img {
    width: 380px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section-title h2 {
    font-size: 28px;
  }
}

.background-animation {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-1 {
  width: 320px;
  height: 320px;
  background: rgba(0, 174, 239, 0.35);
  top: 80px;
  left: 40px;
}

.glow-2 {
  width: 260px;
  height: 260px;
  background: rgba(77, 163, 255, 0.25);
  top: 220px;
  right: 80px;
  animation-delay: 2s;
}

.glow-3 {
  width: 300px;
  height: 300px;
  background: rgba(47, 107, 255, 0.2);
  bottom: 40px;
  left: 35%;
  animation-delay: 4s;
}

@keyframes floatGlow {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) translateX(15px) scale(1.08);
  }
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


@keyframes scan {
  0% {
    transform: translateX(-600px);
  }
  100% {
    transform: translateX(600px);
  }
}

.hero-logo {
  transform: translateX(-200px);
}

.hero h1 {
  text-align: center;
}

.hero-text {
  text-align: center;
}

.hero-left {
  text-align: center;
  margin: 0 auto;
  transform: translateX(-370px);
}

body {
  overflow-x: hidden;
}

.scan-line {
  width: 100%;
  height: 2px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.scan-line::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4da3ff, transparent);
  filter: blur(4px);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-300px);
  }
  100% {
    transform: translateX(100vw);
  }
}

.footer {
  background: #0a0a0a;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #222;
}

.footer .socials {
  margin-top: 10px;
}

.footer .socials a {
  color: #00f0ff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.footer .socials a:hover {
  text-decoration: underline;
}

.projects-list {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-item {
  background: rgba(8, 20, 50, 0.75);
  border: 1px solid rgba(77, 163, 255, 0.2);
  border-radius: 16px;

  padding: 12px 16px;   /* moins d'espace interne */
}

.project-item h3 {
  margin: 4px 0;       /* moins d'espace autour du titre */
  font-size: 20px;
}

.project-item p {
  margin-bottom: 8px;  /* moins d'espace sous le texte */
  font-size: 14px;
}

.project-item .btn {
  padding: 6px 14px;   /* bouton plus petit */
  font-size: 14px;
}

pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(77, 163, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

code {
  font-family: Consolas, monospace;
  font-size: 14px;
}

.project-image {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  display: block;
  margin-top: 12px;
}

.projects-page .btn-secondary {
  display: inline-block;
  margin-bottom: 20px;
}

.materiel-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 15px auto;
}

.card img {
  width: 120px;
  height: auto;
  display: block;
  margin: 15px auto;
}