/* ==========================================================================
   GertheFlotte - Style Premium de la Landing Page (Refonte 2026)
   Alignement complet sur la charte Ambre / Or (#FBBF24) & Premium SaaS
   ========================================================================== */

/* --- Animations Fondamentales --- */

/* Effet Ken Burns fluide pour l'image Hero */
@keyframes kenburns {
  0% {
    transform: scale(1.08) translate(0, 0);
    filter: brightness(0.8) contrast(1.1) saturate(0.9);
  }
  50% {
    transform: scale(1.18) translate(-1%, -0.5%);
    filter: brightness(0.9) contrast(1.15) saturate(1);
  }
  100% {
    transform: scale(1.08) translate(0, 0);
    filter: brightness(0.8) contrast(1.1) saturate(0.9);
  }
}

.animate-kenburns {
  animation: kenburns 20s ease-in-out infinite;
}

/* Apparition progressive (Fade In Up) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Défilement horizontal infini (Marquee) pour les logos */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* --- Gradients et Lueurs Premium --- */

.hero-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.06) 0%, transparent 60%);
}
.dark .hero-gradient {
  background: radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 60%);
}

.text-gradient-bg {
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Lueur ambre discrète */
.glow-amber {
  box-shadow: 0 0 50px -10px rgba(251, 191, 36, 0.12);
}
.dark .glow-amber {
  box-shadow: 0 0 60px -5px rgba(251, 191, 36, 0.22);
}

.gold-glow-hover:hover {
  box-shadow: 0 20px 40px -15px rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3) !important;
}
.dark .gold-glow-hover:hover {
  box-shadow: 0 20px 40px -10px rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.4) !important;
}

/* --- Mockup de Navigateur Web Premium --- */

.browser-mockup {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08), 0 15px 30px -10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .browser-mockup {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0f172a;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 50px 0 rgba(251, 191, 36, 0.02);
}

.browser-bar {
  display: flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  background: #f8fafc;
  border-b: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .browser-bar {
  background: #0f172a;
  border-b: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-btn {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.browser-btn.red { background: #ef4444; }
.browser-btn.yellow { background: #f59e0b; }
.browser-btn.green { background: #10b981; }

.browser-address {
  flex-grow: 1;
  max-width: 32rem;
  margin: 0 auto;
  height: 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dark .browser-address {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

/* --- Mockup de Smartphone Premium (CSS Pur) --- */

.phone-mockup {
  position: relative;
  width: 250px;
  height: 500px;
  border-radius: 2.5rem;
  border: 10px solid #0f172a;
  background: #000000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

.dark .phone-mockup {
  border-color: #1e293b;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(251, 191, 36, 0.1);
}

.phone-speaker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #0f172a;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  z-index: 50;
}
.dark .phone-speaker {
  background: #1e293b;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Glassmorphism & Cards --- */

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-card-popular {
  position: relative;
}
.price-card-popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #FBBF24, #D97706);
  border-radius: 2.5rem;
  z-index: -1;
  animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; filter: brightness(1.2); }
}

/* --- Scroll Reveal Custom --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* --- PWA Install Tutorial Custom Badge & Pulse --- */
@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 10px 4px rgba(251, 191, 36, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.pwa-pulse-button {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* --- Ajustements Responsive & Généraux --- */

.hero-text-shadow {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
}

@media (max-width: 1024px) {
  .hero-image-container img {
    object-position: 75% center !important;
    height: 100% !important;
    width: auto !important;
    min-width: 100vw !important;
  }
}

.hero-image-container img {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity;
}

.hero-image-light {
  opacity: 1 !important;
  z-index: 1;
}

.hero-image-dark {
  opacity: 0 !important;
  z-index: 2;
}

html.dark .hero-image-light {
  opacity: 0 !important;
}

html.dark .hero-image-dark {
  opacity: 1 !important;
}
