/* ==========================================================================
   ServicesNet CSS Stylesheet - Premium & High-End B2B Design Redesign
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Premium B2B Clean Tech */
  --primary-color: #0077B6;
  --primary-dark: #005A8B;
  --primary-light: #F0F9FF;
  --primary-border: #E0F2FE;
  
  --secondary-color: #2EC4B6;
  --secondary-dark: #1F9E92;
  --secondary-light: #F0FDFB;
  
  --accent-green: #10B981;
  --accent-green-light: #ECFDF5;
  --accent-red: #EF4444;
  --accent-red-light: #FEF2F2;
  --accent-blue: #3B82F6;
  --accent-blue-light: #EFF6FF;
  --accent-orange: #F59E0B;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Grays & Backgrounds */
  --text-dark: #0F172A;     /* Slate 900 */
  --text-medium: #334155;   /* Slate 700 */
  --text-light: #64748B;    /* Slate 500 */
  --text-muted: #94A3B8;    /* Slate 400 */
  
  --bg-main: #FAFBFC;       /* Off-white */
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;        /* Slate 100 */
  --bg-dark: #0B111E;       /* Deep obsidian navy */
  --bg-nav: #0F172A;
  
  --border-color: #E2E8F0;  /* Slate 200 */
  --border-focus: #93C5FD;  /* Sky 300 */

  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 10px -3px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 24px 36px -8px rgba(0, 119, 182, 0.12), 0 8px 16px -6px rgba(0, 119, 182, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 30px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fallback aliases for legacy variables used in old code */
  --border-radius-sm: var(--radius-sm);
  --border-radius-md: var(--radius-md);
  --border-radius-lg: var(--radius-lg);
  --border-radius-xl: var(--radius-xl);
  --transition: var(--transition-normal);
  --light-text: var(--text-light);
  --dark-text: var(--text-dark);
}

/* Base Resets & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-medium);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  overflow-x: hidden; /* Avoid horizontal body shifts globally */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.mobile-menu-open {
  overflow: hidden; /* Prevent body scrolling when mobile menu is active */
}

/* Selection & Scrollbars */
::selection {
  background-color: rgba(0, 119, 182, 0.15);
  color: var(--primary-dark);
}

/* Clean Custom Scrollbar (Desktop only, never horizontal) */
::-webkit-scrollbar {
  width: 8px;
  height: 0px; /* Hide horizontal scrollbar track */
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.15rem; }
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Common Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header & Navigation */
header.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-container a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .logo-container a {
    font-size: 1.5rem;
  }
}

.logo-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
  color: var(--primary-color);
}

@media (min-width: 768px) {
  .logo-icon {
    width: 32px;
    height: 32px;
  }
}

.logo-container span {
  color: var(--secondary-color);
}

.nav-meta-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-meta-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-meta-links a:hover, .nav-meta-links a.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

/* Premium Header CTA Action */
.devis-nav-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #15B0A1 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(46, 196, 182, 0.25) !important;
  border-radius: 50px !important;
}
.devis-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 196, 182, 0.4) !important;
  background: linear-gradient(135deg, #2EC4B6 0%, #0F9D90 100%) !important;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: var(--bg-alt);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Secondary Navigation Category Bar - FORCED TO WRAP - NO SCROLLBAR AT ALL */
nav.main-nav {
  background-color: var(--bg-nav);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

nav.main-nav .container {
  padding: 0 1.5rem;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap; /* FORCED TO WRAP instead of overflow-x scroll */
  list-style: none;
  padding: 0.5rem 0;
  width: 100%;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active .nav-link {
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px 3px 0 0;
}

/* ==========================================================================
   Mobile Menu Drawer - Premium B2B Mobile Menu System
   ========================================================================== */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal) ease, visibility var(--transition-normal) ease;
}

.mobile-menu-drawer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop overlay with blur */
.drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
}

.mobile-menu-drawer.active .drawer-backdrop {
  opacity: 1;
}

/* Slide in drawer panel */
.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background-color: var(--bg-card);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header .logo-container a {
  font-size: 1.35rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-medium);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.drawer-close:hover {
  background-color: var(--bg-alt);
}

