/* ===== Services Section (scoped to .services-section) ===== */
.services-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease-out;
}

.services-section .section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a2b5a;
  margin-bottom: 15px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  border-radius: 2px;
}

.services-section .section-description {
  font-size: 1rem;
  color: #6c757d;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  padding: 0 15px;
}

.services-section .service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Optimisation */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
  will-change: transform; /* Optimisation pour les animations */
}

.services-section .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.services-section .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.services-section .service-card:hover::before {
  transform: scaleX(1);
}

.services-section .service-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.2rem;
  color: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 123, 0, 0.2);
}

.services-section .service-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.services-section .service-card:hover .service-icon {
  transform: scale(1.05);
}

.services-section .service-card:hover .service-icon::before {
  width: 80px;
  height: 80px;
}

/* Service-specific icon background gradients */
.services-section .service-icon.diagnostic {
  background: linear-gradient(135deg, #ff7b00 0%, #e66500 100%);
}

.services-section .service-icon.reparation {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.services-section .service-icon.maintenance {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.services-section .service-icon.vente {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.services-section .service-icon.pieces {
  background: linear-gradient(135deg, #fd7e14 0%, #e06d06 100%);
}

.services-section .service-icon.climatisation {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.services-section .service-icon.carrosserie {
  background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.services-section .service-icon.pneus {
  background: linear-gradient(135deg, #20c997 0%, #199d76 100%);
}

.services-section .service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  text-align: center;
  flex-grow: 0;
}

.services-section .service-description {
  color: #4b5563;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.5;
  font-size: 0.85rem;
  flex-grow: 1;
}

.services-section .service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  flex-grow: 0;
}

.services-section .service-features li {
  color: #27ae60;
  font-size: 0.8rem;
  display: flex;
  align-items: flex-start;
  text-align: left;
  line-height: 1.4;
  position: relative;
  padding-left: 20px;
}

.services-section .service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: bold;
  color: #27ae60;
  margin-right: 8px;
  flex-shrink: 0;
}

/* CTA inside services section */
.services-section .cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1a2b5a 0%, #0f1a3a 100%);
  color: #ffffff;
  padding: 60px 30px;
  border-radius: 16px;
  margin-top: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.services-section .cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjAuNSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
  opacity: 0.1;
}

.services-section .cta-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.services-section .cta-section p {
  font-size: 1rem;
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.services-section .cta-button {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: #ffffff;
  border: none;
  padding: 14px 35px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
}

.services-section .cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.services-section .cta-button:hover::before {
  width: 350px;
  height: 350px;
}

.services-section .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 107, 107, 0.35);
}

/* Stagger animation for cards only inside services section */
.services-section .services-grid .service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.services-section .services-grid .service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.services-section .services-grid .service-card:nth-child(3) {
  animation-delay: 0.3s;
}

.services-section .services-grid .service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.services-section .services-grid .service-card:nth-child(5) {
  animation-delay: 0.5s;
}

.services-section .services-grid .service-card:nth-child(6) {
  animation-delay: 0.6s;
}

.services-section .services-grid .service-card:nth-child(7) {
  animation-delay: 0.7s;
}

.services-section .services-grid .service-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* Responsive (scoped adjustments) */
@media (max-width: 768px) {
  .services-section {
    padding: 50px 0;
  }
  
  .services-section .section-title {
    font-size: 1.8rem;
  }
  
  .services-section .section-description {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  
  .services-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
  
  .services-section .service-card {
    padding: 15px 12px;
    min-height: 220px;
  }
  
  .services-section .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .services-section .service-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .services-section .service-description {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .services-section .service-features li {
    font-size: 0.75rem;
    padding-left: 18px;
  }
  
  .services-section .service-features li::before {
    width: 13px;
    height: 13px;
    font-size: 0.55rem;
  }
  
  .services-section .cta-section {
    padding: 40px 15px;
  }
  
  .services-section .cta-section h2 {
    font-size: 1.6rem;
  }
  
  .services-section .cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .services-section .section-title {
    font-size: 1.5rem;
  }
  
  .services-section .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .services-section .service-card {
    padding: 12px 10px;
    min-height: auto;
  }
  
  .services-section .service-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .services-section .service-title {
    font-size: 0.95rem;
  }
  
  .services-section .service-description {
    font-size: 0.75rem;
  }
  
  .services-section .service-features li {
    font-size: 0.7rem;
    padding-left: 16px;
  }
  
  .services-section .service-features li::before {
    width: 12px;
    height: 12px;
    font-size: 0.5rem;
  }
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--white);
  background-color: transparent;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Responsive container */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
}

:root {
  /* TAC Colors */
  --primary-orange: #ff7b00;
  --primary-gray: #808080;
  --dark-gray: #4a4a4a;
  --light-gray: #6a6a6a;
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-family: 'Inter', 'Roboto', sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Video Background - Simplifié */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
}

#background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.6;
}

/* Fallback background image */
.video-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use a real image as a fallback, not the mp4 
  background: url('assets/services/voiture-bg.jpeg') center/cover no-repeat;
  background-size: cover;
  z-index: -3;
  opacity: 0.8;*/
}

/* Utilities */
.hidden {
  display: none !important;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
}

.mr-2 {
  margin-right: var(--spacing-sm);
}

.ml-2 {
  margin-left: var(--spacing-sm);
}

.text-primary {
  color: var(--primary-orange);
}

/* Gradients */
.tac-gradient {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: var(--white);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-full {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: var(--white);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-full {
  width: 100%;
}

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(255, 123, 0, 0.1);
  backdrop-filter: blur(10px);
  will-change: background; /* Optimisation pour les transitions */
}

.nav-container.scrolled {
  background: var(--primary-gray);
  box-shadow: var(--shadow-lg);
}

/* Emergency Contact Styles */
.emergency-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #dc2626; /* rouge d'urgence */
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  margin-left: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  gap: 8px;
  white-space: nowrap;
}

.emergency-contact:hover {
  background: #b91c1c; /* rouge plus foncé au survol */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.emergency-contact .emergency-number {
  font-size: 0.9rem;
  font-weight: 700;
}

.emergency-contact .emergency-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* Ajout de breakpoints supplémentaires pour tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .logo {
    height: 2.8rem;
  }
  
  .nav-links {
    gap: var(--spacing-xl);
  }
  
  /* Ajustements pour le conteneur d'urgence sur tablettes */
  .emergency-contact {
    padding: 7px 13px;
    margin-left: 12px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.85rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.7rem;
  }
}

/* Desktop larges écrans */
@media (min-width: 1025px) {
  .container {
    max-width: 1300px;
  }
  
  .nav-links {
    gap: var(--spacing-2xl);
  }
  
  /* Ajustements pour le conteneur d'urgence sur grands écrans */
  .emergency-contact {
    padding: 9px 16px;
    margin-left: 18px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 1rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.8rem;
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
  max-width: 200px; /* Ajustez cette valeur selon vos besoins */
  width: 100%;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--spacing-2xl);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-normal);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-orange);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: var(--spacing-lg);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--white);
  font-size: 0.875rem;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.mobile-menu {
  background: var(--primary-gray);
  border-top: 1px solid rgba(255, 123, 0, 0.2);
}

