/* Import de la police Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

/* Base */
body {
  font-family: 'Inter', sans-serif;
  background-color: #000000;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Utilitaires pour masquer la scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animations Globales */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.animate-fadeIn {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Classes utilitaires personnalisées */
.glass-panel {
  background-color: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.text-apple-font {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #00f2ea, #ff0050);
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #e5e5e5;
  transform: scale(1.02);
}

/* Gestion de l'affichage des étapes du générateur */
.hidden {
  display: none !important;
}

/* Header: Floating Glass iOS Style */
header {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 2rem);
  max-width: 1100px;
  box-sizing: border-box;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Step Transitions */
.step-container {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.step-container.inactive {
  display: none !important;
}

.step-container.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.step-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Animation classes */
@keyframes growX {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.animate-growth {
  transform-origin: left;
  animation: growX 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.8));
  }
}

.animate-arrow {
  animation: arrowBounce 1s infinite ease-in-out;
}

.animate-glow-pulse {
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.animate-slide-down {
  animation: slideDownIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- PREMIUM SLIDER DESIGN --- */
.slider-wrapper {
  position: relative;
  padding: 1.5rem 0;
}

.slider-container {
  position: relative;
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* The neon track background */
.slider-track-bg {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  z-index: 1;
}

/* The glowing progress fill */
.slider-progress-fill {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  width: calc(100% - 3rem);
  height: 8px;
  background: linear-gradient(90deg, #00f2ea 0%, #ff0050 100%);
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* Visual Glow effect around the fill */
.slider-progress-fill::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  background: inherit;
  filter: blur(10px);
  opacity: 0.3;
  border-radius: 8px;
  z-index: -1;
}

/* Hidden real input - spans the container padding for interaction */
input[type=range].premium-range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 3rem);
  height: 48px;
  background: transparent;
  outline: none;
  margin: 0;
  z-index: 10;
  cursor: pointer;
}

/* Thumb Styling - Webkit */
input[type=range].premium-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 15l5 5 5-5'/%3E%3Cpath d='M7 9l5-5 5 5'/%3E%3C/svg%3E");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type=range].premium-range:active::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.15);
}

/* Thumb Styling - Firefox */
input[type=range].premium-range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 15l5 5 5-5'/%3E%3Cpath d='M7 9l5-5 5 5'/%3E%3C/svg%3E");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type=range].premium-range:active::-moz-range-thumb {
  transform: scale(1.1);
}


input[type=range]:focus {
  outline: none;
}

/* Global Overflow Fix */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* FAQ Transition */
.faq-answer {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-answer.open {
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotate {
  transform: rotate(180deg);
}

/* Multi-step Generator Styles */
.step-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100%;
}

.step-container.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.step-container.inactive {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

/* Mobile Fixes */
@media (max-width: 640px) {
  .glass-panel {
    width: 100%;
    overflow-x: hidden;
  }

  input[type=range] {
    height: 6px;
  }

  .loader-circle {
    width: 100px;
    height: 100px;
  }
}

/* Circular Loader */
.loader-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00f2ea;
  animation: spin 1s linear infinite;
}

/* Verification Card */
.app-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.app-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background-color: #10B981;
  /* green-500 */
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.waiting {
  background-color: #FBBF24;
  /* yellow-400 */
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* --- LIVE NOTIFICATION BANNER --- */
.notification-banner {
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 20;
}

.notification-track {
  display: flex;
  white-space: nowrap;
  gap: 40px;
  padding: 0 20px;
  animation: scrollInfinite 80s linear infinite;
  will-change: transform;
}

.notification-banner:hover .notification-track {
  animation-play-state: paused;
}

.notification-item {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 15px;
}

.notification-item strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.notification-separator {
  color: rgba(255, 255, 255, 0.2);
}

@keyframes scrollInfinite {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .notification-banner {
    height: 40px;
  }

  .notification-item {
    font-size: 0.75rem;
  }
}

/* 404 Page Animations */
@keyframes orbFloatOne {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -50px) rotate(10deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes orbFloatTwo {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-30px, 50px) rotate(-10deg);
  }

  66% {
    transform: translate(20px, -20px) rotate(5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.animate-orb-one {
  animation: orbFloatOne 10s ease-in-out infinite;
}

.animate-orb-two {
  animation: orbFloatTwo 12s ease-in-out infinite reverse;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
  }

  60% {
    opacity: 1;
    transform: scale(1.1) translateY(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-popIn {
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatGeneric {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: floatGeneric 6s ease-in-out infinite;
}