:root {
  --noir: #111111;
  --vert: #66ff66;
  --vert-fonce: #004d00;
  --gris-clair: #eeeeee;
  --gris-fond: #f9f9f9;
  --txt-principal: #222;
  --ombre: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--gris-fond);
  color: var(--txt-principal);
  line-height: 1.6;
}

/* ----- HEADER + NAVIGATION ----- */
header {
  background: var(--noir);
  color: white;
}

.nav-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 10%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-modern .logo {
  font-weight: 900;
  font-size: 1.4em;
  color: black;
  letter-spacing: 1px;
}

.nav-modern .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-modern .nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-modern .nav-links a:hover {
  color: var(--vert-fonce);
}
.btn-cta {
  border: 2px solid black;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
}
.btn-cta:hover {
  background: var(--vert);
  color: black;
  border-color: var(--vert);
}

/* ----- HERO ----- */
.hero-modern {
  position: relative;
  background: url('https://images.unsplash.com/photo-1583267747480-02abf5f1537b') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 10px;
}
.hero-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}
.hero-btn {
  background: var(--vert);
  color: black;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.hero-btn:hover {
  background: #00cc00;
}

/* ----- INTRO SPLIT ----- */
.split-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 50px;
  background: #f7f7f7;
  flex-wrap: wrap;
}
.split-text {
  flex: 1;
}
.split-text h2, .split-text h3 {
  color: var(--vert-fonce);
  font-size: 2em;
  margin-bottom: 15px;
}
.split-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333;
}
.split-image {
  flex: 1;
  text-align: right;
}
.split-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ----- SERVICES ----- */
.services-section {
  background-color: #f0f4f2;
}
.cards-modern {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}
.service-card {
  background: white;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.service-card h3 {
  font-size: 1.3em;
  margin: 15px;
  color: var(--vert-fonce);
}
.service-card p {
  margin: 0 15px 20px;
  color: #444;
}

/* ----- CONTACT ----- */
.contact-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 80px 10%;
  background: #fff;
}
.contact-left, .contact-right {
  flex: 1;
}
.contact-left h2 {
  color: var(--vert-fonce);
  margin-bottom: 20px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
form input, form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}
form button {
  background: var(--vert);
  color: black;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-right iframe {
  width: 100%;
  height: 250px;
  margin-top: 20px;
  border-radius: 8px;
}

/* ----- ASSURANCES ----- */
.assurances .logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}
.assurances img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.assurances img:hover {
  filter: grayscale(0%);
}

/* ----- FOOTER ----- */
.footer-modern {
  background: #0b1a0b;
  color: white;
  text-align: center;
  padding: 30px 10%;
  font-size: 0.9em;
}

/* ----- APPEL FLOTTANT ----- */
.call-btn {
  position: fixed;
  bottom: 20px;
  right: 0px;
  background-color: var(--vert);
  color: var(--noir);
  font-weight: bold;
  padding: 20px;
  border-radius: 50px;
  box-shadow: 0 4px 10px var(--ombre);
  text-decoration: none;
  font-size: 1em;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 999;
}
.call-btn:hover {
  transform: scale(1.05);
  background-color: white;
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 1024px) {
  .nav-modern {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-modern .nav-links {
    flex-direction: column;
    gap: 15px;
    padding-top: 10px;
  }
  .split-section {
    flex-direction: column;
    text-align: center;
  }
  .split-image {
    text-align: center;
  }
  .split-image img {
    width: 100%;
    height: auto;
  }
  .contact-section {
    flex-direction: column;
    align-items: center;
  }
  .cards-modern {
    flex-direction: column;
    align-items: center;
  }
  .service-card {
    width: 90%;
  }
  .hero-modern {
    height: auto;
    padding: 60px 20px;
  }
  .hero-content h1 {
    font-size: 2em;
  }
  .hero-content p {
    font-size: 1em;
  }
  form {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.6em;
  }
  .hero-btn {
    font-size: 0.95em;
    padding: 10px 18px;
  }
  .split-text h2, .split-text h3 {
    font-size: 1.5em;
  }
  .cards-modern {
    gap: 20px;
  }
  .footer-modern {
    font-size: 0.85em;
  }
   .call-btn {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
	padding:15px;
    background-color: var(--vert);
    color: var(--noir);
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    font-size: 1.1em;
    z-index: 9999;
    border-top: 2px solid var(--vert-fonce);
    box-shadow: 0 -2px 10px var(--ombre);
  }
}