.mobile-menu-content {
  padding: var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title,
  .section-title-dark {
    font-size: 2rem;
  }

  .contact-title {
    font-size: 2rem;
  }
  
  /* Ajustements pour le conteneur d'urgence sur mobile */
  .emergency-contact {
    padding: 6px 12px;
    margin-left: 10px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.8rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.65rem;
  }
  
  .mobile-emergency-contact {
    padding: 10px 12px;
    margin-top: 8px;
  }
  
  .mobile-emergency-contact .emergency-number {
    font-size: 0.9rem;
  }
  
  .mobile-emergency-contact .emergency-label {
    font-size: 0.75rem;
  }
}

/* Ajout de breakpoints supplémentaires pour une meilleure réactivité */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .nav-content {
    padding: 0 var(--spacing-sm);
  }
  
  .logo {
    height: 2.5rem;
  }
  
  /* Ajustements pour le conteneur d'urgence sur très petits écrans */
  .emergency-contact {
    padding: 5px 10px;
    margin-left: 8px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.75rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.6rem;
  }
  
  .mobile-emergency-contact {
    padding: 10px 12px;
    margin-top: 8px;
  }
  
  .mobile-emergency-contact .emergency-number {
    font-size: 0.9rem;
  }
  
  .mobile-emergency-contact .emergency-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 320px) {
  /* Ajustements pour les très petits écrans */
  .emergency-contact {
    padding: 4px 8px;
    margin-left: 5px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.7rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.55rem;
  }
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
  
  /* Ajustements pour le conteneur d'urgence sur desktop */
  .emergency-contact {
    padding: 8px 15px;
    margin-left: 15px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.9rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.75rem;
  }
}

