/* Variables */
:root {
  --primary-blue: #0066FF;
  --primary-orange: #FF6B35;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-lighter: #E9ECEF;
  --text-dark: #1A1A1A;
  --text-gray: #6B7280;
  --footer-dark: #2D3748;
}

/* Base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

/* Fix GSAP ScrollSmoother double scroll issue */
#smooth-wrapper {
  overflow: visible !important;
  height: auto !important;
}

#smooth-content {
  overflow: visible !important;
  height: auto !important;
  transform: none !important;
}

.progress-wrap {
  position: fixed !important;
  z-index: 9999 !important;
}

body.software-modern {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: var(--bg-white) !important;
  color: var(--text-dark) !important;
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
}

/* Header Modern */
.header-modern {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E5E7EB;
  padding: 1rem 0;
  transition: all 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  will-change: auto !important;
  pointer-events: auto !important;
}

.header-modern .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-modern {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-modern span {
  color: var(--primary-blue);
}

.nav-modern {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-modern a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-modern a:hover {
  color: var(--primary-blue);
}

.nav-modern a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-modern a:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-blue);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.header-cta:hover {
  background: #0052CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
  color: white;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .nav-modern {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero-modern {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px; /* Augmenté padding-top pour header fixe */
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
  margin-top: 0 !important;
}

.hero-modern h1 {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-modern h1 .highlight {
  color: var(--primary-blue);
  position: relative;
}

.hero-modern .lead-text {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--primary-blue);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary-modern:hover {
  background: #0052CC;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
  color: white;
}

.btn-outline-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--bg-lighter);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-outline-modern:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
}

/* Installation Section */
.installation-modern {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-title-modern {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle-modern {
  font-size: 1.125rem;
  color: var(--text-gray);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.step-card-modern {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
}

.step-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 2.5rem;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.step-card-modern h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 1rem;
}

.step-card-modern p {
  color: var(--text-gray);
  margin: 0;
}

/* Features Section */
.features-modern {
  padding: 100px 0;
  background: white;
}

.feature-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.feature-image img {
  width: 100%;
}

.feature-list-modern {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-list-modern li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.125rem;
  color: var(--text-dark);
}

.feature-list-modern li i {
  color: var(--primary-blue);
  font-size: 1.25rem;
}

/* Process Grid */
.process-modern {
  padding: 100px 0;
  background: var(--bg-light);
}

.process-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
  height: 100%;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0052CC 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.process-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.process-card p {
  color: var(--text-gray);
  margin: 0;
}

/* Tabs Section */
.tabs-modern {
  padding: 100px 0;
  background: white;
}

.nav-tabs-modern {
  border: none;
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-tabs-modern .nav-link {
  border: 2px solid var(--bg-lighter);
  border-radius: 12px;
  padding: 1rem 2rem;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  background: white;
}

.nav-tabs-modern .nav-link.active {
  border-color: var(--primary-blue);
  background: var(--primary-blue);
  color: white;
}

.nav-tabs-modern .nav-link:hover:not(.active) {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.tab-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.tab-image img {
  width: 100%;
}

/* Footer Modern */
.footer-modern {
  background: var(--footer-dark);
  color: #A0AEC0;
  padding: 80px 0 30px;
  margin-bottom: 0 !important;
  position: relative;
}

.footer-modern h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-modern ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-modern ul li {
  margin-bottom: 0.75rem;
}

.footer-modern a {
  color: #A0AEC0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-modern a:hover {
  color: var(--primary-blue);
}

.newsletter-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid #4A5568;
  background: #1A202C;
  color: white;
  border-radius: 8px;
}

.newsletter-input button {
  padding: 0.875rem 1.5rem;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-input button:hover {
  background: #0052CC;
}

.social-links-modern {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.social-links-modern a {
  width: 40px;
  height: 40px;
  background: #4A5568;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links-modern a:hover {
  background: var(--primary-blue);
  color: white;
}

.copyright-modern {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #4A5568;
  color: #718096;
}

/* Scroll offset pour ancres */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Hauteur du header fixe + marge */
}

/* Fix pour sections avec ancres */
section[id] {
  scroll-margin-top: 100px;
}

/* Footer sans espace en dessous */
main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* CACHER CERTAINS ÉLÉMENTS DU BASE.HTML - mais garder offcanvas */
body.software-modern .switcher__area,
body.software-modern #preloader,
body.software-modern .overlay-switcher-close,
body.software-modern .cursor1,
body.software-modern .cursor2,
body.software-modern .progress-wrap,
body.software-modern .header-area.style-1,
.switcher__area,
#preloader,
.cursor1,
.cursor2,
.progress-wrap,
.header-area.style-1 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  z-index: -1 !important;
}

/* Offcanvas doit rester disponible avec z-index approprié */
.offcanvas-area {
  z-index: 2000 !important;
}

/* Désactiver ScrollSmoother GSAP - mais garder la structure */
body.software-modern #has_smooth,
#has_smooth {
  display: none !important;
  visibility: hidden !important;
}

body.software-modern #smooth-wrapper,
body.software-modern #smooth-content,
#smooth-wrapper,
#smooth-content {
  all: unset !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  transform: none !important;
  overflow: visible !important;
}

/* Supprimer hauteur extra */
body.software-modern .body-wrapper,
body.software-modern .body-booking,
.body-wrapper,
.body-booking {
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
