/* =========================
  BASE STYLES
  ========================= */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, 'Geneva', Verdana, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.43;
}

/* Headings */
h1 {
  font-size: 2.5em;
  margin: 0 0 40px;
  color: #2ecc71;
  padding: 10px 0;
  font-weight: 700;
}
h2,
.services h2,
.equipe h2,
.pourquoi h2,
.zone h2,
.stats h2 {
  font-size: 2em;
  margin: 20px 0 10px;
  color: #2ecc71;
  text-align: center;
  padding: 50px 0 0;
}
h3,
.raison h3,
.realisations h3,
.footer-section h3,
.footer-section h4 {
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}
h4,
h5,
h6 {
  font-size: 1.5em;
  color: #fff;
}

/* Container */
.container {
  margin: 40px auto;
  padding: 0 20px;
  text-align: justify;
  max-width: 1200px;
}

/* =========================
  NAVBAR
  ========================= */
.navbar {
  width: 100%;
  padding: 20px 60px;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: .3s;
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.navbar a,
.nav-center li a {
  text-decoration: none;
  color: #2ecc71;
  font-weight: 500;
  transition: color .2s, border-bottom .2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.navbar a:hover,
.nav-center li a:hover {
  border-bottom: 2px solid #2ecc71;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.nav-left,
.nav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.nav-left {
  justify-content: flex-start;
}
.nav-right {
  justify-content: flex-end;
}
.logo-img {
  height: 65px;
  width: auto;
}
.nav-center {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================
  URGENCE BUTTON
  ========================= */
.urgence-btn {
  background: #f00;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.urgence-btn:hover {
  background: #f00;
}

/* =========================
  BURGER MENU (Responsive)
  ========================= */
.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #2ecc71;
  z-index: 1101;
  margin-left: 20px;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  background: #2ecc71;
  height: 3px;
  width: 28px;
  border-radius: 2px;
  position: relative;
  transition: .3s;
  content: '';
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger span::before {
  top: -9px;
}
.burger span::after {
  top: 9px;
}
/* Animation burger menu ouvert */
.burger.open span {
  background: transparent;
}
.burger.open span::before {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
  RESPONSIVE NAVBAR
  ========================= */
@media (max-width:900px) {
  .nav-center {
   display: none;
   position: absolute;
   top: 70px;
   left: 0;
   flex-direction: column;
   width: 100vw;
   background: #fff;
   box-shadow: 0 2px 8px rgba(0,0,0,.1);
   gap: 0;
   padding: 20px 0;
   z-index: 1100;
  }
  .nav-center.show {
   display: flex;
  }
  .burger {
   display: block;
  }
  .navbar {
   padding: 20px 20px;
  }
  .nav-left {
   flex: 1 1 auto;
  }
}

/* =========================
  HERO SECTION
  ========================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 480px;
  padding: 25px 30px;
  border-radius: 12px;
  color: #fff;
  background: rgba(0,0,0,.6);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  z-index: 10;
  text-align: left;
  font-family: inherit;
  line-height: 1.5;
  transition: .3s;
}
.hero-overlay:hover {
  background: rgba(0,0,0,.75);
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
  transform: translateY(-5px);
}
.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.hero-image {
  background: url('../images/fond3.jpg') center/cover no-repeat;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* =========================
  BUTTONS
  ========================= */
.btn,
form button {
  display: inline-block;
  padding: 12px 28px;
  background: #2ecc71;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: .3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.btn:hover,
form button:hover {
  background: #27ae60;
}

/* =========================
  SERVICES & EQUIPE SECTIONS
  ========================= */
.services,
.equipe {
  background: url('../images/fond.jpg');
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}
.service-list,
.equipe-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}
.service,
.membre {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  flex: 1 1 300px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: .2s;
}
.service:hover,
.membre:hover {
  transform: translateY(-5px);
}
.service img,
.equipe img,
.membre img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 1px 8px rgba(0,0,0,.1);
}

/* =========================
  POURQUOI NOUS CHOISIR
  ========================= */
.pourquoi {
  background: #2ecc71;
  padding: 60px 20px;
  text-align: center;
}
.pourquoi h2 {
  color: #fff;
  margin-bottom: 40px;
}
.raisons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.raison {
  flex: 1 1 250px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: .3s;
}
.raison:hover {
  transform: translateY(-5px);
}
.raison img {
  width: 60px;
  margin-bottom: 15px;
}

/* =========================
  ZONE D'INTERVENTION
  ========================= */
.zone {
  background: #f0f0f0;
  text-align: center;
}
.zone .map {
  margin-top: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
  REALISATIONS SECTION
  ========================= */
.realisations {
  background: linear-gradient(120deg,#f9f9f9 60%,#eafaf1 100%);
  padding: 60px 20px;
  text-align: center;
  border-radius: 18px;
  margin: 60px auto;
  max-width: 1300px;
  box-shadow: 0 4px 24px rgba(46,204,113,.07);
}
.realisations-photos,
.galerie-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: .3s;
}
.realisations-photos:hover,
.photo:hover {
  transform: scale(1.03);
}
.realisations-photos img,
.photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Responsive grid for réalisations */
@media (max-width:700px) {
  .realisations-photos,
  .galerie-photos {
   grid-template-columns: 1fr 1fr;
   gap: 16px;
  }
  .realisations,
  .galerie {
   padding: 35px 5px;
  }
  .realisations h3,
  .galerie h1 {
   font-size: 1.4em;
   margin-bottom: 18px;
  }
  .realisations-photos img,
  .photo img {
   height: 130px;
  }
}

/* =========================
  GALERIE
  ========================= */
.galerie {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}
.photo {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: .3s;
}

/* =========================
  DEVIS & FORMULAIRES
  ========================= */
.intro-devis {
  max-width: 800px;
  margin: 40px auto;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.devis-container {
  max-width: 900px;
  margin: 0 auto 60px;
  background: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.devis-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2ecc71;
}
form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  max-width: 650px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid #eee;
}
form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: .95rem;
}
form input,
form textarea,
form select {
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  transition: .2s;
  font-family: inherit;
  box-sizing: border-box;
}
form input:focus,
form textarea:focus,
form select:focus {
  border-color: #2ecc71;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,204,113,.2);
  outline: none;
}
form button[type="submit"] {
  background: #2ecc71;
  color: #fff;
  font-weight: bold;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s;
}
form button[type="submit"]:hover {
  background: #27ae60;
}
#estimation {
  font-weight: bold;
  color: #2ecc71;
}

/* =========================
  LIGHTBOX OVERLAY
  ========================= */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,.2);
  animation: zoomIn .3s;
}
@keyframes zoomIn {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* =========================
  NOTIFICATION & STATS
  ========================= */
.notification {
  background: #d4edda;
  border-left: 5px solid #2ecc71;
  padding: 15px 20px;
  margin: 0 auto;
  border-radius: 6px;
  color: #155724;
  font-weight: 500;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  animation: fadeOut .5s ease-out forwards;
  animation-delay: 4s;
  opacity: 1;
}
@keyframes fadeOut {
  to {
   opacity: 0;
   transform: translateX(-50%) translateY(-20px);
   pointer-events: none;
  }
}
.stats {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}
.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
}
.stat {
  flex: 1 1 200px;
  max-width: 250px;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.stat .counter {
  font-size: 3.2em;
  font-weight: bold;
  color: #2ecc71;
  display: block;
  margin-bottom: 10px;
}
.stat p {
  font-size: 1.1em;
  color: #555;
}

/* =========================
  PRESENTATION
  ========================= */
.presentation .presentation-content {
  padding: 0 11% 40px;
  text-align: justify;
}

/* =========================
  CONTACT INFO
  ========================= */
.contact-info-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin: 50px auto;
  max-width: 1200px;
}
.contact-block {
  flex: 1;
  min-width: 280px;
}
.contact-block h2 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.5rem;
  border-bottom: 2px solid #2ecc71;
  display: inline-block;
}
.contact-block p {
  margin-bottom: 10px;
  color: #555;
}
.contact-map {
  flex: 1;
  min-width: 300px;
  height: 600px;
  border: none;
  border-radius: 10px;
}
form {
  margin-top: 50px;
}
.notification.is-success {
  background: #eafaf1;
  color: #2ecc71;
  padding: 15px;
  border-left: 5px solid #2ecc71;
  border-radius: 6px;
  max-width: 600px;
  margin: 30px auto;
  font-weight: 500;
}

