/* Symboles à copier-coller */
.o-symboles { --o-sym-police: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "Apple Symbols", "DejaVu Sans", var(--police); position: relative; }
.o-symboles-recherche { display: grid; gap: 6px; margin-bottom: 12px; }
.o-symboles-recherche label { font-weight: 600; }
.o-symboles-recherche input {
  width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--bord); border-radius: var(--rayon-petit);
  background: var(--surface); color: var(--texte); font: inherit; font-size: 1.05rem;
}
.o-symboles-recherche input:focus { outline: 3px solid var(--marque); outline-offset: 0; border-color: transparent; }
.o-symboles-compte { color: var(--texte-2); font-size: .9rem; min-height: 1.2em; }
.o-symboles-filtres { margin-bottom: 14px; }
.o-symboles-filtres .btn { min-height: 36px; padding: 4px 12px; font-size: .9rem; }
.o-symboles-filtres .btn[aria-pressed="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }

.o-symboles-corps { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.o-symboles-cote { display: grid; gap: 14px; position: sticky; top: 76px; }
.o-symboles h3 { margin: 0 0 8px; font-size: 1rem; }
.o-symboles-section { margin-bottom: 14px; }
.o-symboles-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.o-symboles-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.o-symboles-car {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 2px;
  border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); color: var(--texte);
  font-family: var(--o-sym-police); font-size: 1.45rem; line-height: 1; cursor: pointer;
}
.o-symboles-car:hover { background: var(--surface-2); border-color: var(--marque); }
.o-symboles-car:focus-visible { outline: 3px solid var(--marque); outline-offset: 1px; }
.o-symboles-car:active { transform: scale(.94); }
.o-symboles-invisible { font-family: var(--mono); font-size: .68rem; color: var(--texte-2); border: 1px dashed var(--bord); border-radius: 4px; padding: 2px 3px; }
.o-symboles-recents { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--bord); }
.o-symboles-lien { background: none; border: 0; padding: 4px; color: var(--marque); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.o-symboles-astuce { margin: 0 0 10px; }
.o-symboles-vide { color: var(--texte-2); }

.o-symboles-info, .o-symboles-panier { padding: 14px; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--surface-2); }
.o-symboles-note { display: block; color: var(--texte-2); font-size: .88rem; margin: 0 0 8px; }
.o-symboles-glyphe {
  display: flex; align-items: center; justify-content: center; min-height: 86px; margin-bottom: 10px;
  border-radius: var(--rayon-petit); background: var(--surface); font-family: var(--o-sym-police); font-size: 3.4rem; line-height: 1;
}
.o-symboles-glyphe.o-symboles-invisible { font-size: 1rem; border-style: dashed; }
.o-symboles-fiche { margin: 0 0 8px; display: grid; gap: 6px; }
.o-symboles-fiche div { display: grid; gap: 1px; }
.o-symboles-fiche dt { color: var(--texte-2); font-size: .8rem; }
.o-symboles-fiche dd { margin: 0; overflow-wrap: anywhere; }
.o-symboles-fiche code { font-family: var(--mono); font-size: .9rem; white-space: pre-wrap; }
.o-symboles-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.o-symboles-actions .btn { flex: 1 1 auto; }
.o-symboles-panier textarea { min-height: 64px; font-family: var(--o-sym-police); font-size: 1.4rem; margin-bottom: 8px; }
.o-symboles-panier label.case { margin-bottom: 10px; font-size: .92rem; }

.o-symboles-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; background: var(--ok-fond); color: var(--ok-texte);
  border: 1px solid var(--bord); font-weight: 600; box-shadow: var(--ombre); transition: opacity .2s, transform .2s;
}
.o-symboles-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.o-symboles-toast.erreur { background: var(--erreur-fond); color: var(--erreur-texte); }
.o-symboles-cache { position: fixed; top: 0; left: -9999px; opacity: 0; }

@media (max-width: 820px) {
  .o-symboles-corps { grid-template-columns: 1fr; }
  .o-symboles-cote { position: static; order: -1; gap: 10px; }
  .o-symboles:not(.choisi) .o-symboles-info { display: none; }
  .o-symboles-info, .o-symboles-panier { padding: 10px 12px; }
  .o-symboles-filtres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .o-symboles-filtres .btn { flex: 0 0 auto; white-space: nowrap; }
  .o-symboles-filtres strong { flex: 0 0 auto; }
  .o-symboles-info [data-info-corps]:not([hidden]) { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 12px; align-items: start; }
  .o-symboles-info [data-info-corps] > :not(.o-symboles-glyphe):not(.o-symboles-fiche) { grid-column: 1 / -1; }
  .o-symboles-glyphe { min-height: 72px; font-size: 2.6rem; margin: 0; }
  .o-symboles-panier textarea { min-height: 48px; }
  .o-symboles-actions .btn { min-height: 38px; padding: 6px 10px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .o-symboles-toast { transition: none; }
  .o-symboles-car:active { transform: none; }
}
