body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}
h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
}
h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}
h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}
p {
  font-size: 15px;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}
a {
  /* Un vert médium, équilibré pour la lecture */
  color: #2e7d32; 
  font-weight: 400;
  transition: color 0.3s ease; /* Pour une transition douce */
}

a:hover,
a:focus {
  text-decoration: none;
  /* Un vert plus sombre et intense au survol */
  color: #1b5e20; 
  outline: none; /* Nettoie le focus sur certains navigateurs */
}
ul,
ol {
  list-style: none;
}
ul,
ol {
  padding: 0;
  webkit-padding: 0;
  moz-padding: 0;
}
hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}
/* Navigation */
#menu {
  padding: 15px;
  transition: all 0.8s;
}
#menu.navbar-default {
  background-color: #fff;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
}
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 2px;
  border-radius: 0;
  margin: 9px 20px 0;
}
/* --- Ligne de soulignement animée au survol --- */
#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  /* Dégradé Vert Nature vers Vert Émeraude */
  background: linear-gradient(to right, #4caf50 0%, #2e7d32 100%);
  content: "";
  transition: width 0.2s;
}

#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}

/* --- État Actif (Lien de la page courante) --- */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
  color: #2e7d32 !important; /* Force le texte en vert sombre */
}

.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  /* Dégradé constant pour le lien actif */
  background: linear-gradient(to right, #4caf50 0%, #2e7d32 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}

/* --- Menu Mobile (Toggle Button) --- */
.navbar-toggle {
  border-radius: 0;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #2e7d32; /* Bordure verte au focus */
}

.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #2e7d32; /* Barres du menu (hamburger) en vert au survol */
}
.section-title {
  margin-bottom: 70px;
}
.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
/* --- Ligne décorative sous les titres de section --- */
.section-title h2::after {
  position: absolute;
  content: "";
  /* Passage du bleu au dégradé Vert Nature / Vert Émeraude */
  background: linear-gradient(to right, #4caf50 0%, #2e7d32 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}

.section-title p {
  font-size: 18px;
}

/* --- Bouton Personnalisé (Vert) --- */
.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #4caf50;
  /* Dégradé assorti à la barre de navigation et aux titres */
  background-image: linear-gradient(to right, #4caf50 0%, #2e7d32 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  /* Couleur de survol : Vert Émeraude foncé pour plus de contraste */
  background-color: #1b5e20; 
}
.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}
/* Header Section */
.intro {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: #e5e5e5;
  background-size: cover;
}

.intro .overlay {
  /* On fonce un peu l'overlay pour que le texte blanc ressorte bien sur les images claires */
  background: rgba(0, 0, 0, 0.4); 
}

.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  /* Utilisation de clamp pour éviter que le texte dépasse sur smartphone */
  font-size: clamp(2.5rem, 8vw, 82px);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.1;
}

.intro h1 span {
  font-weight: 800;
  /* Changement du bleu vers le vert brillant */
  color: #4caf50; 
}

.intro p {
  color: #fff;
  font-size: clamp(1rem, 3vw, 22px);
  font-weight: 300;
  line-height: 1.4;
  margin: 0 auto 60px;
  max-width: 800px; /* Évite les lignes trop longues sur grand écran */
}

header .intro-text {
  /* Padding adaptatif : beaucoup d'espace sur PC, moins sur mobile */
  padding-top: clamp(150px, 25vh, 350px);
  padding-bottom: clamp(100px, 15vh, 200px);
  text-align: center;
}
#features {
  background: #f6f6f6;
  padding: 80px 0;
}

#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  /* Dégradé de verts */
  background: linear-gradient(to right, #4caf50 0%, #2e7d32 100%);
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
}

#features i.fa:hover {
  transform: scale(1.1);
  background: #1b5e20; /* Vert très sombre au survol */
}
#about {
  padding: clamp(50px, 10vh, 100px) 0;
}

#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
}

#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#about h2::after {
  position: absolute;
  content: "";
  /* Ligne de soulignement verte alignée à gauche */
  background: linear-gradient(to right, #4caf50 0%, #2e7d32 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}

#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}

#about .about-text li:before {
  content: "\f00c"; /* Icône Check FontAwesome */
  font-family: "FontAwesome";
  color: #4caf50; /* Couleur des coches en vert */
  font-size: 14px;
  font-weight: 300;
  padding-right: 10px;
}

#about img {
  /* Rend l'image responsive sur tablette/mobile */
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  background: #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}
#about p {
  line-height: 24px;
  margin: 30px 0;
}
/* Services Section */
#services {
  /* Padding adaptatif : 100px sur grand écran, 60px sur mobile */
  padding: clamp(60px, 10vh, 100px) 0;
  
  /* Dégradé de vert professionnel (du plus foncé au plus clair) */
  background: #2e7d32; /* Fallback pour les vieux navigateurs */
  background: linear-gradient(to right, #1b5e20 0%, #388e3c 100%);
  
  color: #fff;
  /* Assure que tout débordement de contenu est géré proprement */
  overflow: hidden;
}

