
/* ── ScrollToTop — Bouton retour en haut ───────────────────────────── */

.oaka-stt-btn {
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.2s ease;
    font-size: 24px;
    font-weight: bold;
    box-sizing: border-box;
}

.oaka-stt-btn.oaka-stt-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.oaka-stt-btn:hover {
    transform: translateY(-4px);
}

/* ── Modèle 1 : Badge ──────────────────────────────────────────────── */

.oaka-stt-model-badge {
    right: 0;
    background: var(--oaka-stt-color, #ff8300);
    color: #fff !important;
    width: calc(var(--oaka-stt-size, 55px) + 12px);
    height: var(--oaka-stt-size, 55px);
    border-radius: 6px 0 0 6px;
    opacity: 0.88;
    font-size: calc(var(--oaka-stt-size, 55px) * 0.45);
}

.oaka-stt-model-badge:not(.oaka-stt-hidden):hover {
    opacity: 1;
    transform: none;
}

/* ── Modèle 2 : Icône ──────────────────────────────────────────────── */

.oaka-stt-model-icon {
    right: 20px;
    color: var(--oaka-stt-color, #ff8300) !important;
    width: var(--oaka-stt-size, 55px);
    height: var(--oaka-stt-size, 55px);
    font-size: calc(var(--oaka-stt-size, 55px) * 0.55);
}

/* ── Modèle 3 : Coin ───────────────────────────────────────────────── */

.oaka-stt-model-coin {
    bottom: 0;
    right: 20%;
    background: var(--oaka-stt-color, #ff8300);
    color: #fff !important;
    width: var(--oaka-stt-size, 55px);
    height: calc(var(--oaka-stt-size, 55px) * 0.75);
    border-radius: 6px 6px 0 0;
    font-size: calc(var(--oaka-stt-size, 55px) * 0.4);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.2s ease, bottom 0.35s ease;
}

.oaka-stt-model-coin.oaka-stt-hidden {
    bottom: calc(var(--oaka-stt-size, 55px) * -1);
}

.oaka-stt-icon {
    display: block;
    line-height: 1;
}

/* Les dashicons ont un font-size fixe à 20px dans leur CSS — on l'écrase */
.oaka-stt-btn .dashicons {
    font-size: inherit !important;
    width: auto;
    height: auto;
    line-height: 1;
}

