/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a56db;
  --secondary-color: #4f46e5;
  --text-color: #374151;
  --heading-color: #111827;
  --light-text: #6b7280;
  --bg-color: #ffffff;
  --light-bg: #f9fafb;
  --border-color: #e5e7eb;
  --accent-color: #f59e0b;
  --button-color: #1a56db;
  --button-hover-color: #0f45c0;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --footer-bg: #f8fafc;
  --footer-text: #4b5563;
  --footer-link-hover: #1a56db;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--heading-color);
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p, ul, ol {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Make sure all icons have the correct color */
i.fas, i.far, i.fab, i.fa {
  color: var(--primary-color) !important;
}

/* Layout styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.guide-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main content area */
.site-content {
  flex: 1;
}

/* Header styles */
.header {
  background-color: var(--bg-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;
  width: auto;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  margin-right: 2rem;
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  height: 40px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  height: 40px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--button-color);
  color: white;
  border: 1px solid var(--button-color);
}

.btn-primary:hover {
  background-color: var(--button-hover-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn i {
  color: var(--primary-color) !important;
}

/* Mobile menu styles */
.nav.mobile-active {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  flex-direction: column;
  align-items: center;
  z-index: 999;
  margin-top: 1rem;
}

.nav.mobile-active .nav-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0 1.5rem;
}

.nav.mobile-active .nav-menu li {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.nav.mobile-active .nav-menu li:last-child {
  border-bottom: none;
}

.nav.mobile-active .nav-link {
  padding: 1rem 0;
  width: 100%;
  justify-content: flex-start;
}

.nav.mobile-active .btn {
  margin-top: 1rem;
  width: calc(100% - 3rem);
  display: inline-flex;
}

/* Hero section */
.guide-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(to right, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 2.5rem;
  margin: 0;
  color: #111827;
  max-width: 800px;
}

/* Main content styles */
.content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem 0 4rem;
  padding-bottom:0px;
}

.main-content {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 1rem;
}

/* Table of contents */
.toc {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 4px solid var(--primary-color);
}

.toc-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #111827;
}

.toc-title i {
  margin-right: 1rem;
  color: var(--primary-color) !important;
  transition: transform 0.3s ease;
}

.toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toc-content.open {
  max-height: 1000px;
}

.toc-content ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.toc-content a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.toc-content a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.toc-content .submenu-item {
  padding-left: 1.75rem;
  position: relative;
}

.toc-content .submenu-item::before {
  content: "•";
  position: absolute;
  left: 0.75rem;
  color: var(--primary-color);
}

/* Intro and call to action */
.intro-section {
  position: relative;
  margin-bottom: 3rem;
}

.tarif-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.tarif-text strong {
  color: #111827;
  font-weight: 600;
}

.tarif-img {
  width: 100%;
  margin-bottom: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-height:600px;
}

/* CTA section centré */
.cta-section {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* Content sections */
.section {
  margin-bottom: 4.5rem;
}

/* Lists styling */
.main-content ul, 
.main-content ol {
  padding-left: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .main-content ul, 
  .main-content ol {
    padding-left: 0rem;
    margin-bottom: 2rem;
  }
}
.main-content li {
  margin-bottom: 0.9rem;
}

/* Special boxes */
.bon-a-savoir {
  background-color: var(--info-bg);
  border-radius: var(--border-radius);
  padding: 2.25rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--primary-color);
}

.bon-a-savoir-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.bon-a-savoir-header i {
  width: 35px !important;
  height: 35px !important;
  margin-right: 1.5rem !important;
  color: var(--primary-color) !important;
  font-size: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.bon-a-savoir-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.bon-a-savoir-content p {
  margin-bottom: 1rem;
}

.bon-a-savoir-content p:last-child {
  margin-bottom: 0;
}

.a-lire-également {
  margin: 2.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--light-bg);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-color);
}

.a-lire-également p {
  margin: 0;
  font-weight: 500;
}

/* Table styles */
.tarif-table-container {
  overflow-x: auto;
  margin: 2.5rem 0;
}

.tarif-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid var(--border-color);
}

.tarif-table th, 
.tarif-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.tarif-table th {
  background-color: var(--light-bg);
  font-weight: 600;
  color: #111827;
}

