/* =========================
   MODE CLASSIQUE (bouton)
   ========================= */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    box-shadow: none !important;
}

/* cercle vert (mode classique) */
#back-to-top:before {
    content: ' ';
    background-color: var(--color-green);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}


/* =========================
   MODE FULL BAR (CTA 100%)
   ========================= */

#back-to-top-bar.btt-bar {
    width: 100%;
    z-index: 99;

    /* Choisis l'un des deux selon ton besoin :
       - sticky => colle au haut du barContainer pendant le scroll
       - fixed  => colle au viewport
    */

    position: sticky;
    top: 0;
}

/* inner full width */
#back-to-top-bar .btt-bar__inner {
    width: 100%;
    padding: 0;           /* full width réel */
    margin: 0;
}

/* CTA 100% largeur */
#back-to-top-bar #back-to-top {
    position: static;     /* pas fixed dans la barre */
    bottom: auto;
    right: auto;

    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 16px;
    border-radius: 0;     /* full width */
}

/* En full bar, on enlève le cercle (sinon ça fait bizarre en 100% largeur) */
#back-to-top-bar #back-to-top:before {
    display: none;
}

/* Texte */
#back-to-top-bar #back-to-top .btt-text {
    white-space: nowrap;
}