/* Mobile Emergency Contact Styles */
.mobile-emergency-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #dc2626; /* rouge d'urgence */
  color: white;
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  gap: 10px;
  white-space: nowrap;
  justify-content: center;
}

.mobile-emergency-contact .emergency-number {
  font-size: 1rem;
  font-weight: 700;
}

.mobile-emergency-contact .emergency-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Ajout de breakpoints supplémentaires pour tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .logo {
    height: 2.8rem;
  }
  
  .nav-links {
    gap: var(--spacing-xl);
  }
  
  /* Ajustements pour le conteneur d'urgence sur tablettes */
  .emergency-contact {
    padding: 7px 13px;
    margin-left: 12px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.85rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.7rem;
  }
}

/* Desktop larges écrans */
@media (min-width: 1025px) {
  .container {
    max-width: 1300px;
  }
  
  .nav-links {
    gap: var(--spacing-2xl);
  }
  
  /* Ajustements pour le conteneur d'urgence sur grands écrans */
  .emergency-contact {
    padding: 9px 16px;
    margin-left: 18px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 1rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.8rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 500px;
    padding: 20px 0;
  }
  
  .hero-content {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 2s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 0 var(--spacing-lg);
  max-width: 80rem;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(255, 123, 0, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 123, 0, 0.3);
  margin-bottom: var(--spacing-xl);
  color: var(--primary-orange);
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
  color: #d1d5db;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  max-width: 32rem;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 1s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: 0.875rem;
  color: #d1d5db;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid var(--primary-orange);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-wheel {
  width: 0.25rem;
  height: 0.75rem;
  background: var(--primary-orange);
  border-radius: 9999px;
  margin-top: 0.5rem;
  animation: pulse 2s infinite;
}

/* Desktop Hero */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

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

  .hero-description {
    font-size: 1.5rem;
  }
}

/* Responsive breakpoints pour différents écrans */
@media (min-width: 320px) and (max-width: 479px) {
  .container {
    padding: 0 10px;
  }
  
  .logo {
    height: 2rem;
  }
  
  .emergency-contact {
    padding: 4px 8px;
    margin-left: 5px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.7rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.55rem;
  }
  
  .mobile-emergency-contact {
    padding: 8px 10px;
    margin-top: 6px;
  }
  
  .mobile-emergency-contact .emergency-number {
    font-size: 0.8rem;
  }
  
  .mobile-emergency-contact .emergency-label {
    font-size: 0.65rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .container {
    padding: 0 15px;
  }
  
  .logo {
    height: 2.5rem;
  }
  
  .emergency-contact {
    padding: 5px 10px;
    margin-left: 8px;
  }
  
  .emergency-contact .emergency-number {
    font-size: 0.75rem;
  }
  
  .emergency-contact .emergency-label {
    font-size: 0.6rem;
  }
  
  .mobile-emergency-contact {
    padding: 10px 12px;
    margin-top: 8px;
  }
  
  .mobile-emergency-contact .emergency-number {
    font-size: 0.9rem;
  }
  
  .mobile-emergency-contact .emergency-label {
    font-size: 0.75rem;
  }
}

/* ===== HERO SECTION WITH SERVICES CAROUSEL (Design Modernisé) ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/services/voiture-bg.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
  text-align: center;
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: calc(60px + var(--spacing-md)) 0 var(--spacing-md);
  }
  
  .hero-container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-service-title {
    font-size: 2rem;
  }
  
  .hero-service-description {
    font-size: 0.9rem;
    padding: var(--spacing-md);
  }
  
  .hero-services-carousel {
    height: 250px;
  }
  
  .hero-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .hero-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: calc(50px + var(--spacing-sm)) 0 var(--spacing-sm);
  }
  
  .hero-service-title {
    font-size: 1.8rem;
  }
  
  .hero-service-description {
    font-size: 0.85rem;
    padding: var(--spacing-sm);
  }
  
  .hero-services-carousel {
    height: 200px;
  }
  
  .hero-carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .hero-buttons {
    gap: var(--spacing-md);
  }
  
  .hero-buttons .btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
  }
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 3;
  animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Services Carousel */
.hero-services-carousel {
  position: relative;
  margin: var(--spacing-xl) 0;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 123, 0, 0.2);
  transition: all var(--transition-normal);
}

