/* Audit lot 4 : clavier, états et commandes fréquentes. La largeur compacte de la barre est conservée. */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid #2468a0;outline-offset:3px;}
header button:focus-visible,header a:focus-visible {outline-color:#ffe08a;}
header button {min-height:44px;}
header .nav-principal {height:44px;min-height:44px;}
header .nav-principal[aria-current="page"] {background:#ffffff26;box-shadow:inset 0 0 0 2px #fff;}
main button,a.btn,.ico-inline {min-height:44px;}
main button {min-width:44px;}
.gal-add,.gp-action,.galerie-photos-fermer,.recherche-nav-fermer {width:44px;height:44px;min-width:44px;min-height:44px;}
.galerie-photos-grille {grid-template-columns:repeat(auto-fill,minmax(min(100%,144px),1fr));}
.galerie-photos-actions {gap:4px;flex-wrap:wrap;}
.gp-action {background:transparent;box-shadow:none;}
.gp-action.actif {background:var(--c);}
#hgsvg .nd:focus-visible {outline:none;}
#hgsvg .nd:focus-visible .cd {stroke-width:4;}
.u[data-id] {display:block;width:100%;text-align:left;font:inherit;color:inherit;border:0;cursor:pointer;}
.u[data-id] > span {display:block;}
.u[data-u] {width:100%;text-align:left;font:inherit;color:inherit;background:transparent;border-left:0;border-right:0;border-bottom:0;}
.session-fiche {min-height:44px;}
button[data-fermer],button[data-recentrer] {min-height:44px;min-width:44px;}
@media (prefers-reduced-motion: reduce) {.fade {animation:none;}.gal img,.toast,.gal-add {transition:none;}}
@media (max-width: 350px) {
  .galerie-photos-grille {grid-template-columns:repeat(auto-fill,minmax(min(100%,120px),1fr));gap:8px;}
  header.admin-bar {gap:.15rem;padding-left:4px;padding-right:4px;}
  header.admin-bar .admin-nav {gap:0;overflow-x:auto;overscroll-behavior-inline:contain;}
}

/* Dashboard : priorité à la lecture, sans désactiver le zoom utilisateur. */
#app.dashboard .filters .button {min-width:0;overflow-wrap:anywhere;}
#app.dashboard time {font-variant-numeric:tabular-nums;}
@media (max-width:600px) {
  #app.dashboard .toolbar {display:grid;grid-template-columns:minmax(0,1fr);}
  #app.dashboard .filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px;}
  #app.dashboard .filters .button {width:100%;padding:10px 6px;}
  #app.dashboard .table-wrap {max-width:100%;}
  #app.dashboard table,#app.dashboard tbody {display:block;width:100%;}
  #app.dashboard thead {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;}
  #app.dashboard tbody tr {display:block;padding:12px 0;border-bottom:1px solid #dce5de;}
  #app.dashboard tbody tr:last-child {border-bottom:0;}
  #app.dashboard tbody td {display:block;width:100%;min-width:0;padding:4px 0;border:0;overflow-wrap:anywhere;}
  #app.dashboard tbody td:first-child {color:#52655a;}
  #app.dashboard time {white-space:normal;word-break:keep-all;hyphens:none;overflow-wrap:normal;}
  #app.dashboard tbody td:last-child {padding-top:8px;white-space:pre-wrap;}
}

/* Galerie : rattacher visuellement les commandes à leur photo. */
#galeriePhotos .galerie-photos-grille {row-gap:18px;align-items:start;}
#galeriePhotos .galerie-photos-cellule {justify-content:flex-start;gap:0;min-width:0;}
#galeriePhotos .galerie-photos-vignette {flex:none;}
/* La grande croix sur la vignette indique déjà le retrait. */
#galeriePhotos .galerie-photos-cellule > .galerie-photos-vignette + p {display:none;}
#galeriePhotos .galerie-photos-actions {margin-top:2px !important;padding:0;flex:none;}
/* Croix de retrait ; conserver les libellés accessibles et la corbeille distincte. */
#galeriePhotos .gp-action[data-retirer] {position:relative;color:#b4232d !important;background:#fff0f0 !important;}
#galeriePhotos .gp-action[data-retirer] > svg {display:none !important;}
#galeriePhotos .gp-action[data-retirer]::before,
#galeriePhotos .gp-action[data-retirer]::after {content:'';position:absolute;top:50%;left:50%;width:22px;height:2px;border-radius:1px;background:currentColor;pointer-events:none;}
#galeriePhotos .gp-action[data-retirer]::before {transform:translate(-50%,-50%) rotate(45deg);}
#galeriePhotos .gp-action[data-retirer]::after {transform:translate(-50%,-50%) rotate(-45deg);}
