 html {
        scroll-behavior: smooth;
    }

        /* Body */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1f2937; /* gray-800 */
  background-color: white !important;
}


/* Header */
/* Header global */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  backdrop-filter: blur(8px);
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Contenu du header */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  height: 45px;
}

/* Logo */
.logo-image {
  width: 150px;
  height: auto;
  object-fit: contain;
  margin-left: 50px;
}

/* Logo responsive sur mobile */
@media (max-width: 767px) {
  .logo-image {
    width: 130px;
    margin-left: 1px;
  }
}

/* Sous-titre du logo affiché en desktop seulement */
@media (min-width: 768px) {
  .logo-subtitle {
    display: block;
    color: #9ca3af; /* gris clair */
  }
}

/* Navigation desktop */
.nav-desktop {
  display: flex;
  gap: 3rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 80px;
}

/* Liens navigation */
.nav-link {
  color: #374151; /* gray-700 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3b82f6; /* bleu au hover */
}
/* Bouton menu mobile */
.mobile-menu-button {
  display: none;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Menu mobile caché par défaut */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

/* Icône du menu mobile */
.icon-menu {
  height: 1.5rem;
  width: 1.5rem;
}

/* Lien menu mobile */
.mobile-menu-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

.mobile-menu-link:hover {
  background-color: #f3f4f6;
}

/* Affichage mobile */
@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-menu {
    display: flex;
  }
}

/* Utilitaire */
.hidden {
  display: none !important;
}


    /* Section Hero */
.hero-pattern {
  background-image: url('../images/background_3.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);

  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding-top: 100px; /* ajuste selon la hauteur du header */
}

/* Logo QE en haut à droite */
.logo-fixed {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 1000;
}

.logo_QE {
  width: 60px;
  height: auto;
}

@media (max-width: 767px) {
  .logo_QE {
    width : 40px;
  }
}

/* Contenu principal */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Titre principal */
.hero-content h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out forwards;
}

/* Paragraphe descriptif */
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  animation: fadeInUp 1.2s ease-out forwards;
}
.qualifelec {
  color: #2563eb;
  font-weight: 600; /* optionnel, pour un peu plus d'impact */
}


/* Boutons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1.4s ease-out forwards;
}

@media (min-width: 640px) {
  .buttons {
    flex-direction: row;
  }
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
  display: inline-block;
}

/* Bouton principal */
.btn-primary {
  background-color: white;
  color: #4f46e5;
}

.btn-primary:hover {
  background-color: #f3f4f6;
}

/* Bouton secondaire */
.btn-secondary {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Section Services*/

/* Section padding and background */
.services-section {
padding-top: 4rem;     /* py-16 */
padding-bottom: 4rem;
background-color: #f9fafb; /* section-bg-light (light gray) */
}

/* Container */
.container {
max-width: 1280px;
margin-left: auto;
margin-right: auto;
padding-left: 1rem;   /* px-4 */
padding-right: 1rem;
}

/* Header text center and margin bottom */
.services-header {
text-align: center;
margin-bottom: 4rem; /* mb-16 */
}

/* Title style */
.services-title {
font-size: 1.875rem; /* text-3xl */
font-weight: 700;
margin-bottom: 1rem; /* mb-4 */
}

/* Description paragraph */
.services-description {
max-width: 42rem; /* max-w-2xl */
margin-left: auto;
margin-right: auto;
color: #4b5563; /* gray-600 */
}

/* Grid layout */
.services-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem; /* gap-8 */
}

/* Grid layout md+ */
@media (min-width: 768px) {
.services-grid {
    grid-template-columns: repeat(3, 1fr);
}
}

/* Card style */
.service-card {
background-color: white;
padding: 1.5rem; /* p-6 */
border-radius: 1rem; /* rounded-xl */
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
transition: box-shadow 0.3s ease;
}

