/* =========================
   BASE GÉNÉRALE
   ========================= */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* =========================
   HEADER
   ========================= */
header {
  background-color: #004d3c;
  color: white;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  height: 40px;
  margin-right: 8px;
}

header h1 {
  font-size: 18px;
  margin: 0;
}

.text-green {
  color: #00a76f;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav a {
  font-size: 14px;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   HERO
   ========================= */
.hero {
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 400px;
}

.hero-text {
  max-width: 600px;
  padding: 0 20px;
  margin-top: -100px;
  text-align: left;
}

.hero h2 {
  color: #004d3c;
}

.hero p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* =========================
   SERVICES
   ========================= */
.services {
  padding: 60px 20px;
  background-color: #f8f9fa;
}

.services h3 {
  text-align: center;
  color: #004d3c;
}

.services-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;
  margin-top: 40px;
  align-items: flex-start;
}

.service-box {
  text-align: center;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-box img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.service-box h4 {
  color: #004d3c;
  font-size: 16px;
  margin: 0 0 8px;
  min-height: 40px;
}

.service-box p {
  font-size: 14px;
  color: #333;
  margin: 0;
  min-height: 40px;
}

/* =========================
   TARIFS
   ========================= */
.tarifs {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.sous-titre {
  color: #666;
  margin-top: 5px;
  font-size: 16px;
}

.tarif-boxes {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.tarif-box {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  width: 230px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.tarif-box:hover {
  transform: translateY(-5px);
}

.tarif-header {
  background-color: #007a5a;
  font-weight: 700;
  color: white;
  padding: 10px 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin: -20px -20px 20px -20px;
}

.prix {
  font-size: 20px;
  color: #007a5a;
  margin-bottom: 16px;
}

.prix span {
  font-weight: normal;
  font-size: 14px;
  color: #333;
}

.tarif-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #333;
  font-size: 14px;
  text-align: left;
}

.tarif-box ul li {
  margin: 8px 0;
  white-space: nowrap;
}

.tarif-box ul li::before {
  content: '✔️';
  margin-right: 8px;
  color: #007a5a;
}

/* =========================
   SIMULATEUR
   ========================= */
.simulateur-new {
  padding: 80px 20px;
  background: #f8f9fa;
  text-align: center;
}

.simulateur-new h2 {
  color: #004d3c;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  margin-bottom: 40px;
}

.simu-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.simu-left, .simu-right {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  text-align: left;
}

.forfaits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.forfait-card {
  border: 2px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.forfait-card:hover {
  border-color: #007a5a;
}

.forfait-card.active {
  background: #007a5a;
  color: white;
  border-color: #007a5a;
}

.option-line {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  margin: 10px 0;
}

.option-line input[type="number"] {
  width: 48px;
  padding: 2px 4px;
  font-size: 12px;
  text-align: center;
}

.total-line {
  margin: 20px 0;
  font-size: 18px;
  color: #004d3c;
}

.cta-btn {
  background: linear-gradient(135deg, #007a5a, #00a76f);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 10px;
}

.mini-text {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
}

.simu-right ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.simu-right ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  font-size: 14px;
}

.total-box {
  background: #f0f4f3;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  color: #004d3c;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background-color: #004d3c;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .hero {
    padding: 60px 20px;
    min-height: auto;
    justify-content: center;
    align-items: center;
  }

  .hero-text {
    margin-top: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    max-width: 90%;
    text-align: center;
  }

  .services-row,
  .tarif-boxes {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .simu-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .forfaits {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .option-line {
    flex-wrap: wrap;
    white-space: normal;
  }

  .cta-btn {
    font-size: 15px;
    padding: 12px;
  }

  .total-box {
    font-size: 16px;
    padding: 12px;
  }
}
