/* STUDIO FLF · le tri en tête de l'accueil (2/12/2026) · studio-tri.js
   Aucune couleur ajoutée : le texte, les filets et le panneau reprennent les jetons de l'accueil (--a4-*, --a2-*), le reste joue sur l'opacité. */
.a2 .tri { margin: 0 0 14px; padding: 16px 20px; display: grid; gap: 12px; }
.a2 .tri[hidden] { display: none; }
.tri-phrase { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 500; color: var(--a4-texte, inherit); }
.tri-voir { margin-left: 6px; padding: 2px 10px; height: 26px; border-radius: 13px; border: 1px solid var(--a4-bord, currentColor); background: transparent; color: inherit; font: inherit; font-size: 12.5px; opacity: .8; cursor: pointer; }
.tri-voir:hover { opacity: 1; }
.tri-bloc { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--a4-bord, rgba(127, 127, 127, .25)); }
.tri-bloc h3 { margin: 0; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--a4-secondaire, inherit); opacity: .9; }
.tri-bloc > p { margin: 0; font-size: 14px; line-height: 1.4; }
.tri-liste[hidden] { display: none; }
.tri-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tri-l { display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: 12px; }
.tri-o { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; padding: 8px 10px; margin: 0 -10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tri-o:hover, .tri-o:focus-visible { background: rgba(255, 255, 255, .05); outline: none; }
.tri-o b { font-weight: 500; font-size: 13.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tri-o small { font-size: 12px; line-height: 1.35; color: var(--a4-secondaire, inherit); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tri-l.neuf .tri-o b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: currentColor; opacity: .9; }
.tri-l.defait .tri-o { opacity: .55; }
.tri-l.defait .tri-o b { text-decoration: line-through; }
.tri-annuler { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--a4-bord, currentColor); background: transparent; color: inherit; font: inherit; font-size: 12.5px; opacity: .75; cursor: pointer; }
.tri-annuler:hover { opacity: 1; }
.tri-choix { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tri-choix .a2-btn { height: 38px; padding: 0 18px; font-size: 13.5px; }
.tri-rep { opacity: .8; font-size: 13px !important; }
.tri-fermes { padding-top: 2px; }
@media (max-width: 760px) {
  .a2 .tri { margin: 0 0 12px; padding: 14px 16px; gap: 10px; }
  .tri-phrase { font-size: 14px; }
  .tri-o small { white-space: normal; }
  .tri-choix .a2-btn { flex: 1 1 0; min-height: 44px; }
  .tri-annuler { height: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  .a2 .tri:not([hidden]) { animation: tri-entree .32s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes tri-entree { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
