/**
 * EOCHE Overrides — Performance, A11Y, Contrast, Fluid Typography
 * v1.0.0
 */

/* ═══════════════════════════════════
   0. COMPONENT STYLES (extracted from inline)
   ═══════════════════════════════════ */
.social-proof-notif {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(24, 24, 27, 0.95);
  border: 1px solid rgba(253, 58, 37, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: var(--layer-toast, 1000);
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  max-width: 340px;
}

.social-proof-notif.show {
  transform: translateX(0);
}

.social-proof-notif .notif-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 58, 37, 0.1);
  border: 1px solid rgba(253, 58, 37, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: #FD3A25;
  font-weight: 600;
  margin-top: 16px;
}

.availability-badge .pulse {
  width: 6px;
  height: 6px;
  background: #FD3A25;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.price-anchor {
  text-decoration: line-through;
  color: #71717a;
  margin-right: 8px;
  font-size: 0.7em;
}

.form-steps {
  display: none;
}

.form-steps.active {
  display: block;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.step-indicator .step {
  flex: 1;
  height: 3px;
  background: #3f3f46;
  border-radius: 4px;
  transition: background 0.3s;
}

.step-indicator .step.active {
  background: #FD3A25;
}

@media (max-width: 768px) {
  .social-proof-notif {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

/* ═══════════════════════════════════
   1. Z-INDEX TOKENS (Layer System)
   ═══════════════════════════════════ */
:root {
  --layer-base: 1;
  --layer-content: 5;
  --layer-nav: 50;
  --layer-sticky: 100;
  --layer-overlay: 500;
  --layer-modal: 800;
  --layer-toast: 1000;
}

.position-relative.z-5 {
  z-index: var(--layer-content) !important;
}

.tf-header {
  z-index: var(--layer-nav) !important;
}

.social-proof-notif {
  z-index: var(--layer-toast) !important;
}

#goTop {
  z-index: var(--layer-overlay) !important;
}

.offcanvas-menu {
  z-index: var(--layer-modal) !important;
}

.offcanvas {
  z-index: var(--layer-modal) !important;
}

/* ═══════════════════════════════════
   2. CONTRAST & READABILITY (OLED-safe)
   ═══════════════════════════════════ */
:root {
  --text-primary: #F5F5F5;
  /* was #FFFFFF — no pure white on OLED */
  --text-secondary: #D1D1D6;
  /* was #A1A1AA — bumped for 4.5:1 ratio */
  --text-body: #E4E4E7;
  /* body text — comfortable on dark bg */
}

/* Apply to dark sections */
.box-black,
.box-black .text-white,
.box-black h1,
.box-black h2,
.box-black h3,
.box-black h4,
.box-black h5,
.box-black h6 {
  color: var(--text-primary);
}

.box-black .text-neutral-400,
.box-black .text-secondary,
.box-black .text-body-1,
.box-black p {
  color: var(--text-secondary);
}

.social-proof-notif .notif-text {
  color: var(--text-secondary);
}

.social-proof-notif .notif-text strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════
   3. FLUID TYPOGRAPHY (kill CLS)
   ═══════════════════════════════════ */
.text-display-2 {
  font-size: clamp(2.25rem, 5vw + 1rem, 6rem) !important;
  line-height: 1.08;
}

.heading-title {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem) !important;
  line-height: 1.15;
}

h4.heading {
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2.25rem) !important;
}

/* Fluid section spacing */
.flat-spacing {
  padding-top: clamp(48px, 8vw, 120px) !important;
  padding-bottom: clamp(48px, 8vw, 120px) !important;
}

/* ═══════════════════════════════════
   4. MOBILE PERFORMANCE
   ═══════════════════════════════════ */
