/* Reset rapide pour éviter les marges par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fond et texte général */
html {
    background: url("../Images/background.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
}

html, body {
    min-height: 100dvh;
    background-color: #000;
}

body {
    background: url("../Images/background.jpg") no-repeat center center;
    background-size: cover;
    color: #f0f0f0;
    padding: 25px;
    font-family: 'UnifrakturCook', cursive;
    font-size: 18px;
}

/* Titre principal */
h1 {
    text-align: center;
    color: #cc2712;
    margin-bottom: 30px;
    font-size: 4.5rem;
    text-shadow: 2px 2px #000;
    font-family: 'Pirata One', cursive;
}

/* Formulaire */
form {
    background-color: #2c2c44;
    padding: 25px;
    border-radius: 12px;
    max-width: 550px;
    margin: 0 auto 30px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    width: 45%;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Pirata One', cursive;
    font-size: 3.5em;
    color: #ffdd55;
}

/* Labels et inputs */
label {
    display: block;
    margin-bottom: 5px;
    font-family: 'UnifrakturCook', cursive;
    font-size: 18px;
}

/* Boutons */
button {
    width: 100%;
    padding: 12px;
    background-color: #ffcc00;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s ease;
    font-family: 'Pirata One', cursive;
}

button:hover {
    background-color: #e6b800;
    transform: scale(1.05);
}

/* Zone nombre de joueurs */
.inline-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.inline-input label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: bold;
}

.inline-input input[type="number"] {
    width: 22%;
    padding: 8px 12px;
    margin-bottom: 0;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

/* Zone des joueurs */
#playerZone label,
#playerZone input[type="text"] {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Taille des inputs */
#playerZone input[type="text"] {
    width: 38%;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

/* Conteneur playerZone */
#playerZone {
    max-width: 550px;
    width: 48%;
    margin: 0 auto;
    padding: 25px;
    background-color: #2c2c44;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: none;
}

/* Zone des paris */
#gameZone label,
#gameZone input[type="number"] {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

#gameZone input[type="number"] {
    width: 35%;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

/* Zone des paris */
#gameZone {
    max-width: 550px;
    width: 35%;
    margin: 0 auto;
    padding: 25px;
    background-color: #2c2c44;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: none;
}

/* Zone des résultats / inputs dynamiques */
#resultZone label,
#resultZone input[type="text"],
#resultZone input[type="number"] {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

#resultZone input[type="text"],
#resultZone input[type="number"] {
    width: 110px;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1.1rem;
}

/* Zone des résultats */
#resultZone {
    max-width: 550px;
    width: 65%;
    margin: 0 auto;
    padding: 25px;
    background-color: #2c2c44;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: none;
}

/* Zone des scores */
#scoreZone {
    max-width: 550px;
    width: 55%;
    margin: 0 auto 30px auto;
    padding: 25px;
    background-color: #2c2c44;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: none;
}

/* Paragraphes des scores */
#scoreZone p {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffdd55;
}

/* Conteneur principal : image gauche + contenu + image droite */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1800px;
    margin: 0 auto;
    flex-wrap: wrap;
    min-height: 100vh;
}

/* Contenu central */
.content {
    flex: 1;
    min-width: 500px;
    max-width: 750px;
}

/* Centrage du titre et bonne lisibilité */
.content h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* Zone de score en direct */
#liveScoreZone {
    max-width: 550px;
    width: 56%;
    margin: 20px auto 30px auto;
    padding: 25px;
    background-color: #2c2c44;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: none;
}

/* Titre du tableau de scores en direct */
#liveScoreZone h3 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Pirata One', cursive;
    font-size: 2.5rem;
    color: #ffdd55;
}

/* Scores des joueurs dans la zone live */
#liveScoreZone p {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: aliceblue;
}

/* -------- RESPONSIVE -------- */

/* Tablettes */
@media (max-width: 1000px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }

    form,
    #playerZone,
    #gameZone,
    #resultZone,
    #scoreZone {
        width: 80%;
        max-width: 90%;
        padding: 20px;
    }

    .inline-input {
        flex-direction: column;
        align-items: flex-start;
    }

    .inline-input input[type="number"] {
        width: 100%;
    }

    #playerZone input[type="text"],
    #gameZone input[type="number"],
    #resultZone input[type="text"],
    #resultZone input[type="number"] {
        width: 100%;
        margin-right: 0;
    }

    #playerZone label,
    #gameZone label,
    #resultZone label {
        display: block;
        margin-bottom: 5px;
    }

    .container {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    .content {
        max-width: 100%;
        min-width: auto;
    }

    #liveScoreZone {
        width: 80%;
        max-width: 90%;
        padding: 20px;
    }

    #liveScoreZone h3 {
        font-size: 2rem;
    }

    #liveScoreZone p {
        font-size: 1rem;
    }
}

/* Mobiles */
@media (max-width: 600px) {
    body {
        padding: 15px;
        font-size: 16px;
    }

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.8rem; }

    form,
    #playerZone,
    #gameZone,
    #resultZone,
    #scoreZone {
        width: 100%;
        max-width: 400px;
        padding: 15px;
    }

    #gameZone {
        width: 80%;
    }

    #playerZone input[type="text"],
    #gameZone input[type="number"],
    #resultZone input[type="text"],
    #resultZone input[type="number"] {
        width: 45%;
        margin-right: 0;
    }

    #playerZone label,
    #playerZone input[type="text"] {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 8px;
        margin-right: 6px;
        width: auto;
    }

    #playerZone input[type="text"] {
        width: 45%;
        font-size: 0.95rem;
    }

    #gameZone label,
    #gameZone input[type="number"] {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 8px;
        margin-right: 6px;
        width: auto;
    }

    #gameZone input[type="number"] {
        width: 60%;
        font-size: 0.95rem;
    }

    #resultZone label,
    #resultZone input[type="number"] {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 8px;
        margin-right: 6px;
        width: auto;
    }

    #resultZone label {
        margin-left: 5%;
    }

    #resultZone input[type="number"] {
        width: 20%;
        font-size: 0.95rem;
    }

    .inline-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    input,
    button {
        font-size: 1rem;
    }

    button {
        padding: 10px;
    }

    #liveScoreZone {
        width: 100%;
        max-width: 400px;
        padding: 15px;
    }

    #liveScoreZone h3 {
        font-size: 2rem;
        margin-left: 1.5%;
    }

    #liveScoreZone p {
        font-size: 0.95rem;
        margin-right: 10px;
    }
}