/* Hover shadow */
.service-card:hover {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Icon container */
.service-icon {
width: 3.5rem;  /* w-14 */
height: 3.5rem;
border-radius: 0.5rem; /* rounded-lg */
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem; /* mb-4 */
}

/* Background color with 10% opacity */
.bg-primary-light {
background-color: rgba(59, 130, 246, 0.1); /* primary / 10 */
}

/* Icon inside */
.service-icon-svg {
font-size: 1.5rem; /* text-2xl */
color: #3b82f6;    /* text-primary */
}

/* Card title */
.service-title {
font-size: 1.25rem; /* text-xl */
font-weight: 600;
margin-bottom: 0.75rem; /* mb-3 */
}

/* Card text */
.service-text {
color: #4b5563; /* gray-600 */
margin-bottom: 1rem; /* mb-4 */
}
/* List with vertical spacing */
.service-list {
margin-bottom: 1rem; /* mb-4 */
display: flex;
flex-direction: column;
gap: 0.5rem; /* space-y-2 */
padding-left: 0;
list-style: none;
}

/* List item flex alignment */
.service-list-item {
display: flex;
align-items: flex-start;
}

/* Check icon */
.check-icon {
color: #22c55e; /* green-500 */
margin-top: 0.25rem; /* mt-1 */
margin-right: 0.5rem; /* mr-2 */
}


/* Section Avantages*/

/* Section padding and background */
.advantages-section {
padding-top: 4rem;     /* py-16 */
padding-bottom: 4rem;
background-color: #f3f4f6; /* bg-gray-100 */
}
/* Container */
.container {
max-width: 1280px;
margin-left: auto;
margin-right: auto;
padding-left: 1rem;  /* px-4 */
padding-right: 1rem;
}

/* Header text center and margin bottom */
.advantages-header {
text-align: center;
margin-bottom: 4rem; /* mb-16 */
}

/* Title style */
.advantages-title {
font-size: 1.875rem; /* text-3xl */
font-weight: 700;
margin-bottom: 1rem; /* mb-4 */
}

/* Description paragraph */
.advantages-description {
max-width: 42rem; /* max-w-2xl */
margin-left: auto;
margin-right: auto;
color: #4b5563; /* gray-600 */
}

/* Grid layout */
.advantages-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem; /* gap-6 */
}

/* Medium screens 2 columns */
@media (min-width: 768px) {
.advantages-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

/* Large screens 4 columns */
@media (min-width: 1024px) {
.advantages-grid {
    grid-template-columns: repeat(4, 1fr);
}
}

/* Card style */
.advantage-card {
background-color: white;
padding: 1.5rem; /* p-6 */
border-radius: 1rem; /* rounded-xl */
text-align: center;
}
.advantage-card:hover {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}
/* Icon container */
.advantage-icon {
width: 4rem;  /* w-16 */
height: 4rem;
margin-left: auto;
margin-right: auto;
border-radius: 9999px; /* rounded-full */
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem; /* mb-4 */
}

/* Background with 10% opacity primary color */
.bg-primary-light-circle {
background-color: rgba(59, 130, 246, 0.1); /* primary/10 */
}


/* Icon inside */
.advantage-icon-svg {
font-size: 1.25rem; /* text-xl */
color: #3b82f6;    /* primary */
}

/* Title */
.advantage-title {
font-size: 1.125rem; /* text-lg */
font-weight: 600;
margin-bottom: 0.5rem; /* mb-2 */
}

/* Text paragraph */
.advantage-text {
color: #4b5563; /* gray-600 */
font-size: 0.875rem; /* text-sm */
}



/* Section Marques partenaires */

.partners-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #f3f4f6; /* bg-gray-100 */
}
/* Header */
.partners-header {
  text-align: center;
  margin-bottom: 4rem;
}

.partners-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.partner-logo {
  max-height: 100px; /* réduit la hauteur maximale des logos */
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}


.partners-description {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: #4b5563;
}

.partners-grid-top {
  display: grid;
  grid-template-columns: repeat(4, 380px);
  gap: 20px;
  justify-content: left;
  margin-bottom: 1.5rem;
}

.partners-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  gap: 20px;
  justify-content: center;
}

