/* Onglet « Par essieu » du finder de l'accueil.
   Largeur : jamais dictée par le contenu — le SVG et les fiches se replient
   dans la console (min-width: 0), elle garde la même largeur sur les 3 onglets. */
.dirA2-finder, .dirA2-finder-panel--axle { min-width: 0; }
.dirA2-finder-panel--axle { padding: 0; background: transparent; }

.axp { --axp-line: #d6dfec; --axp-ink: var(--navy, #120a44); font-family: inherit; min-width: 0; }
.axp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin: 0 0 8px; }
.axp-head strong { font-size: 14px; color: var(--axp-ink); }
.axp-hint { font-size: 12.5px; color: var(--muted, #5b6b86); }
.axp:not(.is-js) .axp-hint { display: none; }

.axp-stage { background: #fff; border: 1px solid var(--axp-line); border-radius: 6px; padding: 14px 14px 0; overflow: hidden; }
.axp-rig { display: flex; align-items: flex-end; gap: 0; }
.axp-unit--tractor { flex: 424 1 0; min-width: 0; }
.axp-unit--trailer { flex: 458 1 0; min-width: 0; margin-left: -6px; }
.axp-unit { padding-bottom: 34px; }
.axp-draw { position: relative; }
.axp-svg { display: block; width: 100%; height: auto; overflow: visible; }

.axp-body { fill: #fff; stroke: var(--axp-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.axp-body .axp-glass { fill: #eef3fa; }
.axp-body .axp-cargo { fill: #f6f9fd; }
.axp-body .axp-seam { stroke: #c7d1e2; stroke-width: 1.5; }
.axp-ground { stroke: #c7d1e2; stroke-width: 2; }
.axp-w circle { fill: none; stroke: var(--axp-ink); stroke-width: 3; transition: stroke .2s, fill .2s; }
.axp-w .axp-t { fill: #fff; }
.axp-w .axp-r { stroke-width: 2; opacity: .7; }
.axp-w .axp-h { fill: var(--axp-ink); stroke: none; transition: fill .2s; }

/* Zone tactile : roue + libellé (>= 44 px) */
.axp-hit { position: absolute; transform: translateX(-50%); bottom: -34px; min-width: 44px; min-height: 44px; padding: 0 2px 2px; background: transparent; border: 0; border-radius: 6px; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; color: var(--axp-ink); }
.axp-hit span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; padding: 5px 8px; border-radius: 4px; transition: background .2s, color .2s; }
.axp-hit:focus-visible { outline: 3px solid var(--sky, #4aa3d9); outline-offset: 2px; }
.axp-hit:hover span { background: #eef3fa; }
.axp-hit[aria-pressed="true"] span { background: var(--sky, #4aa3d9); color: #fff; }
.axp:not(.is-js) .axp-hit { pointer-events: none; }
/* Positions : viewBox tracteur 424 x 148 (y 46), remorque 458 x 174 (y 20), roue r=34 en cy=156 */
.axp-hit--directeur { left: 21.2%; width: 19%; top: 48.6%; }
.axp-hit--moteur { left: 77.8%; width: 19%; top: 48.6%; }
.axp-hit--remorque { left: 70.3%; width: 47%; top: 56.3%; }

.axp[data-sel="directeur"] .axp-w[data-pos="directeur"] .axp-t,
.axp[data-sel="moteur"] .axp-w[data-pos="moteur"] .axp-t,
.axp[data-sel="remorque"] .axp-w[data-pos="remorque"] .axp-t { stroke: var(--sky, #4aa3d9); fill: rgba(74,163,217,.28); stroke-width: 4.5; }
.axp[data-sel="directeur"] .axp-w[data-pos="directeur"] .axp-r,
.axp[data-sel="moteur"] .axp-w[data-pos="moteur"] .axp-r,
.axp[data-sel="remorque"] .axp-w[data-pos="remorque"] .axp-r { stroke: var(--sky, #4aa3d9); opacity: 1; }
.axp[data-sel="directeur"] .axp-w[data-pos="directeur"] .axp-h,
.axp[data-sel="moteur"] .axp-w[data-pos="moteur"] .axp-h,
.axp[data-sel="remorque"] .axp-w[data-pos="remorque"] .axp-h { fill: var(--sky, #4aa3d9); }

/* Fiches : toutes dans la même cellule de grille, la plus haute fixe la hauteur (pas de saut) */
.axp-panels { margin-top: 12px; display: grid; }
.axp-panel { grid-area: 1 / 1; background: #fff; border: 1px solid var(--axp-line); border-left: 4px solid var(--sky, #4aa3d9); border-radius: 6px; padding: 14px 16px; display: flex; gap: 12px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
.axp:not(.is-js) .axp-panels { display: flex; flex-direction: column; gap: 10px; }
.axp:not(.is-js) [data-axle-idle] { display: none; }
.axp.is-js .axp-panel { visibility: hidden; opacity: 0; }
.axp.is-js .axp-panel.is-on, .axp.is-js .axp-panel--idle:not(.is-off) { visibility: visible; opacity: 1; }
.axp.is-js .axp-panel { transition: opacity .2s; }
.axp-panel--idle { border-left-color: var(--axp-line); color: var(--muted, #5b6b86); font-size: 13.5px; }
.axp-panel--idle p { margin: 0; line-height: 1.5; }
.axp-panel-body { min-width: 0; flex: 1 1 240px; }
.axp-panel h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; color: var(--axp-ink); }
.axp-line { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted, #5b6b86); }
.axp-dims { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.axp-dims-label { flex: 0 0 100%; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #5b6b86); }
.axp a.axp-size { color: var(--axp-ink); }
.axp-size { background: #eef3fa; border: 1px solid #d3deee; border-radius: 6px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; color: var(--axp-ink); text-decoration: none; transition: border-color .2s, color .2s; }
.axp a.axp-size:hover { border-color: var(--blue, #20709a); color: var(--blue, #20709a); }
.axp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 6px; background: var; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; box-shadow: none; }
.axp a.axp-cta, .axp a.axp-cta:hover { color: #fff; }
.axp-cta:hover { filter: brightness(1.08); }
.axp-cta:focus-visible, .axp-size:focus-visible, .axp-more a:focus-visible { outline: 3px solid var(--sky, #4aa3d9); outline-offset: 2px; }

.axp-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.axp .axp-more a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--axp-line); background: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--axp-ink); text-decoration: none; transition: border-color .2s, color .2s; }
.axp-more a:hover { border-color: var(--blue, #20709a); color: var(--blue, #20709a); }

@media (max-width: 640px) {
  .axp-stage { padding: 10px 10px 0; }
  .axp-rig { flex-direction: column; align-items: stretch; }
  .axp-unit--tractor { flex: none; width: 92%; }
  .axp-unit--trailer { flex: none; width: 100%; margin: 0; }
  .axp-panel { padding: 12px; }
  .axp-cta { width: 100%; white-space: normal; text-align: center; }
  .axp-size { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .axp *, .axp-panel { transition: none !important; }
}
