:root {
  --green: #6E7C2A;
  --green-dark: #3A520B;
  --grey-light: #eeeeee;
  --grey: #d9d9d9;
  --text: #333;
  --white: #ffffff;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding-top: 60px;
}

/* CONTAINER GLOBAL */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER / NAVBAR */
.header {
  background: var(--white);
  text-align: center;
  padding: 10px 0;
}

.logo {
  margin: 15px auto;
}
.logo img {
  display: block;
  width: 100%;
  max-width: 1300px;
  height: auto;
  margin: 10px auto;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: var(--green-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-links {
  display: flex;
  align-items: flex-end;
  gap: 30px;
}

.nav-links img {
  height: 60px;
  vertical-align: bottom;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding: 6px 0;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: var(--white);
}

/* BURGER */
.burger {
  display: none;
  position: absolute;
  left: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* SECTIONS */
.section {
  padding: 0 20px 70px;
  scroll-margin-top: 90px;
}

.section .content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.section:nth-of-type(even) {
  background: var(--grey-light);
}

.section h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: var(--green-dark);
}

/* Ligne verte décorative */
.section:not(:first-of-type)::before {
  content: "";
  display: block;
  height: 4px;
  max-width: 80%;
  margin: 0 auto 30px;
  background: linear-gradient(to right, transparent, var(--green-dark), transparent);
  border-radius: 2px;
  opacity: 0.8;
}

/* ----------- ACCUEIL ----------- */
.accueil p {
  margin-bottom: 25px;
  text-align: justify;
}
.accueil h2 {
  color: var(--green-dark);
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--green-dark);
}

.btn-wrapper {
  text-align: center;
  margin-top: 20px;
}

#accueil,
#services,
#realisations,
#contact {
  scroll-margin-top: 90px;
}

/* ----------- ENTRETIEN / AMENAGEMENTS ----------- */
.entretien,
.amenagements {
  background: var(--white);
}

.entretien .content,
.amenagements .content {
  text-align: left;
}

.entretien h2,
.amenagements h2 {
  color: var(--green-dark);
  margin-bottom: 20px;
}

.entretien h3,
.amenagements h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--green);
}

.entretien p,
.amenagements p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1rem;
}

.entretien ul,
.amenagements ul {
  margin: 10px 0 20px 20px;
  padding-left: 15px;
}

.entretien ul li,
.amenagements ul li {
  margin-bottom: 8px;
  padding-left: 10px;
}

.entretien ul li::marker,
.amenagements ul li::marker {
  color: var(--green);
}

/* ----------- SERVICES ----------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
}

.service h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.service span {
  font-size: 1.1rem;
  font-weight: bold;
}

.conseil-icon {
 margin-bottom: 15px;
}

.icon {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.icon img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: filter 0.25s ease;
}

.service:hover .icon {
  background: var(--green-dark);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
  transform: translateY(-6px) scale(1.03);
}

.service:hover .icon img {
  filter: brightness(0) invert(1);
}

.service-list {
  list-style: none;
  margin-top: 15px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.service.open .service-list {
  max-height: 500px;
  opacity: 1;
}

.service-conseil {
  grid-column: 2 / 3;
}

.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ----------- CAROUSEL ----------- */
.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 40px 0;
}

/* Track horizontal */
.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

/* Chaque slide */
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner slider (avant / après) */
.inner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Images internes */
.inner-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* Image visible */
.inner-slider img.active {
  opacity: 1;
  z-index: 1;
}

/* =========================
   BOUTONS
========================= */

.carousel-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.carousel-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-btn:hover {
  background: var(--green-dark);
  transform: scale(1.1);
}

/* ----------- CONTACT ----------- */
.contact {
  background: var(--grey-light);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 20px 10px rgba(0,0,0,0.1);
  border: var(--green-dark) 3px solid;
}

.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* ----------- FOOTER ----------- */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding-top: 40px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.footer-block h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-block p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.footer-link {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  column-gap: 12px;
  margin: 14px auto;
  max-width: 280px;
  color: var(--white);
  text-decoration: none;
}

.footer-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer-link span {
  text-align: left;
  line-height: 1.4;
}

.footer-link:hover {
  opacity: 0.85;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-icons img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-icons a:hover img {
  transform: translateY(-3px) scale(1.1);
  opacity: 0.9;
}

.footer-bottom {
  background: #1c2c12;
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  transition: opacity 0.25s ease;
}

.footer-bottom a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ----------- MEDIA QUERIES ----------- */
/* Tablette */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* ===== NAVBAR / BURGER ===== */

  .nav {
    height: 60px;
  }

  .burger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);

    background: var(--green-dark);

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 24px;
    padding: 20px 0;

    transform: translateY(-100%);
    transition: transform 0.35s ease;

    z-index: 1000;
  }

  .nav-links img {
    display: none;
  }

  .nav.open .nav-links {
    transform: translateY(0);
  }

  .nav.open .burger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav.open .burger span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* ===== SERVICES ===== */

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  .icon {
    width: 120px;
    height: 120px;
  }

  /* ===== CAROUSEL ===== */

  .carousel {
    padding: 30px 0;
  }

  /* ===== FOOTER ===== */

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom p {
    text-align: center;
    line-height: 1.6;
  }

  .footer-bottom a {
    display: block;
    margin-top: 6px;
  }
}

/* Petit mobile */
@media (max-width: 500px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .icon {
    width: 105px;
    height: 105px;
  }

  .service h3 {
    font-size: 0.95rem;
  }

  .service-conseil {
    grid-column: auto;
  }
}