.marque-edit-wrap {
    position: relative;
}

.marque-affichage {
    display: inline-block;
    margin-right: 12px;
    font-weight: 600;
}

.small-button {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d49a2a;
    background: #fffaf0;
    cursor: pointer;
}

.marque-search-box {
    margin-top: 10px;
    max-width: 420px;
}

.autocomplete-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 0;
    background: white;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f1dfbd;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.55);
}

.modal-box {
    width: min(520px, calc(100vw - 40px));
    background: #fffaf0;
    border: 2px solid rgba(212,154,42,0.55);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    color: #251507;
}

.modal-box h2 {
    margin-top: 0;
}

.modal-help {
    color: #6a4a24;
}

.modal-input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d49a2a;
    border-radius: 10px;
    font-size: 1rem;
}

.modal-error {
    margin-top: 12px;
    min-height: 22px;
    color: #b00020;
    font-weight: 600;
}

.modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.small-button.primary {
    background: #d49a2a;
    color: #120900;
}
.retour-appareil-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 18px;
}

.retour-appareil-vignette img {
    width: 110px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #eee;
}
.champ-erreur {
    display: none;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #c62828;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.champ-erreur.visible {
    display: block;
}

.champ-invalide {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 3px rgba(198,40,40,.2);
}
.champ-numerique {
    width: 10ch;
    min-width: 10ch;
    max-width: 10ch;
}
.notice.error a {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    color: #b42318;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #f3b5b0;
    transition: all 0.2s ease;
}

.notice.error a:hover {
    background: #b42318;
    color: #fff;
    border-color: #b42318;
    text-decoration: none;
}