/* ================================
   ACCESSIBILITÉ — règles transversales
   ================================
   Chargé en dernier (après bottom-sheet.css) :
   - cibles tactiles d'au moins 44 × 44 px (WCAG 2.5.5) ;
   - animations coupées quand le visiteur a demandé moins de mouvement
     (les composants récents gèrent déjà ce cas dans leur propre fichier :
     quiz, comparateur, toasts, panneau glissant, agence fictive).
   Les contrastes sont réglés à la source (--text-on-accent, variables.css). */

/* ---------- Cibles tactiles ---------- */

/* Boutons « × » des modales et de la fiche : zone de 44 px autour du symbole */
.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    line-height: 1;
}

.nav-btn,
.info-btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-info-toggle {
    min-height: 44px;
}

/* Contrôles de zoom de la carte (30 px par défaut dans Leaflet) */
#interactive-map .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 22px;
}

/* Marqueurs : conteneur de 44 px (MapManager), épingle posée au centre du bas */
.custom-marker:not(.site-marker) {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* ---------- Moins d'animations ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    /* Apparitions (vues, modales, fiche, encadré LEO/GTO) */
    .view,
    #map-view,
    .modal,
    .agency-panel,
    .orbit-explanation {
        animation: none;
    }

    /* Pulsation infinie des marqueurs */
    .marker-pin {
        animation: none;
    }

    /* Tampons : pas de rebond ni de rotation, mais un repère fixe sur le tampon obtenu */
    .stamp-card.validated .stamp-icon,
    .stamp-card.stamp-highlight,
    .stamp-card.stamp-highlight .stamp-icon {
        animation: none;
    }

    .stamp-card.stamp-highlight {
        box-shadow: 0 0 0 4px var(--success);
    }

    .stamp-card--golden.stamp-highlight {
        box-shadow: 0 0 0 4px var(--gold);
    }

    /* Pas de déplacement au survol */
    .btn-primary:hover,
    .btn-danger:hover,
    .btn-info-toggle:hover,
    .nav-btn:hover,
    .info-btn:hover,
    .header-logo:hover,
    .info-method:hover,
    .stamp-card:hover,
    .site-marker:hover .site-dot {
        transform: none;
    }
}