/* Cartes identiques */
.partner-card {
  max-width: 350px;
  width: 100%;
  background-color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.partner-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive (optionnel, tu peux adapter) */
@media (max-width: 1023px) {
  .partners-grid-top,
  .partners-grid-bottom {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    justify-content: center;
  }

  /* Centrer la dernière carte si elle est seule sur une ligne */
  .partners-grid-bottom {
    place-items: center; /* assure le centrage global des éléments */
  }

  .partners-grid-bottom .partner-card:last-child:nth-child(odd) {
    justify-self: center;
  }
}




/* Section Réalisations*/

.realisations-section {
  padding: 4rem 1rem;
  background-color: #f9fafb;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.realisations-header {
  text-align: center;
  margin-bottom: 4rem;
}

.realisations-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.realisations-subtitle {
  max-width: 40rem;
  margin: 0 auto;
  color: #4b5563;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Carte */
.card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  background-color: #fff;
}

.card-content {
  padding: 1rem;
}

.card-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.card-description {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Dots */
.dots {
  text-align: center;
  margin: 0.5rem 0;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  margin: 0 4px;
  cursor: pointer;
}

.dots button.active {
  background: #333;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  border-radius: 50%;
  user-select: none;
  z-index: 1;
}

.arrow.left {
  left: 0.5rem;
}

.arrow.right {
  right: 0.5rem;
}

.arrow:hover {
  background: rgba(0,0,0,0.7);
}



/* Section Contact */

/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}

/* Section base */
.contact-section {
padding: 4rem 0; /* py-16 */
background-color: #f3f4f6; /* bg-gray-100 */
color: #374151; /* text-gray-700 for dark mode fallback */
font-family: system-ui, sans-serif;
}

/* Header */
.contact-header {
text-align: center;
margin-bottom: 4rem; /* mb-16 */
max-width: 42rem; /* max-w-2xl */
margin-left: auto;
margin-right: auto;
}

.contact-header h2 {
font-size: 1.875rem; /* text-3xl */
font-weight: 700;
margin-bottom: 1rem;
color: inherit;
}

.contact-header p {
font-size: 1rem;
line-height: 1.5;
color: inherit;
}

/* Flex layout */
.contact-content {
display: flex;
flex-direction: column;
gap: 2.5rem; /* gap-10 */
}

@media (min-width: 768px) {
.contact-content {
    flex-direction: row;
}
}

/* Form styles */
.contact-form-wrapper,
.contact-info-wrapper {
flex: 1 1 50%;
}

.contact-form {
background-color: white;
padding: 1.5rem;
border-radius: 1rem;
box-shadow: 0 1px 4px rgba(0,0,0,0.1);
color: #374151;
}

.form-group {
margin-bottom: 1rem;
}

.form-group label {
display: block;
font-weight: 500;
font-size: 0.875rem; /* text-sm */
margin-bottom: 0.25rem;
color: inherit;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
width: 100%;
padding: 0.5rem 1rem;
font-size: 1rem;
border: 1px solid #d1d5db; /* border-gray-300 */
border-radius: 0.5rem;
background-color: white;
color: #111827; /* text-black */
transition: box-shadow 0.3s, border-color 0.3s;
font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
outline: none;
border-color: #2563eb; /* focus:border-primary */
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5); /* focus:ring-2 focus:ring-primary */
}

/* Radio buttons */
.radio-group {
display: flex;
flex-wrap: wrap;
gap: 1rem;
color: inherit;
}

.radio-group label {
display: inline-flex;
align-items: center;
font-size: 0.875rem;
cursor: pointer;
}

.radio-group input[type="radio"] {
accent-color: #2563eb; /* text-primary */
margin-right: 0.5rem;
cursor: pointer;
}

/* Submit button */
.btn-submit {
width: 100%;
background-color: #2563eb; /* bg-primary */
color: white;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
border: none;
cursor: pointer;
transition: background-color 0.3s;
font-size: 1rem;
font-family: inherit;
}

.btn-submit:hover {
background-color: rgba(37, 99, 235, 0.9); /* hover:bg-primary/90 */
}

