/* Qoov - Common styles extracted from inline blocks */

/* Animations */
@keyframes slideUpBlur {
  0% { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.animate-enter { animation: slideUpBlur 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Card hover */
.card-lift { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card-lift:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(27, 16, 51, 0.15); }

/* Navbar scroll effect */
.nav-scrolled { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.gradient-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; pointer-events: none; }

/* Navigation dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 240px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; transform: translateX(-50%) translateY(12px); }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown-menu:hover { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(8px); }
.nav-dropdown-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }

/* Mobile menu accordion */
.mob-open .mob-panel { max-height: 300px; padding-top: 8px; padding-bottom: 4px; }
.mob-open .mob-chevron { transform: rotate(180deg); }

/* Marquee */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marquee-reverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.marquee-track { display: flex; width: max-content; animation: marquee 25s linear infinite; will-change: transform; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track-reverse { display: flex; width: max-content; animation: marquee-reverse 30s linear infinite; will-change: transform; }
.marquee-track-reverse:hover { animation-play-state: paused; }
.marquee-container { overflow: hidden; width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }

/* Service tabs */
.svc-tab-content { display: none; }
.svc-tab-content.active { display: block; }

/* Service cards */
.service-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover { background: #F0EBE5; border-color: rgba(229,221,213,0.5); transform: translateY(-4px); }
.service-card .card-arrow { transition: all 0.3s ease; }
.service-card:hover .card-arrow { transform: translate(2px, -2px); }
.service-card .card-number { position: absolute; top: -10px; right: 12px; font-size: 7rem; font-weight: 800; line-height: 1; color: rgba(0,0,0,0.03); pointer-events: none; }

/* Hero animations */
@keyframes sonarWave {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes cardEnter {
  0% { opacity: 0; transform: scale(0.95) translateX(20px); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatYSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
.sonar-ring { animation: sonarWave 2s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.card-active { display: block; animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; z-index: 10; }
.card-hidden { display: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.float-badge { animation: floatY 4s ease-in-out infinite; }
.float-badge-slow { animation: floatYSlow 5s ease-in-out infinite; }
.float-badge-delay { animation: floatY 4.5s ease-in-out 1s infinite; }
.float-badge-delay2 { animation: floatYSlow 5.5s ease-in-out 0.5s infinite; }
.blob-animate { animation: blobFloat 8s ease-in-out infinite; }

/* Hero shimmer & effects */
@keyframes pulsePlay {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255,255,255,0); }
}
.animate-pulse-play { animation: pulsePlay 2s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes gentlePulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes particleFloat { 0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-120px) translateX(30px) scale(0.5); opacity: 0; } }
@keyframes gridPulse { 0%, 100% { opacity: 0.03; } 50% { opacity: 0.08; } }
@keyframes textGlow { 0%, 100% { text-shadow: 0 0 20px rgba(168,212,245,0); } 50% { text-shadow: 0 0 40px rgba(168,212,245,0.3); } }
.hero-shimmer { background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%); background-size: 200% 100%; animation: shimmer 3s ease-in-out infinite; }
.hero-glow { animation: textGlow 4s ease-in-out infinite; }
.hero-particle { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; animation: particleFloat 6s ease-in-out infinite; pointer-events: none; }
.hero-grid { background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 60px 60px; animation: gridPulse 6s ease-in-out infinite; }

/* Form selection states (creer-mon-site) */
.offer-card.selected { border-color: #e8453c; box-shadow: 0 0 0 3px #e8453c26; }
.style-card.selected { border-color: #e8453c; background: #e8453c0d; }
.color-circle.selected { box-shadow: 0 0 0 3px currentColor; transform: scale(1.15); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.page-chip.selected { border-color: #e8453c; background: #e8453c; color: #fff; }
.feature-card.selected { border-color: #e8453c; background: #e8453c0d; }
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.check-pop { animation: checkPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Blog article typography */
.article-content { color: #4b5563; line-height: 1.75; }
.article-content p { margin-bottom: 1.25em; }
.article-content h2 { color: #111827; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 2.5em; margin-bottom: 1em; line-height: 1.3; }
.article-content h3 { color: #111827; font-size: 1.25rem; font-weight: 700; margin-top: 2em; margin-bottom: 0.75em; line-height: 1.4; }
.article-content h4 { color: #111827; font-size: 1.1rem; font-weight: 600; margin-top: 1.5em; margin-bottom: 0.5em; }
.article-content strong { color: #111827; font-weight: 600; }
.article-content a { color: #e8453c; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #d03a32; }
/* Button-style links (CTAs) inside article body: keep their own colors */
.article-content a.rounded-full { text-decoration: none; }
.article-content a.text-white,
.article-content a.text-white:hover { color: #fff; }
.article-content a.text-gray-700 { color: #374151; }
.article-content a.text-gray-700:hover { color: #1f2937; }
.article-content ul, .article-content ol { margin-bottom: 1.25em; padding-left: 1.5em; display: flex; flex-direction: column; gap: 0.5em; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { padding-left: 0.25em; }
.article-content blockquote { border-left: 4px solid #e8453c; padding: 1em 1.5em; margin: 1.5em 0; background: #faf7f4; border-radius: 0 0.75rem 0.75rem 0; font-style: italic; color: #374151; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.875rem; }
.article-content thead { background: #f9fafb; }
.article-content th { padding: 0.75em 1em; text-align: left; font-weight: 600; color: #111827; border-bottom: 2px solid #e5e7eb; }
.article-content td { padding: 0.75em 1em; border-bottom: 1px solid #f3f4f6; }
.article-content tbody tr:hover { background: #f9fafb; }
.article-content img { border-radius: 0.75rem; margin: 1.5em 0; }
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }
/* Zero out heading top-margin when it is the first child of a section block,
   so it doesn't stack on top of the section's own padding. */
.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child { margin-top: 0; }
@media (min-width: 768px) {
  .article-content h2 { font-size: 1.75rem; }
  .article-content h3 { font-size: 1.375rem; }
}

/* WhatsApp brand color (Tailwind arbitrary value text-[#25D366] ne marche pas
   avec le tailwind.min.css précompilé local, donc on déclare la classe ici). */
.text-whatsapp { color: #25D366; }
.hover\:text-whatsapp:hover { color: #25D366; }

/* Centre d'aide — modal et bouton scroll-top : le JS toggle .active / .visible
   mais ces classes n'existent dans aucun build Tailwind, donc on les déclare
   explicitement. Sans ça, le modal reste affiché en permanence et bloque la page. */
#guide-modal { display: none; }
#guide-modal.active { display: block; }
#scroll-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Centre d'aide — accordion FAQ : collapsed par défaut, déroulé quand .open */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer {
  max-height: 800px;
}
.faq-chevron {
  transition: transform 0.25s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: #d4d2cf;
}
.faq-item.open {
  border-color: #E8453C;
  box-shadow: 0 4px 16px -8px rgba(232, 69, 60, 0.2);
}

/* Centre d'aide — onglets de catégories */
.cat-tab.active {
  background-color: #1B1033;
  border-color: #1B1033;
  color: #ffffff;
}

/* Centre d'aide — barre de recherche FAQ
   Le tailwind précompilé n'a pas pl-14/16 ni pr-12/14, donc on déclare
   les paddings explicitement. Position de l'icône et du bouton clear idem. */
.aide-search-input {
  padding-left: 3.75rem;  /* 60px — laisse de la place à l'icône */
  padding-right: 3.5rem;  /* 56px — laisse de la place au bouton clear */
}
.aide-search-icon {
  left: 1.5rem; /* 24px */
}
.aide-search-clear {
  right: 1.5rem; /* 24px */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
