.body {
    display: flex;
    background-color: beige;
}

.titre {
    display: flex;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    padding-bottom: 2rem;
    margin: 0 auto;
}

.sous-titre {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    padding-bottom: 2rem;
    margin: 0 auto;
    background-color: yellow;
}

.table {
    display: grid;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
}

.tableIndex {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    height: 3rem;
    justify-content: center;
    background-color: rgb(216, 216, 214);
    align-items: center;
    gap: 2rem;
    width: 70%;
    margin: 0 auto;
}

.tableValeur {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    justify-content: center;
    height: 6rem;
    text-align: center;
    background-color: rgb(181, 181, 177);
    align-items: center;
    gap: 2rem;
    width: 70%;
    margin: 0 auto;
}

.btnAction {
    display: flex;
    background-color: rgb(188, 227, 227);
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    width: 9rem;
    height: 3rem;
    margin: 1rem auto 1rem auto;
    grid-column: span 2;
    border: 1px solid rgb(5, 123, 84);
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
    margin: 0 auto;
    gap: 0.6rem;
    width: 40%;
    background-color: rgb(140, 150, 153);
    border: 2px solid rgb(5, 123, 84);
    border-radius: 0.5rem;
    box-shadow: 10px 8px 8px rgb(5, 123, 84);
}

.formPrix {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
    margin: 0 auto;
    gap: 0.6rem;
    width: 40%;
    background-color: rgb(140, 150, 153);
    border: 2px solid rgb(5, 123, 84);
    border-radius: 0.5rem;
    box-shadow: 10px 8px 8px rgb(5, 123, 84);
}

.formPrixButton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 30%;
    gap: 0.7rem;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 0 auto;
}

.formPrixPayment {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 3rem auto;
    gap: 0.6rem;
    width: 40%;
    background-color: rgb(140, 150, 153);
    border: 2px solid rgb(5, 123, 84);
    border-radius: 0.5rem;
    box-shadow: 10px 8px 8px rgb(5, 123, 84);
}

.textPrix {
    display: flex;
    grid-column: span 2;
    justify-content: center;
    font-size: 1rem;
    padding-bottom: 2rem;
    margin: 0 auto;
}

.formTitle{
    display: flex;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    padding-bottom: 2rem;
    margin: 0 auto;
}

.formStart {
    display: flex;
    justify-content: center;
    text-align: center;
    height: 2rem;
    gap: 0.5rem;
    margin: 0 auto;
}

#poste_one_start_time {
    display: none;
}
#poste_one_end_time {
    display: none;
}
#poste_two_start_time {
    display: none;
}
#poste_two_end_time {
    display: none;
}
#poste_three_start_time {
    display: none;
}
#poste_three_end_time {
    display: none;
}
#poste_four_start_time {
    display: none;
}
#poste_four_end_time {
    display: none;
}

.formEnd {
    display: flex;
    justify-content: center;
    text-align: center;
    height: 2rem;
    margin: 0 auto;
}

.formEmail {
    display: flex;
    justify-content: center;
    width: 13rem;
    height: 2rem;
    gap: 0.5rem;
    margin: 0 auto;
}

.formPhone {
    display: flex;
    justify-content: center;
    width: 13rem;
    height: 2rem;
    gap: 0.5rem;
    margin: 0 auto;
}

.numberForm {
    display: flex;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    gap: 0.5rem;
    margin: 0 auto;
}

.numberFormPellet {
    display: flex;
    justify-content: center;
    width: 9rem;
    height: 2rem;
    gap: 0.5rem;
    margin: 0 auto;
    font-size: 1rem !important;
}

/* Style pour les menus déroulants de pellets */
.large-font-select {
    font-size: 1.1rem; /* taille normale pour le champ fermé */
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 420px; /* largeur raisonnable */
    margin: 0.5rem 0;
    min-height: 48px; /* boost de lisibilité du champ fermé */
}

.large-font-select optgroup {
    font-weight: bold;
    color: #666;
    background-color: #f0f0f0;
    padding: 4px 0;
    font-size: 1.3rem; /* groupe un peu plus grand */
}

/* Style pour les options */
.large-font-select option {
    font-size: 1.6rem; /* texte plus grand quand déroulé */
    padding: 0.75rem 0.5rem;
    line-height: 1.5;
}

/* Zoom x2 uniquement pendant l'ouverture via une classe temporaire ajoutée en JS */
.form select.select-open,
select.select-open {
    font-size: 2rem !important; /* x2 */
    line-height: 1.3 !important;
}

/* Style pour les séparateurs */
.option-separator {
    background-color: #f0f0f0;
    color: #666;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    font-size: 1.2rem;
}

/* Styles conditionnels par poids */
.option-2kg { background-color: #f8f8f8; }
.option-5kg { background-color: #f0f0f0; }
.option-10kg { background-color: #e8e8e8; }
.option-25kg { background-color: #e0e0e0; }

.hr {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 60%;
    height: 0.2rem;
    background-color:rgb(5, 123, 84);
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.hrFormGrid {
    grid-column: span 2;
    margin: 0 auto;
    width: 60%;
}

.hrFormGrid input {
    height: 25px;
}

.hrForm {
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 0.08rem;
    background-color: rgb(188, 227, 227)
}

.hrText {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: 2rem;
    color: white;
    gap: 1rem;
}

.dateA {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 60%;
    height: 2rem;
    background-color: rgb(216, 216, 214);
    gap: 1rem;
}

.alert {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 1.3rem;
    color: red;
    width: 60%;
    height: 4rem;
    background-color: rgb(35, 35, 33);
    gap: 1rem;
}

.btnActionZero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    width: 9rem;
    height: 3rem;
    grid-column: span 2 !important;
}

.editHidden {
    display: none;
}

@media only screen and (max-width: 768px) {

    .titre {
        margin-top:1rem;
        font-size: 2.5rem;
        text-align: center;
    }

    .table {
        display: grid;
        align-items: center;
        margin: 0;
        width: 100%;
    }

    .tableIndex {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        height: 3rem;
        justify-content: center;
        background-color: rgb(216, 216, 214);
        align-items: center;
        font-size: 0.7rem;
        gap: 0.2rem;
        width: 95%;
        margin: 0 auto;
    }

    .tableValeur {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1FR;
        justify-content: center;
        font-size: 0.7rem;
        height: 6rem;
        text-align: center;
        background-color: rgb(181, 181, 177);
        align-items: center;
        gap: 0.2rem;
        width: 95%;
        margin: 0 auto;
    }

    .btnAction {
        width: 7rem;
        height: 2.5rem;
        font-size: 0.7rem;
    }

    .form {
        width: 90%;
        border-radius: 1rem;
    }

    .formTitle {
        font-size: 1.5rem;
    }

    .formStart {
        width: 10rem;
    }

    .formPrix {
        width: 90%;
        border-radius: 1rem;
    }

    .formPrixPayment {
        margin-top: 5rem;
        width: 90%;
        border-radius: 1rem;
    }

    .formPrixButton {
        width: 80%;
    }

    .formEnd {
        width: 10rem;
    }

    .formEmail {
        width: 10rem;
    }

    .formPhone {
        width: 10rem;
    }

    .hr {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 60%;
        height: 0.1rem;
        background-color:rgb(5, 123, 84);
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .dateA {
        width: 80%;
    }

    .alert {
        width: 80%;
    }
    
}