/* Contact info styles */
.contact-info {
background-color: white;
padding: 1.5rem;
border-radius: 1rem;
box-shadow: 0 1px 4px rgba(0,0,0,0.1);
height: 100%;
color: #374151;
}
.phone-animate .icon i {
  color: #3b82f6; /* Bleu primaire */
  transition: transform 0.3s ease, color 0.3s ease;
}

.phone-animate:hover .icon i {
  transform: scale(1.2);
  color: #2563eb; /* Légère variation au survol */
}

.phone-animate a {
  position: relative;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-animate a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.phone-animate a:hover {
  color: #1d4ed8;
}

.phone-animate a:hover::after {
  width: 100%;
}
.email-animate .icon i {
  color: #3b82f6;
  transition: transform 0.3s ease, color 0.3s ease;
}

.email-animate:hover .icon i {
  transform: rotate(-10deg) scale(1.2);
  color: #2563eb;
}

.email-animate a {
  position: relative;
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-animate a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.email-animate a:hover {
  color: #1d4ed8;
}

.email-animate a:hover::after {
  width: 100%;
}
.contact-info h3 {
font-size: 1.25rem; /* text-xl */
font-weight: 600;
margin-bottom: 1rem;
}

.info-item {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 1rem;
}

.info-item .icon {
color: #2563eb; /* text-primary */
font-size: 1.25rem;
min-width: 1.5rem;
line-height: 1;
}

.info-item h4 {
font-weight: 500;
color: inherit;
margin-bottom: 0.25rem;
}

.info-item p {
margin: 0;
color: inherit;
font-size: 0.875rem;
line-height: 1.3;
}

.info-item-zone-geo {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 1rem;
}

.info-item-zone-geo .icon {
color: #2563eb; /* text-primary */
font-size: 1.25rem;
min-width: 1.5rem;
line-height: 1;
}

.info-item-zone-geo h4 {
font-weight: 500;
color: inherit;
margin-bottom: 0.25rem;
}

.info-item-zone-geo p {
margin: 0;
color: inherit;
font-size: 0.875rem;
line-height: 1.3;
}

/* Social links */
.social-links h4 {
font-weight: 500;
margin-bottom: 0.75rem;
}

.social-icons {
display: flex;
gap: 1rem;
}

.social-icons a {
width: 2.5rem;
height: 2.5rem;
border-radius: 9999px; /* rounded-full */
display: flex;
align-items: center;
justify-content: center;
color: white;
transition: background-color 0.3s;
font-size: 1.25rem;
text-decoration: none;
}

.social-icons a.facebook {
background-color: #2563eb; /* blue-600 */
}

.social-icons a.facebook:hover {
background-color: #1e40af; /* blue-700 */
}
.social-icons a.linkedin {
background-color: #1e40af; /* blue-800 */
}

.social-icons a.linkedin:hover {
background-color: #1e3a8a; /* blue-900 */
}


.footer {
  background-color: #111827;
  color: white;
  padding: 1.5rem 1rem; /* réduit le padding vertical */
  font-family: system-ui, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem; /* réduit l’espace entre les colonnes */
  align-items: start;
}

.footer-logo {
  font-size: 1.25rem; /* légèrement plus petit */
  font-weight: 700;
  margin-bottom: 0.5rem; /* réduit la marge */
  font-weight: bold;
}

.footer-text {
  color: white;
  margin-bottom: 0.5rem; /* réduit l’espace vertical */
  line-height: 1.4; /* légèrement resserré */
  font-size: 0.95rem;
}

.footer-copy {
  color: #9ca3af;
  font-size: 0.75rem; /* plus petit */
}

.footer-links h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem; /* réduit */
  font-weight: bold;
}

.footer-links ul {
  display: flex;
  gap: 1rem; /* réduit l’espace entre les liens */
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: white;
}

/* Responsive footer ajusté */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    justify-self: center;
    text-align: center;
  }
  .footer-links ul {
    flex-direction: column;
    gap: 0.25rem;

    
  }

  /* Cacher la section des liens rapides sur mobile */
  .footer-links {
    display: none;
}
}