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

:root {
  --primary-color: #4a90e2;
  --primary-dark: #357abd;
  --success-color: #28a745;
  --error-color: #dc3545;
  --text-color: #333;
  --text-light: #666;
  --border-color: #ddd;
  --bg-color: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --navbar-height: 70px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  color: var(--text-color);
  line-height: 1.6;
}

/* Menu de navigation fixe */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: var(--navbar-height);
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5em;
  font-weight: 700;
}

.navbar-brand a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand a:hover {
  color: var(--primary-dark);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin: 0;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 5px;
}

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

/* Masquer les éléments du menu mobile en desktop */
.menu-close-wrapper {
  display: none;
}

.menu-header,
.menu-logo,
.menu-close-btn {
  display: none;
}

/* Menu mobile */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 0;
    z-index: 9999;
    overflow-y: auto;
  }

  .navbar-menu.active {
    transform: translateX(0);
  }

  .menu-close-wrapper {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
  }

  .menu-header {
    display: flex;
    width: 100%;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
  }

  .menu-logo {
    display: block;
    flex: 1;
  }

  .menu-logo a {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .menu-logo a:hover {
    color: var(--primary-dark);
  }

  .menu-close-btn {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .menu-close-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    transform: rotate(90deg);
  }

  .menu-close-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
  }

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

  .navbar-menu li:last-child {
    border-bottom: none;
  }

  .navbar-menu li:not(.menu-close-wrapper) {
    padding: 0 20px;
  }

  .nav-link {
    display: block;
    padding: 20px 0;
    width: 100%;
    font-size: 1.1em;
  }

  .nav-link::after {
    display: none;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* Hero Slider Section */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  padding-top: var(--navbar-height);
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9) 0%,
    rgba(118, 75, 162, 0.9) 100%
  );
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-content {
  text-align: center;
  color: var(--white);
  padding: 40px 20px;
  max-width: 900px;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
}

.slide-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slide-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--primary-color);
  color: var(--white);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
  pointer-events: none;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.slider-btn svg {
  width: 24px;
  height: 24px;
}

/* Slider Pagination */
.slider-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pagination-dot.active,
.pagination-dot:hover {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

/* Services Section */
/* Classe générique pour toutes les sections de contenu */
.content-section {
  padding: 0px 20px 100px 20px;
  background: var(--white);
  min-height: 100vh;
}

/* Container générique pour toutes les sections */
.content-container {
  max-width: 1400px;
  margin: 0 auto;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.2);
}

.section-title {
  font-size: 2em;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.95);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.service-card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.05) 0%,
    rgba(53, 122, 189, 0.05) 100%
  );
}

.service-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.service-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

.service-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-features li {
  padding: 8px 0;
  color: var(--text-color);
  font-size: 0.95em;
}

/* Séparation fonctionnalités incluses / options */
.features-included {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 2px dashed var(--border-color);
  flex: 1;
}

.features-options {
  margin-top: 25px;
  flex: 1;
}

.features-title {
  font-size: 1em;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.service-features-options {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.05) 0%,
    rgba(245, 124, 0, 0.05) 100%
  );
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #ff9800;
  margin-top: 10px;
}

.service-features-options li {
  color: var(--text-color);
  opacity: 0.9;
}

.service-note {
  margin-top: 20px;
  padding: 15px;
  background: var(--bg-color);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.service-note small {
  color: var(--text-light);
  font-size: 0.9em;
  line-height: 1.5;
}

.service-highlight {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.1) 0%,
    rgba(53, 122, 189, 0.1) 100%
  );
  border-radius: 10px;
  border: 2px solid var(--primary-color);
}

.service-highlight strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.1em;
  margin-bottom: 10px;
}

.service-highlight p {
  color: var(--text-color);
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
}

.services-cta {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 12px;
  color: var(--white);
}

.cta-text {
  font-size: 1.3em;
  margin-bottom: 20px;
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: var(--bg-color);
}

/* Portfolio Section */
.portfolio-container {
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background: var(--white);
  aspect-ratio: 16/9;
}

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

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  color: var(--text-light);
  padding: 40px;
  text-align: center;
}

.portfolio-placeholder svg {
  color: var(--primary-color);
  margin-bottom: 15px;
  opacity: 0.5;
}

.portfolio-placeholder p {
  font-size: 1em;
  font-weight: 500;
  color: var(--text-light);
}

/* About Section */
.about-container {
  max-width: 1400px;
  margin: 0 auto;
}

