/*
  Styles principaux du site Electricien Saint-Marcellin
  Respect de la charte graphique et de la typographie (voir Rules.md)
*/

@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap");

/* Variables */
:root {
  --primary-color: #dd0000;
  --secondary-color: #b30000;
  --accent-color: #ff4d4d;
  --background-color: #ffffff;
  --text-color: #293133;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --glow: 0 0 20px rgba(221, 0, 0, 0.3);
  --glow-strong: 0 0 30px rgba(221, 0, 0, 0.5);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  --gradient-dark: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  --gradient-light: linear-gradient(135deg, #ffffff, var(--gray-100));
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styles généraux pour les boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(221, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(221, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--gray-100);
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Header et Navigation */
.header-site {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary-color);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 2rem;
}

.nav-principale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left, .nav-right {
  flex: 1;
}

.nav-left ul {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  align-items: center;
}

.nav-right ul {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
}

.logo {
  flex: 0 0 auto;
  margin: 0 2rem;
}

.logo img {
  max-width: 140px;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 5%;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-principale ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-principale a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  margin: 0 0.2rem;
  border: 1px solid transparent;
}

/* Style pour le lien actif */
.nav-principale a.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-principale a.active::after {
  width: 80%;
  background: var(--primary-color);
}

/* Animation du soulignement */
.nav-principale a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-principale a:hover::before {
  transform: translateY(0);
}

/* Animation de l'échelle */
.nav-principale a:hover {
  transform: translateY(-2px);
}

/* Animation du glow */
.nav-principale a:active {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Désactiver les animations sur mobile */
@media (max-width: 768px) {
  .nav-principale a::after,
  .nav-principale a::before {
    display: none;
  }
  
  .nav-principale a:hover {
    transform: none;
  }
  
  .nav-principale a:active {
    box-shadow: none;
  }
}

/* Menu hamburger pour mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header-site .container {
    padding: 0.5rem 1rem;
  }

  .nav-principale {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-color);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
  }

  .nav-principale.active {
    right: 0;
  }

  .nav-left, .nav-right {
    width: 100%;
  }

  .nav-left ul, .nav-right ul {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .nav-principale ul {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .nav-principale a {
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-principale a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .logo {
    margin: 0;
  }

  .logo img {
    max-width: 120px;
  }

  /* Animation du menu hamburger */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Overlay sombre quand le menu est ouvert */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* Main Content */
.main-content {
  padding-top: 45px;
  min-height: calc(
    100vh - 300px
  ); /* Ajuster selon la hauteur du header + footer */
}

.section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
  position: relative;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(221, 0, 0, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.title-highlight {
  color: var(--primary-color);
  position: relative;
}

.title-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-color);
  opacity: 0.2;
  border-radius: 3px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-top: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section h1,
.section h2 {
  font-family: "Montserrat", sans-serif;
  color: #293133;
  margin-bottom: 2rem;
}

.section h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.section h2 {
  font-size: 2rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: white;
  padding: 4rem 0 1rem;
  position: relative;
}

.footer-top {
  margin-bottom: 3rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.footer-widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.footer-about p {
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-contact-info {
  margin-top: 1.5rem;
}

.footer-contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact-info i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

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

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: var(--gray-300);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links-list a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.opening-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opening-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--gray-300);
}

.opening-hours li span:first-child {
  font-weight: 600;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 1rem;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Styles améliorés pour la Hero Section */
.parallax-hero {
  position: relative;
  background: url("../../img/hero21.png") center/cover no-repeat fixed;
  color: #ffffff;
  padding: 0;
  text-align: center;
  min-height: 25vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-content-section .container {
  position: relative;
  z-index: 2;
}

/* Nouvelle section de contenu du hero */
.hero-content-section {
  background: white;
  padding: 12rem 0 16rem 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: var(--text-color);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.hero-text-container {
  max-width: 700px;
  text-align: center;
  position: relative;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-2xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text-container h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}

.hero-cta .btn {
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  color: white !important;
  width: 220px;
  height: 60px;
  justify-content: center;
  flex-shrink: 0;
}

.hero-cta .btn-primary {
  background: var(--primary-color);
  color: white !important;
  box-shadow: 0 10px 20px rgba(221, 0, 0, 0.2);
}

.hero-cta .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(221, 0, 0, 0.3);
  background: var(--primary-color);
}

.hero-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.hero-cta .btn:hover .btn-icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Styles spécifiques pour le bouton téléphone avec numéro affiché */
.hero-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animation spéciale pour le bouton téléphone */
.hero-cta .btn-secondary .btn-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero-cta .btn-secondary:hover .btn-text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  width: 100%;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Cartes flottantes à cheval sur le hero et la section suivante */
.floating-features {
  position: relative;
  margin-top: -3rem;
  margin-bottom: 2rem;
  z-index: 10;
}

.floating-features .hero-features {
  margin-top: 0;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  width: 100%;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Suppression de l'effet hover sur le container des cartes */

.feature {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.8rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  position: relative;
  overflow: hidden;
}

.feature:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Correction : cercle parfait pour l'icône des features (GPS, etc.) */
.feature-icon {
  width: 50px;
  height: 50px;
  aspect-ratio: 1/1;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(221, 0, 0, 0.3);
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 24px rgba(221, 0, 0, 0.4);
}

.feature-text {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content-section {
    padding: 6rem 0;
  }

  .hero-text-container {
    padding: 2.5rem;
  }

  .hero-text-container h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0;
    gap: 1rem;
  }
  
  .hero-cta .btn {
    width: 100%;
    height: 60px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
  }

  .floating-features {
    margin-top: -4rem;
    margin-bottom: 1rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .feature {
    width: 100%;
    max-width: none;
    padding: 1.5rem 2rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .feature-text {
    font-size: 1.1rem;
  }

  .nav-principale {
    z-index: 9999;
  }
  .menu-overlay {
    z-index: 1001;
  }
}

/* Section Services modernisée */
.services-section {
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/pattern-light.svg");
  opacity: 0.05;
  z-index: -1;
}

.prestations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.prestation-card {
  position: relative;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.prestation-card-inner {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.prestation-card:hover {
  transform: translateY(-10px);
}

.prestation-card:hover .prestation-card-inner {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.prestation-icon {
  width: 110px;
  height: 110px;
  background: rgba(221, 0, 0, 0.1);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  position: relative;
}

.prestation-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.prestation-card:hover .prestation-icon::after {
  opacity: 1;
}

.prestation-icon i {
  font-size: 2.8rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.prestation-card:hover .prestation-icon i {
  color: white;
}

.prestation-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--gray-900);
  transition: color 0.3s ease;
  line-height: 1.2;
  max-height: 2.4em; /* 2 lignes maximum (1.2em * 2) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  hyphens: auto;
}

/* Réduction automatique de la taille de police si le texte est trop long */
.prestation-card h3.long-title {
  font-size: 1.3rem;
}

.prestation-card h3.very-long-title {
  font-size: 1.1rem;
}

.prestation-card h3.extremely-long-title {
  font-size: 1rem;
}

.prestation-card:hover h3 {
  color: var(--primary-color);
}

.prestation-card p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
  flex-grow: 1;
}

.prestation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: rgba(221, 0, 0, 0.1);
  margin-top: auto;
  width: fit-content;
  border: none;
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
}

.prestation-link i {
  transition: transform 0.3s ease;
}

.prestation-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.prestation-link:hover i {
  transform: translateX(3px);
}

/* Carte mise en avant - Plus d'ombrage et contour rouge au hover */
.featured-card {
  position: relative;
  z-index: 1;
}

.featured-card .prestation-card-inner {
  border: 2px solid transparent;
  box-shadow: 0 10px 25px rgba(221, 0, 0, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.featured-card:hover .prestation-card-inner {
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(221, 0, 0, 0.2);
  transform: translateY(-5px);
}

/* Contact d'urgence */
.emergency-contact {
  margin-top: auto;
  padding-top: 1rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-link i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(221, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.phone-link:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.phone-link:hover i {
  background: var(--primary-color);
  color: white;
}

/* Style spécifique pour le bouton d'urgence dans la carte de dépannage */
.emergency-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px !important;
  background: rgba(221, 0, 0, 0.1) !important;
  margin-top: auto !important;
  width: fit-content !important;
  border: none !important;
  outline: none !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}

.emergency-btn i {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50%;
  background: rgba(221, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0.8rem !important;
}

.emergency-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(221, 0, 0, 0.3);
}

.emergency-btn:hover i {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateX(3px);
}

/* Uniformisation des boutons prestation-link et emergency-btn */
.prestation-link,
.emergency-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px !important;
  background: rgba(221, 0, 0, 0.1) !important;
  margin-top: auto !important;
  width: fit-content !important;
  border: none !important;
  outline: none !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}

.prestation-link i,
.emergency-btn i {
  transition: transform 0.3s ease !important;
}

.prestation-link:hover,
.emergency-btn:hover {
  background: var(--primary-color) !important;
  color: white !important;
  transform: translateX(5px) !important;
}

.prestation-link:hover i,
.emergency-btn:hover i {
  transform: translateX(3px) !important;
}

/* Bouton "Voir plus" */
.services-more-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(221, 0, 0, 0.2);
}

.btn-outline-primary i {
  transition: transform 0.3s ease;
}

.btn-outline-primary:hover i {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .prestations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .prestation-card-inner {
    padding: 2rem;
  }
  
  .prestation-icon {
    width: 95px;
    height: 95px;
    margin-bottom: 1.5rem;
  }
  
  .prestation-card h3 {
    font-size: 1.35rem;
  }
  

}

/* Section Réalisations */
.realisations {
  background-color: white;
  padding: 8rem 0;
}

/* Filtres de la galerie */
.gallery-filters {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 1rem 2rem;
  border: none;
  background: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.filter-btn:hover {
  color: var(--primary-color);
  background: var(--gray-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-lg);
}

/* Grille de la galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    transparent 100%
  );
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h3 {
  transform: translateY(0);
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

.category-tag {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.gallery-item:hover .category-tag {
  transform: translateY(0);
  opacity: 1;
}

.category-tag:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Projets mis en avant */
.featured-projects {
  margin-top: 60px;
}

.featured-projects h3 {
  text-align: center;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  color: var(--dark-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: white;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/pattern.svg") center/cover;
  opacity: 0.1;
  animation: float 20s linear infinite;
}

.contact-section .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.contact-section .section-title {
  color: white;
}

.contact-section .section-title::after {
  background: linear-gradient(90deg, #ffffff, #e2e8f0);
}

.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

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

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(221, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.contact-details {
  flex: 1;
}

.contact-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.contact-details p {
  color: var(--gray-300);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-value {
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-value:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Styles spécifiques pour le lien téléphone dans la section contact */
.contact-card .phone-link {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(221, 0, 0, 0.05);
  border: 1px solid rgba(221, 0, 0, 0.1);
}

.contact-card .phone-link:hover {
  color: white;
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(221, 0, 0, 0.3);
  border-color: var(--primary-color);
}

/* Styles pour le bouton de rafraîchissement du captcha */
.captcha-refresh-btn {
  background: rgba(221, 0, 0, 0.1);
  border: 1px solid rgba(221, 0, 0, 0.2);
  color: var(--primary-color);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-left: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-refresh-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(221, 0, 0, 0.3);
}

.captcha-refresh-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(221, 0, 0, 0.2);
}

.captcha-refresh-btn i {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

.captcha-refresh-btn:hover i {
  transform: rotate(180deg);
}

.captcha-refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.captcha-refresh-btn:disabled:hover {
  background: rgba(221, 0, 0, 0.1);
  color: var(--primary-color);
  border-color: rgba(221, 0, 0, 0.2);
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animation pour le texte du captcha */
#captcha-question,
#devis-captcha-question {
  transition: color 0.3s ease;
  font-weight: 600;
}

/* Amélioration de l'espacement dans le formulaire */
.form-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.form-help .captcha-refresh-btn {
  margin-left: auto;
}

/* Responsive pour le bouton captcha */
@media (max-width: 768px) {
  .captcha-refresh-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-left: 8px;
  }
  
  .captcha-refresh-btn span {
    display: none; /* Cacher le texte sur mobile, garder juste l'icône */
  }
  
  .form-help {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .form-help .captcha-refresh-btn {
    margin-left: 0;
    align-self: flex-end;
  }
}

.contact-socials {
  margin-top: 1rem;
}

.contact-socials h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Style spécifique pour Facebook - carré et plus gros */
.social-link[aria-label="Facebook"] {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: #1877f2;
  border-color: #1877f2;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

/* Logo Facebook bleu - styles de hover */
.social-link[aria-label="Facebook"]:hover {
  background: #166fe5;
  border-color: #166fe5;
  transform: translateY(-5px);
}

.social-link[aria-label="Facebook"]:hover {
  background: #166fe5;
  border-color: #166fe5;
}

/* Style pour le logo Facebook SVG */
.social-icon-img {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

/* Logo Facebook plus gros */
.social-link[aria-label="Facebook"] .social-icon-img {
  width: 3rem;
  height: 3rem;
}

.social-link:hover .social-icon-img {
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

.contact-form-container {
  background: white;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.form-card {
  padding: 3rem;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 1rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--gray-700);
  background: white;
}

.form-group textarea {
  padding: 1rem 1.5rem;
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(221, 0, 0, 0.1);
}

.form-group input:focus + i,
.form-group select:focus + i {
  color: var(--primary-color);
}

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.95rem;
  color: var(--gray-600);
  cursor: pointer;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 1.25rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.map-container {
  margin-top: 4rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 400px;
}

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

/* Responsive Contact */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    order: 2;
  }

  .contact-form-container {
    order: 1;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 4rem 0;
  }

  .form-card {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .map-container {
    height: 300px;
    margin-top: 3rem;
  }
}

/* Section Blog */
.blog-section {
  background-color: white;
  position: relative;
  overflow: hidden;
}

/* Carrousel des articles */
.blog-carousel-container {
  position: relative;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}

.blog-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.blog-carousel-track {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-carousel .blog-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  max-width: calc(33.333% - 1.33rem);
  margin: 0;
  opacity: 1;
  transform: scale(1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  height: 400px;
}

.blog-carousel .blog-card.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* Carte Facebook rectangulaire */
.blog-carousel .facebook-card .blog-card-inner {
  background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-carousel .facebook-card:hover .blog-card-inner {
  box-shadow: var(--shadow-xl);
  transform: translateY(-10px);
}

.blog-carousel .facebook-card:hover {
  transform: translateY(-10px);
}

.blog-carousel .facebook-image {
  background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-carousel .facebook-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 119, 242, 0.1);
}

.blog-carousel .facebook-logo {
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-carousel .facebook-card .blog-content {
  background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
  color: white;
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-carousel .facebook-card .blog-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-carousel .facebook-card .blog-excerpt {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
  font-size: 0.9rem;
}

.blog-carousel .facebook-card .blog-category {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-carousel .facebook-link-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
}

.blog-carousel .facebook-link-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-carousel .facebook-link-disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-carousel .blog-card.active {
  opacity: 1;
  transform: scale(1);
}

/* Contrôles du carrousel */
.blog-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1rem;
}

.blog-carousel-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.blog-carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.blog-carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.blog-carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.blog-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.blog-carousel-dot:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Grille classique (fallback) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  position: relative;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card-inner {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-card:hover .blog-card-inner {
  box-shadow: var(--shadow-xl);
}

.blog-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.blog-category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  margin-bottom: 1rem;
}

.blog-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.blog-date i {
  color: var(--primary-color);
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
  font-size: 0.9rem;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.blog-link i {
  transition: transform 0.3s ease;
}

.blog-link:hover {
  color: var(--secondary-color);
}

.blog-link:hover i {
  transform: translateX(5px);
}

.blog-cta {
  text-align: center;
  margin-top: 2rem;
}

/* État vide */
.empty-state {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-image {
    height: 180px;
  }

  .blog-content {
    padding: 1.25rem;
  }

  .blog-title {
    font-size: 1.1rem;
  }
  
  /* Carrousel responsive */
  .blog-carousel-controls {
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 0.5rem;
  }
  
  .blog-carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .blog-carousel-dot {
    width: 10px;
    height: 10px;
  }
  
  .blog-carousel .blog-card {
    flex: 0 0 calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    margin: 0 1rem;
    height: 350px;
  }
  
  .blog-carousel-track {
    gap: 1rem;
  }
  
  /* Carte Facebook responsive */
  .blog-carousel .facebook-logo {
    font-size: 2.5rem;
  }
  
  .blog-carousel .facebook-card .blog-title {
    font-size: 1.1rem;
  }
  
  .blog-carousel .facebook-card .blog-excerpt {
    font-size: 0.85rem;
  }
}

/* Section Partenaires */
.partners-section {
  background: linear-gradient(135deg, var(--gray-100), white);
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/pattern-light.svg");
  opacity: 0.05;
  z-index: 0;
}

.partners-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  overflow: hidden;
}

.partners-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  padding: 1rem;
}

.partner-card {
  flex: 0 0 350px;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.partner-logo {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
  background: white;
  box-shadow: var(--shadow);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.partner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.partner-info p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.partner-link i {
  transition: transform 0.3s ease;
}

.partner-link:hover {
  color: var(--secondary-color);
}

.partner-link:hover i {
  transform: translateX(5px);
}

.partners-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.partner-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.partner-arrow:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.partners-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.partners-cta p {
  color: var(--gray-700);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Section Partenaires - Responsive */
@media screen and (max-width: 768px) {
    .partners-section {
        padding: 2rem 0;
    }

    .partners-carousel {
        overflow: hidden;
        position: relative;
        padding: 0 1rem;
    }

    .partners-track {
        display: flex;
        transition: transform 0.3s ease;
        gap: 1rem;
    }

    .partner-card {
        min-width: 280px;
        flex: 0 0 auto;
        margin: 0;
        padding: 1rem;
    }

    .partner-logo {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }

    .partner-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .partner-info {
        text-align: center;
    }

    .partner-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .partner-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .partners-controls {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .partner-arrow {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

    .partner-arrow:hover {
        background: var(--primary-dark);
    }

    .partner-arrow:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

@media screen and (max-width: 480px) {
    .partner-card {
        min-width: 250px;
    }

    .partner-logo {
        width: 100px;
        height: 100px;
    }

    .partner-info h3 {
        font-size: 1.1rem;
    }

    .partner-info p {
        font-size: 0.85rem;
    }
}

/* Section Avis Google */
.testimonials-section {
  background: transparent;
  color: #333;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Styles pour les images des services - centrées */
.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.service-image {
  display: block;
  width: 120px;
  height: 120px;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  padding: 8px;
}

/* Styles pour les titres des services - 2 lignes maximum */
.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--gray-900);
  transition: color 0.3s ease;
  line-height: 1.2;
  max-height: 2.4em; /* 2 lignes maximum (1.2em * 2) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  hyphens: auto;
}

/* Styles pour la carte Facebook dans la galerie */
.facebook-card {
  order: -1; /* Place la carte Facebook en premier */
}

.facebook-container {
  background: #1877f2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.facebook-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
  opacity: 0.9;
}

.facebook-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.facebook-logo {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.facebook-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.facebook-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}

.facebook-link {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.facebook-link:hover .facebook-container {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(24, 119, 242, 0.4);
}

.facebook-link:hover .facebook-logo {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Hover effect pour les titres */
.prestation-card:hover .service-title {
  color: var(--primary-color);
}

/* Version mobile pour les titres */
@media (max-width: 768px) {
  .service-title {
    font-size: 1.3rem;
    line-height: 1.3;
    max-height: 2.6em; /* 2 lignes maximum sur mobile */
  }
}

/* ===== STYLES POUR LA POPUP DE DEVIS ===== */
.devis-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.devis-popup.active {
    opacity: 1;
    visibility: visible;
}

.devis-popup-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.devis-popup.active .devis-popup-content {
    transform: scale(1);
}

.devis-popup-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.devis-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.devis-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.devis-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.devis-form {
    padding: 20px;
    max-height: calc(90vh - 50px);
    overflow-y: auto;
}

.devis-form .form-group {
    margin-bottom: 15px;
}

.devis-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.devis-form .input-with-icon {
    position: relative;
}

.devis-form .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1rem;
}

.devis-form input,
.devis-form select,
.devis-form textarea {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.devis-form textarea {
    padding-left: 15px;
    resize: vertical;
    min-height: 80px;
}

.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.1);
}

.devis-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.devis-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.devis-form .form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.devis-form .form-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.devis-form .btn-full {
    width: 100%;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.devis-form .form-help {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 5px;
    display: block;
}

/* Responsive pour la popup */
@media (max-width: 768px) {
    .devis-popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .devis-popup-header {
        padding: 12px 20px;
    }
    
    .devis-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .devis-form {
        padding: 18px;
        max-height: calc(90vh - 45px);
    }
    
    .devis-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .devis-form input,
    .devis-form select,
    .devis-form textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}

/* Animation d'entrée pour la popup */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.devis-popup.active .devis-popup-content {
    animation: popupSlideIn 0.3s ease forwards;
}

/* ===== STYLES POUR LA POPUP DE CONTACT ===== */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-popup.active {
    opacity: 1;
    visibility: visible;
}

.contact-popup-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.contact-popup.active .contact-popup-content {
    transform: scale(1);
}

.contact-popup-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.contact-popup-form {
    padding: 20px;
    max-height: calc(90vh - 50px);
    overflow-y: auto;
}

.contact-popup-form .form-group {
    margin-bottom: 15px;
}

.contact-popup-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-popup-form .input-with-icon {
    position: relative;
}

.contact-popup-form .input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1rem;
}

.contact-popup-form input,
.contact-popup-form select,
.contact-popup-form textarea {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.contact-popup-form textarea {
    padding-left: 15px;
    resize: vertical;
    min-height: 80px;
}

.contact-popup-form input:focus,
.contact-popup-form select:focus,
.contact-popup-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(221, 0, 0, 0.1);
}

.contact-popup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-popup-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-popup-form .form-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.contact-popup-form .form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-popup-form .btn-full {
    width: 100%;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-popup-form .form-help {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Styles pour le bouton de la section réalisations */
.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

.contact-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.contact-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Responsive pour la popup de contact */
@media (max-width: 768px) {
    .contact-popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .contact-popup-header {
        padding: 12px 20px;
    }
    
    .contact-popup-header h3 {
        font-size: 1.2rem;
    }
    
    .contact-popup-form {
        padding: 18px;
        max-height: calc(90vh - 45px);
    }
    
    .contact-popup-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contact-popup-form input,
    .contact-popup-form select,
    .contact-popup-form textarea {
        padding: 8px 15px 8px 40px;
        font-size: 0.9rem;
    }
}

/* Correction : fond blanc strict pour la section Réalisations */
#realisations.section.gallery-section {
  background: #fff !important; /* Priorité maximale, évite tout overlay ou héritage gris */
  z-index: 1;
}

/* Trait rouge sous le titre de la section Nos réalisations */
#realisations .section-title::after {
  background: var(--primary-color, #dd0000) !important;
  /* Utilise la variable rouge principale, fallback rouge vif */
}

/* Trait rouge sous le titre de la section Avis clients */
#testimonials .section-title::after {
  background: var(--primary-color, #dd0000) !important;
}

/* Trait rouge sous le titre de la section Services */
#prestations .section-title::after {
  background: var(--primary-color, #dd0000) !important;
}

/* Trait rouge sous le titre de la section Partenaires */
#partenaires .section-title::after {
  background: var(--primary-color, #dd0000) !important;
}

/* Correction stricte : cercle parfait pour l'icône des features (GPS, etc.) */
.hero-features .feature-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  aspect-ratio: 1/1 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--primary-color) !important;
  color: white !important;
  font-size: 1.2rem !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 8px 16px rgba(221, 0, 0, 0.3) !important;
}
