/* ==========================================================
   TRAIL
   ========================================================== */





/* ===========================
   PC
=========================== */

#btnPieve{
    left:-240px;
    top:100px;
}

#btnFalcunaghja{
    left:-90px;
    top:100px;
}

#btnParteu{
    left:60px;
    top:100px;
}

/* ===========================
   MOBILE
=========================== */

@media (max-width:768px){

    #btnPieve{
        position:absolute !important;
        width:110px !important;
        min-width:110px !important;
        left:61px !important;
        top:134px !important;
    }

    #btnFalcunaghja{
        position:absolute !important;
        width:110px !important;
        min-width:110px !important;
        left:177px !important;
        top:124px !important;
    }

    #btnParteu{
        position:absolute !important;
        width:120px !important;
        min-width:120px !important;
        left:292px !important;
        top:124px !important;
    }

}



#headerTitle{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    flex-wrap:nowrap;

}

#trailTitle{

    position:relative;
    left:-120px;      /* ← vers la gauche (+ vers la droite) */

    white-space:nowrap;
    font-size:20px;
    font-weight:700;

}

#trailDate{

    margin-left:auto;

    margin-right:-620px;

    white-space:nowrap;

    font-size:15px;

}

@media (max-width:768px){

    #headerTitle{

        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;

    }

    #trailTitle{

        position:static;
        left:auto;
        transform:none;
        margin:0;
        width:100%;
        text-align:center;
        font-size:20px;

    }

    #trailDate{

        position:static;
        margin:4px 0 0 0;
        width:100%;
        text-align:center;
        font-size:15px;

    }

}





.trailMiniBtn{
    position:absolute;
    width:32px;
    height:32px;
    padding:0;
    background:none;
    border:none;
    color:black;
    font-size:22px;   /* taille de l'icône */
    cursor:pointer;
    z-index:10000;
    display:flex;
    align-items:center;
    justify-content:center;
}


/* PC */
#btnPieveDownload   { left:70px; }
#btnPieveProfile    { left:150px; }



@media (max-width:768px){

    /* A Pieve */
    #btnPieveDownload{
        left:70px !important;
        top:53px !important;
    }

    #btnPieveProfile{
        left:115px !important;
        top:53px !important;
    }

    /* A Falcunaghja */
    #btnFalcunaghjaDownload{
        left:170px !important;
        top:53px !important;
    }

    #btnFalcunaghjaProfile{
        left:220px !important;
        top:53px !important;
    }

    /* A Teppa */
    #btnParteuDownload{
        left:270px !important;
        top:53px !important;
    }

    #btnParteuProfile{
        left:320px !important;
        top:53px !important;
    }

}
/* ============================================================
   MENU TRAIL
   ============================================================ */

.trailSection {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.25);
}

.trailTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
}

.trailBtn {
    display: block;
    width: 100%;
    margin: 6px 0;
    padding: 10px 14px;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.trailBtn:hover {
    background: #27ae60;
}
#trailCancelBtn {
    display: none !important;
}

/* Réglages spécifiques Android */
body.android .trailTopBtn{
    height:40px !important;
    font-size:9px !important;
}

/* Android uniquement */

body.android #btnPieve{
    width:90px !important;
    min-width:90px !important;
}

body.android #btnFalcunaghja{
    width:70px !important;
       left:160px !important;
    min-width:90px !important;
}

body.android #btnParteu{
    width:120px !important;
     left:252px !important;
    min-width:120px !important;
}




.trailInfo{
    display:block;
    margin-top:2px;
    font-size:11px;
    color:rgba(255,255,255,.75);
}


.trailTopBtn{

    position:absolute;
   top:104px;
    width:140px;
    font-size:14px;
    height:50px;
    z-index:10000;
    border:none;
    border-radius:16px;
    color:white;
    font-weight:bold;
    display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
cursor:pointer;

}