/* Bouton à bordure arrondie et relief doux, utilisable sur <button> ou <a>.
 * Personnalisation : --relief-color, --relief-text, --relief-radius.
 * Icône facultative : SVG avec stroke="currentColor", classe relief-button__icon.
 */
.relief-button {
    --relief-color: #d79713;
    --relief-text: #fff;
    --relief-radius: 12px;

    box-sizing: border-box;
    /*display: inline-flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*gap: 0.65em;*/
    /*min-height: 54px;*/
    /*padding: 0.55em 1.25em;*/
    border: 2px solid color-mix(in srgb, var(--relief-color), #44331d 35%);
    border-radius: var(--relief-radius);
    background: var(--relief-color);
    color: var(--relief-text);
    box-shadow:
        inset 0 1px 1px rgb(255 255 255 / 18%),
        inset 0 -3px 4px rgb(0 0 0 / 15%),
        0 3px 0 color-mix(in srgb, var(--relief-color), #33291b 45%),
        0 5px 7px rgb(0 0 0 / 22%);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.relief-button__icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    color: color-mix(in srgb, var(--relief-color), #44331d 55%);
}

@media (hover: hover) {
    .relief-button:not(:disabled):not([aria-disabled="true"]):hover {
        filter: brightness(1.06);
    }
}

.relief-button:not(:disabled):not([aria-disabled="true"]):active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 4px rgb(0 0 0 / 18%),
        0 1px 0 color-mix(in srgb, var(--relief-color), #33291b 45%),
        0 2px 3px rgb(0 0 0 / 18%);
}

.relief-button:focus-visible {
    outline: 3px solid var(--relief-focus, #245bba);
    outline-offset: 5px;
}

/* Sur un lien, aria-disabled doit aussi être géré par le code appelant. */
.relief-button:disabled,
.relief-button[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .relief-button { transition: none; }
}
