* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 2rem;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
    font-style: normal;
}

/* Headings */
h1 {
    font-size: 3rem;
    font-weight: 800;
  }
  
  h2 {
    font-size: 2rem;
    font-weight: 700;
  }
  
  h3 {
    font-size: 1.75rem;
    font-weight: 600;
  }
  
  h4 {
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  h5 {
    font-size: 1rem;
    font-weight: 500;
  }
  
  h6 {
    font-size: 0.875rem;
    font-weight: 500;
  }


/* Preloader styles */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white; /* or your preferred background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner styles */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: green;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

#menu-toggle,
#close-menu {
  display: none;
}

  

/* Header and Navbar */
#site-header {
    background-color: #FAF7F3;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 2rem;
    position: fixed;
    width:100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#site-nav {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: space-between;
}

#logo a {
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

#logo-img {
    width: 90px;
    margin-right: 10px;
}

#site-nav ul {
  display: flex;
  gap: 2rem; 
  list-style: none;
  margin: 0;
  padding: 0;
}


#site-nav li {
    display: inline-block;
    list-style: none;
    margin-right: 50px;
}

#site-nav li a {
    color: green;
    font-size: 20px;
    font-weight: 600;
    transition: 0.3s;
}

#site-nav li a:hover {
    color: orange;
}

/* Accueil */
.accueil {
    background-color: #D9DFC6; 
    background-image: url(images/back.jpg);   
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat; 
    height: 100vh;
    width: 100%;
}

.accueil-text {
    text-align: center;
    padding-top: 130px;
}

.accueil-text h1 {
    font-size: 80px;
    color: darkgreen;
    padding-top: 130px;
}

.accueil-text p {
    color: darkgreen;
    font-size: 30px;
}

