body {
  margin: 0;
  padding: 0;
  /* background: url("background.png") no-repeat center center fixed; */
  background: url("nebul_tarntule.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: 'Orbitron', sans-serif;
}

/* === Carré avec triangle rotatif === */
.rotating-square {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100px;
  height: 100px;
  z-index: 10;
}

.rotating-square::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: #ccc;
  clip-path: polygon(
    0 0,
    100px 0,
    100px 80px,
    80px 100px,
    0 100px
  );
  z-index: -2;
}

.rotating-square::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 96px;
  height: 96px;
  background: #000;
  clip-path: polygon(
    0 0,
    96px 0,
    96px 76px,
    76px 96px,
    0 96px
  );
  z-index: -1;
}

.triangle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 43.3px solid #ccc;
  transform: translate(-25px, -28.8667px);
  transform-origin: 25px 28.8667px;
  animation: spin 2s linear infinite;
  z-index: 2;
}

@keyframes spin {
  0% {
    transform: translate(-25px, -28.8667px) rotate(0deg);
  }
  100% {
    transform: translate(-25px, -28.8667px) rotate(-360deg);
  }
}

/* === Boutons === */
/* === Boutons === */
.btn-container {
  position: absolute;
  top: 20px;
  left: 140px; /* Alignement à droite du carré */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* ✅ permet de passer à la ligne si pas assez de place */
  gap: 20px;
  max-width: calc(100vw - 160px); /* ✅ empêche les boutons de dépasser l'écran */
}

.btn-portfolio {
  position: relative;
  width: 200px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  background: none;
  z-index: 1;
}

.btn-portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 50px;
  background: #ccc;
  clip-path: polygon(
    0 0,
    200px 0,
    200px 30px,
    180px 50px,
    0 50px
  );
  z-index: -2;
}

.btn-portfolio::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 196px;
  height: 46px;
  background: #000;
  clip-path: polygon(
    0 0,
    196px 0,
    196px 28px,
    176px 46px,
    0 46px
  );
  z-index: -1;
}