.hero-services-carousel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

.hero-service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  will-change: opacity; /* Optimisation pour les transitions */
}

.hero-service-slide.active {
  opacity: 1;
  position: relative;
}

.hero-service-image {
  position: absolute;
  top: 0;
  left: 0;
}

/* Optimisation des animations - utilisation de transform et opacity au lieu de propriétés coûteuses */
.services-section .service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Optimisation */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
  will-change: transform; /* Optimisation pour les animations */
}

.services-section .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Optimisation du carrousel hero */
.hero-service-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  will-change: opacity; /* Optimisation pour les transitions */
}

.hero-service-slide.active {
  opacity: 1;
  position: relative;
}

/* Ajout de règles de performance */
* {
  /* Amélioration de la performance du scrolling */
  -webkit-overflow-scrolling: touch;
}

/* Optimisation des images */
img {
  /* Chargement progressif des images */
  display: block;
  max-width: 100%;
  height: auto;
  
  /* Amélioration de la performance de rendu */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  
  /* Chargement lazy par défaut */
  loading: lazy;
}

/* Optimisation des boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1rem;
  line-height: 1.5;
  will-change: transform; /* Optimisation pour les animations */
}

.btn:hover {
  transform: translateY(-2px);
}

/* Optimisation du menu */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(255, 123, 0, 0.1);
  backdrop-filter: blur(10px);
  will-change: background; /* Optimisation pour les transitions */
}

.nav-container.scrolled {
  background: var(--primary-gray);
  box-shadow: var(--shadow-lg);
}

/* Hero service image styles */
.hero-service-image {
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-service-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.hero-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-service-slide.active .hero-service-image img {
  transform: scale(1.05);
}

.hero-service-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-lg);
}

.hero-service-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  font-family: var(--font-family);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
  background: linear-gradient(
    45deg,
    #ffffff 0%,
    #f0f8ff 25%,
    #ffffff 50%,
    #f0f8ff 75%,
    #ffffff 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 4s ease-in-out infinite;
  position: relative;
  text-align: center;
  letter-spacing: -0.5px;
}

.hero-service-description {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  opacity: 1;
  font-family: var(--font-family);
  line-height: 1.6;
  max-width: 700px;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.7);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  text-align: center;
  color: #ffffff;
  font-weight: 400;
}

/* Hero Carousel Controls */
.hero-carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 var(--spacing-lg);
  pointer-events: none;
}

