/* Réinitialisation des marges et des paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

/* Définition des couleurs et des variables globales */
:root {
  --primary: #1c2b33;
  --secondary: #f8b714;
  --accent: #59b2c0;
  --background: #fff;
  --text-color: #474747;
  --light-gray: #f5f5f5;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

html, body {
  overflow-x: hidden;
}

img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* Styles globaux pour le body */
body {
  background: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-size: 18px;
  margin: 0;
}

/* En-tête de page */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2.5%;
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 8px var(--shadow-color);
}

section {
  opacity: 0;
  transition: opacity 0.6s ease;
}

section.show-animate,
section.no-animation {
  opacity: 1;
}

 
.logo {
  font-weight: 700;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Style du bouton */
.btn {
  display: inline-block;
  padding: 10px 32px;
  background-color: var(--secondary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 15px rgba(248, 183, 20, 0.4);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 178, 187, 0.4);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 10px var(--accent);
}

.btn:active {
  transform: scale(1);
  box-shadow: 0 6px 15px rgba(248, 183, 20, 0.4);
}

/* Section Hero */
.hero {
  text-align: center;
  padding: 230px 20px;
  background-image: url('images/image\ de\ presentation\ d\ \'entreprise.jpg');
  background-size: cover;
  background-position: center;
  background-color: #1c2b33;
  background-blend-mode: overlay; 
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.hero h1 {
  font-size: 67px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 34px;
  margin-bottom: 30px;
  line-height: 1.6;
}


/* Style de la section FAQ */

.faq {
  background-color: #f5f5f5;
/*background-color: var(--background); */
  padding: 60px 20px;
  box-shadow: 0 4px 12px var(--shadow-color);
  border-radius: 10px;
  width: 90%;
  margin: 0 auto;
}

.faq-title {
  font-size: 36px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.faq-item {
  margin-bottom: 20px;
  background-color: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.faq-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  padding: 20px;
  cursor: pointer;
  margin: 0;
  background-color: var(--secondary);
  text-align: left;
  transition: background-color 0.3s ease;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: var(--accent);
}

.faq-answer {
  font-size: 16px;
  color: var(--text-color);
  padding: 20px;
  background-color: #fff;
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  background-color: var(--accent);
}

/* Icône de la flèche pour l'expansion */
.faq-question::after {
  content: '\25BC'; /* Flèche vers le bas */
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg); /* Flèche qui s'inverse */
}






.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px;
  max-width: 1200px;
  margin: auto;
}

/* Style des cartes */
.card {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

/* Avis supplémentaires cachés par défaut */
.card.extra {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  grid-column: span 3; /* Pour que chaque avis supplémentaire prenne une ligne entière */
}

/* Avis supplémentaires visibles quand on ouvre */
.avis-grid.open .card.extra {
  max-height: 500px;
  opacity: 1;
  padding-top: 20px;
  padding-bottom: 20px;
  pointer-events: auto;
}

/* Responsive: sur mobile une colonne */
@media (max-width: 768px) {
  .avis-grid {
    grid-template-columns: 1fr;
  }

  .card.extra {
    grid-column: span 1;
  }
}






.popup {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; /* pour centrer le contenu */
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: #fff;
  color: var(--primary);
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 90%;
  box-sizing: border-box;
}

.popup-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.popup .btn {
  padding: 12px 24px;
  border: none;
  background: var(--secondary);
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup .btn:hover {
  background: var(--accent);
}


/* Popup spécifique succès */
#successPopup {
  /* héritage de .popup, mais on précise ici en cas de besoin */
  display: none;
  position: fixed;
  top: 0; left: 0;
  min-width: 100%; min-height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

#successPopup > div {
  background: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  color: #333;
  box-sizing: border-box;
}

#successPopup p {
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
}

#successPopup button {
  margin-top: 20px;
  padding: 10px 25px;
  background-color: #232323; /* couleur sombre */
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#successPopup button:hover {
  background-color: #454a4d; /* légèrement plus clair au hover */
}

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

#successPopup.show {
  animation: fadeIn 0.3s ease forwards;
}


/* Pour .show-animate si tu veux styliser les sections animées */
.show-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Par défaut, les sections sont un peu décalées et transparentes */
section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


.services-section {
  padding: 60px 0;
  background-color: var(--background);
}

.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.services-section .text {
  flex: 1;
  min-width: 280px;
}

.services-section .text h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.services-section .text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
}

.services-section .text .badge {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
}

.services-section .image {
  flex: 1;
  min-width: 280px;
}

.services-section .image img {
  width: 100%;
  border-radius: 20px;
}




button[type="submit"] {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-image 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  animation: pulse 1.5s infinite;
}

button[type="submit"]:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.blog-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.blog-button i {
  font-size: 1rem;
}