/* Optionnel : Si vous avez des titres dans cette section, 
   on assure qu'ils ressortent bien sur le fond vert */
#services h2, #services h3 {
  color: #fff;
}

#services .section-title h2::after {
  /* On change la ligne de soulignement en blanc ou vert très clair 
     pour qu'elle soit visible sur le fond sombre */
  background: rgba(255, 255, 255, 0.6);
}
#services i.fa {
  background: rgba(200, 230, 201, 0.3); 
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #1b5e20; /* On met l'icône en vert foncé pour qu'elle soit lisible sur le fond clair */
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  
  /* --- CHANGEMENT ICI : Vert plus léger et frais --- */
  background: linear-gradient(to right, #a5d6a7 0%, #81c784 100%); 
  
  /* Une ombre plus douce assortie au vert */
  box-shadow: 10px 10px 20px rgba(46, 125, 50, 0.1);
}

#features i.fa:hover {
  transform: scale(1.1);
  /* Au survol, on peut éclaircir encore un peu ou changer l'intensité */
  background: #c8e6c9; 
  color: #2e7d32;
}
#services .service-desc {
  margin: 10px 10px 20px;
}
#services h2 {
  color: #fff;
}
#services .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
#services i.fa {
  font-size: 42px;
  width: 120px;
  height: 120px;
  padding: 40px 0;
  /* Changement : Vert menthe/pastels légers */
  background: linear-gradient(to right, #a5d6a7 0%, #81c784 100%);
  border-radius: 50%;
  /* Couleur de l'icône en vert foncé pour le contraste sur le fond clair */
  color: #1b5e20; 
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#services i.fa:hover {
  transform: translateY(-5px);
  background: #c8e6c9; /* Encore plus clair au survol */
}

#services h3 {
  font-weight: 500;
  padding: 5px 0;
  color: #fff;
}

#services p {
  /* On garde une opacité pour le texte secondaire pour la hiérarchie visuelle */
  color: rgba(255, 255, 255, 0.85);
}

#services .service-desc {
  margin-bottom: 40px;
  /* Optionnel : ajout d'un padding pour mobile */
  padding: 0 15px;
}
#portfolio {
  padding: clamp(60px, 10vh, 100px) 0;
}

.portfolio-item {
  /* Correction pour éviter les débordements sur mobile */
  margin: 0;
  padding: 5px; 
}

.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}

.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  /* Changement : Dégradé vert avec opacité (0.85) */
  background: linear-gradient(
    to right,
    rgba(76, 175, 80, 0.85) 0%,
    rgba(46, 125, 50, 0.85) 100%
  );
  /* Ajustement centrage vertical */
  display: flex;
  align-items: center;
  justify-content: center;
  
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}

.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
}

.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.hover-bg:hover .hover-text {
  opacity: 1;
}
/* Testimonials Section */
#testimonials {
  padding: 100px 0;
  background: #f6f6f6;
}
#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}
.testimonial {
  position: relative;
  padding: 20px;
}
.testimonial-image {
  float: left;
  margin-right: 15px;
}
.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.testimonial-content {
  position: relative;
  overflow: hidden;
}
.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}
/* Team Section */
#team {
  padding: 100px 0;
}
#team h4 {
  margin: 5px 0;
}
#team .team-img {
  width: 240px;
}
#team .thumbnail {
  background: transparent;
  border: 0;
}
#team .thumbnail .caption {
  padding: 10px 0 0;
  color: #888;
}
/* Contact Section */
#contact {
  /* Padding adaptatif pour mobile */
  padding: clamp(60px, 10vh, 100px) 0 60px;
  /* Harmonisation avec le dégradé vert de la section Services */
  background: linear-gradient(to right, #1b5e20 0%, #388e3c 100%);
  color: rgba(255, 255, 255, 0.85);
}

#contact .section-title {
  margin-bottom: 40px;
}

#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  position: relative;
}

/* Ligne sous le titre de contact */
#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.5); /* Blanc semi-transparent pour élégance */
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0; /* Aligné à gauche comme dans votre style original */
}

#contact h3 {
  color: #fff;
  margin-top: clamp(40px, 5vh, 80px); /* Moins d'espace sur mobile */
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}

#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  transition: all 0.3s ease;
}

#contact .btn-custom:hover {
  /* Au survol, le texte devient vert foncé sur fond blanc */
  color: #1b5e20;
  background: #fff;
}

/* --- FORMULAIRE --- */
label {
  font-size: 13px; /* Légèrement agrandi pour mobile */
  font-weight: 400;
  color: #fff; /* Label en blanc pour lisibilité sur fond vert */
  margin-bottom: 5px;
  float: left;
  width: 100%;
  text-align: left;
}