.tarif-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.tarif-table tr:hover {
  background-color: rgba(79, 70, 229, 0.03);
}

/* Summary section */
.Section6-articles {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

.Section6-articles h5 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #111827;
}

.Section6-articles ul {
  margin-bottom: 0;
  list-style-position: inside;
}

.Section6-articles ul li {
  margin-bottom: 0.75rem;
}

.Section6-articles ul li:last-child {
  margin-bottom: 0;
}

/* Related articles section */
.conseils-section {
  background-color: var(--light-bg);
  padding: 1rem 0;
  margin-top: 1rem;
}

.conseils-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.conseils-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.conseils-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}
/* Amélioration du calculateur de prix pour le mobile */
.price-calculator {
  padding: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  box-sizing: border-box;
}

.calculator-form {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.form-group {
  width: 100%;
}

.form-group input,
.form-group select {
  width: 100%;
  box-sizing: border-box;
}

/* Styles spécifiques pour les appareils mobiles */
@media (max-width: 768px) {
  .price-calculator {
    padding: 1.25rem;
    margin: 1.5rem 0;
  }
  
  .price-calculator h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
  }
  
  .form-group input,
  .form-group select {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .calculation-result {
    padding: 1rem;
    margin-top: 1rem;
  }
  
  #calculate-btn {
    width: 100%;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .price-calculator {
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left-width: 3px;
  }
  
  .form-group {
    gap: 0.5rem;
  }
  
  .calculator-form {
    gap: 0.85rem;
  }
  
  .price-calculator h4 {
    font-size: 1rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .calculation-result .disclaimer {
    font-size: 0.8rem;
  }
}
.conseils-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.conseils-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.conseils-content {
  padding: 1.5rem;
}

.conseils-content h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.conseils-content p {
  font-size: 1rem;
  color: var(--light-text);
  margin-bottom: 0;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: var(--button-color);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  margin-top: 1.25rem;
}

.cta-button:hover {
  background-color: var(--button-hover-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-button i {
  color: white !important;
  margin-left: 0.5rem;
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 5px;
  background: var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.progress-bar {
  height: 5px;
  background: var(--primary-color);
  width: 0%;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--button-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--button-hover-color);
  transform: translateY(-3px);
}

.back-to-top i {
  color: white !important;
}

/* Expert quote */
.quote-box {
  background-color: var(--info-bg);
  border-radius: var(--border-radius);
  padding: 2.25rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--accent-color);
}
.fa-arrow-right path {
  fill: white !important;
}
.summary-icon path[fill="currentColor"],
.fa-euro-sign path[fill="currentColor"] {
  fill: white !important;
}
.summary-icon svg path {
  fill: white !important;
}
.summary-icon svg *,
.back-to-top svg *,
.cta-button svg * {
  fill: white !important;
}
.back-to-top path[fill="currentColor"] {
  fill: white !important;
}
.quote-text {
  font-style: italic;
  color: var(--text-color);
  position: relative;
  padding-left: 0rem;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .quote-text {
    padding-left: 0rem;  /* suppression du padding sur mobile */
  }
}
.quote-text::before {
  content: """;
  font-size: 3.5rem;
  position: absolute;
  left: -0.5rem;
  top: -1.25rem;
  color: var(--accent-color);
  opacity: 0.3;
}

/* Price calculator */
.price-calculator {
  background-color: #f0f9ff;
  border-radius: var(--border-radius);
  padding: 2.25rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--primary-color);
}

.price-calculator h4 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.calculator-form {
  display: grid;
  gap: 1.25rem;
}

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

.form-group label {
  font-weight: 500;
  font-size: 1rem;
}

.form-group input,
.form-group select {
  padding: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
}
.header-inner {
  display: flex;
  align-items: center;
  position: relative;
}

.logo {
  position: absolute;
  left: 0;
}

.nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.calculation-result {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
}

.calculation-result p {
  margin: 0;
}

.calculation-result .disclaimer {
  font-size: 0.875rem;
  color: var(--light-text);
  margin-top: 0.75rem;
}

/* Price factors chart */
.price-factors-chart {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 2.25rem;
  margin: 2.5rem 0;
}

.price-factors-chart h4 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #111827;
  font-size: 1.25rem;
}

.factor-bar {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
/* Design moderne pour tableaux comparatifs - Version légère avec titre centré */
div[style*="overflow: auto; max-width: 100%"] table,
div[style*="overflow:auto;max-width:100%"] table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  border: 1px solid #e0e0e0;
}

div[style*="overflow: auto; max-width: 100%"],
div[style*="overflow:auto;max-width:100%"] {
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: auto;
}

div[style*="overflow: auto; max-width: 100%"] caption,
div[style*="overflow:auto;max-width:100%"] caption {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1.2rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f8f8;
  color: #333;
}

div[style*="overflow: auto; max-width: 100%"] th,
div[style*="overflow:auto;max-width:100%"] th {
  background-color: #f8f8f8;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid #e0e0e0;
  font-size: 0.95rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 10;
}

div[style*="overflow: auto; max-width: 100%"] td,
div[style*="overflow:auto;max-width:100%"] td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.5;
  vertical-align: top;
}

div[style*="overflow: auto; max-width: 100%"] tr:last-child td,
div[style*="overflow:auto;max-width:100%"] tr:last-child td {
  border-bottom: none;
}

div[style*="overflow: auto; max-width: 100%"] tbody tr:hover,
div[style*="overflow:auto;max-width:100%"] tbody tr:hover {
  background-color: #f5f5f5;
  transition: background-color 0.2s ease;
}

/* Style pour les listes à l'intérieur des tableaux */
div[style*="overflow: auto; max-width: 100%"] ul,
div[style*="overflow:auto;max-width:100%"] ul {
  padding-left: 1.2rem;
  margin: 0;
}

div[style*="overflow: auto; max-width: 100%"] li,
div[style*="overflow:auto;max-width:100%"] li {
  margin-bottom: 0.5rem;
  position: relative;
}

div[style*="overflow: auto; max-width: 100%"] li:last-child,
div[style*="overflow:auto;max-width:100%"] li:last-child {
  margin-bottom: 0;
}

/* Style pour les textes en gras */
div[style*="overflow: auto; max-width: 100%"] strong,
div[style*="overflow:auto;max-width:100%"] strong {
  color: #444;
  font-weight: 600;
}

/* Style pour le pied de tableau */
div[style*="overflow: auto; max-width: 100%"] tfoot td,
div[style*="overflow:auto;max-width:100%"] tfoot td {
  font-style: italic;
  font-size: 0.85rem;
  color: #777;
  padding: 1rem;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
}

/* Style pour les en-têtes de colonnes spécifiques */
div[style*="overflow: auto; max-width: 100%"] th:first-child,
div[style*="overflow:auto;max-width:100%"] th:first-child {
  width: 20%;
}

/* Responsive design pour petits écrans */
@media (max-width: 768px) {
  div[style*="overflow: auto; max-width: 100%"] th,
  div[style*="overflow: auto; max-width: 100%"] td,
  div[style*="overflow:auto;max-width:100%"] th,
  div[style*="overflow:auto;max-width:100%"] td {
    padding: 0.8rem;
  }
  
  div[style*="overflow: auto; max-width: 100%"] caption,
  div[style*="overflow:auto;max-width:100%"] caption {
    font-size: 1.1rem;
    padding: 1rem;
  }
  
  div[style*="overflow: auto; max-width: 100%"] th:first-child,
  div[style*="overflow:auto;max-width:100%"] th:first-child {
    width: auto;
  }
}

/* Barre de défilement personnalisée */
div[style*="overflow: auto; max-width: 100%"]::-webkit-scrollbar,
div[style*="overflow:auto;max-width:100%"]::-webkit-scrollbar {
  height: 8px;
}

div[style*="overflow: auto; max-width: 100%"]::-webkit-scrollbar-track,
div[style*="overflow:auto;max-width:100%"]::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

div[style*="overflow: auto; max-width: 100%"]::-webkit-scrollbar-thumb,
div[style*="overflow:auto;max-width:100%"]::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

div[style*="overflow: auto; max-width: 100%"]::-webkit-scrollbar-thumb:hover,
div[style*="overflow:auto;max-width:100%"]::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
.factor-name {
  font-weight: 500;
}

.factor-bar-container {
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 6px;
}

.factor-impact {
  font-size: 0.9rem;
  color: var(--light-text);
  text-align: right;
  padding-right: 15px;
}

/* Summary infographic */
.summary-infographic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.summary-item {
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.summary-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.summary-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.summary-icon i {
  color: white !important;
}

.summary-content h4 {
  margin: 0 0 0.75rem;
  color: #111827;
  font-size: 1.25rem;
}

.summary-content p {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Comparison CTA */
.comparison-cta {
  display: flex;
  gap: 2rem;
  background-color: #f0f9ff;
  border-radius: var(--border-radius);
  padding: 2.25rem;
  margin: 2.5rem 0;
  align-items: center;
}

.cta-icon {
  font-size: 3rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.cta-icon i {
  color: var(--primary-color) !important;
}

.cta-content h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #111827;
  font-size: 1.25rem;
}

.cta-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.cta-content .cta-button i {
  color: white !important;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  margin: 4rem 0 1.5rem;
}

.final-cta h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.final-cta p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  opacity: 0.95;
}

.final-cta .cta-button {
  background-color: white;
  color: var(--primary-color);
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.svg-inline--fa {
  color: var(--primary-color) !important;
  margin-right: 10px;
}

.final-cta .cta-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.final-cta .cta-button i {
  color: var(--primary-color) !important;
}

/* Footer Styles */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-left {
  flex: 0 0 100%;
  max-width: 350px;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 220px;
  border-radius: 0;
}

.footer-left p {
  color: var(--footer-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  justify-content: space-around;
  gap: 2rem;
}

.footer-column {
  flex: 0 0 auto;
  min-width: 150px;
}

.footer-column h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

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

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

.footer-column ul li a {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: var(--footer-link-hover);
  text-decoration: none;
  padding-left: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

/* Header scroll effect */
.header-scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.98);
}

/* Responsive styles */
@media (max-width: 992px) {
  .nav-menu {
    margin-right: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .footer-left {
    max-width: 300px;
  }
  
  .footer-right {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
  
  .guide-hero {
    padding: 2.5rem 0 1.5rem;
  }
  
  .conseils-card-container {
    grid-template-columns: 1fr;
  }
  
  .factor-bar {
    grid-template-columns: 1fr;
  }
  
  .factor-impact {
    text-align: left;
    padding-left: 15px;
    padding-right: 0;
  }
  
  .comparison-cta {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }
  
  .summary-infographic {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .bon-a-savoir,
  .price-calculator,
  .quote-box,
  .price-factors-chart {
    padding: 1.75rem;
  }
  
  .bon-a-savoir-header i {
    margin-right: 1rem !important;
  }
  
  .cta-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
  
  /* Header mobile styles */
  .nav-menu {
    display: none;
  }
  
  /* Supprimé pour que le bouton reste visible */
  /* .nav .btn {
    display: none;
  } */
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* Animation pour le menu mobile */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .nav.mobile-active {
    animation: slideDown 0.3s ease forwards;
  }
  
  /* Footer responsive */
  .footer-inner {
    flex-direction: column;
  }
  
  .footer-left {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .footer-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-column {
    flex: 0 0 calc(50% - 1rem);
    margin-bottom: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .guide-container {
    padding: 0 1rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
  
  .summary-infographic {
    grid-template-columns: 1fr;
  }
  
  .summary-item {
    padding: 1.5rem;
  }
  
  .bon-a-savoir,
  .price-calculator,
  .quote-box,
  .price-factors-chart {
    padding: 1.5rem;
  }
  
  /* Correction de la marge du sommaire sur mobile */
  .toc {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .toc-content .submenu-item {
    padding-left: 1rem; /* Réduire la marge à gauche pour les éléments du sommaire */
  }
  
  .toc-content .submenu-item::before {
    left: 0.25rem; /* Ajuster la position du point */
  }
  
  .toc-content a:hover {
    padding-left: 0.25rem; /* Réduire le décalage au survol */
  }
  
  .bon-a-savoir-header i {
    width: 30px !important;
    height: 30px !important;
    margin-right: 0.85rem !important;
    font-size: 1.25rem !important;
  }
  
  .tarif-table th, 
  .tarif-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .header {
    padding: 0rem 0;
  }
  
  .logo img {
    height: 35px;
  }
  
  /* Footer extra small */
  .footer {
    padding: 3rem 0 0;
  }
  
  .footer-column {
    flex: 0 0 100%;
  }
  
  .footer-bottom-links {
    gap: 1rem;
  }
  
  .footer-bottom-links a {
    font-size: 0.85rem;
  }
}

.header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
  height: 70px !important;
}

.logo img {
  height: 60px !important;
  width: auto !important;
margin-top:18px;
}

.nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  margin-left: auto !important;
}

.nav-menu {
  display: flex !important;
  align-items: center !important;
  margin-right: 1.5rem !important;
}

/* Version mobile simplifiée */
@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between !important;
    padding: 0 1rem !important;
  }
  
  .logo {
    flex: 1 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .logo img {
    height: 55px !important;
  }
  
  .nav {
    position: static !important;
    margin-left: 0 !important;
  }
  
  .nav-menu {
    display: none !important;
  }
  
  .btn.btn-primary {
    display: none !important; /* On cache le bouton dans l'entête sur mobile */
  }
  
  .mobile-menu-btn {
    display: block !important;
    order: 2 !important;
  }
  
  /* Menu déroulant */
  .nav.mobile-active {
    position: absolute !important;
    top: 70px !important;
    left: 0 !important;
    width: 100% !important;
    background-color: white !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    z-index: 100 !important;
  }
  
  .nav.mobile-active .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
  }
  
  .nav.mobile-active .nav-menu li {
    width: 100% !important;
    border-bottom: 1px solid #eee !important;
  }
  
  .nav.mobile-active .nav-link {
    padding: 1rem 1.5rem !important;
    display: block !important;
    width: 100% !important;
  }
  
  .nav.mobile-active .btn.btn-primary {
    display: inline-flex !important;
    margin: 1rem 1.5rem !important;
    width: calc(100% - 3rem) !important;
  }
}footer.footer {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  position: relative;
  background: #f8f8f8; /* couleur de fond */
}
footer.footer .container {
  max-width: 1200px !important; /* ou la valeur désirée */
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
footer.footer .footer-inner {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 40px !important;
}
footer.footer .footer-left {
  flex: 1 1 250px !important;
  min-width: 220px !important;
  max-width: 350px !important;
}
footer.footer .footer-right {
  display: flex !important;
  flex-direction: row !important;
  flex: 2 1 500px !important;
  gap: 40px !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
}
footer.footer .footer-column {
  min-width: 170px !important;
  max-width: 240px !important;
  flex: 1 1 170px !important;
}
@media (max-width: 900px) {
  footer.footer .footer-inner {
    flex-direction: column !important;
    gap: 20px !important;
  }
  footer.footer .footer-right {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
}
/* Style de tableau générique et robuste */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: inherit;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

table caption {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  caption-side: top;
  color: var(--heading-color, #111827);
  background-color: var(--light-bg, #f9fafb);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

table th {
  background-color: var(--light-bg, #f9fafb);
  color: var(--heading-color, #111827);
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
  position: relative;
}

table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  color: var(--text-color, #374151);
  vertical-align: middle;
}

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

table tr:nth-child(even) {
  background-color: var(--light-bg, #f9fafb);
}

table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Pour les icônes dans les tableaux */
table svg,
table i.fas,
table i.fa {
  display: inline-block;
  vertical-align: middle;
}

table svg path[fill="currentColor"] {
  fill: currentColor;
}

/* Style pour les SVG avec couleur verte */
table svg[style*="color: green"] path {
  fill: #22c55e !important;
}

/* Style pour les conteneurs de tableaux */
div[class*="table"],
div[style*="overflow-x: auto"],
div[style*="overflow-x:auto"] {
  overflow-x: auto;
  max-width: 100%;
  border-radius: var(--border-radius, 8px);
  margin: 1.5rem 0;
}

/* Style responsive */
@media (max-width: 768px) {
  table th,
  table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Style pour les barres de défilement */
div[style*="overflow-x: auto"]::-webkit-scrollbar,
div[style*="overflow-x:auto"]::-webkit-scrollbar {
  height: 8px;
}

div[style*="overflow-x: auto"]::-webkit-scrollbar-track,
div[style*="overflow-x:auto"]::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb,
div[style*="overflow-x:auto"]::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb:hover,
div[style*="overflow-x:auto"]::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