/* =========================
  FOOTER
  ========================= */
footer {
  background: #f7f8fa;
  color: #333;
  font-family: Arial, sans-serif;
  padding: 60px 20px 40px;
  border-top: 1px solid #e1e4e8;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1 1 300px;
  margin-bottom: 30px;
}

.footer-section h4 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #222;
}

.footer-section p,
.footer-section ul,
.footer-section a {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
  text-align: center;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a:hover {
  color: #f4b41a;
}

.footer-section a {
  transition: color 0.3s ease;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  border-top: 1px solid #e1e4e8;
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-bottom a {
  color: #888;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #2ecc71;
}


/* =========================
  RESPONSIVE STYLES
  ========================= */
@media (max-width:900px) {
  .container {
   max-width: 98vw;
   padding: 0 10px;
   margin: 20px auto;
  }
  .service-list,
  .equipe-list,
  .raisons,
  .stats-grid,
  .footer-content {
   flex-direction: column;
   gap: 20px;
   align-items: stretch;
  }
  .service,
  .membre,
  .raison,
  .stat,
  .footer-section {
   max-width: 100%;
   flex: 1 1 100%;
  }
  .hero-overlay {
   left: 10px;
   bottom: 10px;
   padding: 18px 12px;
   max-width: 95vw;
  }
  .hero-overlay h1 {
   font-size: 2rem;
  }
  .hero-overlay p {
   font-size: 1rem;
  }
  .hero-image {
   height: 25vh;
   left: 0;
  }
  .stats {
   padding: 40px 10px;
  }
  .realisations,
  .galerie {
   margin: 30px auto;
   padding: 25px 5px;
   max-width: 98vw;
  }
  .footer-content {
   padding: 0 10px;
  }
  .footer-section {
   margin: 10px 0;
  }
  form {
   padding: 20px 10px;
   max-width: 98vw;
  }
}
@media (max-width:600px) {
  h1 {
   font-size: 1.7em;
  }
  h2,
  .services h2,
  .equipe h2,
  .pourquoi h2,
  .zone h2,
  .stats h2 {
   font-size: 1.2em;
   padding-top: 30px;
  }
  h3,
  .raison h3,
  .realisations h3,
  .footer-section h3,
  .footer-section h4 {
   font-size: 1em;
  }
  .navbar {
   padding: 10px 5px;
  }
  .logo-img {
   height: 40px;
  }
  .hero {
   height: 55vh;
   min-height: 320px;
  }
  .hero-overlay {
   padding: 10px 6px;
   left: 0;
   bottom: 0;
   max-width: 100vw;
  }
  .hero-overlay h1 {
   font-size: 1.2rem;
  }
  .hero-overlay p {
   font-size: .95rem;
  }
  .hero-image {
   height: 15vh;
  }
  .service-list,
  .equipe-list,
  .raisons,
  .stats-grid,
  .footer-content {
   gap: 10px;
  }
  .service,
  .membre,
  .raison,
  .stat,
  .footer-section {
   padding: 12px 5px;
  }
  .realisations-photos,
  .galerie-photos {
   grid-template-columns: 1fr;
   gap: 8px;
   padding: 0 2px;
  }
  .realisations-photos img,
  .photo img {
   height: 90px;
  }
  .zone .map {
   max-width: 98vw;
   margin: 10px auto 0;
  }
  .stats {
   padding: 20px 2px;
  }
  .stat {
   padding: 18px 5px;
  }
  .footer-section {
   margin: 5px 0;
  }
  .footer-bottom {
   font-size: 11px;
   padding-top: 8px;
  }
  form {
   padding: 10px 2px;
   gap: 10px;
  }
  .presentation .presentation-content {
   padding: 0 2% 20px;
  }
}
@media (min-width:1800px) {
  .container,
  .footer-content,
  .realisations,
  .galerie,
  .stats,
  .zone .map {
   max-width: 1800px;
  }
  .navbar,
  .nav-container {
   max-width: 1800px;
  }
}


.mentions-legales h1, .mentions-legales h2 {
    margin-top: 1.5rem;
    color: #333;
}
.mentions-legales p {
    line-height: 1.6;
    margin-bottom: 1rem;
}
/* Container de login */
.login-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Titre */
.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #1e3a5f;
}

/* Formulaire */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: #007bff;
    outline: none;
}

/* Bouton */
.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #0056b3;
}

/* Message d'erreur */
.error {
    color: #d9534f;
    background-color: #f8d7da;
    padding: 10px;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}


.avis {
    background-color: #f9f9f9;
    border-left: 5px solid #2c3e50; /* couleur principale sombre */
    padding: 1em 1.5em;
    margin: 1.5em 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avis p {
    margin: 0.5em 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.avis strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.avis small {
    display: block;
    margin-top: 0.5em;
    color: #888;
    font-size: 0.9rem;
}

.avis .stars {
    color: #f39c12; /* jaune/orange pour les étoiles */
    font-size: 1.1rem;
}

#etoiles {
    display: inline-block;
    user-select: none;
}

#etoiles span {
    font-size: 2rem;
    color: #ccc; /* gris clair par défaut */
    cursor: pointer;
    transition: color 0.2s ease;
}

#etoiles span.selected {
    color: #f1c40f; /* jaune doré pour la sélection */
}

#etoiles span.hovered {
    color: #f1c40f; /* jaune au survol */
}

/* Sur mobile, garder un bon espacement */
@media (max-width: 500px) {
    #etoiles {
        gap: 12px;
    }

    #etoiles span {
        font-size: 2.2rem;
    }
}
