/* OPTIMISATION DESIGN 100% MOBILE + DESKTOP */

/* ============================================
   MOBILE FIRST - OPTIMISATIONS
   ============================================ */

/* Sticky bar mobile - toujours visible */
.sticky-bar-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 8px;
  gap: 8px;
}

.sticky-bar-mobile-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.sticky-bar-mobile-btn--call {
  background: #10b981;
  color: #fff;
}

.sticky-bar-mobile-btn--call:hover {
  background: #059669;
  transform: scale(1.02);
}

.sticky-bar-mobile-btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.sticky-bar-mobile-btn--whatsapp:hover {
  background: #20ba5a;
  transform: scale(1.02);
}

.sticky-bar-mobile-label {
  font-size: 13px;
  margin-top: 4px;
}

/* Top bar conversion */
.top-bar {
  background: #1f2937;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
}

.top-bar-tel {
  color: #10b981;
  font-weight: 700;
  text-decoration: none;
}

.top-bar-tel:hover {
  text-decoration: underline;
}

/* Header / hero / SEO / FAQ « template clair » — uniquement hors sitewide-polish
   (sinon écrasait le header sombre + titres FAQ illisibles sur l’accueil). */
body:not(.sitewide-polish) .header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body:not(.sitewide-polish) .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body:not(.sitewide-polish) .header-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

body:not(.sitewide-polish) .logo-accent {
  color: #10b981;
}

body:not(.sitewide-polish) .header-cta {
  background: #10b981;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

body:not(.sitewide-polish) .header-cta:hover {
  background: #059669;
}

/* Hero compact mobile */
body:not(.sitewide-polish) .page-hero {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

body:not(.sitewide-polish) .page-hero-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

body:not(.sitewide-polish) .page-hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 20px 0;
}

body:not(.sitewide-polish) .page-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

body:not(.sitewide-polish) .btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.2s;
}

body:not(.sitewide-polish) .btn-primary {
  background: #10b981;
  color: #fff;
}

body:not(.sitewide-polish) .btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

body:not(.sitewide-polish) .btn-secondary {
  background: #25d366;
  color: #fff;
}

body:not(.sitewide-polish) .btn-secondary:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

body:not(.sitewide-polish) .btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Contenu SEO */
body:not(.sitewide-polish) .seo-content {
  padding: 40px 20px 100px 20px; /* 100px bottom pour sticky bar */
  max-width: 800px;
  margin: 0 auto;
}

body:not(.sitewide-polish) .seo-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 30px 0 15px 0;
}

body:not(.sitewide-polish) .seo-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin: 25px 0 12px 0;
}

body:not(.sitewide-polish) .seo-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 15px 0;
}

body:not(.sitewide-polish) .seo-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

body:not(.sitewide-polish) .seo-content li {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 8px 0;
}

body:not(.sitewide-polish) .seo-content a {
  color: #10b981;
  font-weight: 600;
  text-decoration: none;
}

body:not(.sitewide-polish) .seo-content a:hover {
  text-decoration: underline;
}

/* Images */
body:not(.sitewide-polish) .service-image {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body:not(.sitewide-polish) .service-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ */
body:not(.sitewide-polish) .faq-section {
  background: #f9fafb;
  padding: 30px 20px;
  border-radius: 12px;
  margin: 30px 0;
}

body:not(.sitewide-polish) .faq-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
}

body:not(.sitewide-polish) .faq-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body:not(.sitewide-polish) .faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 10px 0;
}

body:not(.sitewide-polish) .faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

/* CTA section */
body:not(.sitewide-polish) .seo-content-cta {
  margin: 40px 0 20px 0;
  text-align: center;
}