#contact .form-control {
  display: block;
  width: 100%;
  height: 45px; /* Hauteur confortable pour le tactile */
  padding: 10px 15px;
  font-size: 16px; /* Évite le zoom automatique sur iPhone au clic */
  color: #444;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px; /* Un léger arrondi pour la modernité */
  transition: border-color 0.3s ease;
}

#contact .form-control:focus {
  border-color: #a5d6a7;
  outline: 0;
  box-shadow: 0 0 8px rgba(165, 214, 167, 0.5);
}

textarea.form-control {
  height: auto; /* Laisse le textarea s'adapter au contenu ou au rows */
  min-height: 120px;
}

/* Gestion des erreurs */
#contact .text-danger {
  color: #ffcdd2; /* Rouge très clair/rose pour être lisible sur vert */
  font-weight: 500;
  margin-top: 5px;
  font-size: 14px;
}
/* --- Focus sur les champs du formulaire --- */
#contact .form-control:focus {
  /* Bordure vert clair au clic */
  border-color: #a5d6a7; 
  outline: 0;
  /* Effet de lueur douce pour confirmer la sélection */
  -webkit-box-shadow: 0 0 8px rgba(165, 214, 167, 0.4);
  box-shadow: 0 0 8px rgba(165, 214, 167, 0.4);
}

/* --- Couleur des textes d'exemple (Placeholders) --- */
/* On les garde gris clair pour qu'ils ne soient pas confondus avec du texte saisi */
.form-control::-webkit-input-placeholder { color: #999; }
.form-control:-moz-placeholder { color: #999; }
.form-control::-moz-placeholder { color: #999; }
.form-control:-ms-input-placeholder { color: #999; }

/* --- Blocs d'informations (Adresse, Tel, Email) --- */
#contact .contact-item {
  margin: 20px 0;
  /* Sur mobile, on centre souvent ces éléments pour plus d'harmonie */
}

#contact .contact-item span {
  color: #fff; /* Blanc pur pour les titres (Adresse, Email, etc.) */
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

#contact .contact-item i.fa {
  margin-right: 15px; /* Un peu plus d'espace */
  /* Couleur verte claire pour faire ressortir les icônes sur le fond sombre */
  color: #a5d6a7; 
  font-size: 18px;
}

#contact .contact-item p {
  color: rgba(255, 255, 255, 0.8); /* Texte un peu plus discret que le titre */
  line-height: 1.6;
}

/* --- Adaptation Mobile pour les items --- */
@media (max-width: 768px) {
  #contact .contact-item {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
  }
  #contact .contact-item i.fa {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }
}
#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 50px;
  text-align: center;
}
#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}
/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}
#footer p {
  color: #888;
  font-size: 14px;
}
#footer a {
  color: #608dfd;
}
#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
  }
}

.custom-select {
    width: "100%";
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    color: black;
    appearance: none; /* Supprime le style natif */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'10'%20viewBox%3D'0%200%2010%2010'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0%200l5%205%205-5z'%20fill%3D'%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
  }

  .custom-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
  }

  /* --- BASE & MOBILE (Smartphone) --- */
.main-title {
  font-size: 1.8rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.title-underline {
  display: block;
  width: 50px;
  height: 4px;
  background-color: #007bff;
  margin: 10px auto 0; /* Centré sur mobile */
}

.intro-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.intro-paragraph {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Bouton responsive */
.btn-custom {
  padding: 0.6rem 1.6rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Mobile */
@media (max-width: 576px) {
  .intro-text {
    padding: 0 1rem;
  }
}

.responsive-list-container {
  text-align: center;
  padding: 20px;
}

.responsive-list {
  display: inline-block;
  list-style: none;
  padding: 0;
  text-align: left;
  /* Utilisation de clamp pour une taille fluide entre 1.5rem et 3rem */
  font-size: clamp(1.2rem, 4vw, 2.5rem); 
  line-height: 1.6;
}

.responsive-list li {
  margin-bottom: 15px;
  display: flex; /* Aligne la flèche et le texte proprement */
  align-items: flex-start;
}

.responsive-list span {
  margin-right: 15px;
  color: #5ca9fb; /* Optionnel : colorer la flèche */
}

/* Ajustements spécifiques pour petits mobiles */
@media (max-width: 480px) {
  .responsive-list {
    font-size: 1.1rem;
  }
}

/* Style pour mobile (Smartphone) */
@media (max-width: 767px) {
  .service-item {
    padding: 3rem !important;
    margin-top: -4rem; /* Applique le padding de 2rem uniquement sur smartphone */
  }
}

/* Style pour tablette et desktop */
@media (min-width: 768px) {
  .service-item {
    padding: 15px; /* Padding standard Bootstrap ou votre choix */
  }
}

#root {
  width: -webkit-fill-available;
  overflow-x: auto;
}