@media (max-width: 767px) {

  /* Kill heavy animations on mobile for TBT */
  .effectFade,
  .fadeUp,
  .fadeRotateX {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* Tighter mobile spacing */
  .flat-spacing {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .mb-80,
  .mb-70,
  .mb-64,
  .mb-48 {
    margin-bottom: 24px !important;
  }

  /* Prevent horizontal overflow / CLS */
  body,
  html {
    overflow-x: hidden !important;
  }

  .container {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
  }
}

/* ═══════════════════════════════════
   5. LAZY-LOADED IMAGE PLACEHOLDER
   ═══════════════════════════════════ */
img[loading="lazy"] {
  min-height: 40px;
}

/* ═══════════════════════════════════
   6. FORM ACCESSIBILITY FOCUS STATES
   ═══════════════════════════════════ */
select:focus,
input:focus,
textarea:focus {
  outline: 2px solid #FD3A25;
  outline-offset: 2px;
}

.tf-btn:focus-visible,
.tf-btn-2:focus-visible {
  outline: 2px solid #FD3A25;
  outline-offset: 4px;
}

/* Success state (form) */
.form-success-state {
  animation: fadeInSuccess 0.5s ease-out;
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════
   7. PRICING SWITCH STATE
   ═══════════════════════════════════ */
.maintenance-line {
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.maintenance-line.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════
   8. TEXT-GRADIENT FIX (invisible on light bg)
   ═══════════════════════════════════ */
/* The template's text-gradient-3 uses a dark-to-transparent gradient
   that becomes invisible on light backgrounds, especially mobile */
.text-gradient-3 {
  -webkit-text-fill-color: initial !important;
  color: #18181b !important;
}

/* On dark sections (box-black), restore white */
.box-black .text-gradient-3 {
  color: var(--text-primary, #F5F5F5) !important;
}

/* ═══════════════════════════════════
   9. CONTACT SECTION CONTRAST
   ═══════════════════════════════════ */
.section-contact .contact-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.section-contact .contact-left h2,
.section-contact .contact-left .heading-title,
.section-contact .contact-left p,
.section-contact .contact-left .text-body-1,
.section-contact .heading-sub {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════
   10. MOBILE-SPECIFIC POLISHING
   ═══════════════════════════════════ */
@media (max-width: 767px) {

  /* Force text-gradient visible on mobile */
  .text-gradient-3 {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #18181b !important;
  }

  .box-black .text-gradient-3 {
    -webkit-text-fill-color: #F5F5F5 !important;
  }

  /* Word wrap safety */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .heading-title,
  .text-display-2 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* Availability badge responsive */
  .availability-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  /* Contact section mobile fix */
  .section-contact .contact-left {
    padding: 24px 16px !important;
  }

  /* Features emoji size on mobile */
  .features-item span[aria-hidden="true"] {
    font-size: 24px !important;
  }

  /* Portfolio carousel compact */
  .section-featured-works .featured-works-item .image img {
    aspect-ratio: 16/10;
    object-fit: cover;
  }
}

/* ═══════════════════════════════════
   11. BENEFITS ICONS FALLBACK
   ═══════════════════════════════════ */
/* When icomoon font fails, hide broken icon-* elements */
.benefits-progress-item .icon,
.benefits-step-inner .icon {
  font-size: 0;
  width: 16px;
  height: 16px;
}

.benefits-progress-item .icon::before,
.benefits-step-inner .icon::before {
  content: "✓";
  font-family: system-ui, sans-serif;
  font-size: 14px;
}

/* Process cards 3D icons */
.process-card>.custom-icon-3d {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 24px;
  background-color: transparent !important;
}

/* Expertise section 3D icons */
.custom-icon-expertise {
  width: 65px !important;
  height: 65px !important;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.features-item:hover .custom-icon-expertise {
  transform: translateY(-6px) scale(1.1);
}

/* Fix process card bot alignment */
.process-card .bot {
  flex-wrap: nowrap !important;
  /* Empêche le passage à la ligne */
  justify-content: space-between !important;
}

.process-card .bot .time {
  white-space: nowrap !important;
  /* Empêche le texte de se couper */
  padding: 6px 12px !important;
  /* Un peu plus compact pour tenir sur PC/Mobile */
  font-size: 11px !important;
}

/* Mobile: shrink the oversized 01/04 number so it stays inside the card */
@media (max-width: 767px) {
  .process-card .bot {
    overflow: hidden !important;
  }

  .process-card .bot .number {
    font-size: 48px !important;
    line-height: 48px !important;
  }
}

/* Inline 3D icons for benefits progress */
.custom-icon-inline {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background-color: transparent !important;
  display: inline-block;
  margin-right: 8px;
  /* Espace entre l'icône et le texte */
}

.benefits-progress-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
}

.benefits-progress-item .progress-text {
  width: 160px !important;
  min-width: 160px !important;
  height: 40px !important;
  /* Même hauteur que la barre de gauche */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 12px !important;
  /* Retrait du padding vertical pour laisser faire la hauteur fixe */
  flex-shrink: 0 !important;
}

.benefits-progress-item .progress-line {
  height: 40px !important;
  flex-grow: 1 !important;
  margin-right: 15px !important;
  max-width: calc(100% - 175px) !important;
}

/* Adaptation mobile */
@media (max-width: 767px) {
  .benefits-progress-item .progress-text {
    width: 140px !important;
    min-width: 140px !important;
    height: 36px !important;
    /* Hauteur réduite sur mobile */
    font-size: 13px !important;
  }

  .benefits-progress-item .progress-line {
    height: 36px !important;
    max-width: calc(100% - 150px) !important;
  }
}

/* ═══════════════════════════════════
   11b. NAVIGATION BUTTONS POLISHING (Fix Visibility on Hover)
   ═══════════════════════════════════ */
/* Style global et forcé pour TOUTES les flèches de navigation Swiper (Précédent / Suivant) */
.group-btn-slider .nav-prev-swiper,
.group-btn-slider .nav-next-swiper,
.nav-prev-swiper,
.nav-next-swiper {
  width: 50px !important;
  height: 50px !important;
  border: 1px solid #3f3f46 !important; /* Bordure neutre sombre */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
  cursor: pointer !important;
  background-color: transparent !important;
  position: relative !important;
  z-index: 50 !important;
}

/* État survolé : Passage immédiat à l'orange brand (#FD3A25) */
.group-btn-slider .nav-prev-swiper:hover,
.group-btn-slider .nav-next-swiper:hover,
.nav-prev-swiper:hover,
.nav-next-swiper:hover {
  background-color: #FD3A25 !important;
  border-color: #FD3A25 !important;
}

/* L'icône (span, flèche texte, i) */
.nav-prev-swiper span,
.nav-next-swiper span,
.nav-prev-swiper i,
.nav-next-swiper i,
.nav-prev-swiper .icon,
.nav-next-swiper .icon {
  color: #D1D1D6 !important; /* Gris clair au repos */
  font-size: 22px !important;
  line-height: 1 !important;
  z-index: 60 !important;
  position: relative !important;
  transition: color 0.3s ease !important;
}

/* Icône BLANCHE au survol pour un contraste maximal sur fond orange */
.nav-prev-swiper:hover span,
.nav-next-swiper:hover span,
.nav-prev-swiper:hover i,
.nav-next-swiper:hover i {
  color: #ffffff !important;
}

/* Nettoyage des effets de masque du thème qui bloquent la visibilité */
.nav-prev-swiper::before,
.nav-next-swiper::before,
.nav-prev-swiper::after,
.nav-next-swiper::after {
  display: none !important;
}

/* Nav arrows fallback structure */
.nav-prev-swiper .icon,
.nav-next-swiper .icon {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-prev-swiper .icon::before {
  content: "←" !important;
  font-size: 20px;
  color: var(--white-64);
  transition: all 0.3s ease;
}

.nav-next-swiper .icon::before {
  content: "→" !important;
  font-size: 20px;
  color: var(--white-64);
  transition: all 0.3s ease;
}

/* Go-to-top fallback */
#goTop .icon {
  font-size: 0;
}

#goTop .icon::before {
  content: "↑";
  font-family: system-ui;
  font-size: 18px;
}

/* ═══════════════════════════════════
   12. SNEAKY SERVICES NESTED ACCORDION
   ═══════════════════════════════════ */
.service-point-btn {
  background: var(--neutral-900);
  border: 1px solid var(--neutral-800);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-point-btn:hover,
.service-point-btn:focus {
  background: var(--neutral-800);
  border-color: var(--neutral-700);
}

.service-point-btn[aria-expanded="true"] {
  border-color: var(--brand);
  background: rgba(253, 58, 37, 0.05);
}

.service-point-btn[aria-expanded="true"] .btn-icon {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.service-point-btn .btn-icon {
  transition: transform 0.3s ease;
}

.service-point-desc {
  padding: 14px 20px 4px 20px;
  border-left: 2px solid var(--brand);
  margin-left: 12px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(253, 58, 37, 0.03) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

/* ═══════════════════════════════════
   13. FIX BIG TEXT MOBILE RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 767px) {
  .section-about-us .col-left .sub {
    width: auto !important;
    max-width: 95%;
    border-radius: 16px !important;
    font-size: 12px;
    padding: 8px 16px !important;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
  }
}

/* ═══════════════════════════════════
   14. FEATURED WORKS CAROUSEL TWEAKS
   ═══════════════════════════════════ */
.section-featured-works .featured-works-item .image img {
  width: 100%;
  aspect-ratio: 16 / 10 !important; /* Format plus panoramique pour réduire la hauteur sur PC */
  object-fit: cover;
  object-position: top center;
}

/* ═══════════════════════════════════
   16. ABOUT SECTION — Styles minimaux
   Le HTML est identique à l'original — seuls quelques ajustements visuels.
   ═══════════════════════════════════ */

/* Titre grand et impactant */
.section-about-us .heading-title {
  font-size: clamp(2.5rem, 5.5vw, 5rem) !important;
  line-height: 1.08 !important;
}

/* Correction radicale de l'alignement horizontal — La hauteur est dictée par la droite */
.section-about-us .col-left {
  background-color: #161618 !important; 
  background-image: radial-gradient(circle at top center, #27272a 0%, #161618 70%) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  border-radius: 32px;
  overflow: hidden;
  position: relative !important; /* Pour le positionnement absolu de l'image */
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 40px !important; /* Ajustement du padding interne */
}

.section-about-us .col-left .z-5 {
  position: relative !important;
  z-index: 10 !important; /* Toujours au-dessus de l'image */
}

.section-about-us .col-left img {
  background-color: transparent !important;
  background-image: none !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  z-index: 1 !important;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none; /* Ne gêne pas les clics sur le bouton */
}

/* Forcer l'étirement des colonnes */
@media (min-width: 1200px) {
  .section-about-us .row {
    display: flex !important;
    align-items: stretch !important; 
  }

  .section-about-us .col-xxl-7 { width: 58.333333% !important; }
  .section-about-us .col-xxl-5 { 
    width: 41.666667% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .section-about-us .review-box {
    margin-bottom: 24px !important;
  }

  .section-about-us .testimonial-box {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
  }
}

/* Counter 4.9/5 — même style que 120+ dans l'original */
.review-box .counter.text-neutral-200 {
  font-size: clamp(4rem, 9vw, 7rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #d4d4d8 !important;
}

/* ═══════════════════════════════════
   17. TEAM SECTION — Equal Height Cards (Desktop)
   Le JS d'animation du thème injecte un wrapper .overflow-hidden
   entre la colonne et le .team-item, ce qui casse la chaîne flex.
   On cible ce wrapper pour restaurer la propagation de hauteur.
   ═══════════════════════════════════ */
@media (min-width: 992px) {
  .box-black .section-team .row > [class*="col-"] > .overflow-hidden {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  .box-black .section-team .row > [class*="col-"] > .overflow-hidden > .team-item {
    flex: 1 1 auto;
  }
}

/* ═══════════════════════════════════
   18. STATISTIC SLIDER — Prevent "sem." text clipping
   Le texte géant déborde du conteneur à droite.
   ═══════════════════════════════════ */
.section-statistic .statistic-slider {
  max-width: 600px;
}

@media (max-width: 767px) {
  .section-statistic .statistic-slider {
    max-width: none;
  }

  .box-black .section-statistic .swiper .statistic-number .prefix {
    font-size: 20vw;
  }

  /* Ensure the slider controls sit above Swiper's touch overlay */
  .section-statistic .swiper .group-slider {
    position: relative;
    z-index: 100;
  }

  /* Hide navigation arrows on mobile, leaving just the timer/swipe to do the work */
  .section-statistic .group-btn-slider {
    display: none !important;
  }
}

/* ═══════════════════════════════════
   19. CONTACT SECTION — Alignment
   ═══════════════════════════════════ */
.section-contact .heading-section .heading-sub {
  text-align: center;
}

.section-contact .row {
  align-items: center;
}

/* ═══════════════════════════════════
   20. PRICING SECTION — 3-Column Layout Fix
   Le thème d'origine est conçu pour 2 colonnes.
   Ces overrides adaptent la section à 3 colonnes
   avec le toggle mensuel/one-shot.
   ═══════════════════════════════════ */

/* Force le heading (prix + bouton) en vertical au lieu de horizontal */
.section-pricing .pricing-item .heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Hauteur min sur le header pour aligner les 3 cartes */
.section-pricing .pricing-item .top {
  min-height: 52px;
  flex-wrap: wrap;
}

/* Badge "Populaire" sur la carte mise en avant */
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #EA2B16 0%, #FF3B26 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 24px;
  border-radius: 99px;
  white-space: nowrap;
  z-index: 10;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Contour lumineux complet autour de la carte "Populaire" */
.section-pricing .pricing-item.style-black {
  border: 1.5px solid rgba(253, 58, 37, 0.5);
  box-shadow:
    0 0 0 1px rgba(253, 58, 37, 0.15),
    0 0 30px -5px rgba(253, 58, 37, 0.2),
    0px -8px 0px 0px #2E2E2E inset,
    0px 4px 0px 0px rgba(255, 255, 255, 0.3019607843) inset,
    0px 7.77px 2.21px 0px rgba(0, 0, 0, 0.0588235294),
    0px 3px 3px 0px rgba(0, 0, 0, 0.1019607843);
}

/* ═══════════════════════════════════
   21. PRICING POPUP MODAL (Glassmorphism & iOS Optimized)
   ═══════════════════════════════════ */
.pack-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: flex-start; /* Ancre en haut pour éviter le saut entre les étapes */
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8vh 16px 16px 16px; /* 8vh margin top */
  overflow-y: auto; /* Permet le scroll sur les très petits écrans */
}
.pack-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pack-modal {
  width: 100%;
  max-width: 540px;
  box-sizing: border-box;
  max-height: 90vh; /* Sécurité mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Scroll fluide iOS */
  scrollbar-width: none; /* Hide scrollbar Firefox */
  background: linear-gradient(180deg, #18181b 0%, #0f0f11 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: scale(0.96) translateY(10px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pack-modal::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */
.pack-modal-overlay.active .pack-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.pack-modal-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  color: #a1a1aa;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.pack-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: rotate(90deg);
}

.pack-modal-header { text-align: center; margin-bottom: 32px; }
.pack-modal-header h4 { margin-bottom: 8px; color: #fff; letter-spacing: -0.02em; }
.pack-modal-sub { color: #a1a1aa; font-size: 15px; margin: 0; }

/* Visual feedback du pack sélectionné */
.pack-selected {
  background: linear-gradient(90deg, rgba(253, 58, 37, 0.15) 0%, rgba(253, 58, 37, 0.05) 100%);
  border: 1px solid rgba(253, 58, 37, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.pack-selected-label { font-size: 12px; color: #a1a1aa; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; display:flex; align-items:center; gap:8px;}
.pack-selected-label::before { content:''; display:block; width:8px; height:8px; background:#FD3A25; border-radius:50%; box-shadow: 0 0 8px #FD3A25;}
.pack-selected-name { font-weight: 700; color: #fff; font-size: 16px; }

/* Champs du formulaire adaptés et sécurisés pour iOS (Haute Spécificité, sans !important) */
#packModal #packForm .pack-field { margin-bottom: 24px; border: none; padding: 0; }
#packModal #packForm .pack-field label { display: block; margin-bottom: 10px; color: #e4e4e7; font-size: 14px; font-weight: 500; text-align: left; }

#packModal #packForm .pack-field input, 
#packModal #packForm .pack-field select, 
#packModal #packForm .pack-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  font-size: 16px; /* 16px OBLIGATOIRE sur mobile pour éviter le zoom iOS */
  line-height: 1.5;
  height: auto;
  min-height: 56px;
  transition: all 0.3s ease;
  -webkit-appearance: none; /* Retirer style iOS */
  margin: 0;
  box-shadow: none;
}

#packModal #packForm .pack-field textarea { resize: none; min-height: 100px; }

#packModal #packForm .pack-field input:focus, 
#packModal #packForm .pack-field select:focus, 
#packModal #packForm .pack-field textarea:focus {
  border-color: #FD3A25; 
  outline: none;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(253, 58, 37, 0.1);
}

#packModal #packForm .pack-field input::placeholder, 
#packModal #packForm .pack-field textarea::placeholder { 
  color: #8f8f9d; 
  opacity: 1; 
}

#packModal #packForm .pack-field select { 
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23A1A1AA%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); 
  background-repeat: no-repeat; 
  background-position: right 20px top 50%; 
  background-size: 12px auto; 
  padding-right: 40px;
}

#packModal #packForm .pack-field select option { 
  background: #18181b; 
  color: #fff; 
  padding: 10px; 
}

/* Navigation multi-étapes avec animation d'entrée */
.pack-form-step { display: none; }
.pack-form-step.active { display: block; animation: packFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes packFadeIn { 
  from { opacity: 0; transform: translateY(15px) scale(0.98); } 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* Indicateurs d'étapes Premium (sans !important) */
.pack-modal-steps {
  display: flex; align-items: center; justify-content: center; margin-bottom: 32px;
  position: relative; width: 100%; padding: 0; margin-left: 0; margin-right: 0;
}
.pack-step-bar {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 2px; background: rgba(255,255,255,0.06); z-index: 1;
}
.pack-step-progress {
  height: 100%; background: #FD3A25; width: 0%; transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(253,58,37,0.5);
}
.pack-step {
  width: 34px; height: 34px; border-radius: 50%;
  background: #18181b; color: #71717a;
  border: 2px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all 0.4s ease;
  z-index: 2; position: relative; margin: 0 20px;
}
.pack-step.active { 
  background: #FD3A25; color: #fff; border-color: #FD3A25;
  box-shadow: 0 0 15px rgba(253,58,37,0.4); 
}

/* Boutons */
.pack-btn-actions { display: flex; gap: 16px; margin-top: 32px; }
.pack-btn-back {
  background: transparent; color: #a1a1aa;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px; padding: 16px 24px;
  font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.2s;
}
.pack-btn-back:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Écran de succès Premium (Étape 3) - Surcharge du thème */
#packModal .pack-success { text-align: center; padding: 30px 0; }
#packModal .pack-success-icon {
  width: 80px; height: 80px; 
  background: rgba(74, 222, 128, 0.15); 
  color: #4ade80; /* Vert vif Apple/Premium */
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 24px; 
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
}
#packModal .pack-success h4 { 
  font-size: 24px; margin-bottom: 12px; 
  color: #fff !important; /* Force le titre en blanc (écrasé par le thème sinon) */
}
#packModal .pack-success p { 
  color: #a1a1aa !important; /* Gris clair pour texte secondaire */
  font-size: 16px; margin-bottom: 24px; line-height: 1.6; 
}
#packModal .pack-success p strong { color: #fff !important; }
#packModal .pack-success-info { 
  background: rgba(255,255,255,0.03); 
  border: 1px solid rgba(255,255,255,0.05); 
  border-radius: 12px; padding: 16px; margin: 0 0 32px; 
  font-size: 14px; color: #e4e4e7 !important; display: inline-block;
}

@media (max-width: 575px) {
  .pack-modal { padding: 32px 20px; border-radius: 20px; }
  .pack-step { margin: 0 15px; }
  .pack-step-bar { width: 90px; }
  .pack-btn-actions { flex-direction: column-reverse; gap: 10px; }
  .pack-btn-back, .pack-btn-actions .tf-btn { width: 100% !important; }
}

/* Prix adapté pour 3 colonnes — plus petit que le 72px d'origine */
.section-pricing .pricing-item .heading .price-number {
  font-size: 48px;
  line-height: 1.1;
}

/* "Devis gratuit" — même taille que les prix, pas le 72px géant */
.section-pricing .pricing-item .heading .pricing-custom {
  font-size: 48px;
  line-height: 1.1;
}

/* Engagement note — intégrée proprement dans le flow */
.section-pricing .engagement-line {
  font-size: 13px !important;
  color: #a1a1aa !important;
  margin-top: 0 !important;
  margin-bottom: 4px;
}

/* Bouton pleine largeur dans le heading */
.section-pricing .pricing-item .heading .tf-btn {
  width: 100%;
  text-align: center;
}

/* Contenu (features) en vertical au lieu de 50/50 */
.section-pricing .pricing-item .content {
  flex-direction: column;
}

.section-pricing .pricing-item .content > * {
  width: 100%;
}

/* Prix barré (anchor) */
.section-pricing .price-anchor {
  font-size: 0.55em;
}

/* Style-black: engagement note en couleur adaptée */
.section-pricing .pricing-item.style-black .engagement-line {
  color: #71717a !important;
}

/* ── Responsive: tablettes (2 colonnes puis 1) ── */
@media (max-width: 991px) {
  .section-pricing .pricing-item .heading .price-number,
  .section-pricing .pricing-item .heading .pricing-custom {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .section-pricing .pricing-item .heading .price-number,
  .section-pricing .pricing-item .heading .pricing-custom {
    font-size: 36px;
    line-height: 1.15;
  }
}

/* ═══════════════════════════════════
   22. METHODOLOGY SLIDER — Mobile Dots (hide arrows, show pagination)
   ═══════════════════════════════════ */

/* Desktop: hide the mobile dots pagination */
.process-dots-mobile {
  display: none !important;
}

/* Mobile: hide arrows, show dots */
@media (max-width: 991px) {
  /* Hide the desktop arrows container in the methodology section */
  .section-process .process-heading .group-btn-slider {
    display: none !important;
  }

  /* Show pagination dots */
  .process-dots-mobile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    position: relative;
    width: 100%;
  }

  /* Each bullet */
  .process-dots-mobile .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d4d4d8;
    opacity: 0.35;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 !important; /* Override Swiper defaults, gap handles spacing */
  }

  /* Active bullet — brand color, slightly larger pill shape */
  .process-dots-mobile .swiper-pagination-bullet-active {
    opacity: 1;
    background: #FD3A25;
    width: 24px;
    border-radius: 100px;
  }
}

/* ═══════════════════════════════════
   23. EXPERTISE SECTION — Mobile Compact Grid (2 cols)
   Replaces the full-width stacked cards with a tight 2-col grid.
   Desktop is NOT touched.
   ═══════════════════════════════════ */
@media (max-width: 767px) {
  /* Turn the column wrapper into a 2-col grid */
  .section-features .features-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    flex-direction: unset !important;
  }

  /* Each column loses its own grid and becomes flat */
  .section-features .features-col {
    display: contents !important;
  }

  /* Hide the center logo on mobile (already done by theme, reinforced) */
  .section-features .features-center {
    display: none !important;
  }

  /* Compact card style */
  .section-features .features-item {
    padding: 16px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px;
  }

  /* Smaller icon */
  .section-features .features-item .custom-icon-expertise {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 4px !important;
  }

  /* Compact title */
  .section-features .features-item .title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
  }

  /* Hide the description paragraph to save space */
  .section-features .features-item p {
    display: none !important;
  }
}