/* =============================================================
   lmj-form.css  –  Formulaire de commande LMJ v5
   ============================================================= */

/* ── Bouton Commander ──────────────────────────────────────── */
.lmj-bouton-wrapper {
    margin-top: 16px;
    text-align: center;
}

#lmj-ouvrir-modal {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    background: #1a2942;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

#lmj-ouvrir-modal:hover {
     background: #1a9b06; /* vert foncé */
    transform: translateY(-1px);
}

/* ── Overlay ───────────────────────────────────────────────── */
#lmj-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    overflow-y: auto;
    padding: 30px 16px;
}

/* ── Modale ────────────────────────────────────────────────── */
#lmj-modal {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* ── Bouton fermeture ──────────────────────────────────────── */
#lmj-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    line-height: 1;
    transition: color .15s;
    z-index: 10;
}
#lmj-close:hover { color: #fff; }

/* ── En-tête ───────────────────────────────────────────────── */
#lmj-header {
    background: #1a2942;
    padding: 28px 32px 22px;
    color: #fff;
}
.lmj-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
#lmj-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
#lmj-header p {
    margin: 0;
    font-size: 13px;
    opacity: .65;
}

/* ── Récap panier ──────────────────────────────────────────── */
#lmj-recap {
    padding: 22px 28px;
    background: #f9fafb;
    border-bottom: 1px solid #eee;
}

.lmj-titre-section {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a2942;
    margin-bottom: 12px;
}

.lmj-table-panier {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.lmj-table-panier th,
.lmj-table-panier td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}
.lmj-table-panier thead th {
    background: #f0f2f5;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}
.lmj-table-panier tfoot td {
    border-top: 2px solid #eee;
    border-bottom: none;
    font-size: 14px;
}

/* ── Formulaire ────────────────────────────────────────────── */
#lmj-formulaire {
    padding: 24px 28px 28px;
}

.lmj-grille {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.lmj-champ {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lmj-moitie  { flex: 1 1 calc(50% - 7px); min-width: 180px; }
.lmj-pleine  { flex: 1 1 100%; }

.lmj-champ label {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.lmj-req { color: #e74c3c; }

.lmj-champ input,
.lmj-champ select,
.lmj-champ textarea {
    padding: 9px 12px;
    border: 1.5px solid #dde1e7;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color .2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.lmj-champ input:focus,
.lmj-champ select:focus,
.lmj-champ textarea:focus {
    outline: none;
    border-color: #1a2942;
}
.lmj-champ textarea { resize: vertical; }

.lmj-info {
text-align : center;
 font-size: 14px;
}

/* ── Erreur ────────────────────────────────────────────────── */
#lmj-erreur {
    display: none;
    margin-top: 14px;
    padding: 11px 16px;
    background: #fff0f0;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    font-size: 13px;
    color: #c0392b;
}

/* ── Bouton envoyer ────────────────────────────────────────── */
#lmj-envoyer {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #1a9b06; /* vert foncé */
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
#lmj-envoyer:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-1px);
}
#lmj-envoyer:disabled {
    opacity: .6;
    cursor: wait;
}

/* ── Confirmation ──────────────────────────────────────────── */
#lmj-confirmation {
    display: none;
    padding: 48px 32px;
    text-align: center;
}
.lmj-icone-ok { font-size: 52px; margin-bottom: 16px; }
#lmj-confirmation h3 {
    font-size: 22px;
    color: #1a2942;
    margin: 0 0 12px;
}
#lmj-confirmation p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}
#lmj-fermer-confirm {
    padding: 11px 32px;
    background: #1a2942;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
#lmj-fermer-confirm:hover { background: #e74c3c; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 520px) {
    #lmj-modal        { border-radius: 8px; }
    #lmj-header,
    #lmj-recap,
    #lmj-formulaire   { padding-left: 18px; padding-right: 18px; }
    .lmj-moitie       { flex: 1 1 100%; }
}
