/* AstroPredict : page « Tous les outils » (outils.html). Charte inchangée : mêmes cartes, mêmes badges de formule que la page « Carte du ciel ». */

/* ---------- Badges de formule (les mêmes que sur la carte du ciel ; cette page ne charge pas carte.css) ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: #fff; color: var(--encre-2); box-shadow: inset 0 0 0 1px var(--filet-fort); }
.badge--gratuit { background: #DDF4E9; color: #1D6B4C; box-shadow: none; }
.badge--previsions { background: #FFE3CF; color: #7A3412; box-shadow: inset 0 0 0 1px #FFC9A8; }
.badge--tout { background: rgb(21 33 43 / .09); color: var(--encre); box-shadow: none; }   /* discret : la plupart des outils portent ce badge */

/* ---------- Haut de page : le total, les ancres, la légende des badges ---------- */
.outils-total { padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; }
.outils-total__nombre { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.outils-total__nombre b { font-family: var(--f-titre); font-weight: 300; font-size: clamp(72px, 9vw, 120px); line-height: .9; letter-spacing: -.05em; color: var(--braise); }
.outils-total__nombre span { font-family: var(--f-titre); font-weight: 450; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.025em; }
.ancres { display: flex; flex-wrap: wrap; gap: 8px; }
.ancre { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--filet); transition: box-shadow .2s ease; }
.ancre:hover { box-shadow: inset 0 0 0 2px var(--encre); }
.ancre b { min-width: 30px; padding: 3px 8px; border-radius: 999px; background: rgb(21 33 43 / .06); font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-align: center; letter-spacing: .02em; }
.outils-total__legende { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; padding-top: 14px; border-top: 1px solid var(--filet); font-size: 14px; color: var(--encre-3); }
.outils-total__legende > span { margin-right: 4px; }

/* ---------- Une méthode ---------- */
.methode { scroll-margin-top: 84px; }
.methode__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.4vw, 28px); }
.methode__n { margin: 0; padding-bottom: 6px; }

/* écoles et doctrines : une carte, des groupes de pastilles */
.ecoles { padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 16px; margin-bottom: 16px; }
.ecoles__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px clamp(20px, 3vw, 40px); align-items: start; }
.ecoles__groupe { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ecoles__groupe:has(.plus), .ecoles__groupe:nth-child(1):last-child { grid-column: 1 / -1; }
.ecoles__titre { margin: 0; font-family: var(--f-titre); font-weight: 500; font-size: 17px; letter-spacing: -.015em; }
.ecoles__titre small { margin-left: 4px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--encre-3); letter-spacing: .02em; }
.puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.puces li { padding: 6px 12px; border-radius: 999px; background: #fff; font-weight: 500; font-size: 13.5px; line-height: 1.3; box-shadow: inset 0 0 0 1px var(--filet); overflow-wrap: anywhere; }
.ecoles details.plus { margin-top: 2px; }
.ecoles details.plus .puces { margin-top: 12px; }
.ecoles details.plus summary { display: inline-flex; align-items: center; min-height: 36px; }

/* familles d'outils : colonnes équilibrées, une carte par famille */
.familles { columns: 3 290px; column-gap: 16px; }
.famille { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; display: block; width: 100%; margin: 0 0 16px; padding: 18px 20px 12px; }
.famille__titre { margin: 0 0 6px; font-family: var(--f-titre); font-weight: 500; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.outils-liste { list-style: none; margin: 0; padding: 0; }
.outil { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--filet); font-size: 15px; line-height: 1.35; }
.outil:first-child { border-top: 0; }
.outil__nom { min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.outil .badge { flex: none; }

/* appel à l'action du bas */
.cta-outils { padding: clamp(24px, 3.4vw, 40px); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 32px; }
.cta-outils .boutons { flex: none; }

@media (max-width: 860px) {
  .familles { columns: 2 260px; }
}
@media (max-width: 640px) {
  .familles { columns: 1; }
  .outils-total__nombre b { font-size: 84px; }
  .ancre { flex: 1 1 auto; justify-content: space-between; }
  .cta-outils { display: grid; }
  .cta-outils .boutons { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cta-outils .bouton { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 50px; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 980px) {
  .ecoles details.plus summary { min-height: 44px; }
  .outil { min-height: 44px; }
}

/* ---------- Phrase de tête : le compte principal a tous les outils ---------- */
.outils-principal { margin: 16px 0 0; padding: 12px 16px; max-width: 560px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--filet); font-weight: 600; font-size: 15.5px; line-height: 1.4; color: var(--encre); }
