/* Écran 2 — édition ponctuelle / Écran 3 — détail */

#screen-edition,
#screen-detail,
#screen-favori-edit {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.btn-back {
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: var(--radius-pill);
    border: none;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.edit-nom {
    font-size: 1.15rem;
    font-weight: 700;
}

.edit-icon-wrap {
    display: flex;
    justify-content: center;
}

.edit-icon-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-card-text);
}

#form-edit-entree,
#form-detail-entree,
#form-favori-edit {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-large {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.field-large input,
.field-large textarea {
    min-height: 56px;
    border-radius: var(--radius-control);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.3rem;
    padding: 12px 16px;
    font-family: inherit;
}

.field-large textarea {
    font-size: 1rem;
    resize: vertical;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.stepper-btn {
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: 50%;
    border: none;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.stepper-value {
    min-width: 40px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
}

.meta-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 1px solid var(--color-border);
    padding-top: 18px;
}

.btn-delete,
.btn-secondary {
    min-height: var(--touch-min);
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-delete {
    background: var(--color-error);
    color: var(--color-text);
}

.grammes-box {
    background: var(--color-surface-alt);
    border-radius: var(--radius-card);
    padding: 20px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
}

.btn-submit {
    min-height: 56px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}
