/* Tarifs écrans — estimateur « écrivez votre modèle » (préfixe tg-, n'affecte pas les autres pages) */

.tg-hero { padding: 42px 0 26px; }
.tg-hero h1 { margin-bottom: 10px; }
.tg-hero .lead { max-width: 760px; }

/* Panneau de recherche */
.tg-panel { max-width: 720px; }
.tg-panel-title { margin-bottom: 16px; }
.tg-search-wrap { position: relative; }
.tg-search-wrap .tg-ico {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.1rem; opacity: .55; pointer-events: none;
}
#tg-search {
  width: 100%; padding: 16px 18px 16px 48px;
  font: inherit; font-size: 1.08rem;
  border: 2px solid var(--line, #dfe5ee); border-radius: 16px;
  background: var(--surface, #fff); color: var(--ink, #0d0f1a);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 10px rgba(13, 15, 26, .06);
}
#tg-search:focus { border-color: var(--blue, #0056d2); box-shadow: 0 0 0 4px rgba(0, 86, 210, .12); }
.tg-meta { font-size: .84rem; color: var(--muted, #5f6978); margin: 10px 2px 0; }

/* L'attribut hidden doit gagner sur nos display:flex/grid */
.tg-quick[hidden], .tg-more[hidden], .tg-empty[hidden], #tg-all[hidden] { display: none !important; }

/* Modèles les plus demandés (champ vide) */
.tg-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tg-pick {
  border: 1px solid var(--line, #dfe5ee); background: var(--surface, #fff);
  color: inherit; font: inherit; font-size: .86rem; font-weight: 600;
  padding: 8px 15px; border-radius: 50px; cursor: pointer;
  transition: all .14s ease;
}
.tg-pick:hover { border-color: var(--blue, #0056d2); color: var(--blue, #0056d2); transform: translateY(-1px); }

/* Propositions (cartes résultat) */
.tg-results { display: grid; gap: 12px; margin-top: 18px; }
.tg-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e3e8f0); border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(13, 15, 26, .06);
  animation: tg-in .18s ease;
}
@keyframes tg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tg-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tg-card .tg-model { font-weight: 800; font-size: 1.08rem; }
.tg-tag {
  font-size: .72rem; font-weight: 600; color: var(--muted, #5f6978);
  border: 1px solid var(--line, #e3e8f0); border-radius: 50px; padding: 2px 10px;
}
.tg-gift { margin: 10px 0 0; font-size: .84rem; font-weight: 600; color: var(--blue, #0056d2); }
.tg-wa {
  display: inline-block; margin-top: 12px;
  background: var(--wa, #25d366); color: #fff !important;
  font-weight: 700; font-size: .88rem; text-decoration: none;
  padding: 9px 18px; border-radius: 50px;
  transition: transform .14s ease, filter .14s ease;
}
.tg-wa:hover { transform: translateY(-1px); filter: brightness(1.05); }
.tg-more { font-size: .86rem; color: var(--muted, #5f6978); margin-top: 12px; }

/* Pastilles qualité/prix */
.tg-quals { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-q {
  display: inline-flex; align-items: baseline; gap: 6px;
  border-radius: 10px; padding: 6px 12px;
  font-size: .8rem; font-weight: 600; line-height: 1.25;
  border: 1px solid transparent; white-space: nowrap;
}
.tg-q b { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-q small { font-weight: 500; opacity: .75; }
.tg-q.eco  { background: var(--bg-alt, #f1f4f9); border-color: var(--line, #e0e6ef); color: inherit; }
.tg-q.mid  { background: #eef0fb; border-color: #c9cfee; color: #3a44a0; }
.tg-q.oled { background: var(--chip, #e9f1fd); border-color: rgba(0, 86, 210, .25); color: var(--blue-dk, #003a9b); }
.tg-q.orig { background: var(--amber-bg, #fdf6e4); border-color: var(--amber-bd, #ecd9ab); color: var(--amber, #8a6208); }
@media (prefers-color-scheme: dark) {
  .tg-q.mid  { background: #1c2140; border-color: #353e72; color: #aab4f2; }
  .tg-q.oled { color: #8ab4ff; border-color: rgba(96, 150, 255, .35); }
}

/* Aucun résultat */
.tg-empty { text-align: center; padding: 28px 16px 8px; color: var(--muted, #5f6978); }
.tg-empty .btn { margin-top: 14px; }

/* Bouton liste complète */
.tg-toggle-wrap { margin-top: 26px; text-align: center; }
.tg-toggle {
  border: 1px solid var(--line, #dfe5ee); background: var(--surface, #fff);
  color: inherit; font: inherit; font-size: .9rem; font-weight: 600;
  padding: 10px 20px; border-radius: 50px; cursor: pointer;
  transition: all .14s ease;
}
.tg-toggle:hover { border-color: var(--blue, #0056d2); color: var(--blue, #0056d2); }

/* Liste complète */
.tg-brands { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tg-brand {
  border: 1px solid var(--line, #dfe5ee); background: var(--surface, #fff);
  color: inherit; font: inherit; font-size: .84rem; font-weight: 600;
  padding: 6px 14px; border-radius: 50px; cursor: pointer;
  transition: all .14s ease;
}
.tg-brand:hover { border-color: var(--blue, #0056d2); color: var(--blue, #0056d2); }
.tg-brand.on { background: var(--blue, #0056d2); border-color: var(--blue, #0056d2); color: #fff; }

.tg-cat { margin: 26px 0 6px; }
.tg-cat-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--blue, #0056d2);
}
.tg-cat-head h2 { font-size: 1.22rem; margin: 0; }
.tg-cat-head .tg-n { font-size: .82rem; color: var(--muted, #5f6978); font-weight: 600; }

.tg-rows { display: grid; gap: 8px; }
.tg-row {
  display: grid; grid-template-columns: minmax(170px, 240px) 1fr;
  gap: 6px 18px; align-items: center;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e3e8f0); border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 0 1px 3px rgba(13, 15, 26, .05);
}
.tg-row .tg-model { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.tg-row .tg-quals { justify-content: flex-end; }
.tg-notes { font-size: .86rem; color: var(--muted, #5f6978); line-height: 1.55; }

/* Mobile */
@media (max-width: 640px) {
  #tg-search { font-size: 1rem; padding: 14px 16px 14px 44px; }
  .tg-row { grid-template-columns: 1fr; padding: 12px 14px; }
  .tg-row .tg-quals { justify-content: flex-start; }
}

/* Impression : liste complète propre, sans navigation ni recherche */
@media print {
  header, .breadcrumb, .hero, .cta-final, footer, .mobile-bar,
  .tg-quick, .tg-toggle-wrap, .tg-brands, .tg-search-wrap, .tg-empty { display: none !important; }
  #tg-all[hidden] { display: block !important; }
  .tg-row, .tg-card { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}
