/* =======================
   PAGE PRODUIT
======================= */

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

/* Titre */
.container h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

/* Description */
.container > p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

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

.form-produit {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: left;
}

/* Groupes du formulaire */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Champs */
.form-group input,
.form-group select {
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    font-size: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #5295fd;
    background-color: #fff;
    outline: none;
}

/* Champs de sortie */
.form-group input[readonly] {
    background-color: #e2e8f0;
    font-weight: 600;
}

/* =======================
      BOUTONS
======================= */

.btn-primary {
    background: linear-gradient(to right, #2563eb, #5295fd);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(82, 149, 253, 0.35);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #1e40af, #2563eb);
}

.btn-secondary {
    background: linear-gradient(to right, #2563eb, #5295fd);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 0.6rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(82, 149, 253, 0.35);
}

.btn-secondary:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, #1e40af, #2563eb);
}

/* Bloc des actions (retour / panier) */
.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* =======================
      RESPONSIVE
======================= */

@media (max-width: 640px) {
    .form-produit {
        padding: 1.5rem;
    }

    .actions {
        flex-direction: column;
    }
}
