/* Base CSS - thème sombre simple pour axel_base_project */

@font-face {
  font-family: "CreatoDisplay";
  src: url("../font/CreatoDisplay-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #0f172a;
  /* bleu nuit */
  color: #e5e7eb;
  /* gris clair */
  line-height: 1.5;
}

#particles-js {
  position: fixed;
  /* Fixed so it stays when scrolling, though index page might not scroll */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  /* Behind everything */
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.card {
  background-color: #111827;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.8),
    0 10px 10px -5px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: linear-gradient(to right, #0f172a, #020617);
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(15, 118, 110, 0.15);
  color: #5eead4;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.welcome-text {
  font-family: "CreatoDisplay", system-ui, sans-serif;
  font-weight: 100;
  font-size: 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* Index: texte centré + curseur clignotant */
body.index-page {
  display: grid;
  place-items: center;
}

.index-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
}

.index-title {
  font-family: "CreatoDisplay", system-ui, sans-serif;
  font-weight: 100;
  font-size: clamp(1.5rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  white-space: nowrap;
}

.index-cursor {
  display: inline-block;
  width: 0.16em;
  /* plus fin */
  height: 5.5em;
  /* un peu plus haut */
  background: currentColor;
  transform: none;
}

/* Clignote uniquement quand on ajoute cette classe (à la fin du typewriter) */
.index-cursor.index-cursor--blink {
  animation: index-cursor-blink 1s steps(1, end) infinite;
}

@keyframes index-cursor-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .index-cursor {
    height: 4em;
  }
}