/* =====================================
   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;
  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;
}

.form-success {
  color: red;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.form-error {
  color: red;
  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;
  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;
  color: #fff;
}

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

.btn-devis {
  background-color: #333;
  color: #fff;
}

.btn-devis:hover {
  background-color: #000;
}

.icon-phone {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

/* =====================================
   Elements ajoutés
===================================== */
.top-contact-bar {
  background-color: #009444;
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 16px;
}

.top-contact-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.hero-intro {
  max-width: 900px;
  margin: 20px auto 10px;
  text-align: center;
  color: #333;
  line-height: 1.7;
  font-size: 17px;
}

.reassurance-box {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 20px 0 30px;
  border-left: 5px solid #009444;
}

.reassurance-box strong {
  color: #009444;
}

.reassurance-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.reassurance-box li {
  margin-bottom: 8px;
}

#cta-toiture {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 40px;
  text-align: center;
}

.devis-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.7;
  color: #333;
}

.sticky-mobile-call {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 9999;
  background-color: #28a745;
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.honeypot {
  display: none !important;
}

/* =====================================
   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(320px, 1fr));
  gap: 25px;
  list-style: none;
  margin: 30px 0;
}

.service-item {
  background: #fff;
  padding: 12px;
  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 img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

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

.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
===================================== */
.devis-section {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 40px;
}

.devis-form-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.devis-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.devis-form input,
.devis-form select,
.devis-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
  outline: none;
  border-color: #009444;
  box-shadow: 0 0 0 3px rgba(0, 148, 68, 0.12);
}

.devis-form textarea {
  resize: vertical;
  min-height: 160px;
}

.form-submit {
  text-align: center;
  margin-top: 24px;
}

.devis-submit {
  background-color: #009444;
  color: #fff;
  border: none;
  padding: 15px 34px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.devis-submit:hover {
  background-color: #007a33;
}

.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

/* Ancien formulaire si encore utilisé */
.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 (min-width: 1024px) {
  .devis-section {
    padding: 40px;
  }

  .form-grid {
    gap: 20px 28px;
  }
}

@media (min-width: 769px) {
  .sticky-mobile-call {
    display: none;
  }
}

@media (max-width: 992px) {
  .devis-form-wrapper {
    max-width: 100%;
  }

  .form-grid {
    gap: 16px 18px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
  }

  .header-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .devis-table tr td {
    display: block;
    width: 100%;
  }

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

  .devis-section {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group-full {
    grid-column: auto;
  }

  .devis-submit {
    width: 100%;
  }
}