.hero-carousel-btn {
  background: rgba(255, 123, 0, 0.3);
  color: var(--white);
  border: 2px solid rgba(255, 123, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-carousel-btn:hover {
  background: rgba(255, 123, 0, 0.5);
  border-color: var(--primary-orange);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Dots Indicator */
.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
  position: relative;
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-dot.active {
  background: var(--primary-orange);
  border-color: var(--white);
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.hero-dot:hover {
  background: var(--primary-orange);
  border-color: var(--white);
  transform: scale(1.1);
}

/* Enhanced hero buttons */
.hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: buttonsSlideIn 1s ease-out 0.8s both;
}

@keyframes buttonsSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-buttons .btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 123, 0, 0.3);
  backdrop-filter: blur(5px);
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.4s ease;
}

.hero-buttons .btn:hover::before {
  left: 100%;
  transition: left 0.5s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Emergency Bar Styles (Design Modernisé) */
.emergency-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 15px;
  margin: 20px auto;
  width: 85%;
  max-width: 900px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: slideInLeft 0.8s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

.emergency-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  transform: scaleX(0);
  transform-origin: left;
  animation: expandLine 1s ease-out 1.2s forwards;
}

@keyframes expandLine {
  to {
    transform: scaleX(1);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.emergency-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.emergency-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.emergency-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3px;
}

.emergency-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
  font-weight: 500;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: #bdbec2; /* fond demandé */
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: #111827; /* meilleur contraste sur fond clair */
}

.section-description {
  font-size: 1.125rem;
  color: #374151; /* texte gris foncé lisible */
  max-width: 32rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.service-card {
  background: var(--white);
  color: var(--black);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  animation: fadeInUp 0.5s ease-out both;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--black);
}

.service-description {
  margin-bottom: var(--spacing-lg);
  color: #6b7280;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: var(--spacing-sm) 0;
  color: #6b7280;
  position: relative;
  padding-left: var(--spacing-lg);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: 600;
}

/* Desktop Services Grid */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive Services Grid pour tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
  .services-grid {
    gap: 15px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-title {
    font-size: 1.3rem;
  }
  
  .service-description {
    font-size: 0.95rem;
  }
}

/* Brands Section */
.brands-section {
  padding: 5rem 0;
  background: #f1f5f9;
}

.section-badge {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(255, 123, 0, 0.15);
}

.section-title-dark {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-xl);
  color: #1e293b;
  text-align: center;
  position: relative;
}

.section-title-dark::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  border-radius: 2px;
}

.section-description-dark {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
  transition: max-height 0.5s ease;
}

/* Par défaut: n'afficher qu'une seule ligne (en fonction des colonnes responsive) */
.brands-grid.collapsed {
  /* La hauteur sera calculée en JS pour correspondre exactement à 1 ligne */
  overflow: hidden;
}

.brands-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.brands-toggle .btn-outline {
  padding: var(--spacing-sm) var(--spacing-xl);
  font-weight: 600;
  border-width: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.brands-toggle .btn-outline:hover {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.brand-item {
  animation: fadeInUp 0.4s ease-out both;
}

.brand-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  height: 100%;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.brand-card:hover::before {
  transform: scaleX(1);
}

.brand-logo-container {
  width: 5rem;
  height: 3.5rem;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1) contrast(1.1);
  transition: all var(--transition-normal);
}

.brand-logo-img:hover {
  filter: brightness(1.1) contrast(1.2);
  transform: scale(1.05);
}

.brand-logo-fallback {
  display: none;
  width: 3.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary-orange), #e66500);
  color: var(--white);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  padding: 0.25rem;
  box-shadow: var(--shadow-md);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: #1e293b;
  transition: color var(--transition-normal);
}

.brand-card:hover .brand-name {
  color: var(--primary-orange);
}

.brand-category {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-bottom: var(--spacing-sm);
  color: #ca8a04;
  font-weight: 500;
}

.brand-specialty {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.5;
}

.expertise-section {
  background: #e2e8f0;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.expertise-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: #1e293b;
  text-align: center;
}

.expertise-description {
  color: #64748b;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.expertise-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.expertise-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.expertise-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(255, 123, 0, 0.2);
}

.expertise-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.expertise-item h4 {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: #1e293b;
}

.expertise-item p {
  font-size: 0.875rem;
  color: #64748b;
}

/* Desktop Brands Grid */
@media (min-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Responsive Brands Grid pour tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
  .brands-grid {
    gap: 15px;
  }
  
  .brand-card {
    padding: 15px;
  }
  
  .brand-logo-container {
    width: 4rem;
    height: 3rem;
  }
  
  .brand-name {
    font-size: 0.9rem;
  }
  
  .brand-specialty {
    font-size: 0.75rem;
  }
}

/* Expertise Main Section */
.expertise-main-section {
  padding: 5rem 0;
  background: #f1f5f9;
}

.expertise-main-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.expertise-main-section .section-title-dark {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1e293b;
  position: relative;
}

.expertise-main-section .section-title-dark::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  border-radius: 2px;
}

.expertise-main-section .section-description-dark {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.stat-item {
  text-align: center;
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-orange);
  margin-bottom: var(--spacing-sm);
}

