/* Accrocher des cadres : styles propres à l'outil. */
.o-accrocher-cadres [hidden] { display: none !important; }
.o-accrocher-cadres .o-accrocher-cadres-haut { border-top: 0; padding-top: 0; gap: 10px 24px; }
.o-accrocher-cadres-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.atelier .o-accrocher-cadres .btn[aria-pressed="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.o-accrocher-cadres-bloc { margin: 0 0 12px; padding: 10px 12px 12px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); min-width: 0; }
.o-accrocher-cadres-bloc legend { padding: 0 4px; font-weight: 600; font-size: .95rem; }
.o-accrocher-cadres-bloc .reglages { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-top: 4px; }
.o-accrocher-cadres input[type="text"] { font: 600 1.05rem var(--mono); width: 100%; }
.o-accrocher-cadres select { width: 100%; min-height: 42px; }
.o-accrocher-cadres input[aria-invalid="true"] { border-color: var(--erreur-texte); outline: 1px solid var(--erreur-texte); }
.o-accrocher-cadres-liste { display: grid; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.o-accrocher-cadres-cadre { position: relative; padding: 10px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.o-accrocher-cadres-cadre > strong { display: block; margin: 0 48px 6px 0; font-size: .95rem; }
.o-accrocher-cadres-cadre .reglages { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.o-accrocher-cadres-suppr { position: absolute; top: 6px; right: 6px; min-width: 40px; min-height: 40px; padding: 0 8px; }
.o-accrocher-cadres-liste + .btn:disabled { opacity: .5; }
.o-accrocher-cadres-resultat { display: block; margin-top: 6px; padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--ok-fond); color: var(--ok-texte); overflow-wrap: anywhere; }
.o-accrocher-cadres-resultat p { margin: 2px 0; line-height: 1.5; }
.o-accrocher-cadres-resultat .o-accrocher-cadres-principal { margin-bottom: 6px; font: 700 1.3rem/1.35 var(--police); }
.o-accrocher-cadres-resultat .o-accrocher-cadres-avert { margin-top: 6px; color: var(--erreur-texte); font-weight: 600; }
.o-accrocher-cadres-resultat .o-accrocher-cadres-erreur { color: var(--erreur-texte); font-weight: 600; }
.o-accrocher-cadres-resultat:has(.o-accrocher-cadres-erreur) { background: var(--erreur-fond); }
.o-accrocher-cadres-tableau { margin-top: 12px; overflow-x: auto; }
.o-accrocher-cadres-tableau table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.o-accrocher-cadres-tableau th, .o-accrocher-cadres-tableau td { padding: 6px 8px; border-bottom: 1px solid var(--bord); text-align: left; white-space: nowrap; }
.o-accrocher-cadres-tableau thead th { color: var(--texte-2); font-weight: 600; white-space: normal; }
.o-accrocher-cadres-schema { margin: 14px 0 0; padding: 10px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); }
.o-accrocher-cadres-schema figcaption { margin-bottom: 6px; font-weight: 600; font-size: .92rem; color: var(--texte-2); }
.o-accrocher-cadres-schema svg { display: block; width: 100%; height: auto; max-height: 560px; font-family: var(--police); }
.o-accrocher-cadres-schema .mur { fill: var(--surface-2); stroke: var(--bord); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .sol { stroke: var(--texte); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .meuble { fill: var(--bord); stroke: var(--texte-2); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .centre { stroke: var(--marque); stroke-width: 1px; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .cadre { fill: var(--surface); stroke: var(--texte); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .fil { fill: none; stroke: var(--texte-2); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .clou { fill: var(--erreur-texte); }
.o-accrocher-cadres-schema .cote { stroke: var(--texte); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .rappel { stroke: var(--texte-2); stroke-width: 1px; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.o-accrocher-cadres-schema .valeur { fill: var(--texte); }
.o-accrocher-cadres-schema .etiquette { fill: var(--texte-2); }
.o-accrocher-cadres-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.o-accrocher-cadres-message { color: var(--texte-2); font-size: .92rem; }
.o-accrocher-cadres .o-accrocher-cadres-prive { display: block; margin-top: 12px; }
@media (max-width: 480px) {
  .o-accrocher-cadres-bloc { padding: 8px; }
  .o-accrocher-cadres-cadre .reglages { grid-template-columns: 1fr 1fr; }
  .o-accrocher-cadres-resultat .o-accrocher-cadres-principal { font-size: 1.15rem; }
}
.o-accrocher-cadres-cadre .reglages label, .o-accrocher-cadres [data-section="grille"] .reglages label:not(:has(small)) { justify-content: flex-end; }
