/* =====================================
   Base - Body, Fonts, Links
===================================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333;
}
form input,
form select,
form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
}
a {
  text-decoration: none;
}

/* =====================================
   Header
===================================== */
header {
  background-color: #e6e6e6; /* gris foncé / noir */
  color: #fff;
  padding: 25px 20px;
  text-align: center;
}

header img {
  max-width: 150px;
  display: block;
  margin: 0 auto 12px;
}

header h1 {
  margin: 15px 0;
  font-size: 28px;
  font-weight: 800;
  color: #28a745; /* vert moderne */
}
  .form-success {
    color: green; /* message vert pour succès */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.form-error {
    color: red; /* message rouge pour erreur */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}
/* Header buttons */
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.header-buttons a {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px; /* coins arrondis */
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-call {
  background-color: #28a745; /* vert */
  color: #fff;
}

.btn-call:hover {
  background-color: #1e7e34;
}

.btn-devis {
  background-color: #333; /* gris foncé */
  color: #fff;
}

.btn-devis:hover {
  background-color: #000;
}
.icon-phone {
  width: 24px;   /* largeur fixe */
  height: 24px;  /* hauteur fixe */
  object-fit: contain; /* garde les proportions */
  vertical-align: middle; /* aligne avec le texte */
  margin-right: 8px; /* espace avec le texte */
}

/* =====================================
   Container / Sections
===================================== */
.container {
  max-width: 1150px;
  margin: 20px auto;
  padding: 0 20px;
}

h2 {
  color: #009444;
  margin-top: 40px;
  text-align: center;
  font-size: 24px;
}

/* =====================================
   Services
===================================== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  list-style: none;
  margin: 30px 0;
}

.service-item {
  background: #fff;
  padding: 25px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.service-item img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-item h3 {
  color: #009444;
  margin-bottom: 10px;
}

/* =====================================
   Zones d’intervention
===================================== */
.zones {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 40px;
  line-height: 1.8;
}

.zones strong {
  color: #009444;
}

/* =====================================
   Formulaire / Devis
===================================== */
.fullscreen-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.fullscreen-form form {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 600px;
}

.fullscreen-form form h2 {
  text-align: center;
  color: #009444;
  margin-bottom: 25px;
}

.fullscreen-form label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
}

.fullscreen-form input,
.fullscreen-form select,
.fullscreen-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

.fullscreen-form textarea {
  resize: vertical;
}

.fullscreen-form button {
  background-color: #009444;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.fullscreen-form button:hover {
  background-color: #007a33;
}

/* Table devis */
.devis-table {
  margin: auto;
  width: 90%;
  max-width: 1200px;
  border-collapse: collapse;
}

.devis-table td {
  padding: 0.5rem;
  vertical-align: top;
}

/* =====================================
   Contact
===================================== */
.contact {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 40px;
  text-align: center;
}

.contact a {
  font-weight: bold;
  color: #009444;
}

/* =====================================
   Footer
===================================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #e6e6e6;
  color: black;
  margin-top: 50px;
}

/* =====================================
   Media Queries
===================================== */
@media (max-width: 768px) {

  header h1 {
    font-size: 22px;
  }

  .service-item img {
    height: 150px;
  }

  /* Empilement boutons header */
  .header-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Formulaire responsive */
  .devis-table tr td {
    display: block;
    width: 100%;
  }

  .devis-table tr td[colspan] {
    width: 100%;
  }
 
  
}