/* Footer */
.footer {
  background: #1f2937;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

/* ============================================
   DESKTOP - OPTIMISATIONS
   ============================================ */

@media (min-width: 768px) {
  /* Sticky bar cachée sur desktop */
  .sticky-bar-mobile {
    display: none;
  }
  
  /* Top bar */
  .top-bar {
    font-size: 15px;
    padding: 12px 20px;
  }
  
  /* Header desktop */
  body:not(.sitewide-polish) .header-inner {
    padding: 20px 40px;
  }
  
  body:not(.sitewide-polish) .header-logo-text {
    font-size: 22px;
  }
  
  body:not(.sitewide-polish) .header-cta {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  /* Hero desktop */
  body:not(.sitewide-polish) .page-hero {
    padding: 60px 40px;
  }
  
  body:not(.sitewide-polish) .page-hero-title {
    font-size: 42px;
  }
  
  body:not(.sitewide-polish) .page-hero-subtitle {
    font-size: 20px;
  }
  
  body:not(.sitewide-polish) .page-hero-cta {
    flex-direction: row;
    justify-content: center;
    max-width: 500px;
  }
  
  /* Contenu desktop */
  body:not(.sitewide-polish) .seo-content {
    padding: 60px 40px;
  }
  
  body:not(.sitewide-polish) .seo-content h2 {
    font-size: 32px;
  }
  
  body:not(.sitewide-polish) .seo-content h3 {
    font-size: 24px;
  }
  
  body:not(.sitewide-polish) .seo-content p {
    font-size: 17px;
  }
  
  /* Images desktop */
  body:not(.sitewide-polish) .service-image {
    max-width: 700px;
    margin: 30px auto;
  }
  
  /* FAQ desktop */
  body:not(.sitewide-polish) .faq-section {
    padding: 40px;
  }
  
  body:not(.sitewide-polish) .faq-section h2 {
    font-size: 28px;
  }
  
  body:not(.sitewide-polish) .faq-item {
    padding: 25px;
  }
  
  body:not(.sitewide-polish) .faq-item h3 {
    font-size: 20px;
  }
  
  body:not(.sitewide-polish) .faq-item p {
    font-size: 16px;
  }
}

/* ============================================
   LARGE DESKTOP
   ============================================ */

@media (min-width: 1200px) {
  body:not(.sitewide-polish) .page-hero-title {
    font-size: 48px;
  }
  
  body:not(.sitewide-polish) .seo-content {
    max-width: 900px;
  }
  
  body:not(.sitewide-polish) .seo-content h2 {
    font-size: 36px;
  }
}

/* ============================================
   PERFORMANCE & ACCESSIBILITÉ
   ============================================ */

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

/* Focus visible pour accessibilité */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Optimisation animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch targets minimum 44x44px */
.btn,
.header-cta,
.sticky-bar-mobile-btn {
  min-height: 44px;
  min-width: 44px;
}

/* Contraste texte */
body:not(.sitewide-polish) .seo-content p,
body:not(.sitewide-polish) .seo-content li {
  color: #374151; /* Meilleur contraste */
}

/* Loading states */
img[loading="lazy"] {
  background: #f3f4f6;
}

/* ============================================
   STEPS 1-2-3 — DYNAMIC FLOW DESIGN
   ============================================ */

/* Container: horizontal flow with arrows */
.premium-steps {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin-top: 2rem;
  position: relative;
}

/* Each step card */
.premium-step {
  flex: 1;
  padding: 2rem 1.5rem 1.75rem !important;
  background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2) !important;
}

.premium-step:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(240,192,64,0.4) !important;
  box-shadow: 0 16px 40px rgba(240,192,64,0.12), 0 8px 20px rgba(0,0,0,0.3) !important;
}

/* Arrow connectors between steps (desktop) */
.premium-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(240,192,64,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  z-index: 2;
  pointer-events: none;
}

/* Space for arrows */
.premium-step:not(:last-child) {
  margin-right: 44px;
}

/* Step number — animated gradient ring */
.premium-step-num {
  width: 3.75rem !important;
  height: 3.75rem !important;
  font-size: 1.6rem !important;
  background: linear-gradient(135deg, #f0c040 0%, #e6a817 50%, #f0c040 100%) !important;
  background-size: 200% 200% !important;
  animation: stepGlow 3s ease-in-out infinite !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 24px rgba(240,192,64,0.4) !important;
  margin-bottom: 1.1rem !important;
  color: #0a0a0b !important;
  font-weight: 800 !important;
}

@keyframes stepGlow {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 6px 24px rgba(240,192,64,0.35); }
  50% { background-position: 100% 50%; box-shadow: 0 8px 32px rgba(240,192,64,0.55); }
}

/* Step title */
.premium-step h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.55rem !important;
  letter-spacing: -0.01em;
}

/* Step description */
.premium-step p {
  font-size: 0.925rem !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,0.7) !important;
}

/* Active/hover state — gold accent top border */
.premium-step:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f0c040, transparent);
  border-radius: 0 0 4px 4px;
}

/* Mobile: vertical flow with down arrows */
@media (max-width: 768px) {
  .premium-steps {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .premium-step:not(:last-child) {
    margin-right: 0 !important;
    margin-bottom: 48px !important;
  }

  .premium-step:not(:last-child)::after {
    right: auto !important;
    left: 50%;
    top: auto !important;
    bottom: -36px;
    transform: translateX(-50%) rotate(90deg) !important;
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   HERO CTA BUTTONS — éviter coupure du texte
   (nowrap + colonnes auto dans une carte ~640px + overflow-x:hidden sur l’overlay)
   ============================================ */

.hero-carousel--conversion .hero-cta-row--conversion-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 0.75rem !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}

.hero-carousel--conversion .hero-cta-row--conversion-v2 .hero-cta {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  text-align: center !important;
  line-height: 1.25 !important;
  hyphens: auto !important;
  font-size: clamp(0.78rem, 2.1vw, 0.9rem) !important;
  padding: 0.55rem 0.75rem !important;
  min-height: 44px !important;
  border-radius: 10px !important;
}

.hero-carousel--conversion .hero-cta-row--conversion-v2 .hero-cta--primary {
  background: rgba(255,255,255,0.95) !important;
  color: #0a0a0b !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(255,255,255,0.15) !important;
}

.hero-carousel--conversion .hero-cta-row--conversion-v2 .hero-cta--primary:hover {
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255,255,255,0.25) !important;
  transform: translateY(-1px);
}

.hero-carousel--conversion .hero-cta-row--conversion-v2 .hero-cta--reserve {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  color: #fff !important;
}

/* Mobile: stack CTA buttons full width */
@media (max-width: 900px) {
  .hero-carousel--conversion .hero-cta-row--conversion-v2 {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .hero-carousel--conversion .hero-cta-row--conversion-v2 .hero-cta {
    white-space: normal !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 0.75rem 1.2rem !important;
  }
}

/* Drawer mobile : ce fichier met .header à z-index 1000 ; le menu restait à 300 (style.css)
   et passait derrière le header + la barre sticky (9999) — bouton « menu » sans effet visible. */
.nav-overlay {
  z-index: 10050;
}
