/* styles.css - Style moderne, pro et 100% RESPONSIVE pour conseiltravaux.fr */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0077B6;
  --primary-hover: #005f91;
  --secondary: #90E0EF;
  --secondary-light: #e0f7fc;
  --dark: #1E293B;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-700: #334155;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --font: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font);
  color: var(--gray-700);
  background-color: var(--light);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

/* Layout Elements & Responsive Grids */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Responsive Grid Utilities to replace rigid inline styles */
.grid-2-cols-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.grid-2-cols-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3-cols-equal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4-cols-equal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Header Component */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.logo svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-600);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.35);
}

.btn-secondary {
  background-color: var(--secondary-light);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

.btn-outline {
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-600);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.nav-toggle i {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero {
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-search {
  background-color: var(--white);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 550px;
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.hero-features {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background-color: rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.hero-feature svg {
  color: var(--secondary);
  width: 16px;
  height: 16px;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title p {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* Travaux Grid/Cards */
.travaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.travaux-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.travaux-icon {
  background-color: var(--secondary-light);
  color: var(--primary);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.travaux-icon svg {
  width: 32px;
  height: 32px;
}

.travaux-card h3 {
  margin-bottom: 0.75rem;
}

.travaux-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.travaux-link:hover {
  color: var(--primary-hover);
}

/* ViteUnDevis Affiliate Widget */
.vud-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
  border: 2px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  margin: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.vud-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vud-header {
  margin-bottom: 2rem;
  max-width: 800px;
}

.vud-header h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.vud-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* Dynamic Template Page Styles */
.page-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3.5rem;
}

.content-block {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.content-block h2 {
  font-size: 1.5rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.content-block p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* Advice cards */
.advice-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.advice-card {
  display: flex;
  gap: 1.25rem;
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.advice-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.advice-text h4 {
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.advice-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Artisan widget */
.artisan-status {
  background-color: #FFFBEB;
  border: 1px solid #FEF3C7;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  color: #B45309;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background-color: var(--white);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  cursor: pointer;
}

.faq-question svg {
  transition: var(--transition);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* Link grids for Internal linking (Maillage) */
.linking-section {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 3.5rem;
}

.linking-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.linking-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.linking-tab:hover, .linking-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.linking-content {
  display: none;
}

.linking-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.linking-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  border: 1px solid transparent;
}

.linking-link:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary);
  color: var(--primary);
}

/* Blog Component */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-tag {
  align-self: flex-start;
  background-color: var(--secondary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.sidebar-widget {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 0.75rem;
}

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

.category-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.category-item a:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* Footer Component */
.site-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: var(--gray-300);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--gray-300);
  font-size: 0.9rem;
}

/* Reveal-on-scroll animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Search suggestions */
.autocomplete-suggestions {
  position: absolute;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 250px;
  overflow-y: auto;
  width: calc(100% - 1.5rem);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  list-style: none;
}

.autocomplete-suggestion {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.autocomplete-suggestion:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  font-family: var(--font);
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  outline: none;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

/* ==========================================================
   CSS CLASSES DES OUTILS DE SIMULATION INTERACTIFS
   ========================================================== */

.tool-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.tool-card-icon {
  background-color: var(--secondary-light);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tool-card-icon svg {
  width: 26px;
  height: 26px;
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Styles communs pour les formulaires de calcul */
.calculator-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.calculator-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 1rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.calculator-form-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calculator-result-side {
  background-color: var(--light);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}

.result-placeholder {
  color: var(--gray-600);
}

.result-placeholder i {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.result-badge-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin: 1rem 0;
}

.result-item-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--gray-300);
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.result-item-row span:last-child {
  font-weight: 700;
  color: var(--dark);
}

/* Style de sélection radio en grille */
.radio-tile-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}

.radio-tile-label {
  position: relative;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.radio-tile-label input[type="radio"],
.radio-tile-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.radio-tile-label i {
  color: var(--gray-600);
  width: 20px;
  height: 20px;
}

.radio-tile-label:hover {
  background-color: var(--secondary-light);
  border-color: var(--secondary);
}

.radio-tile-label input:checked + i,
.radio-tile-label input:checked ~ span {
  color: var(--primary);
}

.radio-tile-label.selected,
.radio-tile-label:has(input:checked) {
  background-color: var(--secondary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.1);
}

/* DPE Badge Colors */
.dpe-badge-list {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.dpe-badge {
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.dpe-badge.active {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.dpe-a { background-color: #319795; }
.dpe-b { background-color: #38A169; }
.dpe-c { background-color: #48BB78; }
.dpe-d { background-color: #ECC94B; }
.dpe-e { background-color: #DD6B20; }
.dpe-f { background-color: #E53E3E; }
.dpe-g { background-color: #9B2C2C; }

/* Range sliders custom */
.range-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-val-bubble {
  align-self: flex-end;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Steps Progress bar */
.steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.steps-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--gray-200);
  z-index: 1;
  transform: translateY(-50%);
}

.step-indicator-dot {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  background-color: var(--white);
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  transition: var(--transition);
}

.step-indicator-dot.active {
  border-color: var(--primary);
  background-color: var(--secondary-light);
  color: var(--primary);
}

.step-indicator-dot.done {
  border-color: var(--success);
  background-color: var(--success);
  color: var(--white);
}

/* Tables comparative */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.compare-table th, .compare-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
  background-color: var(--light);
  font-weight: 700;
}

.compare-table tr:hover td {
  background-color: rgba(144, 224, 239, 0.05);
}

/* Timeline/Chantier Generator styling */
.timeline-bar-container {
  position: relative;
  padding-left: 2.5rem;
  border-left: 3px dashed var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.timeline-step-node {
  position: relative;
}

.timeline-step-node::before {
  content: '';
  position: absolute;
  left: calc(-2.5rem - 10px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  background-color: var(--primary);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--secondary);
}

.timeline-step-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.timeline-step-duration {
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--secondary-light);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.timeline-step-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
}


/* ==========================================================
   MEDIA QUERIES ULTRA COHÉRENTES ET ROBUSTES POUR MOBILES
   ========================================================== */

/* Tablet & Intermediate Desktop screens - Trigger mobile menu at 1024px to prevent overlapping of navigation with logo */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    z-index: 1001; /* Garanti d'être au-dessus de tout le contenu */
  }
  .nav-menu.open { 
    display: flex; 
  }
  .nav-toggle { 
    display: block; 
  }
  .nav-link {
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
  }
  .nav-link:hover, .nav-link.active {
    border-bottom-color: var(--primary);
  }
  .nav-menu .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
  }
}

/* Prevent overlapping on laptops and intermediate screens */
@media (min-width: 1025px) and (max-width: 1250px) {
  .header-container {
    height: 80px;
  }
  .logo {
    font-size: 1.3rem;
    gap: 0.5rem;
  }
  .logo svg {
    width: 30px;
    height: 30px;
  }
  .nav-menu {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Tablet screens (under 992px) */
@media (max-width: 992px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Mobile responsive fixes (Under 768px) */
@media (max-width: 768px) {
  h1 { 
    font-size: 1.85rem !important; 
  }
  h2 { 
    font-size: 1.4rem !important; 
  }
  h3 {
    font-size: 1.2rem !important;
  }
  .section { 
    padding: 3rem 0; 
  }
  .container {
    padding: 0 1rem;
  }
  
  /* Hero section adjustments */
  .hero { 
    padding: 3rem 0 4rem 0; 
  }
  .grid-2-cols-split, 
  .grid-2-cols-equal { 
    grid-template-columns: 1fr !important; 
    gap: 2rem !important; 
  }
  .hero-content {
    text-align: center;
  }
  .hero-content h1 { 
    font-size: 2.1rem !important; 
    line-height: 1.2;
  }
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-image {
    display: none !important; /* On cache l'illustration secondaire sur petit mobile pour gagner de la place */
  }
  
  /* Search Box */
  .hero-search { 
    flex-direction: column; 
    background: var(--white); 
    box-shadow: var(--shadow-md); 
    padding: 0.75rem; 
    border-radius: var(--radius-md);
    max-width: 100%;
  }
  .hero-search div {
    padding-left: 0 !important;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 0.5rem;
  }
  .hero-search input { 
    font-size: 0.95rem;
    padding: 0.5rem;
  }
  .hero-search button {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.25rem;
  }

  /* Grid layouts */
  .grid-3-cols-equal,
  .grid-4-cols-equal {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Cards and content blocks - Reduce padding on mobile */
  .content-block {
    padding: 1.25rem !important;
    margin-bottom: 1.5rem;
  }
  .content-block h2 {
    font-size: 1.3rem !important;
  }
  .content-block p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* ViteUnDevis Box mobile responsive styling */
  .vud-box {
    padding: 1.5rem 1rem !important;
    margin: 2rem 0 !important;
    border-radius: var(--radius-md);
  }
  .vud-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
  .vud-header h3 {
    font-size: 1.4rem !important;
  }
  .vud-header p {
    font-size: 0.9rem;
  }

  /* Calculator Box responsive */
  .calculator-box {
    padding: 1.25rem !important;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
  }
  .calculator-title {
    font-size: 1.25rem !important;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .calculator-result-side {
    padding: 1.25rem;
    min-height: auto;
  }
  .result-badge-score {
    font-size: 2rem !important;
  }

  /* Radio Tile Groups */
  .radio-tile-group {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .radio-tile-label {
    padding: 0.75rem 0.25rem;
    font-size: 0.8rem;
  }

  /* Linking & Navigation tabs */
  .linking-section {
    padding: 1.5rem 1rem !important;
    border-radius: var(--radius-md);
  }
  .linking-section h3 {
    font-size: 1.4rem !important;
  }
  .linking-nav {
    gap: 0.35rem;
  }
  .linking-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .linking-content.active {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
  .linking-link {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  /* Artisan card items on mobile */
  .artisan-card-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1rem !important;
    gap: 1rem !important;
  }
  .artisan-card-item button,
  .artisan-card-item a {
    width: 100%;
  }

  /* Tool Hub grids */
  .tool-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .tool-card {
    padding: 1.5rem;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-bottom div {
    justify-content: center;
  }
}

/* Tiny mobile screens (Under 375px) */
@media (max-width: 375px) {
  .radio-tile-group {
    grid-template-columns: 1fr;
  }
  .linking-content.active {
    grid-template-columns: 1fr !important;
  }
}