.about-content {
  margin-top: 40px;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

.about-values {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.about-values li {
  padding: 15px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

.about-values li:last-child {
  border-bottom: none;
}

.about-values li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

.about-values li strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Financement Section */
.financement-container {
  max-width: 1400px;
  margin: 0 auto;
}

.financement-content {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.financement-intro {
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.1) 0%,
    rgba(53, 122, 189, 0.1) 100%
  );
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 40px;
}

.intro-text {
  font-size: 1.2em;
  line-height: 1.8;
  color: var(--text-color);
  margin: 0;
}

.financement-eligibility,
.financement-steps,
.financement-info,
.financement-contact {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--bg-color);
  border-radius: 12px;
}

.financement-eligibility h3,
.financement-steps h3,
.financement-info h3,
.financement-contact h3 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.financement-eligibility p,
.financement-info p,
.financement-contact p {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 15px;
}

.financement-eligibility p:last-child,
.financement-info p:last-child {
  margin-bottom: 0;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.steps-list li {
  counter-increment: step-counter;
  padding: 20px 20px 20px 60px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  position: relative;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.steps-list li:last-child {
  margin-bottom: 0;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1em;
}

.steps-list li strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Accordion Styles */
.accordion-container {
  margin-top: 20px;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: var(--white);
}

.accordion-header {
  width: 100%;
  padding: 20px 25px;
  background: var(--white);
  border: none;
  border-left: 4px solid var(--primary-color);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-color);
}

.accordion-header:hover {
  background: var(--bg-color);
}

.accordion-header.active {
  background: var(--bg-color);
  border-left-color: var(--primary-dark);
}

.accordion-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1em;
  flex-shrink: 0;
}

.accordion-header.active .accordion-number {
  background: var(--primary-dark);
}

.accordion-title {
  flex: 1;
  text-align: left;
}

.accordion-icon {
  font-size: 0.8em;
  transition: transform 0.3s ease;
  color: var(--primary-color);
  flex-shrink: 0;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: var(--bg-color);
}

.accordion-content.active {
  max-height: 2000px;
  padding: 25px;
}

.accordion-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-color);
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content h4 {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.accordion-content h4:first-child {
  margin-top: 0;
}

.documents-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.documents-list li {
  padding: 10px 0 10px 25px;
  position: relative;
  line-height: 1.7;
  color: var(--text-color);
}

.documents-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1em;
}

.documents-list ul {
  margin: 10px 0 10px 20px;
  padding-left: 20px;
}

.documents-list ul li {
  padding-left: 20px;
  font-size: 0.95em;
}

.documents-list li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.financement-solution {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.15) 0%,
    rgba(53, 122, 189, 0.15) 100%
  );
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.financement-solution h4 {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.financement-solution p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-color);
}

.solution-note {
  margin-top: 20px;
  padding: 15px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 6px;
  font-style: italic;
  border-left: 3px solid var(--primary-color);
}

.solution-note strong {
  color: var(--primary-color);
  font-weight: 600;
  font-style: normal;
}

.devis-button-container {
  margin: 25px 0;
  text-align: center;
}

.devis-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.devis-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
}

/* Tarifs Table Section */
.tarifs-table-section {
  margin-top: 50px;
  padding: 40px 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tarifs-table-section h3 {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.tarifs-intro {
  text-align: center;
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.7;
}

.tarifs-table-container {
  overflow-x: auto;
  margin: 30px 0;
}

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

/* Version mobile : cartes au lieu du tableau */
@media (max-width: 768px) {
  .tarifs-table-container {
    overflow-x: visible;
    margin: 20px 0;
  }

  .tarifs-table {
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .tarifs-table thead {
    display: none;
  }

  .tarifs-table tbody {
    display: block;
  }

  .tarifs-table tbody tr {
    display: block;
    margin-bottom: 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .tarifs-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
  }

  .tarifs-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .tarifs-table td {
    display: block;
    padding: 0;
    text-align: left !important;
    border: none;
    margin-bottom: 15px;
    width: 100%;
  }

  .tarifs-table td strong {
    text-align: left;
    display: block;
  }

  .tarifs-table td:last-child {
    margin-bottom: 0;
  }

  .tarifs-table td:first-child {
    font-size: 1.2em;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
  }

  .tarifs-table td:nth-child(2) {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: left;
  }

  .tarifs-table td:last-child {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: left !important;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--border-color);
    width: 100%;
  }
}

.tarifs-table thead {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
}

.tarifs-table th {
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tarifs-table th:first-child {
  width: 25%;
}

.tarifs-table th:nth-child(2) {
  width: 50%;
}

.tarifs-table th:last-child {
  width: 25%;
  text-align: right;
}

.tarifs-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.tarifs-table tbody tr:last-child {
  border-bottom: none;
}

.tarifs-table tbody tr:hover {
  background-color: rgba(74, 144, 226, 0.05);
}

.tarifs-table td {
  padding: 20px;
  font-size: 1em;
  color: var(--text-color);
  line-height: 1.6;
  vertical-align: top;
}

.tarifs-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
}

.tarifs-table td:nth-child(2) {
  color: var(--text-light);
}

.tarifs-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1em;
}

.tarifs-note {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.1) 0%,
    rgba(53, 122, 189, 0.1) 100%
  );
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.tarifs-note p {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

.tarifs-note strong {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-note {
  margin-top: 15px;
  font-style: italic;
  color: var(--text-light);
}

/* Contact Section */
.contact-container {
  max-width: 1400px;
  margin: 0 auto;
}

#app {
  width: 100%;
}

.content-section .container {
  max-width: 600px;
  margin: 40px auto 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 40px 30px;
  text-align: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 600;
}

.subtitle {
  font-size: 1.1em;
  opacity: 0.95;
}

main {
  padding: 40px 30px;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95em;
  line-height: 1.4;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.85em;
  margin-top: 5px;
  min-height: 20px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error-color);
}

