@import "tailwindcss";

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Stack Sans", sans-serif;
  background-color: #e7edf7;
}

a {
  font-family: "Stack Sans", sans-serif;
  font-weight: 200;
  font-size: 1rem;
  line-height: 1.2;
}

h1 {
  font-family: "Stack Sans", sans-serif;
  font-weight: 200;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
#typewriter {
  color: #0a0a16;
  font-weight: 700;
}

#cursor {
  color: #0a0a16;
  animation: blink 1s linear infinite;
}

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

/* Navbar Styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem 2rem;
  margin: 1.5rem auto;
  max-width: 1200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: "Stack Sans", sans-serif;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.navbar-links a {
  color: #0a0a16;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: #333;
}

.navbar-cta {
  background-color: #0a0a16;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Stack Sans", sans-serif;
}

.navbar-cta:hover {
  background-color: #1a1a26;
}

.shadow-custom {
  box-shadow: 0px 4px 40px 0 rgba(10, 10, 22, 0.16);
}
/* effet de halo pulsant (box-shadow animé) */
@keyframes green-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8);
  }
  60% {
    box-shadow: 0 0 18px 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.glow {
  animation: green-glow 1.8s ease-out infinite;
}

/* variante plus douce (continu) */
.soft-halo {
  box-shadow: 0 0 10px 2px rgba(34, 197, 94, 0.25);
}

@keyframes logos-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Appliquer l'animation ; ajustez la durée pour la vitesse (ici 30s = lent) */
.logo-track {
  animation: logos-scroll 15s linear infinite;
}

/* Respecter la préférence réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

.transition-max-height {
  transition-property: max-height;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.border-slate-custom {
  border-color: #0a0a16;
}

/* Ajouter ces règles pour l'effet de dégradé aux bords */
.logo-carousel-mask {
  /* Assurez-vous que l'élément a une position relative */
  position: relative;
}

.logo-carousel-mask::before,
.logo-carousel-mask::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 10%; /* Ajustez cette largeur pour contrôler l'étendue du dégradé */
  z-index: 10; /* Assurez-vous qu'il est au-dessus des logos */
  pointer-events: none; /* Permet d'interagir avec ce qui est en dessous */
}

/* Dégradé à gauche (de #000 à transparent) */
.logo-carousel-mask::before {
  left: 0;
  background: linear-gradient(
    to right,
    #e7edf7 0%,
    rgba(231, 237, 247, 0) 100%
  );
}

/* Dégradé à droite (de transparent à #000) */
.logo-carousel-mask::after {
  right: 0;
  background: linear-gradient(to left, #e7edf7 0%, rgba(231, 237, 247, 0) 100%);
}

/* Optionnel : cacher le dégradé sur les très petits écrans si vous le souhaitez */
@media (max-width: 640px) {
  .logo-carousel-mask::before,
  .logo-carousel-mask::after {
    width: 5%;
  }
}
