/* Avis des apprenants : formulaire en bas des leçons, page /avis, administration */
.av-lecon { margin: 2rem 0 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.av-lecon > summary { list-style: none; cursor: pointer; display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; }
.av-lecon > summary::-webkit-details-marker { display: none; }
.av-lecon > summary strong { display: block; color: var(--ink); }
.av-lecon > summary small { color: var(--muted); }
.av-lecon > summary:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.av-lecon[open] > summary { border-bottom: 1px solid var(--line); }
.av-ic { font-size: 1.5rem; }
.av-lecon .av-form { padding: 1rem 1.2rem 1.3rem; margin: 0; }
.av-form label { display: block; }
.av-form textarea { width: 100%; resize: vertical; }
.av-note { border: 0; padding: 0; margin: 0 0 1rem; }
.av-note legend { font-weight: 600; margin-bottom: .5rem; }
.av-req { font-weight: 400; color: var(--muted); font-size: .85rem; }
.av-echelle { display: flex; flex-wrap: wrap; gap: .35rem; }
.av-echelle label { margin: 0; }
.av-echelle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-echelle span { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; }
.av-echelle input:checked + span { background: #0f2a4a; color: #fff; border-color: #0f2a4a; }
.av-echelle input:focus-visible + span { outline: 3px solid #e0b04a; outline-offset: 2px; }
.av-bornes { display: flex; justify-content: space-between; max-width: 31rem; margin: .3rem 0 0; }
.av-rgpd { margin-top: -.3rem; }
.aa-bandeau a.aa-avis { font-weight: 600; }
.av-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.av-stats .box { text-align: center; padding: 1rem; margin-bottom: 1rem; }
.av-stats strong { display: block; font-size: 1.8rem; }
.av-stats span { color: var(--muted); font-size: .85rem; }
.av-filtre { margin: 1rem 0 .5rem; }
.av-filtre .check { margin: 0; }
.av-carte { padding: 1rem 1.2rem; margin-bottom: .8rem; }
.av-carte.is-new { border-left: 4px solid #e0b04a; }
.av-carte header { display: flex; gap: .9rem; align-items: flex-start; }
.av-carte header > div { flex: 1; }
.av-pills { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.av-score { font-weight: 800; font-size: 1.4rem; min-width: 3.4rem; text-align: center; border-radius: 10px; padding: .25rem .4rem; }
.av-score small { font-size: .7rem; font-weight: 600; }
.av-sh { background: #e7f8f0; color: #047857; } .av-sm { background: #fff7e6; color: #b45309; } .av-sb { background: #fef2f2; color: #b91c1c; }
.av-carte dl { margin: .7rem 0 .3rem; display: grid; grid-template-columns: 6rem 1fr; gap: .3rem .8rem; }
.av-carte dt { font-weight: 600; color: var(--muted); font-size: .85rem; }
.av-carte dd { margin: 0; white-space: pre-line; }
@media (max-width: 760px) {
  .av-stats { grid-template-columns: 1fr 1fr; }
  .av-carte header { flex-wrap: wrap; }
  .av-carte dl { grid-template-columns: 1fr; }
}
.av-filtre select { max-width: 22rem; }
