/* Calcul du TAEG : styles propres à l'outil. */
.o-taeg [hidden] { display: none !important; }
.o-taeg .o-taeg-haut, .o-taeg .o-taeg-bas { border-top: 0; padding-top: 0; align-items: end; }
.o-taeg .o-taeg-bas { margin-top: 16px; }
.o-taeg-offres { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 12px; }
.o-taeg-offres.o-taeg-deux { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.o-taeg-offre { min-width: 0; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); }
.o-taeg-offre legend { padding: 0 6px; font-weight: 700; }
.o-taeg .o-taeg-connu { border-top: 0; padding-top: 0; margin: 0 0 8px; }
.atelier .o-taeg .o-taeg-connu .btn[aria-pressed="true"],
.atelier .o-taeg .o-taeg-vues .btn[aria-pressed="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.o-taeg-champs > * { min-width: 0; }
.o-taeg-unite { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.o-taeg-unite input { flex: 1 1 auto; min-width: 0; width: 100%; font: 600 1.05rem var(--mono); }
.o-taeg-unite i { display: flex; align-items: center; font-style: normal; color: var(--texte-2); min-width: 1.2em; }
.o-taeg .o-taeg-unite select { flex: 0 0 auto; width: auto; max-width: 11em; min-width: 0; }
.o-taeg-assurance { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--texte-2); min-width: 0; }
.o-taeg input[aria-invalid="true"] { border-color: var(--erreur-texte); outline: 1px solid var(--erreur-texte); }
.o-taeg input:focus-visible, .o-taeg select:focus-visible, .o-taeg summary:focus-visible, .o-taeg-defile:focus-visible { outline: 3px solid var(--marque); outline-offset: 1px; }
.o-taeg .o-taeg-erreur { margin: 10px 0 0; color: var(--erreur-texte); font-size: 1rem; }
.o-taeg .o-taeg-erreur:empty { display: none; }
.o-taeg-resultats { display: block; margin-top: 16px; }
.o-taeg-resultats dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; }
.o-taeg-resultats dl > div { padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--surface-2); min-width: 0; }
.o-taeg-resultats dt { font-size: .85rem; color: var(--texte-2); }
.o-taeg-resultats dd { margin: 2px 0 0; font: 700 1.15rem var(--mono); color: var(--texte); overflow-wrap: anywhere; }
.o-taeg-resultats .o-taeg-fort { background: var(--marque); }
.o-taeg-resultats .o-taeg-fort dt, .o-taeg-resultats .o-taeg-fort dd { color: var(--sur-marque); }
.o-taeg-resultats .o-taeg-fort dd { font-size: 1.5rem; }
.o-taeg-verdict { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--ok-fond); color: var(--ok-texte); font-weight: 600; }
.o-taeg-comp-defile { overflow-x: auto; }
.o-taeg-comp { width: 100%; border-collapse: collapse; font-size: .95rem; }
.o-taeg-comp caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.o-taeg-comp th, .o-taeg-comp td { padding: 7px 10px; border-bottom: 1px solid var(--bord); text-align: right; }
.o-taeg-comp th[scope="row"], .o-taeg-comp thead th:first-child { text-align: left; font-weight: 500; color: var(--texte-2); }
.o-taeg-comp thead th { background: var(--surface-2); color: var(--texte); }
.o-taeg-comp td { font-family: var(--mono); white-space: nowrap; color: var(--texte); }
.o-taeg-comp tr[data-r="taeg"] td { font-weight: 700; font-size: 1.1rem; }
.o-taeg-comp td.o-taeg-mieux { background: var(--ok-fond); color: var(--ok-texte); font-weight: 700; }
.o-taeg .o-taeg-us { display: block; margin-top: 10px; }
.o-taeg-tableau { margin-top: 20px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); }
.o-taeg-tableau summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
.o-taeg-vues { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.o-taeg-vues .btn { border-radius: 999px; }
.o-taeg-defile { max-height: 420px; overflow: auto; border-top: 1px solid var(--bord); }
.o-taeg-defile table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.o-taeg-defile th, .o-taeg-defile td { padding: 6px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--bord); }
.o-taeg-defile thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--texte); z-index: 1; }
.o-taeg-defile tbody th { font-weight: 600; color: var(--texte-2); }
.o-taeg-defile td { font-family: var(--mono); }
.o-taeg .o-taeg-avis { display: block; margin-top: 14px; }
@media (max-width: 640px) {
  .o-taeg-offres.o-taeg-deux { grid-template-columns: 1fr; }
  .o-taeg-offre { padding: 10px; }
  .o-taeg-resultats dl { grid-template-columns: 1fr 1fr; }
  .o-taeg-resultats dd { font-size: 1rem; }
  .o-taeg-resultats .o-taeg-fort { grid-column: 1 / -1; }
  .o-taeg-comp { font-size: .85rem; }
  .o-taeg-comp th, .o-taeg-comp td { padding: 6px; }
}
