/* Lot D (espace broker) : import à l'aperçu, envoi en lot, tableau de bord, abonnement. Rien ici ne touche app.css ni plateforme.css. */

.common { margin: 0 0 1rem; }
.common .row { display: flex; flex-wrap: wrap; gap: 1rem; }
.common .row label { flex: 1 1 220px; }
label.small, .check.small { display: block; font-size: .8rem; font-weight: 400; margin-top: .3rem; }

.todo { margin: 0 0 .8rem; padding-left: 1.2rem; }
.card.empty ul { padding-left: 1.2rem; }
.card.empty li { margin-bottom: .8rem; }
a.button { display: inline-block; padding: .45rem .9rem; border-radius: 6px; background: #1d3b53; color: #fff; text-decoration: none; font-weight: 600; margin: 0 .4rem .2rem 0; }

/* Abonnement : une carte par formule, empilées sur téléphone. */
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.formule { border: 1px solid #d8d3c6; border-radius: 8px; padding: 1rem; background: #fff; }
.formule.featured { border-color: #209e96; box-shadow: 0 0 0 2px rgba(32, 158, 150, .25); }
.formule h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.formule .price { font-size: 1.5rem; font-weight: 700; margin: 0 0 .3rem; }
.formule .price span { font-size: .85rem; font-weight: 400; }
.formule .annual { font-size: .85rem; margin: 0 0 .8rem; }
.formule .periodes { list-style: none; margin: 0 0 .8rem; padding: 0; font-size: .85rem; }
.formule .periodes li { margin: 0 0 .4rem; }
.formule .periodes small { display: block; font-size: .78rem; opacity: .8; }
.formule .choose { display: flex; flex-wrap: wrap; gap: .5rem; }
.formule .choose button { flex: 1 1 8rem; }
.card.pay { border-left: 4px solid #209e96; }

/* Tableaux : en dessous de 600 px, une carte par ligne quand le tableau est marqué `stack` (chaque cellule porte son étiquette),
   sinon (relevés, offres) première colonne figée et cellules resserrées, le reste défile sans coupure de mots au milieu d'un montant. */
@media (max-width: 600px) {
  .list { font-size: .85rem; }
  .list th, .list td { padding: .45rem .55rem; }
  .list td:first-child, .list th:first-child { position: sticky; left: 0; background: inherit; box-shadow: 1px 0 0 rgba(0, 0, 0, .08); }
  .list td { white-space: normal; min-width: 5.5rem; }

  table.list.stack, table.list.stack tbody, table.list.stack tr, table.list.stack td { display: block; width: 100%; box-sizing: border-box; overflow: visible; }
  table.list.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.list.stack tr { margin: 0 0 .8rem; border: 1px solid #d8d3c6; border-radius: 8px; background: #fff; }
  table.list.stack td { display: flex; justify-content: space-between; gap: .8rem; text-align: right; border-bottom: 1px solid rgba(0, 0, 0, .06); min-width: 0; position: static; box-shadow: none; }
  table.list.stack td:last-child { border-bottom: 0; }
  table.list.stack td::before { content: attr(data-label); flex: 0 0 38%; text-align: left; font-weight: 600; color: #5b6770; }
  table.list.stack td:not([data-label])::before { content: none; }
  table.list.stack td:empty { display: none; }
  .formules { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
