/* ========================================
   BOBOTEL 31 — Custom Styles
   Dark Premium Theme
   ======================================== */

/* Self-hosted fonts — eliminates render-blocking CDN requests */
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/clash-display-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/clash-display-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/clash-display-700.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Noise texture overlay */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Glassmorphism navbar */
.nav-glass {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-solid {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(192, 0, 0, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #c00000, #ff1a1a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effects */
.glow-red {
  box-shadow: 0 0 30px rgba(192, 0, 0, 0.3);
}

.glow-red-hover:hover {
  box-shadow: 0 0 40px rgba(192, 0, 0, 0.4);
}

/* Button gradient */
.btn-gradient {
  background: linear-gradient(135deg, #c00000, #ff1a1a);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(192, 0, 0, 0.5);
}

/* Card hover */
.card-hover {
  transition: border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hover:hover {
  border-color: rgba(192, 0, 0, 0.3);
  box-shadow: 0 0 40px rgba(192, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Hero text animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero {
  animation: fadeSlideUp 0.8s ease-out forwards;
}

.animate-hero-lcp {
  animation: slideUpOnly 0.6s ease-out 0.1s forwards;
  transform: translateY(20px);
}

@keyframes slideUpOnly {
  to { transform: translateY(0); }
}

.animate-hero-delay-1 {
  animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-hero-delay-2 {
  animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.animate-hero-delay-3 {
  animation: fadeSlideUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

/* Rotating text */
@keyframes rotateText {
  0%, 18% { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(-10px); }
}

.rotate-word {
  position: absolute;
  opacity: 0;
  animation: rotateText 10s infinite;
}

.rotate-word:nth-child(2) { animation-delay: 2s; }
.rotate-word:nth-child(3) { animation-delay: 4s; }
.rotate-word:nth-child(4) { animation-delay: 6s; }
.rotate-word:nth-child(5) { animation-delay: 8s; }

/* Scroll indicator */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

/* Red line decorative */
.red-line::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #c00000, #ff1a1a);
  margin-top: 16px;
}

.red-line-center::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #c00000, #ff1a1a);
  margin: 16px auto 0;
}

/* Pricing table */
.pricing-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.pricing-row:hover {
  background: rgba(192, 0, 0, 0.05);
}

/* Mobile menu overlay */
.mobile-menu {
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0.4s;
  background: #0a0a0a;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s;
}

/* Body scroll lock when menu open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(192, 0, 0, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c00000;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #c00000;
  outline-offset: 2px;
}

/* Tab active state */
.tab-active {
  color: #fff;
  border-color: #c00000;
  background: rgba(192, 0, 0, 0.1);
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 639px) {
  /* Tab buttons - plus compacts sur mobile */
  .tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Pricing rows - empêcher débordement */
  .pricing-row {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0.5rem;
  }
  .pricing-row .text-base {
    font-size: 0.8125rem;
  }

  /* Réduire les sections padding */
  section.py-20 { padding-top: 3rem; padding-bottom: 3rem; }
  section.py-24 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
