/* « Contrôler les sons » (0.9.8.1) : pour l'iPad de l'enseignant (1080 × 810, au doigt). Une
   ligne par son : le texte à gauche, les gros boutons à droite ; sous 900 px, les boutons passent
   sous le texte. Rien ne dépasse de l'écran (textes longs coupés, histoires repliées). */

.sn-aide { display: grid; gap: 6px; margin-bottom: 14px; }
.sn-aide p { margin: 0; }
.sn-mode { font-size: 17px; font-weight: 600; color: var(--ink); }
.sn-compteur { font-size: 15.5px; color: var(--ink-2); }
.sn-c.prepare { color: #1d6b41; font-weight: 600; }
.sn-c.absent { color: #8a5a00; font-weight: 600; }
.sn-c.retire, .sn-c.incertain { color: #9a3a25; font-weight: 600; }
.sn-c.incertain { color: #8a5a00; }

.sn-filtres { position: sticky; top: var(--topbar-h, 56px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 14px; margin: 0 0 12px; background: rgb(244 242 236 / 96%); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sn-filtres select.sn-partie { width: auto; min-width: 220px; min-height: 48px; }
.sn-case { align-items: center; min-height: 48px; cursor: pointer; }
.sn-case input { width: 26px; height: 26px; margin: 0; }
.sn-affiches { margin-left: auto; font-size: 14px; }
/* 0.9.10 : la recherche d'un mot, en tête des filtres (qui restent en haut de l'écran). */
.sn-filtres input.sn-cherche { width: 260px; max-width: 100%; min-height: 48px; font-size: 17px; }

/* 0.9.10 : ce qui est à regarder d'abord, puis une section repliée par partie, et dans chacune une
   par palier (ou par histoire) : le titre se touche du doigt (48 px), le bilan dit ce qui reste. */
.sn-anomalies { padding: 12px 14px; background: var(--paper); border-radius: var(--radius-s); box-shadow: var(--shadow); border-left: 6px solid var(--coral); }
.sn-anomalies > p { margin: 0; }
.sn-pli { min-width: 0; }
.sn-pli > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 48px; padding: 6px 14px; cursor: pointer; list-style: none; border-radius: var(--radius-s); }
.sn-pli > summary::-webkit-details-marker { display: none; }
.sn-pli > summary::before { content: '▸'; display: inline-block; width: 1em; color: var(--muted); transition: transform .15s; }
.sn-pli[open] > summary::before { transform: rotate(90deg); }
.sn-pli > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sn-pli-partie { background: var(--paper); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.sn-pli-partie > summary .sn-pli-titre { font-size: 19px; font-weight: 700; color: var(--ink); }
.sn-pli-partie[open] { padding-bottom: 10px; }
.sn-pli-partie[open] > :not(summary) { margin: 0 10px 8px; }
.sn-pli-palier > summary { min-height: 44px; background: var(--bg); }
.sn-pli-palier > summary .sn-pli-titre { font-size: 16px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.sn-pli-palier[open] > .sn-row { margin-top: 8px; }
.sn-pli-bilan { font-size: 14px; }
.sn-compression.absent { color: var(--coral); font-weight: 600; }

.sn-liste { display: grid; gap: 18px; }
.sn-section { display: grid; gap: 10px; min-width: 0; }
.sn-section > h2 { font-size: 21px; margin: 6px 0 0; }
.sn-section > h2 .muted { font-size: 16px; font-weight: 500; }
.sn-groupe { font-size: 15px; color: var(--ink-2); margin: 6px 0 -2px; }

.sn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 12px 16px; background: var(--paper); border-radius: var(--radius-s); box-shadow: var(--shadow); border-left: 6px solid var(--leaf); min-width: 0; }
.sn-row.absent { border-left-color: var(--sun); }
.sn-row.retire { border-left-color: var(--coral); background: #fffaf8; }
.sn-main { display: grid; gap: 6px; min-width: 0; }
.sn-phrase { margin: 0; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.sn-row.mot .sn-phrase { font-size: 24px; font-weight: 600; font-family: var(--title-font); }
.sn-long { min-width: 0; }
.sn-long summary { cursor: pointer; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.sn-long summary .muted { font-weight: 400; font-size: 15px; }
.sn-long p { white-space: pre-wrap; margin: 8px 0 0; font-size: 15.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.sn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; min-width: 0; }
.sn-meta .tag { white-space: normal; }
.sn-meta > span { min-width: 0; overflow-wrap: anywhere; }
.sn-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sn-btn { min-height: 48px; padding: 8px 16px; font-size: 16px; }
.btn.small.sn-btn { min-height: 44px; min-width: 48px; padding: 4px 12px; font-size: 17px; }
.sn-btn.playing { background: var(--brand); border-color: var(--brand); color: #fff; }
.sn-pourquoi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }
.sn-pourquoi .tag { white-space: normal; }
.sn-lecteur { display: none; }

.sn-seances { margin-bottom: 14px; }
.sn-seances summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; }
.sn-seances summary::-webkit-details-marker { display: none; }
.sn-seances summary .grow { flex: 1; min-width: 0; }
.sn-seances[open] .sn-voir { display: none; }
.sn-voir::after { content: ' ▾'; }
.sn-seances-liste { display: grid; gap: 4px; margin-top: 8px; }
.sn-seance { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.sn-seance:last-child { border-bottom: 0; }
.sn-seance .grow { flex: 1; min-width: 0; }
.sn-alerte { color: #9a3a25; font-weight: 600; }
.sn-pas-seance { margin: 0 0 12px; }

.sn-moment { display: grid; gap: 6px; padding: 10px 14px; background: var(--paper); border-radius: var(--radius-s); box-shadow: var(--shadow); min-width: 0; }
.sn-moment.pas-repondu { background: #fbfaf6; }
.sn-moment-titre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; }
.sn-moment-question { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.sn-son { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 4px 0; border-top: 1px solid var(--line-2); }
.sn-son .tag { white-space: normal; }
.sn-son-texte { min-width: 0; overflow-wrap: anywhere; font-size: 16px; }
.sn-son.a-la-demande .sn-son-texte { color: var(--ink-2); }
.sn-son-actions { display: flex; gap: 6px; }

@media (max-width: 900px) {
  .sn-row { grid-template-columns: minmax(0, 1fr); }
  .sn-actions { justify-content: flex-start; }
  .sn-affiches { margin-left: 0; }
}
@media (max-width: 560px) {
  .sn-son { grid-template-columns: minmax(0, 1fr) auto; }
  .sn-son > .tag { grid-column: 1 / -1; justify-self: start; }
  .sn-filtres select.sn-partie, .sn-filtres input.sn-cherche { min-width: 0; width: 100%; }
}
