/* --------------------------------------------------
   back-to-top.css
   --------------------------------------------------
   Styles de la flèche retour en haut
*/

/* Section : Flèche retour en haut */
/* =============================== */
/* Flèche retour en haut */
/* =============================== */
.back-to-top {
    position: fixed;
    top: 70px;
    right: 5px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid var(--white);
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.back-to-top i { font-size: 1.2rem; }

/* ===== Compteur & légende de la modale ===== */
.galeries-meta {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: min(90vw, 1000px);
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
  
.galeries-counter {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    white-space: nowrap;
}
  
.galeries-caption {
    opacity: 0.95;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70vw;
}

/* ===== Badge galeries centré au-dessus de l'image ===== */
.galeries-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1;
    white-space: nowrap;
    max-width: 85vw;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
    pointer-events: none;
}