.btn, .propos-btn, .services-btn {
  border: 2px solid green;
  border-radius: 40px;
  width: fit-content;
  margin: 2rem auto 0 auto;
  padding: 10px 20px;
  display: block;
  font-weight: 500;
  color: green;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover, .propos-btn:hover, .services-btn:hover {
  color: white;
  background-color: green;
}

/* Propos */
.propos {
    background-color: white;
}

.propos-contenu {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.propos-image {
    flex: 1 1 2rem;
    margin-left: 7rem;
    padding-top: 2rem;
    padding-right: 3rem;
}

.propos-image img {
    width: 400px;
    height: 370px; 
    border: 3px solid green;
    border-radius: 50%;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

.propos-text {
    flex: 1 1 21rem;
    padding-bottom: 3rem;
    padding-right: 3rem;
}

.propos-text h1 {
    color: darkgreen;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.black-h3 {
    color: black;
}

.green-h3 {
    color: green;
}

.propos-btn:hover {
    color: white;
    background: rgb(47, 171, 43);
}


/* Services */
.services {
    background-color: #D9DFC6;
    padding: 70px 20px 50px;
    font-family: "Poppins", sans-serif;
}

.services h1 {
    display: flex;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: darkgreen;
    margin-bottom: 0px;
    letter-spacing: 3px;
}

.services h4 {
  display: flex;
  justify-content: center;
  color: green;
  padding-bottom: 30px;
}

.services-content {
  display: flex;
  justify-content: space-between; 
  max-width: 900px; 
  margin: 0 auto;   
  padding: 0 20px;
  gap: 40px; 
}

.services-content h3 {
  color: green;
}
.services-content ul {
  list-style-type: disc;
  padding-left: 20px;
  color: black;
  font-size: 1.1rem;
  line-height: 1.5;
  width: 100%;   
  max-width: 300px; 

  display: flex;           
  flex-direction: column;  
  gap: 10px;               

  margin-left: 25px;  
  padding-left: 20px; 
}

.services-content ul li {
  flex: 1 1 100%;         
  width: 100%;                 
  box-sizing: border-box;
}

.service-box {
  border: 3px solid green;
  border-radius: 20px;
  padding: 15px;
  background-color: white;
  box-shadow: 2px 2px 10px rgba(0, 109, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-2px);
}

/* Projets */
.projets {
  background-color: white;
  padding: 70px 20px 100px; 
  font-family: "Poppins", sans-serif;
}

.projets h1 {
  display: flex;
  justify-content: center;
  color: darkgreen;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 3px;
}

.projets h4 {
  display: flex;
  justify-content: center;
  color: green;
  padding-bottom: 30px;
}

/* Grandes Travaux et Entretien Paysager */
.gt-ep h3 {
  display: flex;
  justify-content: center;
  color: green;
  padding-top:50px;
  padding-bottom: 10px;
}
.gt-ep-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.gt-ep-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  border: 3px solid green;
  border-radius: 10px;
}
.gt-ep-images img:hover {
  transform: scale(0.99);
}


/* Popup images */
.popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .9);
  height: 100%;
  width: 100%;
  z-index: 1100;
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-image span {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.popup-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #fff;
  border-radius: 5px;
  width: 90%;
  max-width: 750px;
  object-fit: cover;
}


/* Stats */
.stats {
  background-color: white;
  padding-top: 30px;
  text-align: center;
}

.stats h3 {
  font-size: 2.5rem;
  color: darkgreen;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.stats-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-box {
  flex: 1 1 200px;
  background-color: white;
  border: 3px solid green;
  border-radius: 50%;
  padding: 30px 20px;
  box-shadow: 2px 2px 10px rgba(0, 109, 0, 0.1);
}

.stat-box p {
  color: green;
  font-weight: 500;
}

.stat-box .counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: green;
  display: block;
  margin-bottom: 10px;
}


/* Contact */
.contact {
  background-color: green;
  color: white;
  position: relative;
  padding-bottom: 40px;
}

.contact h2 {
  display: flex;
  justify-content: center;
  padding: 30px;
}

.info-form {
  display: flex;
  justify-content: space-between; 
  max-width: 900px; 
  margin: 0 auto;   
  padding: 0 20px;
  gap: 70px; 
}

.contact-info {
  display: flex;
  flex-direction: column;  
  align-items: flex-start; 
  gap: 15px;              
  max-width: 400px;        
  margin: 0 auto 50px;
  padding-top: 50px;  
}

.contact-box {
  padding: 10px;
}

.contact-box i {
  font-size: 20px;
  color: white;              
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-text h5 {
  margin: 0;
  font-size: 1rem;
  color: white;
  font-weight: 700;
}

.contact-text p {
  margin: 4px 0 0 0;
  color: white;
  font-size: 1rem;
}

.social-media {
  padding: 10px;
}

.social-icons a {
  font-size: 28px;      
  color: white;         
  transition: color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  text-decoration: none;  
}

.social-icons a:hover {
  color: orange;       
  transform: scale(1.2); 
}

.contact-form {
  padding-left: 100px;
  padding-top: 10px;
}

.contact-form form {
  max-width: 600px;
  margin: 0 auto;
  background-color: green;
  padding: 5px 25px;
  border: white solid 1px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.contact-form h5 {
  font-weight: 700;
  font-size: 1.3rem;
  color: white; 
  margin-bottom: 25px;
  text-align: center;
}

.form-input {
  position: relative;
  margin-bottom: 20px;
}

.form-input input,
.form-input textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  box-sizing: border-box;
}

.form-input input:focus,
.form-input textarea:focus {
  border-color: #2f8b2b;
  box-shadow: 0 0 6px #2f8b2b;
  outline: none;
}

.form-input span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: white;
  font-size: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: 0.3s ease all;
}

.form-input input:focus + span,
.form-input textarea:focus + span,
.form-input input:not(:placeholder-shown) + span,
.form-input textarea:not(:placeholder-shown) + span {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: white;
  background: green ;
  padding: 0;
}

.form-input input[type="submit"] {
  background-color: #2f8b2b;
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 0;
  width: 100%;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.form-input input[type="submit"]:hover {
  background-color: #246622;
}

/* Footer */
.footer {
  background-color: green;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 1rem;
}

/* Disable reveal effect – always visible */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Phone Styles */
@media (max-width: 768px) {

  #site-header, #site-nav {
  padding-left: 0;
  padding-right: 0;
}


#logo {
  padding-left: 0;
  margin-left: 0;
  display: flex;
  justify-content: flex-start; /* align content to left */
  flex: 1;
}

#logo a {
  display: flex;
  gap: 10px;
  font-weight: 700;
  font-size: 10px;
  color: green;
  padding-left: 0;
  margin-left: 0;
}

#logo-img {
  width: 50px;
  height: auto;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
#site-nav {
  display: flex;
  justify-content: space-between; /* logo left, menu right */
  padding-left: 0;
  padding-right: 0;
}

  #logo a {
  display: flex;           /* align image and text horizontally */    /* vertically center them */
  gap: 10px;               /* space between image and text */
  font-size: 1.2rem;       /* adjust font size */
  color: black;            /* text color */
  font-weight: 700;
}

