/* STAR DUO - FENÊTRE SOLO */

#bandeauHautSolo {
    direction: ltr;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 500;
    font-family: Arial, sans-serif;
}

#marqueSolo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#logoSolo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}

#nomSolo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    animation: apparitionStarDuo 0.9s ease-out;
}

/* solo.png au même emplacement et à la même taille que le drapeau */
#imageSolo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}

#titreSolo {
    position: relative;
    width: min(900px, calc(100% - 40px));
    margin: 6px auto 22px;
    z-index: 300;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 400;
    text-align: center;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* Référence 667 x 667 ; le JS applique 85 % comme le Menu */
#cadreSolo {
    position: relative;
    width: 667px;
    height: 667px;
    flex: 0 0 auto;
}

#zoneImageSolo {
    position: relative;
    width: 667px;
    height: 667px;
    overflow: hidden;
}

#imagePresentationSolo {
    display: block;
    width: 667px;
    height: 667px;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

#informationsSolo {
    width: min(667px, calc(100% - 30px));
    margin: 16px auto 0;
    padding: 0 12px 28px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
}

#listeInformationsSolo {
    margin: 0;
    padding-left: 27px;
    font-size: 18px;
    line-height: 1.45;
}

#listeInformationsSolo li {
    margin-bottom: 9px;
    padding-left: 4px;
}

#listeInformationsSolo li:last-child {
    margin-bottom: 0;
}

#detailBonusSolo {
    width: 100%;
    margin: 14px auto 0;
}

#grilleBonusSolo {
    width: min(560px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 42px;
    row-gap: 10px;
}

.bonusSoloBloc {
    display: flex;
    align-items: center;
    min-width: 0;
}

.bonusSoloNombre {
    width: 48px;
    flex: 0 0 48px;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    margin-right: 10px;
}

.bonusSoloCubes {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.cubeOrSolo {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}

#bonusZeroSolo {
    margin: 16px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
}

#bonusZeroPlus {
    font-weight: 700;
    white-space: nowrap;
}

#cubeOrZeroSolo {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 620px) {
    #bandeauHautSolo {
        height: 62px;
        padding: 7px 10px;
    }

    #logoSolo,
    #imageSolo {
        width: 48px;
        height: 48px;
    }

    #nomSolo {
        font-size: 28px;
    }

    #titreSolo {
        width: calc(100% - 30px);
        max-width: 390px;
        margin-top: 6px;
        margin-bottom: 6px;
        font-size: 18px;
        line-height: 1.2;
        font-weight: 400;
        text-align: center;
    }

    #informationsSolo {
        width: calc(100% - 30px);
        max-width: 390px;
        margin-top: 14px;
        padding: 0 4px 0px;
    }

    #listeInformationsSolo {
        padding-left: 24px;
        font-size: 17px;
        line-height: 1.4;
    }

    #listeInformationsSolo li {
        margin-bottom: 8px;
    }
    #detailBonusSolo {
        margin-top: 12px;
    }

    #grilleBonusSolo {
        width: 100%;
        column-gap: 18px;
        row-gap: 8px;
    }

    .bonusSoloNombre {
        width: 38px;
        flex: 0 0 38px;
        margin-right: 6px;
        font-size: 16px;
    }

    .bonusSoloCubes {
        gap: 2px;
    }

    .cubeOrSolo {
        width: 26px;
        height: 26px;
    }

    #bonusZeroSolo {
        margin-top: 13px;
        gap: 6px;
        font-size: 16px;
    }

    #cubeOrZeroSolo {
        width: 27px;
        height: 27px;
    }
}

