@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap");

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Syne", sans-serif;
  background-color: #0a0a0a;
  color: #f5f5f5;
  overflow-x: hidden;
}

.home {
  display: flex;
  justify-content: center;
  min-height: 100vh;

  background-image: url("../img/fondlohanvapaille.jpg");
  /* background-image: url('img/8sRg.gif');  */
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  position: relative;
}

.animated-ball {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at center,
    rgba(9, 224, 224, 0.7),
    transparent
  );
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatBall 12s ease-in-out infinite;
  filter: blur(100px);
}

@keyframes floatBall {
  0% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-30px) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

nav {
  position: relative;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* 80% noir */
  z-index: 0;
}

.contact {
  background-image: url("../img/fondcontact.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

@media (max-width: 768px) {
  .contact {
    background-image: none;
  }
}

.menu-tel {
  display: none;
  position: absolute;
  top: 65px;
  left: 0;
  width: 100vw;
  height: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.menu-tel a {
  display: flex;
  background-color: #0a0a0a;
  width: 100vw;
  justify-content: center;
  padding: 20px;
  margin: auto;
}

.nav-link {
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #56dfdc;
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.project-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: linear-gradient(145deg, #1a1a1a 0%, #121212 100%);
  border: 1px solid #333;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 25px -5px rgba(212, 175, 55, 0.1),
    0 10px 10px -5px rgba(212, 175, 55, 0.04);
  border-color: #56dfdc;
}

.contact-nav {
  transition: all 0.3s ease;
  background-color: #56dfdc;
}
.contact-nav:hover {
  background-color: #0a0a0a;
  color: white;
}

.gold-text {
  color: #56dfdc;
}

.gold-border {
  border-color: #56dfdc;
}

.gold-bg {
  background-color: #56dfdc;
}

.profile-img {
  border: 3px solid #56dfdc;
  box-shadow: 0 0 20px rgba(126, 245, 243, 0.5);
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.typewriter {
  overflow: hidden;
  padding: 0px;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation:
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #56dfdc;
  }
}

.glow {
  text-shadow: 0 0 10px rgba(126, 245, 243, 0.5);
}

.social-icon {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: #56dfdc;
}

.minia {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.break-words {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.techno {
  height: 70px;
  margin-bottom: 10px;
}

.description {
  min-height: 120px;
}

.agrandit-fluide {
  transition: all ease-in-out 0.2s;
}
.agrandit-fluide:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.popup {
  height: auto;
  width: 400px;
  padding: 20px;
  z-index: 20;
  background-color: #cec9c9;
  bottom: 10px;
  right: 10px;
  position: fixed;
  display: flex;
  flex-direction: column;
  border-radius: 20px; /* Idéal pour une forme de bulle ! */
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .popup {
    width: 85%;
    margin: 0 auto;
  }

  .openpopup {
    margin: auto;
  }
}

.popup .content {
  margin: auto;
  text-align: center;
  margin-bottom: 20px;
  color: #0a0a0a;
}

.popup .fermer {
  background-color: #cec9c9 !important;
  border: 2px solid #4338ca !important;
  color: rgb(29, 28, 28) !important;
  padding: 10px 20px;
}

.btnlova {
  background-color: #4338ca !important;
  border: 2px solid #4338ca !important;
  color: rgb(247, 245, 245) !important;
  padding: 10px 20px;
}

.popup h2 {
  margin-bottom: 5px;
  color: #4338ca;
  font-size: 1.2rem;
}

.boutonspopups {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

/* --- L'ÉTAT FERMÉ (Réduit) --- */
.popup.is-closed {
  bottom: 20px !important;
  right: 20px !important;
  padding: 5px !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.popup.is-closed button {
  border-radius: 50% !important; /* Force une forme ronde pour la bulle */
  width: 60px !important;
  height: 60px !important;
  background-color: #4338ca !important;
}

/* Gestion du contenu selon l'état */
.popup.is-closed .popup-body {
  display: none !important; /* Masque tout le bloc texte + bouton fermer */
}

/* Force l'apparition de la bulle et écrase le 'hidden' de Tailwind */
.popup.is-closed .openpopup {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

h2,
h1 {
  font-family: "Baumans", system-ui;
}

.popup a {
  margin-top: 20px;
  margin: auto;
}

.moi_contact {
  height: 450px;
}

@media (max-width: 768px) {
  /* Ton code ici */
  .reseau {
    display: none;
  }

  .home {
    background-image: none;
  }

  .animated-ball {
    display: none;
  }
}

.poster {
  margin: 0;
  padding: 0;
}

.poster span {
  display: inline-block;
  transform-origin: bottom;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* On décale de la moitié car on a doublé les icônes */
}

.animate-scroll {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite; /* Ajuste '30s' pour la vitesse */
}

/* Pause au survol pour que l'utilisateur puisse regarder */
.animate-scroll:hover {
  animation-play-state: paused;
}

/* S'applique uniquement aux écrans de moins de 768px (mobiles) */
@media (max-width: 768px) {
  #home {
    /* On augmente le padding-bottom pour laisser de la place aux logos */
    padding-bottom: 120px !important;
  }

  .home .max-w-7xl {
    /* On s'assure que le contenu ne se marche pas dessus */
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .animate-scroll {
    animation: scroll 30s linear infinite; /* Ajuste '30s' pour la vitesse */
  }
}