.stat-item .stat-label {
  color: #64748b;
  font-weight: 500;
}

/* Expertise Cards Grid */
.expertise-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.expertise-card {
  background: var(--white);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  height: 100%;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.expertise-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  box-shadow: 0 2px 4px rgba(255, 123, 0, 0.2);
}

.expertise-card-icon svg {
  width: 1rem;
  height: 1rem;
}

.expertise-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1e293b;
}

.expertise-card p {
  color: #64748b;
  line-height: 1.4;
  font-size: 0.8rem;
}

/* Certifications Section */
.certifications-section {
  background: #e2e8f0;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.certifications-content {
  text-align: center;
}

.certifications-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: #1e293b;
}

.certifications-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 600px;
  margin: 0 auto;
}

.certification-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.certification-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.certification-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-orange);
  flex-shrink: 0;
}

/* Desktop Expertise Grid */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .expertise-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certifications-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .expertise-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Contact Section */
.contact-section {
  padding: 2rem 0;
  background: #f1f5f9;
  overflow: hidden;
}

.contact-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-hero .contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
  border-radius: 9999px;
  font-size: 0.65rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(255, 123, 0, 0.15);
}

.contact-hero .contact-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #1e293b;
  position: relative;
}

.contact-hero .contact-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  border-radius: 1px;
}

.contact-hero .contact-description {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 25rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.contact-form-card:hover::before {
  transform: scaleX(1);
}

.contact-form-card.reduced-form {
  padding: 0.5rem;
}

.contact-form-header {
  margin-bottom: 0.75rem;
  text-align: center;
}

.contact-form-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1e293b;
}

.contact-form-header p {
  color: #64748b;
  line-height: 1.4;
  font-size: 0.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

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

.form-group label {
  font-weight: 500;
  color: #374151;
  font-size: 0.7rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  transition: all 0.15s ease;
  background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 1px rgba(255, 123, 0, 0.1);
  background: var(--white);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #94a3b8;
}

/* Contact Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-info-card {
  background: var(--white);
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.contact-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover::before {
  transform: scaleX(1);
}

.contact-info-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-detail .icon {
  color: var(--primary-orange);
  margin-top: 1px;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
}

.contact-detail h4 {
  font-weight: 600;
  margin-bottom: 1px;
  color: #1e293b;
  font-size: 0.75rem;
}

.contact-detail p {
  color: #64748b;
  line-height: 1.3;
  font-size: 0.65rem;
}

/* Map Card */
.map-card {
  padding: 0.75rem;
}

.map-card h3 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.map-container {
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.map-container iframe {
  width: 100%;
  height: 120px;
  border: none;
}

/* Emergency Card */
.emergency-card {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--white);
  text-align: center;
  padding: 0.25rem;
  border-radius: 0.2rem;
  box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.1s ease;
}

.emergency-card:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.emergency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s ease;
}

.emergency-card:hover::before {
  transform: scaleX(1);
}

.emergency-icon {
  width: 1.2rem;
  height: 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.1rem;
}

.emergency-icon svg {
  width: 0.6rem;
  height: 0.6rem;
}

.emergency-card h3 {
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0.05rem;
}

.emergency-card p {
  margin-bottom: 0.1rem;
  font-size: 0.45rem;
  opacity: 0.8;
  line-height: 1.1;
}

.emergency-number {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 0.05rem;
  transition: all 0.1s ease;
}

.emergency-number:hover {
  transform: scale(1.01);
  text-shadow: 0 0.5px 0.5px rgba(0, 0, 0, 0.2);
}

.emergency-note {
  font-size: 0.4rem;
  opacity: 0.7;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  font-size: 0.7rem;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, var(--primary-orange) 0%, #e66500 100%);
  color: var(--white);
  border-color: var(--primary-orange);
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Desktop Contact Layout */
@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .contact-form-card {
    max-width: none;
    margin: 0;
  }

  .quick-actions {
    flex-direction: row;
  }

  .contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-info-card {
    flex-shrink: 0;
  }
}