@media (max-width: 390px) {
    #informationsSolo {
        width: calc(100% - 28px);
    }

    #listeInformationsSolo {
        padding-left: 22px;
        font-size: 15px;
        line-height: 1.4;
    }

    #listeInformationsSolo li {
        margin-bottom: 7px;
    }

    #grilleBonusSolo {
        column-gap: 10px;
        row-gap: 7px;
    }

    .bonusSoloNombre {
        width: 34px;
        flex: 0 0 34px;
        margin-right: 4px;
        font-size: 15px;
    }

    .cubeOrSolo {
        width: 23px;
        height: 23px;
    }

    #bonusZeroSolo {
        gap: 5px;
        font-size: 15px;
    }

    #cubeOrZeroSolo {
        width: 24px;
        height: 24px;
    }
}

/* Solo : suppression du padding inférieur commun */
body {
    padding-bottom: 0;
}

@media (max-width: 620px) {
    /* Puces plus petites, comme sur l'accueil */
    #listeInformationsSolo {
        font-size: 14px;
        line-height: 1.2;
    }

    #listeInformationsSolo li {
        margin-bottom: 5px;
    }

    /* Réduire les espaces sous les informations */
    #informationsSolo {
        margin-top: 8px;
        padding-bottom: 0;
    }

    #detailBonusSolo {
        margin-top: 8px;
    }
}

/* ==========================================
   TABLETTE - SOLO
   ========================================== */

@media (pointer: coarse) and (min-width: 621px) and (max-width: 1400px) {
    #titreSolo {
        margin-top: 4px;
        margin-bottom: 8px;
        font-size: 22px;
        line-height: 1.2;
    }

    #informationsSolo {
        margin-top: 8px;
        padding-bottom: 12px;
    }

    #listeInformationsSolo {
        font-size: 16px;
        line-height: 1.25;
    }

    #listeInformationsSolo li {
        margin-bottom: 5px;
    }

    #detailBonusSolo {
        margin-top: 8px;
    }

    #grilleBonusSolo {
        row-gap: 5px;
    }

    .cubeOrSolo,
    #cubeOrZeroSolo {
        width: 27px;
        height: 27px;
    }

    #bonusZeroSolo {
        margin-top: 8px;
        font-size: 16px;
    }
}

/* TABLETTE EN PAYSAGE */

@media (pointer: coarse) and (min-width: 621px) and (max-width: 1400px) and (orientation: landscape) {
    #titreSolo {
        width: min(580px, calc(100% - 40px));
        font-size: 19px;
        margin-bottom: 6px;
    }

    #informationsSolo {
        width: min(520px, calc(100% - 40px));
        margin-top: 5px;
    }

    #listeInformationsSolo {
        font-size: 14px;
        line-height: 1.15;
    }

    #listeInformationsSolo li {
        margin-bottom: 4px;
    }

    #grilleBonusSolo {
        row-gap: 3px;
    }

    .cubeOrSolo,
    #cubeOrZeroSolo {
        width: 23px;
        height: 23px;
    }

    #bonusZeroSolo {
        margin-top: 5px;
        font-size: 14px;
    }
}

/* SOLO - MEME PRESENTATION CENTRALE QU'ACCUEIL - AFFICHAGE PC */

@media (min-width: 800px) and (min-height: 600px) and (orientation: landscape) {
    #bandeauHautSolo {
        position: fixed;
        box-sizing: border-box;
        top: 0;
        left: 50%;
        width: min(var(--largeur-fond-paysage), 100%);
        transform: translateX(-50%);
        z-index: 500;
    }

    #titreSolo {
        box-sizing: border-box;
        width: min(580px, calc(100% - 40px));
        max-width: 580px;
        margin: 6px auto 18px;
        padding: 0;
        font-size: 24px;
        line-height: 1.25;
    }

    #cadreSolo {
        margin-left: auto;
        margin-right: auto;
    }

    #informationsSolo {
        width: min(667px, calc(100% - 40px));
        margin-top: 16px;
    }
}

/* SOLO - Tablette paysage uniquement */

@media (pointer: coarse) and (min-width: 621px) and (max-width: 1400px) and (orientation: landscape) {
    #informationsSolo {
        box-sizing: border-box;
        padding-left: 30px;
        padding-right: 10px;
    }
}
