@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  height: 100vh;
  background-color: #282343;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  font-family: 'Playfair Display', serif;
}

.version-info {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 3;
  pointer-events: none;
}

.light {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.light-violet {
  left: 0;
  background: radial-gradient(ellipse at top left, rgba(114, 95, 177, 1) 0%, rgba(114, 95, 177, 0) 60%);
  opacity: 0.8;
}

.light-orange {
  right: 0;
  background: radial-gradient(ellipse at top right, rgba(181, 113, 114, 1) 0%, rgba(181, 113, 114, 0) 60%);
  opacity: 0.8;
}

canvas#staticNetwork {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  filter: blur(8px);
}

canvas#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: white;
}

.title {
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 20px;
  max-width: 90vw;
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line {
  font-size: 1.8rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  display: flex;
}

.char {
  opacity: 0;
  animation: showChar 0.05s forwards;
}

.line1 .char {
  animation-delay: calc(var(--i) * 0.05s);
}

.line2 .char {
  animation-delay: calc(var(--i) * 0.05s + 1.5s);
}

.cursor {
  opacity: 0;
  font-weight: bold;
  margin-left: 5px;
  animation: blink 0.8s step-end infinite;
}

@keyframes showChar {
  to { opacity: 1; }
}

@keyframes blink {
  50% { opacity: 1; }
}

.redirect-button {
  margin-top: 40px;
  padding: 12px 24px;
  font-size: 1.2rem;
  color: white;
  background-color: #b57172;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.redirect-button:hover {
  background-color: #a05e60;
  transform: scale(1.05);
}

/* SOCIAL ICONS */
.social-nav.fixed-bottom-left {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
}

.social-nav.fixed-bottom-left a {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  opacity: 0.5;
}

.social-nav.fixed-bottom-left a:hover {
  transform: scale(1.3);
  opacity: 1;
}

.social-nav.fixed-bottom-left a:hover i {
  transform: scale(1.3);
}

.social-nav.fixed-bottom-left i {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover colors */
.facebook:hover i  { color: #006eff; }
.twitter:hover i   { color: #0ca2ff; }
.instagram:hover i { color: #db0b51; }
.linkedin:hover i  { color: #005f93; }
.github:hover i    { color: #000000; }
.whatsapp:hover i  { color: #25D366; }
.tiktok:hover i    { color: #ff0050; }

/* Animation apparition */
@keyframes slideFadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 0.5; }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .title {
    font-size: 3.5rem;
    line-height: 1.2;
    padding: 0 10px;
  }

  .social-nav.fixed-bottom-left {
    flex-direction: row;
    left: 10px;
    right: 10px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    bottom: 60px; /* évite le chevauchement avec .version-info */
  }

  .social-nav.fixed-bottom-left a {
    font-size: 24px;
  }
}
