.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: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin: 0 auto;
    border-radius: 1rem;
    width: 9rem;
    height: 3rem;
    margin: 1rem auto 1rem auto;
    grid-column: span 2;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 
        0 6px 10px rgba(0, 0, 0, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.btnAction:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 20px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #0083b0 0%, #00b4db 100%);
}

.btnAction:active {
    transform: translateY(-1px);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin: 0 auto;
    gap: 1rem;
    width: 40%;
    background: linear-gradient(145deg, #e8f4f8, #d0e8f0);
    border: 2px solid #0083b0;
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 25px rgba(0, 131, 176, 0.25),
        0 5px 10px rgba(0, 131, 176, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #1a202c;
}

.form *:not(.btnAction):not(.btnActionZero):not(button):not([type="submit"]) {
    color: #1a202c !important;
}

.form button,
.form .btnAction,
.form .btnActionZero,
.form [type="submit"] {
    color: white !important;
}

.formPrix {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin: 0 auto;
    gap: 1rem;
    width: 40%;
    background: linear-gradient(145deg, #e8f4f8, #d0e8f0);
    border: 2px solid #0083b0;
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 25px rgba(0, 131, 176, 0.25),
        0 5px 10px rgba(0, 131, 176, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #1a202c;
}

.formPrix *:not(.btnAction):not(.btnActionZero):not(button):not([type="submit"]) {
    color: #1a202c !important;
}

.formPrix button,
.formPrix .btnAction,
.formPrix .btnActionZero,
.formPrix [type="submit"] {
    color: white !important;
}

.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: 2rem;
    margin: 3rem auto;
    gap: 1rem;
    width: 40%;
    background: linear-gradient(145deg, #e8f4f8, #d0e8f0);
    border: 2px solid #0083b0;
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 25px rgba(0, 131, 176, 0.25),
        0 5px 10px rgba(0, 131, 176, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #1a202c;
}

.formPrixPayment *:not(.btnAction):not(.btnActionZero):not(button):not([type="submit"]) {
    color: #1a202c !important;
}

.formPrixPayment button,
.formPrixPayment .btnAction,
.formPrixPayment .btnActionZero,
.formPrixPayment [type="submit"] {
    color: white !important;
}

.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:#0083b0;
    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;
}

.gift-code-error {
    color: #c0392b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    text-align: center;
}

.btnActionZero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin: 0 auto;
    border-radius: 1rem;
    width: 9rem;
    height: 3rem;
    grid-column: span 2 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 
        0 6px 10px rgba(0, 0, 0, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.btnActionZero:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 20px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btnActionZero:active {
    transform: translateY(-1px);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.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;
        padding: 1rem;
        gap: 0.6rem;
    }

    .formTitle {
        font-size: 1.5rem;
    }

    .formStart {
        width: 10rem;
    }

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

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

    .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:#0083b0;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .dateA {
        width: 80%;
    }

    .alert {
        width: 80%;
    }
    
}