@layer base {
  html, body {
    margin: 0;
    padding: 0;
  }

  body {
    overscroll-behavior: none;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }
}

::-webkit-scrollbar {
  display: none;
}

/* Scroll Entrance Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Floating Confetti / Rose particles */
@keyframes particleFly {
  0% { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 1; }
  50% { opacity: 1; }
  100% { transform: translate(var(--tx, 40px), var(--ty, -120px)) scale(1.1) rotate(var(--tr, 180deg)); opacity: 0; }
}

.rose-particle {
  position: absolute;
  pointer-events: none;
  animation: particleFly 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  z-index: 60;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(226, 4, 120, 0.25); }
  50% { box-shadow: 0 0 35px rgba(254, 131, 27, 0.4); }
}

.animated-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Bottom-line inputs & floating labels */
.tt-line-field {
  position: relative;
  padding-top: 1rem;
  border-bottom: 1.5px solid #dedae8;
  transition: border-color 0.2s ease;
}

.dark .tt-line-field {
  border-bottom-color: #2a2938;
}

.tt-line-field:hover,
.tt-line-field:focus-within {
  border-bottom-color: #25F4EE;
}

.tt-line-input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0.35rem 0 0.4rem 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #111118;
  -moz-appearance: textfield;
}

.dark .tt-line-input {
  color: #ffffff;
}

.tt-line-input::-webkit-outer-spin-button,
.tt-line-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tt-line-input:focus {
  outline: none;
  box-shadow: none;
}

.tt-floating-label {
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #716e82;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), font-size 0.2s ease, color 0.2s ease;
}

.dark .tt-floating-label {
  color: #8e8ca0;
}

.tt-line-field:hover .tt-floating-label {
  color: #0e7490;
}

.dark .tt-line-field:hover .tt-floating-label {
  color: #25F4EE;
}

.tt-line-field:focus-within .tt-floating-label,
.tt-line-input:not(:placeholder-shown) + .tt-floating-label,
.tt-floating-label.is-active {
  transform: translateY(-1.05rem);
  font-size: 0.625rem;
  font-weight: 700;
  color: #0e7490;
}

.dark .tt-line-field:focus-within .tt-floating-label,
.dark .tt-line-input:not(:placeholder-shown) + .tt-floating-label,
.dark .tt-floating-label.is-active {
  color: #25F4EE;
}



/* Queues d'infobulles orientées vers le selfie de Célestine */
.celestine-selfie-bubble {
  position: relative;
  animation: bubbleFloat 4.2s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.celestine-selfie-bubble:nth-of-type(1) { animation-delay: 0s; }
.celestine-selfie-bubble:nth-of-type(2) { animation-delay: 0.7s; }
.celestine-selfie-bubble:nth-of-type(3) { animation-delay: 1.4s; }
.celestine-selfie-bubble:nth-of-type(4) { animation-delay: 2.1s; }

@media (min-width: 640px) {
  .celestine-bubble-tl::after,
  .celestine-bubble-tr::after,
  .celestine-bubble-bl::after,
  .celestine-bubble-br::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffffff;
    transform: rotate(45deg);
    z-index: -1;
  }

  /* Haut gauche -> pointe vers bas droite */
  .celestine-bubble-tl::after {
    bottom: -6px;
    right: 26px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Haut droite -> pointe vers bas gauche */
  .celestine-bubble-tr::after {
    bottom: -6px;
    left: 26px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Bas gauche -> pointe vers haut droite */
  .celestine-bubble-bl::after {
    top: -6px;
    right: 26px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Bas droite -> pointe vers haut gauche */
  .celestine-bubble-br::after {
    top: -6px;
    left: 26px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

@keyframes bubbleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes bubblePopSwitch {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
  }
  65% {
    opacity: 1;
    transform: scale(1.04) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0px);
  }
}

.bubble-pop-in {
  animation: bubblePopSwitch 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}