.drawer-close svg {
  width: 24px;
  height: 24px;
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.drawer-section-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.drawer-nav-list li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.drawer-nav-list li a.active {
  background-color: var(--primary-color);
  color: white;
}

.drawer-nav-list li a svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Categories specific styles in mobile drawer */
.drawer-nav-list.categories-list li a {
  font-size: 0.92rem;
  padding: 0.7rem 0.85rem;
}

.drawer-nav-list.categories-list li a.active {
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
  border-left: 3px solid var(--secondary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.drawer-cta {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* Modern Hero Section */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(46, 196, 182, 0.12), transparent 45%), radial-gradient(circle at 10% 80%, rgba(0, 119, 182, 0.15), transparent 40%), linear-gradient(135deg, #0B111E 0%, #152033 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--primary-color);
}

@media (min-width: 768px) {
  .hero {
    padding: 4.5rem 0;
  }
}

.hero h1 {
  color: white;
  font-size: 1.85rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 1.25rem auto;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.15rem;
  }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Custom interactive UI elements (Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: normal; /* Safe wrapping inside buttons on narrow mobile screen */
  word-break: break-word;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

@media (min-width: 768px) {
  .btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}
.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: white;
}

.btn-dark-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
}
.btn-dark-outline:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Interactive Widget: Cost / Cleaning Simulator */
.simulator-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: -1.5rem auto 3rem auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 50;
}

@media (min-width: 768px) {
  .simulator-section {
    padding: 1.75rem;
    margin: -3rem auto 3.5rem auto;
  }
}

.simulator-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .simulator-title {
    font-size: 1.4rem;
  }
}

.simulator-title i {
  color: var(--secondary-color);
}

.simulator-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .simulator-desc {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.simulator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-group label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.form-group input, .form-group select {
  font-family: inherit;
  padding: 0.8rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background-color: var(--bg-main);
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
}

/* Beautiful dynamic results panel */
.simulator-results {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(240, 249, 255, 0.4) 100%);
  border: 1.5px dashed var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .simulator-results {
    padding: 1.75rem;
  }
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 119, 182, 0.08);
  gap: 0.5rem;
}
.result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.result-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-medium);
}
.result-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  text-align: right;
}

@media (min-width: 768px) {
  .result-value {
    font-size: 1.5rem;
  }
}

.result-value.saving {
  color: var(--accent-green);
}

/* Grid Layouts & Sections */
section.home-categories {
  padding: 3rem 0;
  background-color: white;
}

@media (min-width: 768px) {
  section.home-categories {
    padding: 4.5rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 3.5rem;
  }
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 1.85rem;
  }
}

.section-header p {
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Premium Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
    gap: 1.75rem;
  }
}

.category-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .category-card {
    padding: 2.25rem 1.75rem;
  }
}

.category-card:hover {
  transform: translateY(-5px);
  background-color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.category-card .icon-wrapper {
  background-color: white;
  color: var(--primary-color);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

@media (min-width: 768px) {
  .category-card .icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
  }
}

.category-card:hover .icon-wrapper {
  background-color: var(--primary-color);
  color: white;
}

.category-card .icon-wrapper i {
  width: 24px;
  height: 24px;
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .category-card h3 {
    font-size: 1.3rem;
  }
}

.category-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-sublist {
  list-style: none;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-sublist li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.88rem;
}

.category-sublist li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.category-card .card-footer-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-color);
}

/* Articles Section Redesign */
section.recent-articles {
  padding: 3rem 0;
  background-color: var(--bg-main);
}

@media (min-width: 768px) {
  section.recent-articles {
    padding: 4.5rem 0;
  }
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
  }
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.article-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.article-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .article-card-content {
    padding: 1.5rem;
  }
}

.article-meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .article-card h3 {
    font-size: 1.25rem;
  }
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.55;
}

/* Sidebar Layout Framework */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 992px) {
  .layout-with-sidebar {
    grid-template-columns: 2.25fr 1fr;
    gap: 3.5rem;
    padding: 3.5rem 0;
  }
}

/* Modern Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .widget {
    padding: 1.75rem;
  }
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-brands-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.widget-brand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  gap: 0.5rem;
}

.widget-brand-item a {
  color: var(--text-medium);
  font-weight: 600;
}
.widget-brand-item a:hover {
  color: var(--primary-color);
}

.widget-brand-item span {
  font-size: 0.75rem;
  background-color: var(--bg-alt);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  white-space: nowrap;
}

/* CTA Sidebar Banner */
.banner-cta {
  background: radial-gradient(circle at top left, var(--secondary-color), transparent 70%), linear-gradient(135deg, var(--primary-color) 0%, #004B72 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .banner-cta {
    padding: 2.25rem 1.75rem;
  }
}