/* Responsive Contact Layout pour tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
  .contact-content {
    gap: 0.8rem;
  }
  
  .contact-form-card {
    padding: 0.6rem;
  }
  
  .contact-form-header h2 {
    font-size: 0.9rem;
  }
  
  .contact-form-header p {
    font-size: 0.7rem;
  }
  
  .form-group label {
    font-size: 0.65rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.2rem;
    font-size: 0.7rem;
  }
  
  .contact-info-card h3 {
    font-size: 0.85rem;
  }
  
  .contact-detail h4 {
    font-size: 0.7rem;
  }
  
  .contact-detail p {
    font-size: 0.6rem;
  }
  
  .map-container iframe {
    height: 100px;
  }
}

/* Footer */
.footer {
  background: #fefce8; /* bg-yellow-50 */
  color: #334155; /* yellow-800 */
  padding: var(--spacing-lg) 0 var(--spacing-sm);
  border-top: 1px solid #fde68a; /* border-yellow-200 */
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.footer-description {
  color: #475569; /* yellow-700 */
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-contact p {
  color: #475569; /* yellow-700 */
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: #713f12; /* yellow-900 */
  position: relative;
  padding-bottom: 0.25rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), #e66500);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-links a {
  color: #475569; /* yellow-700 */
  text-decoration: none;
  transition: all var(--transition-normal);
  padding: 0.25rem 0;
  border-radius: 0.25rem;
}

.footer-links a:hover {
  color: #713f12; /* yellow-900 */
  background: rgba(255, 123, 0, 0.1);
  padding-left: 0.5rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.footer-contact-item .icon {
  color: var(--primary-orange);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item span {
  color: #475569; /* yellow-700 */
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid #fde68a; /* border-yellow-200 */
  padding-top: var(--spacing-sm);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  align-items: center;
  text-align: center;
}

.footer-bottom-content p {
  color: #475569; /* yellow-700 */
  font-size: 0.875rem;
}

.footer-links-bottom {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-bottom a {
  color: #475569; /* yellow-700 */
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition-normal);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.footer-links-bottom a:hover {
  color: #713f12; /* yellow-900 */
  background: rgba(255, 123, 0, 0.1);
  transform: translateY(-1px);
}

/* Desktop Footer */
@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive Footer pour tablettes */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer-content {
    gap: 1rem;
  }
  
  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .footer-contact-item span {
    font-size: 0.8rem;
  }
  
  .footer-bottom-content p {
    font-size: 0.8rem;
  }
  
  .footer-links-bottom a {
    font-size: 0.8rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

/* Ajout de règles de performance générales */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Service cards stagger animation */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}
.service-card:nth-child(7) {
  animation-delay: 0.7s;
}
.service-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* Brand items stagger animation */
.brand-item:nth-child(1) {
  animation-delay: 0.1s;
}
.brand-item:nth-child(2) {
  animation-delay: 0.2s;
}
.brand-item:nth-child(3) {
  animation-delay: 0.3s;
}
.brand-item:nth-child(4) {
  animation-delay: 0.4s;
}
.brand-item:nth-child(5) {
  animation-delay: 0.5s;
}
.brand-item:nth-child(6) {
  animation-delay: 0.6s;
}
.brand-item:nth-child(7) {
  animation-delay: 0.7s;
}
.brand-item:nth-child(8) {
  animation-delay: 0.8s;
}
.brand-item:nth-child(9) {
  animation-delay: 0.9s;
}
.brand-item:nth-child(10) {
  animation-delay: 1s;
}
.brand-item:nth-child(11) {
  animation-delay: 1.1s;
}
.brand-item:nth-child(12) {
  animation-delay: 1.2s;
}
.brand-item:nth-child(13) {
  animation-delay: 1.3s;
}
.brand-item:nth-child(14) {
  animation-delay: 1.4s;
}
.brand-item:nth-child(15) {
  animation-delay: 1.5s;
}
.brand-item:nth-child(16) {
  animation-delay: 1.6s;
}
.brand-item:nth-child(17) {
  animation-delay: 1.7s;
}
.brand-item:nth-child(18) {
  animation-delay: 1.8s;
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title,
  .section-title-dark {
    font-size: 2rem;
  }

  .contact-title {
    font-size: 2rem;
  }
}
