/* ==========================================================================
   Styles complémentaires à Tailwind (utilitaires non couverts par le CDN)
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* --- Header : ombre progressive au scroll --- */
#site-header.is-scrolled .site-nav {
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  background-color: rgba(8, 11, 22, 0.92);
}

/* --- Menu mobile --- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.is-open {
  max-height: 40rem;
}

/* --- Accordéon FAQ --- */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 24rem;
}
.faq-item .faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}
.faq-item {
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.faq-item.is-open {
  border-color: rgba(0, 217, 255, 0.35);
}

/* --- Scrollbar fine pour bandes horizontales (esthétique) --- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Fade-in au scroll --- */
.reveal {
  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);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Fond "tech" du hero : grille + halos lumineux --- */
.hero-grid {
  background-image:
    linear-gradient(rgba(139, 124, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 82% 62% at 50% 0%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 62% at 50% 0%, #000 45%, transparent 100%);
}
.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  pointer-events: none;
}

/* --- Halo pulsé derrière les CTA --- */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(0, 217, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0); }
}
.pulse-cta {
  animation: pulse-ring 2.6s ease-out infinite;
}

/* --- Numéros d'étape / chiffres clés --- */
.step-number,
.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-variant-numeric: tabular-nums;
}

/* --- Texte en dégradé (mots stratégiques du H1) --- */
.text-gradient {
  background: linear-gradient(100deg, #00D9FF 0%, #8B7CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Cartes premium : légère profondeur + hover --- */
.card-premium {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
.card-premium:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.6);
}
.card-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}
.card-premium:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* --- Ligne de progression : section Méthode --- */
.method-track {
  position: relative;
}
.method-track::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.35) 15%, rgba(139, 124, 255, 0.35) 85%, transparent);
  display: none;
}
@media (min-width: 1024px) {
  .method-track::before { display: block; }
}

/* --- Badges de secteur / service (témoignages) --- */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.25);
  color: #7FF3FF;
}

/* --- Formulaire de contact --- */
.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  color: #F4F7FB;
  font-size: 0.9375rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.field-input::placeholder {
  color: rgba(203, 213, 225, 0.45);
}
.field-input:focus {
  outline: none;
  border-color: rgba(0, 217, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
select.field-input option {
  color: #0B1220;
  background: #ffffff;
}

/* --- Bouton d'appel sticky (mobile, pages villes) --- */
.sticky-call {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-call.is-visible {
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .sticky-call { display: none; }
}

/* --- Compteurs animés --- */
.stat-number[data-count] {
  display: inline-block;
}

/* --- Focus visible cohérent --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00D9FF;
  outline-offset: 3px;
  border-radius: 4px;
}