.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 0.95em;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  background: var(--bg-color);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9em;
  border-top: 1px solid var(--border-color);
  margin-top: 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .hero-slider {
    min-height: 500px;
    height: 100vh;
  }

  .slide-title {
    font-size: 2em;
  }

  .slide-description {
    font-size: 1.1em;
  }

  .slide-btn {
    padding: 12px 30px;
    font-size: 1em;
  }

  .slider-controls {
    padding: 0 15px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-btn svg {
    width: 20px;
    height: 20px;
  }

  .slider-pagination {
    bottom: 20px;
  }

  .content-section {
    padding: 0px 0px 60px 0px;
  }

  .section-header {
    padding: 30px 15px;
  }

  .section-title {
    font-size: 1.8em;
  }

  .section-subtitle {
    font-size: 1em;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .content-container,
  .services-container,
  .portfolio-container,
  .about-container,
  .financement-container,
  .contact-container {
    padding: 0 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-text h3 {
    font-size: 1.5em;
  }

  .about-text p,
  .about-values li {
    font-size: 1em;
  }

  .financement-intro,
  .financement-eligibility,
  .financement-steps,
  .financement-info,
  .financement-contact {
    padding: 20px;
    margin-bottom: 30px;
  }

  .intro-text {
    font-size: 1.1em;
  }

  .financement-eligibility h3,
  .financement-steps h3,
  .financement-info h3,
  .financement-contact h3 {
    font-size: 1.3em;
  }

  .financement-eligibility p,
  .financement-info p,
  .financement-contact p,
  .steps-list li {
    font-size: 1em;
  }

  .steps-list li {
    padding: 15px 15px 15px 50px;
  }

  .steps-list li::before {
    width: 25px;
    height: 25px;
    font-size: 0.9em;
    left: 12px;
  }

  .accordion-header {
    padding: 15px 20px;
    font-size: 1em;
  }

  .accordion-number {
    width: 30px;
    height: 30px;
    font-size: 0.9em;
  }

  .accordion-content {
    padding: 20px !important;
  }

  .accordion-content.active {
    padding: 20px !important;
  }

  .devis-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .tarifs-table-section {
    padding: 25px 0;
    margin-top: 40px;
  }

  .tarifs-table-section h3 {
    font-size: 1.5em;
  }

  .tarifs-intro {
    font-size: 1em;
    padding: 0 20px;
  }

  .tarifs-note {
    padding: 20px;
    margin-top: 20px;
  }

  .tarifs-note p {
    font-size: 1em;
  }

  .site-footer {
    padding: 20px 15px;
  }

  .footer-container {
    padding: 0 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

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

  .cta-text {
    font-size: 1.1em;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  main {
    padding: 30px 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px; /* Évite le zoom automatique sur iOS */
    border-radius: 8px;
    min-height: 44px; /* Taille minimale recommandée pour mobile (Apple HIG) */
  }

  .form-group textarea {
    min-height: 120px;
    padding: 14px 16px;
  }

  .submit-btn {
    padding: 16px 24px;
    font-size: 1.1em;
    min-height: 48px; /* Zone de tap optimale pour mobile */
    border-radius: 8px;
  }

  main {
    padding: 30px 20px;
  }

  .content-section .container {
    margin: 20px auto 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    min-height: 400px;
  }

  .slide-title {
    font-size: 1.5em;
  }

  .slide-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .slide-content {
    padding: 20px 15px;
  }
}

/* Optimisation pour les petits écrans (tablettes) */
@media (max-width: 1024px) {
  main {
    padding: 35px 25px;
  }

  .form-group {
    margin-bottom: 0px;
  }
}
