
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f4f3;
  color: #333;
  line-height: 1.6;
}

/* Empêche un scroll horizontal accidentel (tableaux/iframes/images) */
html, body { overflow-x: hidden; }
img, iframe { max-width: 100%; }
header {
  background: #14532d;
  color: white;
  padding: 1em 2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
header img {
  height: 50px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  color: #a7f3d0;
}
.hero {
  background: linear-gradient(to right, #166534, #22c55e);
  color: white;
  text-align: center;
  padding: 4em 2em;
}
.hero h1 {
  font-size: 2.8em;
}
.hero p {
  font-size: 1.2em;
  margin-top: 1em;
}
.intro {
  padding: 3em 2em;
  max-width: 900px;
  margin: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: -2em;
  position: relative;
  z-index: 2;
}
.intro h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}
.btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.75em 1.5em;
  background: #166534;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.btn:hover {
  background: #15803d;
}
footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 2em 1em;
  margin-top: 4em;
}
footer a {
  color: #86efac;
  text-decoration: none;
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
  .hero h1 {
    font-size: 2em;
  }
}


.tarif-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 1em;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tarif-table th, .tarif-table td {
  border: 1px solid #ccc;
  padding: 0.75em;
  text-align: center;
}

.tarif-table th {
  background: #166534;
  color: white;
}

.tarif-table tr:nth-child(even) {
  background: #f9f9f9;
}

.tarif-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  margin-top: 2em;
}

.tarif-card {
  flex: 1 1 300px;
  background: white;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.tarif-card h3 {
  text-align: center;
  background: #166534;
  color: white;
  border-radius: 25px;
  padding: 0.5em;
  margin-bottom: 1em;
}

.tarif-card table {
  width: 100%;
  border-collapse: collapse;
}

/* --- Mobile cohesion: tables tarifs lisibles (sans casser le desktop) --- */
@media (max-width: 768px) {
  /* Empêche le "tableau coupé" sur iPhone : scroll horizontal dans la carte */
  .tarif-card {
    padding: 1.1em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* On garde les 4 colonnes en largeur mini, et on scrolle si nécessaire */
  .tarif-card table {
    min-width: 560px;
  }

  /* Confort de lecture */
  .tarif-card th,
  .tarif-card td {
    padding: 0.65em;
    font-size: 0.95em;
    white-space: nowrap;
  }
}

.tarif-card th, .tarif-card td {
  border: 1px solid #ccc;
  padding: 0.75em;
  text-align: center;
}

.tarif-card th {
  background: #f0f4f3;
}

.tarif-card td:last-child {
  font-weight: bold;
}

@media (max-width: 768px) {
  .tarif-grid {
    flex-direction: column;
  }
}


/* Logo plus grand sur mobile */
@media (max-width: 768px) {
  header a.logo-link img {
    height: 80px;
    margin-bottom: 1em;
  }

  form {
    flex-direction: column;
    gap: 1em;
  }

  form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25em;
  }

  form input,
  form textarea {
    width: 100%;
    font-size: 1em;
  }

  form input[type="text"],
  form input[type="email"],
  form textarea {
    display: block;
  }

  form button {
    align-self: flex-start;
  }
}

/* Menu burger */
.burger {
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  cursor: pointer;
  display: none;
  margin-left: auto;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    gap: 1em;
    background: #14532d;
    padding: 1em;
    width: 100%;
  }

  nav.open {
    display: flex;
  }
}

.why-us {
  background: #f0fdf4;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 3em auto;
}

.why-us h2 {
  text-align: center;
  color: #064e3b;
  margin-bottom: 1em;
}

.why-us p {
  font-size: 1.1em;
  line-height: 1.8em;
  color: #065f46;
  margin-bottom: 1em;
}

.simulateur-box {
  margin-top: 2em;
  background: #ffffff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.simulateur-box form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.simulateur-box input,
.simulateur-box select {
  padding: 0.75em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.simulateur-box button {
  background: #166534;
  color: white;
  border: none;
  padding: 0.8em;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.simulateur-box button:hover {
  background: #15803d;
}

.resultat-box {
  margin-top: 1em;
  font-size: 1.1em;
  background: #d1fae5;
  padding: 1em;
  border-left: 5px solid #10b981;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 600px;
  margin: 2em auto;
  background: #f8fafc;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

form input, form textarea {
  font-size: 1em;
  padding: 0.75em;
  border-radius: 8px;
  border: 1px solid #ccc;
}
/* === Bouton WhatsApp dynamique === */
#whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-float {
  background-color: #25D366;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.whatsapp-float img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

/* Bulle de texte */
.whatsapp-bubble {
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  border-radius: 20px;
  padding: 8px 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  white-space: nowrap;
  pointer-events: none;
}
.whatsapp-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
  #whatsapp-widget { bottom: 15px; right: 15px; }
  .whatsapp-float { width: 50px; height: 50px; }
  .whatsapp-float img { width: 28px; height: 28px; }
  .whatsapp-bubble { font-size: 0.85rem; }
}
