/* =========================================================
   Defi
   Complément de starduo.css
   ========================================================= */

#bandeauHautDefi {
    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;
}

#marqueDefi {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
#logoDefi {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}
#nomDefi {
    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;
}
#imageDefi {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
    user-select: none;
}

#titreDefi {
    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);
}

#zoneDefi {
    position: relative;
    width: 667px;
    height: 751px;
    flex: 0 0 auto;
}
#contenuDefi {
    position: relative;
    width: 100%;
    height: 100%;
}
#blocDefi {
    position: absolute;
    top: 0;
    left: 0;
    width: 667px;
    height: 751px;
    transform-origin: top left;
}
#zoneGrilleDefi {
    position: absolute;
    top: 0;
    left: 0;
    width: 667px;
    height: 667px;
}
#grilleDefi {
    position: relative;
    width: 667px;
    height: 667px;
}

#playerDefi {
    position: absolute;
    top: 677px;
    left: 0;
    width: 667px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 200;
}

.btPlayer {
    width: 74px;
    height: 74px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.12s ease,
        opacity 0.12s ease;
}
.btPlayer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
.btPlayer:hover:not(:disabled) {
    transform: scale(1.08);
}
.btPlayer:active:not(:disabled) {
    transform: scale(0.9);
}
.btPlayer:disabled {
    opacity: 0.38;
    cursor: default;
}

#informationsDefi {
    width: min(667px, calc(100% - 30px));
    margin: 26px auto 40px;
    font-family: Arial, sans-serif;
    font-size: 19px;
    line-height: 1.45;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

#listeInformationsDefi,
#listeJourDefi {
    margin: 0;
    padding-left: 26px;
}
#calculPointsDefi {
    margin: 18px 0 18px 26px;
}
.lignePointsDefi {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.etoilesDefi {
    width: 112px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}
.etoilesDefi img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.formuleDefi {
    white-space: nowrap;
}

@media (max-width: 620px) {
    #bandeauHautDefi {
        height: 62px;
        padding: 7px 10px;
    }
    #logoDefi,
    #imageDefi {
        width: 48px;
        height: 48px;
    }
    #nomDefi {
        font-size: 28px;
    }

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

    #informationsDefi {
        width: calc(100% - 34px);
        margin-top: var(--marge-infos-defi, 18px);
        margin-bottom: 4px;
        line-height: 1.35;
    }

    #listeInformationsDefi,
    #listeJourDefi {
        padding-left: 20px;
    }
    #calculPointsDefi {
        margin: var(--marge-calcul-defi, 14px) 0 var(--marge-calcul-defi, 14px) 20px;
    }
    .lignePointsDefi {
        min-height: var(--hauteur-ligne-defi, 31px);
        gap: var(--espace-ligne-defi, 9px);
    }
    .etoilesDefi {
        width: calc((var(--taille-etoile-defi, 26px) * 3) + (var(--espace-etoiles-defi, 2px) * 2));
        gap: var(--espace-etoiles-defi, 2px);
    }
    .etoilesDefi img {
        width: var(--taille-etoile-defi, 26px);
        height: var(--taille-etoile-defi, 26px);
    }
    .formuleDefi {
        font-size: inherit;
        white-space: nowrap;
    }
}

/* ==========================================
   TABLETTE - DEFI
   ========================================== */

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

    #informationsDefi {
        width: min(667px, calc(100% - 40px));
        font-size: 16px;
        line-height: 1.25;
    }

    #listeInformationsDefi,
    #listeJourDefi {
        padding-left: 20px;
    }

    #calculPointsDefi {
        margin: var(--marge-calcul-defi, 10px) 0 var(--marge-calcul-defi, 10px) 20px;
    }

    .lignePointsDefi {
        min-height: var(--hauteur-ligne-defi, 28px);
        gap: var(--espace-ligne-defi, 9px);
    }

    .etoilesDefi {
        width: calc(var(--taille-etoile-defi, 26px) * 3 + var(--espace-etoiles-defi, 2px) * 2);
        gap: var(--espace-etoiles-defi, 2px);
    }

    .etoilesDefi img {
        width: var(--taille-etoile-defi, 26px);
        height: var(--taille-etoile-defi, 26px);
    }
}

/* TABLETTE EN PAYSAGE */

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

    #informationsDefi {
        width: min(520px, calc(100% - 40px));
    }
}

/* DEFI - MEME PRESENTATION CENTRALE QUE SOLO - AFFICHAGE PC */

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

    #titreDefi {
        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;
    }

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

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