/* thermostat-malin.fr — overrides Tailwind CDN */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Lien affilié — signal de confiance */
.btn-affiliation {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F97316;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
}
.btn-affiliation:hover {
  background: #ea6a08;
  transform: translateY(-1px);
}

/* Tableau comparatif responsive */
.table-comparatif {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table-comparatif th {
  background: #F97316;
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
}
.table-comparatif td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
}
.table-comparatif tr:nth-child(even) td { background: #fafafa; }
.table-comparatif tr:hover td { background: #fff7ed; }

/* Étoiles de notation */
.stars { color: #F97316; letter-spacing: 0.05em; }

/* Mise en avant "meilleur choix" */
.badge-top {
  display: inline-block;
  background: #F97316;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Carte produit */
.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: #fff;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 4px 24px rgba(249,115,22,0.1); }
.product-card.top { border-color: #F97316; border-width: 2px; }

/* Accordion FAQ */
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: #F97316; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 1.25rem 1rem; color: #4b5563; line-height: 1.7; }

/* Alert obligation 2027 */
.alert-obligation {
  background: #fff7ed;
  border-left: 4px solid #F97316;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

/* Progress bar économies */
.progress-bar {
  background: #fed7aa;
  border-radius: 9999px;
  height: 10px;
  overflow: hidden;
}
.progress-bar .fill {
  background: #F97316;
  height: 100%;
  border-radius: 9999px;
}

/* Nav active */
nav a.active { color: #F97316; font-weight: 600; }

/* Scroll-to-top (simple) */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #F97316;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: opacity 0.2s;
}

@media (max-width: 767px) {
  .table-comparatif { font-size: 0.8rem; }
  .table-comparatif th, .table-comparatif td { padding: 0.6rem 0.6rem; }
}
