/*
 * assets/css/autres-bilans.css — PsyRisso Desktop
 * Rubrique « Autres bilans » : titre + grille de cartes.
 * Fichier autonome : ne dépend pas de tdah.css.
 * Créé le 22 août 2026 — révision 2 : 3 colonnes, numéro en ligne avec
 * le titre, texte 18 px, bande de titre resserrée.
 */

.abi-content { max-width: none; }

/* ── Bloc-titre ─────────────────────────────────────────────── */
.abi-bande-titre {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.cadre.abi-cadre-titre {
  padding-top: 1.3rem !important;
  padding-bottom: 1.3rem !important;
}

.abi-titre { text-align: center; margin-bottom: 0; }

.abi-h1 {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: normal;
  color: var(--bleu);
  line-height: 1.3;
  margin: 0;
}

.abi-filet {
  width: 64px;
  height: 3px;
  background: var(--dore);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ── Grille « Explorer la rubrique » ─────────────────────────── */
.abi-chips { margin: 0.2rem 0; }

.abi-chips-label {
  margin: 0 0 0.85rem;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dore);
}

/* 3 colonnes. Les cartes suivantes passent à la ligne d'elles-mêmes. */
.abi-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

/* ── Carte ───────────────────────────────────────────────────── */
.abi-chip {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  background: #f6fbfa;
  border: 1px solid var(--dore);
  border-left: 4px solid var(--dore);
  border-radius: 6px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 2px 8px rgba(192, 82, 74, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.abi-chip:hover {
  border-top-width: 3px;
  border-right-width: 3px;
  border-bottom-width: 3px;
  border-left-width: 4px;
  box-shadow: 0 4px 14px rgba(27, 59, 53, 0.10);
  transform: translateY(-2px);
}

/* Numéro, titre et chevron sur une seule ligne */
.abi-chip-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.abi-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.abi-chip-num svg {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--dore);
}

.abi-chip-h3 {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu);
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.abi-chip-arw {
  color: var(--dore);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.abi-chip-p {
  font-family: Calibri, Candara, 'Segoe UI', sans-serif;
  font-size: 18px;
  color: #5c6b66;
  line-height: 1.5;
  margin: 0;
}

/* ── Cartes désactivées (pages à venir) ──────────────────────── */
.abi-chip-disabled {
  opacity: 0.5;
  border-color: var(--gris-sep);
  border-left-color: var(--gris-sep);
  box-shadow: none;
  cursor: default;
}

.abi-chip-disabled:hover {
  border-width: 1px;
  border-left-width: 4px;
  box-shadow: none;
  transform: none;
}
/*
.abi-chip-disabled .abi-chip-num {
  background: var(--blanc);
  color: #8a938f;
}*/

/* ── Conteneurs de bande ─────────────────────────────────────── */
.cadre.abi-bloc-sans-cadre,
.cadre-lecture.abi-bloc-sans-cadre {
  border: none !important;
  box-shadow: none !important;
}

.abi-bande-compacte {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── Repli sur petits écrans ─────────────────────────────────── */
@media (max-width: 1000px) {
  .abi-chip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .abi-chip-grid { grid-template-columns: 1fr; }
}