#logo-img {
  width: 50px;             /* smaller logo image */
  height: auto;
   margin: 0;
  padding: 0;
  flex-shrink: 0;          /* prevent image from shrinking */
}



  #menu-toggle,
  #close-menu {
  display: block;
  color: green;
  font-size: 28px;
  cursor: pointer;
}

#menu-toggle {
  position: absolute;
  right: 20px;
  top: 20px;
  margin-right: 0;
}

#close-menu {
  position: absolute;
  right: 20px;
  top: 20px;
  display: none;
}

#site-nav ul {
  flex-direction: column;
  background: white;
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  display: none;
  padding: 1rem 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#site-nav ul.open {
  display: flex;
}

  #site-nav {
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

#site-nav ul {
  flex-direction: column;
  gap: 1rem;
}

#site-nav li {
  margin: 0;
  text-align: center;
}

#logo a {
  justify-content: center;
  font-size: 1.2rem;
}

#logo-img {
  width: 60px;
  margin: 0;
}

.accueil {
  height: auto; 
  padding-top: 10px;
  background: white;
}

.accueil-text {
  padding-top: 100px;
}

.accueil-text h1 {
  font-size: 30px;
  padding-top: 50px;
}

.accueil-text p {
  font-size: 15px;
  padding: 0 15px;
}

.btn {
  font-size: 13px;
  padding: 10px 20px;
  margin-top: 20px;
}

.propos {
  height:auto;
  padding-top: 0px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.propos-contenu {
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

.propos-image {
  margin: 0;
  padding: 2rem 0;
}

.propos-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 50%;
}

.propos-text {
  padding: 0;
  text-align: center;
}

.propos-text h1 {
  font-size: 25px;
  padding-bottom: 5px;
}

.propos-text h3 {
  font-size: 20px;
  padding-bottom: 10px;
}

.propos-text p {
  font-size: 15px;
}

.propos-btn {
  padding-bottom: 10px;
}

.services {
  height: auto;
}

.services-content {
  flex-direction: column;
  align-items: center;
}

.service-box {
  width: auto;
  word-wrap: break-word;
}

.services h1 {
  font-size: 25px;
}

.services h4 {
  font-size: 20px;
  text-align: center;
}

.projets {
  height: auto;
}

.projets h1 {
  font-size: 25px;
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
}

.projets h4 {
  font-size: 15px;
  display: flex;
  justify-content: center;
}

.projets-images {
  grid-template-columns: 1fr;
}

.isitt {
  height: auto;
}

.isitt h3 {
    font-size: 20px;
    padding-top: 0;
    text-align: center;
}

.isitt-images {
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.isitt-images img {
  width: 180px;
  height: 180px;
}


.gt-ep h3 {
  font-size: 20px;
}

.gt-ep-images {
  gap: 5px;
}

.gt-ep-images img {
  height: 110px;
  width: 110px;
}

.popup-image img {
  width: 95%;
}

  .popup-image span {
    position: fixed;  /* fixed to viewport */
    top: 15px;        /* distance from top */
    right: 15px;      /* distance from right */
    font-size: 35px;  /* adjust size for phone */
    color: white;
    cursor: pointer;
    z-index: 1200;    /* above popup and navbar */
  }

.stats h3 {
  font-size: 1.5rem;
}

.stat-box {
  max-width: 200px;
  margin: 0 auto;
}
.info-form {
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.contact-info {
  padding: 0;
}

.contact-form {
  padding: 0;
}

.contact-form form {
  width: 100%;
  padding: 20px;
  margin-top: 0;
}
}

