/* Bouton cœur [oumanger_coeur]
   Pas encore en favori : cœur blanc, contour rouge de 2 px.
   En favori           : cœur rouge, contour blanc de 2 px.
   Aucun fond ni ombre sur le bouton. Couleurs réglables via
   --oumanger-coeur-rouge et --oumanger-coeur-blanc. */
button.oumanger-coeur {
    --coeur-rouge: var(--oumanger-coeur-rouge, var(--Rouge, #D25E48));
    --coeur-blanc: var(--oumanger-coeur-blanc, #fff);

    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    color: var(--coeur-rouge);
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 0;
    outline: none;
    padding: 0;
    text-shadow: none;
    transition: transform 0.15s ease, color 0.15s ease;
    width: 30px;
}

button.oumanger-coeur svg {
    fill: var(--coeur-blanc);
    height: 26px;
    overflow: visible;
    stroke: var(--coeur-rouge);
    stroke-linejoin: round;
    stroke-width: 2px;
    transition: fill 0.15s ease, stroke 0.15s ease;
    width: 26px;
}

button.oumanger-coeur:hover,
button.oumanger-coeur:active,
button.oumanger-coeur:focus {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--coeur-rouge);
}

button.oumanger-coeur:hover {
    transform: scale(1.1);
}

button.oumanger-coeur:focus-visible {
    border-radius: 50%;
    outline: 2px solid var(--coeur-rouge);
    outline-offset: 1px;
}

/* En favori : cœur rouge, contour blanc */
button.oumanger-coeur[aria-pressed="true"] svg {
    fill: var(--coeur-rouge);
    stroke: var(--coeur-blanc);
}

button.oumanger-coeur.oumanger-coeur-pop {
    animation: oumanger-coeur-pop 0.3s ease;
}

@keyframes oumanger-coeur-pop {
    40% { transform: scale(1.25); }
}

/* Pastille du panneau : compteur */
.oumanger-fav-nb {
    opacity: 0.7;
}

/* Fenêtre de la carte */
.oumanger-popup-actions button.oumanger-coeur {
    margin-left: auto;
}

button.oumanger-coeur svg path {
    vector-effect: non-scaling-stroke; /* contour de 2 px quelle que soit la taille */
}