.banner-cta h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .banner-cta h3 {
    font-size: 1.4rem;
  }
}

.banner-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Detailed Article Headers */
.article-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .article-header {
    padding: 3rem 0;
  }
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.article-breadcrumbs a {
  color: var(--text-light);
}

.article-breadcrumbs span.separator::after {
  content: "/";
  margin-left: 0.4rem;
}

.article-breadcrumbs span.active {
  color: var(--primary-color);
  font-weight: 600;
}

.article-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .article-header h1 {
    font-size: 2.25rem;
  }
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.88rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

@media (min-width: 768px) {
  .article-header-meta {
    gap: 1.5rem;
  }
}

.article-header-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.article-main-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Article Body Typography */
.article-body {
  font-size: 1.02rem;
  color: var(--text-medium);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .article-body {
    font-size: 1.05rem;
    line-height: 1.75;
  }
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1.1rem 0;
  color: var(--text-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

@media (min-width: 768px) {
  .article-body h2 {
    font-size: 1.6rem;
    margin: 2.75rem 0 1.25rem 0;
  }
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 1rem 0;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .article-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
  }
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

@media (min-width: 768px) {
  .article-body ul, .article-body ol {
    padding-left: 1.5rem;
  }
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Sommaire / Table of Contents */
.table-of-contents {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .table-of-contents {
    padding: 1.5rem;
  }
}

.toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list li {
  font-size: 0.9rem;
}

.toc-list a {
  color: var(--text-medium);
  font-weight: 500;
}

.toc-list a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

/* B2B Visual Boxes */
.box-definition {
  background-color: rgba(0, 119, 182, 0.03);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .box-definition {
    padding: 1.5rem;
    margin: 2rem 0;
  }
}

.box-definition-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.box-warning {
  background-color: rgba(46, 196, 182, 0.03);
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .box-warning {
    padding: 1.5rem;
    margin: 2rem 0;
  }
}

.box-warning-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Responsive Table Wrappers */
.comparative-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .comparative-table-wrapper {
    margin: 2rem 0;
  }
}

table.comparative-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 500px;
}

@media (min-width: 768px) {
  table.comparative-table {
    font-size: 0.9rem;
    min-width: 650px;
  }
}

table.comparative-table th {
  background-color: var(--bg-nav);
  color: white;
  padding: 0.85rem;
}

@media (min-width: 768px) {
  table.comparative-table th {
    padding: 1.1rem;
  }
}

table.comparative-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  background-color: white;
}

@media (min-width: 768px) {
  table.comparative-table td {
    padding: 1.1rem;
  }
}

table.comparative-table tr:last-child td {
  border-bottom: none;
}

table.comparative-table tr:nth-child(even) td {
  background-color: var(--bg-main);
}

/* Recommended Product Component */
.product-recommendation {
  background-color: white;
  border: 2px solid var(--secondary-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .product-recommendation {
    padding: 1.75rem;
    margin: 3rem 0;
  }
}

.reco-badge {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.reco-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.reco-image img {
  border-radius: var(--radius-md);
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border-color);
}

.reco-info h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .reco-info h4 {
    font-size: 1.4rem;
  }
}

.reco-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.pros, .cons {
  font-size: 0.88rem;
}
.pros h5, .cons h5 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pros h5 { color: var(--accent-green); }
.cons h5 { color: var(--accent-red); }

.pros ul, .cons ul {
  list-style: none;
}
.pros li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: bold;
  margin-right: 0.5rem;
}
.cons li::before {
  content: "✗";
  color: var(--accent-red);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Brands & Companies Catalog Directory */
.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
  }
}

.brand-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .brand-card {
    padding: 2rem;
  }
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.brand-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .brand-card h3 {
    font-size: 1.35rem;
  }
}

.brand-meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.brand-desc {
  font-size: 0.92rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.brand-highlights {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.brand-highlights li {
  font-size: 0.85rem;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-highlights li::before {
  content: "✦";
  color: var(--secondary-color);
}

/* Quote/Devis Cities & Directory Routing */
.devis-hero {
  background: radial-gradient(circle at 80% 20%, rgba(46, 196, 182, 0.08), transparent 45%), linear-gradient(135deg, #0B111E 0%, #152033 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .devis-hero {
    padding: 4.5rem 0;
  }
}

.devis-hero h1 {
  color: white;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .devis-hero h1 {
    font-size: 2.25rem;
  }
}

.devis-hero p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .devis-hero p {
    font-size: 1.1rem;
  }
}

.devis-search-box {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: -1.5rem auto 2rem auto;
  position: relative;
  z-index: 90;
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .devis-search-box {
    padding: 1.25rem;
    margin: -2rem auto 2.5rem auto;
    flex-direction: row;
  }
}

.devis-search-box input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}
.devis-search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
}

