/* =========================
   PAGE ACHAT
   ========================= */

.achat {
    min-height: calc(100vh - 120px);
    padding: 55px 5% 80px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 45px;

    background-color: #fcf8f2;
}

/* =========================
   BLOC PRODUIT
   ========================= */

.bloc-produit {
    width: 480px;
    max-width: 100%;

    padding: 30px;

    background-color: #ffffff;

    border: 1px solid #ead9bd;
    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.bloc-produit h1 {
    color: #d99000;
    font-size: 2rem;
    margin-bottom: 8px;
}

.bloc-produit p {
    color: var(--noir-ruche);
    font-size: 1.05rem;
}

#origine-produit {
    color: #666;
    margin-bottom: 10px;
}

#image-produit {
    display: block;

    width: 280px;
    max-width: 85%;
    height: auto;

    margin: 25px auto;

    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* =========================
   QUANTITÉ
   ========================= */

.quantite {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    margin: 20px 0;
}

.quantite label {
    font-weight: 600;
}

.quantite button {
    width: 38px;
    height: 38px;

    border: 1px solid #d99b00;
    border-radius: 6px;

    background-color: #fbc531;
    color: var(--noir-ruche);

    font-size: 1.3rem;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.quantite button:hover {
    background-color: #e9ae12;
}

#quantite {
    min-width: 30px;

    font-size: 1.2rem;
    font-weight: bold;
}

/* =========================
   PRIX
   ========================= */

#prix-produit {
    font-size: 1.1rem;
    font-weight: 600;

    margin-top: 15px;
}

#total-produit {
    color: #d99000;

    font-size: 1.5rem;
    font-weight: bold;

    margin-top: 8px;
}

/* =========================
   BOUTON COMMANDER
   ========================= */

#commander {
    width: 100%;

    margin-top: 20px;
    padding: 13px 20px;

    border: none;
    border-radius: 5px;

    background-color: #e99b00;
    color: white;

    font-size: 1.05rem;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

#commander:hover {
    background-color: #d98d00;
}

/* =========================
   FORMULAIRE
   ========================= */

.bloc-formulaire {
    width: 430px;
    max-width: 100%;
    display:none;

    padding: 30px;

    background-color: #ffffff;

    border: 1px solid #ead9bd;
    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    text-align: left;
}

.bloc-formulaire h2 {
    color: #d99000;

    text-align: center;

    margin-bottom: 25px;

    font-size: 1.7rem;
}

/* =========================
   CHAMPS
   ========================= */

.bloc-formulaire form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bloc-formulaire label {
    color: var(--noir-ruche);

    font-weight: 600;

    margin-top: 8px;
}

.bloc-formulaire input,
.bloc-formulaire textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #cfcfcf;
    border-radius: 5px;

    background-color: #fff;

    font-size: 1rem;

    outline: none;

    transition: 0.2s;
}

.bloc-formulaire input:focus,
.bloc-formulaire textarea:focus {
    border-color: #e9a400;

    box-shadow: 0 0 0 2px rgba(251, 197, 49, 0.2);
}

.bloc-formulaire textarea {
    min-height: 110px;

    resize: vertical;
}

/* =========================
   VALIDATION COMMANDE
   ========================= */

.bloc-formulaire button[type="submit"] {
    width: 100%;

    margin-top: 18px;

    padding: 13px 20px;

    border: none;
    border-radius: 5px;

    background-color: #e99b00;
    color: white;

    font-size: 1rem;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.bloc-formulaire button[type="submit"]:hover {
    background-color: #d98d00;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .achat {
        flex-direction: column;

        align-items: center;

        padding: 35px 5% 60px;

        gap: 30px;
    }

    .bloc-produit,
    .bloc-formulaire {
        width: 100%;
        max-width: 520px;
    }

    .bloc-produit {
        padding: 25px 20px;
    }

    .bloc-produit h1 {
        font-size: 1.6rem;
    }

    .bloc-formulaire {
        padding: 25px 20px;
    }

}
.champ-erreur {
    display: none;
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

input:not(:placeholder-shown):invalid + .champ-erreur,
textarea:not(:placeholder-shown):invalid + .champ-erreur {
    display: block;
}
.projet-formulaire {
    width: 430px;
    max-width: 100%;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #ead9bd;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
}
.projet-formulaire h1 {
    color: #d99000;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.7rem;
}
.projet-formulaire > p {
    color: var(--noir-ruche);
    text-align: center;
    margin-bottom: 25px;
}
.projet-formulaire label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

.projet-formulaire input,
.projet-formulaire textarea,
.projet-formulaire select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.projet-formulaire textarea {
    resize: vertical;
    min-height: 130px;
}
.projet-formulaire button {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    background-color: #fbc531;
    color: #2f3640;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.projet-formulaire button:hover {
    opacity: 0.9;
}
.badge-projet {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 15px;
    background-color: #fbc531;
    color: #2f3640;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
#moins-reine,
#plus-reine {
    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid #d99b00;
    border-radius: 6px;

    background-color: #fbc531;
    color: #2f3640;

    font-size: 1.3rem;
    font-weight: bold;

    cursor: pointer;
}