.blog-button:hover {
  background-color: #333;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 183, 20, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(248, 183, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 183, 20, 0);
  }
}

/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 5% 30px;
  box-shadow: 0 4px 12px var(--shadow-color);
  width: 100%;
  
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 150px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 20px;
}

.footer-col img { width: 70%; margin: 0 auto; padding-right: 20px;}

.footer-col p {
  color: var(--light-gray);
  line-height: 1.6;
  font-size: 15px;
}

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

.footer-contact li,
.footer-links li {
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-contact a,
.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.social-icons a {
  color: var(--light-gray);
  font-size: 18px;
  margin-right: 14px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--light-gray);
}

/* Map container */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: slideIn 1s forwards;
}


.realisations-section {
  padding: 80px 20px;
  background-color: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--primary);
  margin: 0;
}

.realisations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.realisation-card {
  background: var(--background);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 calc(23% - 30px);
  max-width: calc(23% - 30px);
  display: flex;
  flex-direction: column;
}

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

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-content p {
  color: var(--text-color);
  font-size: 0.95rem;
}

.realisation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.cta {
  text-align: center;
  margin-top: 50px;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-image 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
}


div.footer-col  >  img{  margin:0 2em 0em 0em;}




@media (max-width: 992px) {
  .realisation-card {
    flex: 1 1 calc(48% - 20px);
    max-width: calc(48% - 20px);
  }
}

@media (max-width: 600px) {
  .realisation-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


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

.map-container:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  border-radius: 15px;
}


/* Par défaut : icône cachée, texte visible */
.call-btn i {
  display: none;
}
.call-btn .call-text {
  display: inline;
}
/* Responsivité */
@media (max-width: 768px) {

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 7px 4%;
  }

  a.call-btn {
  padding: 10px 10px;
  font-size: 15px;}

  .call-btn .call-text {
    display: none;
  }
  
  .call-btn {
    padding: 10px;
    font-size: 18px;
  }

  nav a {margin: 0px;}

  header img { height: 40px; width: 40px;}

    .services-section .image {
    width: 100%;
  }

  .services-section .image img {
    max-width: 100%;
    height: auto;
  }

  .contact {
    flex-direction: column;
    padding: 30px 5%;
  }

  .contact h2 {
    font-size: 30px;
  }

  .contact p {
    font-size: 18px;
  }

  .form-group label {
    font-size: 16px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }

  button[type="submit"] {
    font-size: 16px;
    padding: 12px 25px;
  }


    .footer-container {
    gap: 50px;
    text-align: center;
  }

  .footer-contact,
  .footer-links {
    padding: 0;
  }

  .footer-contact li,
  .footer-links li {
    margin-bottom: 10px;
  }

  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }

  .social-icons a {
    margin-right: 10px;
  }

  div.footer-col  >  img {
    display: block;
    margin: 20px auto 0;
    max-width: 120px;
    padding-right: 0px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 60px 5%;
  }

  .service-category {
    padding: 10px;
  }

  .service-category h3 {
    font-size: 20px;
  }

  .service-category ul li {
    font-size: 14px;
  }



  a.call-btn {
  padding: 10px 10px;
  font-size: 15px;}
}

/* Style du bouton "Appelez-nous" */
.call-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(248, 183, 20, 0.4);
  cursor: pointer;
  position: relative;
 
}



/* Affichage de l'icône et du texte par défaut */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Icône toujours visible */
.call-btn i {
  display: inline;
  font-size: 20px;
}

/* Texte visible par défaut */
.call-btn .call-text {
  display: inline;
}

/* En responsive : cacher le texte sous 768px */
@media (max-width: 768px) {
  .call-btn {
    padding: 10px 12px;
    font-size: 18px;
    gap: 0;
    justify-content: center;
    margin: 1px;
  }

  .call-btn .call-text {
    display: none;
  }
}


  .services-section .image {
    width: 100%;
  }

  .services-section .image img {
    max-width: 100%;
    height: auto;
  }

.call-btn:hover {
  background-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(59, 178, 187, 0.4);
  color: #fff;
}

.call-btn:focus {
  outline: none;
  box-shadow: 0 0 10px var(--accent);
}

.call-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(248, 183, 20, 0.4);
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulseEffect {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 178, 187, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(59, 178, 187, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 178, 187, 0);
  }
}

.call-btn {
  animation: pulseEffect 2s infinite;
}

/* Menu burger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 999;

}

.menu-toggle .bar {
  height: 6px;
  width: 30px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Navigation mobile */
.nav-links {
  display: flex;
 
}

@media (max-width: 768px) {

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

  .nav-links {
    position: absolute;
    top: 56px;
    right: 0;
    background-color: var(--primary);
    width: 100%;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    max-height: 370px;
  }

  .nav-links a {
    padding: 10px 0px;
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
  }

   img { display: flex;}
}


