.classement { padding-block: 24px 56px; }
.classement h2 { margin-block: 2rem .75rem; }
.classement .scroll { overflow-x: auto; }
.classement table { width: 100%; border-collapse: collapse; }
.classement td, .classement th { padding: .6rem; text-align: left; border-bottom: 1px solid #d9cdbd; transition: background .2s, color .2s; }
.classement aside { margin-block: 1rem; padding: 1rem; border-left: 3px solid #9c3d28; background: #f6efe7; }
.classement fieldset { min-width: 0; padding: 0; margin: 2rem 0; border: 0; }
.classement legend, .classement summary { font-weight: 600; }
.classement legend { margin-bottom: .75rem; }

/* Sélecteur de catégorie, collant sous l'en-tête */
.classement .cat-barre {
  position: sticky; top: var(--entete-h, 68px); z-index: 5;
  margin-inline: -8px; padding: 10px 8px;
  background: rgba(247,243,234,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.classement .cat-barre.colle { border-bottom-color: #d9cdbd; }
.classement .cat-choix { display: flex; gap: 6px; flex-wrap: wrap; }
.classement .pick { position: absolute; opacity: 0; width: 1px; height: 1px; }
.classement .choice { display: inline-block; padding: .6rem clamp(.7rem, 3vw, 1.5rem); border: 1px solid #bca58d; border-radius: .35rem; cursor: pointer; background: #fffcf6; transition: background .15s, color .15s; }
.classement .choice:hover { border-color: #853623; }
.classement .pick:checked + label { color: white; background: #853623; border-color: #853623; }
.classement .pick:focus-visible + label { outline: 3px solid currentColor; outline-offset: 3px; }
.classement .outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: .92rem; }
.classement .outils[hidden] { display: none; }
.classement .interrupteur { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.classement .interrupteur input { accent-color: #853623; width: 1.05em; height: 1.05em; }
.classement .interrupteur:has(input:disabled) { opacity: .45; cursor: default; }
.classement .lien-bouton { margin-left: auto; padding: 0; border: 0; background: none; color: #853623; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Affichage de la catégorie choisie */
.classement .panel { display: none; }
.classement fieldset:has(#s1:checked) .p1,
.classement fieldset:has(#s2:checked) .p2,
.classement fieldset:has(#s3:checked) .p3,
.classement fieldset:has(#s4:checked) .p4,
.classement fieldset:has(#s5:checked) .p5 { display: block; }

/* Colonne du tableau des surfaces suivant la catégorie choisie */
.classement:has(#s1:checked) table tr > :nth-child(2),
.classement:has(#s2:checked) table tr > :nth-child(3),
.classement:has(#s3:checked) table tr > :nth-child(4),
.classement:has(#s4:checked) table tr > :nth-child(5),
.classement:has(#s5:checked) table tr > :nth-child(6) { background: #f1e2d6; color: #6e2b1b; font-weight: 700; }

/* Résumé du panneau */
.classement .bilan { display: flex; flex-wrap: wrap; gap: 6px; margin: .25rem 0 1rem; }
.classement .bilan span { padding: .2rem .6rem; border-radius: 999px; background: #efe6d8; font-size: .85rem; }

/* Rubriques */
.classement details { padding-block: .8rem; border-top: 1px solid #d9cdbd; }
.classement details[hidden] { display: none; }
.classement summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.classement summary::-webkit-details-marker { display: none; }
.classement summary::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-inline: 2px 4px;
  border-right: 2px solid #853623; border-bottom: 2px solid #853623;
  transform: rotate(-45deg); transition: transform .2s;
}
.classement details[open] > summary::before { transform: rotate(45deg); }
.classement summary .titre { flex: 1; }
.classement summary .compte { flex: none; display: flex; gap: 4px; font-weight: 400; font-size: .8rem; }
.classement summary .compte span { padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.classement .c-obl { background: #f3ddd5; color: #7a2c1c; }
.classement .c-comp { background: #ece4d3; color: #5c4b2e; }
.classement .c-new { background: #dcebe4; color: #1f5a47; }

/* Critères */
.classement ul { padding-left: 1.1rem; }
.classement li { margin-block: .65rem; }
.classement li[hidden] { display: none; }
.classement .type { display: inline-block; margin-right: 4px; padding: .1rem .5rem; border-radius: 4px; font-size: .78em; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.classement .type--obl { background: #853623; color: #fff; }
.classement .type--comp { background: #e7dcc7; color: #4d3f27; }
.classement .nouveau { display: inline-block; padding: .1rem .5rem; border-radius: 4px; font-size: .78em; font-weight: 700; background: #1f6b54; color: #fff; }
.classement .nouveau--renf { background: #cf9724; color: #2b2112; }
.classement li .num { font-weight: 700; color: #17140f; }
.classement .vide { padding: 1rem; background: #f6efe7; border-radius: 8px; }

@media (max-width: 560px) {
  .classement .choice { flex: 1; text-align: center; padding-inline: .3rem; }
  .classement .lien-bouton { margin-left: 0; }
  .classement summary { flex-wrap: wrap; }
  .classement summary .compte { flex-basis: 100%; padding-left: 22px; }
}
