/*! EMET Education (www.emet-education.com) — © 2026 Mikaël Chelli. Tous droits réservés / All rights reserved. Copie, extraction des modèles 3D, fouille de données et réutilisation interdites sans accord écrit / No copying, 3D model extraction, data mining or reuse without written consent. https://www.emet-education.com/legal/#cgu */
/* ------------------------------------------------------------------
   proximal-humerus-fracture.css — ajustements de style propres à la
   maquette « fractures de l'humérus proximal ». La charte générale vient
   de /core/css/ui.css.
------------------------------------------------------------------ */

.field-label { display: block; margin: 4px 0 6px; font-size: 13px; font-weight: 500; }

/* sélecteur segmenté : la classification (Neer · AO/OTA), la tête (varus · neutre · valgus) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2px 0 10px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg.three { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 2px; }
.seg button {
  appearance: none; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--ink-2);
  padding: 7px 6px; cursor: pointer; font: 500 12.5px/1.1 "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  transition: background .15s, color .15s;
}
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--surface-3); color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.seg button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--ink); font-weight: 600; }

/* les types : pictogrammes en grille (l'humérus proximal vu de face, la tête à gauche) */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.types.four { grid-template-columns: repeat(4, 1fr); }
.type {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 3px 5px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  font: 500 11px/1.15 "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; text-align: center;
  transition: border-color .15s, background .15s;
}
.type > i { display: block; width: 100%; max-width: 52px; }
.type svg { display: block; width: 100%; height: auto; }
.type svg .b, .chosen svg .b { fill: #ecdfc6; stroke: #c9b896; stroke-width: 1; stroke-linejoin: round; }
.type svg .a, .chosen svg .a { fill: #f5ecd8; stroke: #c9b896; stroke-width: 1; stroke-linejoin: round; }
.type svg .f, .chosen svg .f { fill: none; stroke: #c0392b; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.type b { font-weight: 600; color: var(--ink); }
.type:hover { border-color: var(--accent); background: var(--surface-3); }
.type:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.type.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }

/* la classification, lue en direct */
.classif {
  margin: 10px 0 4px; padding: 6px 9px; border-radius: 8px;
  background: var(--surface-3); color: var(--ink-2);
  font: 500 12.5px/1.35 "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
}
.classif strong { color: var(--ink); font-weight: 600; }
#disp-box { margin-top: 10px; }
#disp-box .field-label { margin-top: 8px; }

/* liste déroulante (la luxation : des types, pas des degrés) — même habillage que les autres maquettes */
.select { position: relative; margin-top: 2px; }
.select select {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 44px; padding: 10px 38px 10px 12px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  cursor: pointer;
}
.select select:hover { border-color: var(--accent); }
.select select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.select::after {
  content: ""; position: absolute; right: 15px; top: 50%;
  width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
}

/* le type choisi, seul : les autres options se replient ; « Modifier » les rouvre */
.chosen {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; padding: 7px 10px;
  border: 1px solid var(--accent); border-radius: 9px; background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.chosen-picto { display: block; width: 46px; flex: none; }
.chosen-picto svg { display: block; width: 100%; height: auto; }
.chosen-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 64px; font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; }
.chosen-group { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.chosen-name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.chosen-name b { font-weight: 700; }
.chosen-edit {
  position: absolute; top: 6px; right: 6px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); cursor: pointer; font: 500 11.5px/1.2 "IBM Plex Sans", sans-serif;
}
.chosen-edit:hover { border-color: var(--accent); color: var(--ink); }
.chosen-edit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* les bascules d'un tubercule, sous son déplacement */
.slider.sub { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--border); }

