.intro-tile .down-arrow {
  position: absolute;
  bottom: 2rem;
  color: #0ff;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  margin-left:-1rem;
}

.intro-tile .down-arrow i {
  stroke: #0ff;
  stroke-width: 2.5;
  width: 2.5rem;
  height: 2.5rem;
}


.animated-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s forwards;
}

.animated-text span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
  animation: letterFade 0.5s forwards;
  animation-delay: calc(var(--i) * 50ms);
}

@keyframes letterFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#intro-tiles.closing {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(8px);
  transition: all 0.8s ease;
  pointer-events: none;
}
.page-wrapper.blur {
  filter: blur(5px);
  transition: filter 0.8s ease;
}

.swipe-hint {
  position: absolute;
  bottom: 1.5rem;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  opacity: 0.6;
}

.animated-text {
  font-size: 1.8rem; /* augmente selon ton goût */
  line-height: 1.4;
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

.animated-text {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.intro-tile > div {
  max-width: 90%;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.animated-text .word {
  display: inline-block;
  white-space: nowrap;
}

#intro-orb-background-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

#orb-background {
  width: 100%;
  height: 100%;
  display: block;
}

#intro-orb-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.intro-tile {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 30, 30, 0.2); /* assombri mais semi-transparent */
  background-image: url('../images/voronoi-pattern.png');
  background-size: 200px 200px; /* ↩️ petite texture répétée */
  background-repeat: repeat;
  background-position: center;
  background-blend-mode: overlay; /* ou try: soft-light, multiply */
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(2px); /* optionnel pour fond plus diffus */
}


.icon-word span {
  animation-duration: 1.5s !important;
  animation-delay: calc(var(--i) * 100ms) !important;
}

.icon-word img {
  width: 3rem;                     /* ← plus grand */
  height: 3rem;
  vertical-align: middle;
  display: inline-block;
  animation: iconFade 1.2s ease forwards;
  animation-delay: calc(var(--i) * 100ms);
  opacity: 0;
  transform: translateY(20px);

  filter: brightness(0) invert(1); /* ⬅️ rend l’image blanche */
}


/* animation spéciale pour icônes */
@keyframes iconFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-icon {
  width: 2rem;
  height: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: iconFade 1.2s ease forwards;
  animation-delay: calc(var(--i) * 100ms);
  vertical-align: middle;
  display: inline-block;
  filter: none;            /* ⬅️ Supprime les ombres */
  fill: white;             /* ⬅️ Force le SVG en blanc (si inline ou bien paramétré) */
}


@keyframes iconFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes iconFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orb-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.icon-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.svg-icon:nth-child(1) { animation-delay: 0.1s; }
.svg-icon:nth-child(2) { animation-delay: 0.3s; }
.svg-icon:nth-child(3) { animation-delay: 0.5s; }

@keyframes iconPop {
  from {
    transform: scale(0.7) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.animated-text span {
  animation-delay: calc(var(--i) * 50ms);
}

.logo-row img {
  width: 150px;
  height: auto;
  max-width: 100%;
  filter: brightness(1.1) drop-shadow(0 0 6px #0ff);
}

.hidden-text {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(1); /* ✅ Ne pas l’écraser avec scale(0.3) */
  transition: opacity 1s ease;
}

.logo-row.visible {
  opacity: 1;
  visibility: visible;
}

/* Animation d’apparition en agrandissement */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-row.visible {
  animation: zoomIn 0.8s ease-out forwards;
}

/* Réserve l’espace du logo */
.logo-container {
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

/* Logo invisible au départ, mais prend sa place */
#logo-img {
  width: 150px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Quand on passe .visible, on fait juste fondre et agrandir */
#logo-img.visible {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1.2) drop-shadow(0 0 6px #0ff);
}

/* Le second texte, idem : on prépare son container et on part de opacity: 0 */
#second-intro-text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Quand visible */
#second-intro-text.visible {
  opacity: 1;
  transform: translateY(0);
}


/* on retire toute animation automatique */
#second-intro-text {
  opacity: 0;
  transform: translateY(10px);
  /* on vire l’animation fadeUp */
  animation: none !important;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* dès qu’on ajoute la classe visible, on le fait apparaître */
#second-intro-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Réservé au logo de la tile-1 */
.tile-1 #logo-img {
  width: 170px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.tile-1 #logo-img.visible {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1.2) drop-shadow(0 0 6px #0ff);
}

/* L'image de la tile-2 n'est PAS cachée par défaut */
.tile-2 .tile2-img {
  width: 200px;
  height: auto;
  opacity: 1;      /* visible par défaut */
  transform: none;
  margin-bottom: 2rem;
}

.tile-3 .tile3-img {
  width: 200px;
  height: auto;
  opacity: 1;      /* visible par défaut */
  transform: none;
  margin-bottom: 2rem;
}

.tile-4 .tile4-img {
  width: 200px;
  height: auto;
  opacity: 1;      /* visible par défaut */
  transform: none;
  margin-bottom: 2rem;
}