/* Autocomplete suggestions */
.search-results-list {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: -1.75rem;
  margin-bottom: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  position: relative;
}

.search-results-list a {
  display: block;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 500;
}
.search-results-list a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Local Departments grid */
.departements-browse {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .departements-browse {
    padding: 2rem;
    margin-bottom: 3rem;
  }
}

.departements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .departements-grid {
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 1rem;
  }
}

.departement-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-medium);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .departement-item a {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
}

.departement-item a:hover {
  border-color: var(--primary-color);
  background-color: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.departement-item span {
  font-size: 0.72rem;
  color: var(--text-light);
  background-color: white;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Multi-step lead generation form */
.devis-form-container {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .devis-form-container {
    padding: 2rem;
  }
}

.devis-form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  position: relative;
}

.devis-form-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.form-step-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-light);
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
}

.form-step-item.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
}

.form-step-item.done {
  border-color: var(--accent-green);
  color: white;
  background-color: var(--accent-green);
}

/* Utility responsive form grid */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* City local optimization */
.city-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.pricing-table-local {
  background-color: var(--bg-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .pricing-table-local {
    padding: 2rem;
    margin: 2.5rem 0;
  }
}

.pricing-table-local h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .pricing-table-local h3 {
    font-size: 1.35rem;
  }
}

/* Subcategories bar style - FLEX WRAP ELIMINATING HORIZONTAL SCROLL ENTIRELY */
.subcategories-bar {
  display: flex;
  flex-wrap: wrap; /* FORCED WRAP TO PREVENT ANY SCROLLBAR BUG */
  gap: 0.6rem;
  padding: 0.75rem 0;
  margin-top: 1rem;
}

.subcategory-tab {
  background-color: var(--bg-alt);
  color: var(--text-medium);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
.subcategory-tab:hover, .subcategory-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* Footer Section */
footer.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 3rem 0 2rem 0;
  border-top: 4px solid var(--primary-color);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  footer.site-footer {
    padding: 4.5rem 0 2.5rem 0;
  }
}

footer.site-footer h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

footer.site-footer a {
  color: var(--text-muted);
}
footer.site-footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
  }
}

.footer-about p {
  line-height: 1.6;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom-info {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.75rem;
}
.footer-bottom-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
}

/* About/Qui sommes nous styling */
.about-hero {
  background: radial-gradient(circle at top right, rgba(46, 196, 182, 0.12), transparent 45%), linear-gradient(135deg, #0B111E 0%, #152033 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .about-hero {
    padding: 4.5rem 0;
  }
}

.about-content {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .about-content {
    padding: 3.5rem 0;
  }
}

/* Reveal on scroll animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Adaptations & Media Queries (Highly Optimized Mobile First)
   ========================================================================== */

/* Tablet & Mobile Devices Breakpoint (All screens under 1024px) */
@media (max-width: 1023px) {
  /* Site Header compact on mobile */
  header.site-header {
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }

  .header-top {
    flex-direction: row; /* KEEP horizontal alignment for logo + hamburger button! */
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    gap: 1rem;
    width: 100%;
  }

  /* Hide raw desktop nav bars & extra wrap list on mobile */
  .nav-meta-links {
    display: none !important; /* Hide extra meta bar in mobile header */
  }

  nav.main-nav {
    display: none !important; /* Hide secondary horizontal categories list bar */
  }

  /* Show mobile hamburger menu button on mobile */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Remove scroll for primary mobile menu */
  .nav-menu {
    justify-content: center;
    padding: 0.5rem;
  }
  
  /* Safe table styling on very narrow mobile */
  .comparative-table-wrapper table {
    min-width: 420px;
  }
  
  /* General Spacing reduction on mobile */
  .simulator-section {
    margin-top: -1.25rem;
  }
}

/* Small adjustments for ultra-narrow phones */
@media (max-width: 480px) {
  .logo-container a {
    font-size: 1.15rem;
  }
  .logo-icon {
    width: 24px;
    height: 24px;
  }
  .mobile-menu-btn svg {
    width: 24px;
    height: 24px;
  }
  .container {
    padding: 0 0.75rem;
  }
}