/* Fichier dédié aux animations fluides (Apple-like) */

/* 1. Animation d'entrée : l'œil qui grandit puis disparaît */
.eye-intro-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: fadeOutContainer 0.8s ease-in-out 1.5s forwards;
}

.eye-intro-svg {
  width: 100px;
  height: 100px;
  animation: eyeScaleUp 1.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s forwards;
}

@keyframes eyeScaleUp {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(150);
    opacity: 0;
  }
}

@keyframes fadeOutContainer {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* 2. Micro-animations : Transition fluide pour les grilles/carrousels (Page Projets) */
/* On ajoute une transition sur flex/grid pour rendre le changement plus doux. */
.portfolio-grid-transition {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Animation du "+" vers "-" sur la page projets */
.voir-tout-text {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.voir-tout-text.is-open {
  transform: rotate(180deg);
}

/* Animation douce au survol des offres */
.hover-smooth {
  transition: background-color 0.4s ease, transform 0.4s ease;
}
