.add-memory-main {
    min-height: calc(100vh - 22rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.4rem 1.2rem;
}

.add-memory-form{
    display: grid;
    gap: 1.4rem;
    width: min(100%, 44rem);
    max-width: 40rem;
    margin: 2rem auto;
    padding: 2rem;
    border: 2px solid var(--rose-primaire);
    border-radius: 1.2rem;
    background: var(--bleu-fond);
    box-shadow: 0 0 0 1.5px var(--rose-primaire),
                 0 1.4rem 3.2rem var(--rose-primaire),
                 0 0 0 3px var(--rose-secondaire);
}


.add-memory-message {
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    font-size: 1.3rem;
}

.add-memory-error {
    border: 1px solid var(--rose-primaire);
    background: rgba(255, 62, 194, 0.2);
    color: var(--text);
}

.add-memory-success {
    border: 1px solid var(--bleu-clair);
    background: rgba(65, 65, 253, 0.2);
    color: var(--text);
}

.add-memory-form input,
.add-memory-form textarea,
.add-memory-form select {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--rose-primaire);
    border-radius: 0.8rem;
    background: rgba(255, 62, 194, 0.08);
    font-size: 1.3rem;
    color: var(--rose-primaire);
}

.add-memory-form select {
    appearance: none;
    cursor: pointer;
}
/* ==========================================
           🎀 BOUTONS 🎀
   ==========================================*/
.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    border: 1.5px solid var(--rose-primaire);
    color: var(--text);
    background: var(--bleu-fond);
    box-shadow: var(--rose-primaire) 0px 4px 15px;
    text-decoration: none;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.home-button:hover {
    background: var(--rose-primaire);
    color: var(--bleu-fond);
    transform: translateY(-2px);
}

.edit-memory-preview {
    width: 100%;
    max-height: 18rem;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 1.5px solid var(--rose-primaire);
}

.edit-memory-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.edit-memory-cancel {
    display: inline-block;
    padding: 1rem 1.6rem;
    border-radius: 1rem;
    border: 1.5px solid var(--rose-primaire);
    color: var(--text);
    background: transparent;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.edit-memory-cancel:hover {
    background: var(--rose-primaire);
    color: var(--bleu-fond);
    transform: translateY(-2px);
}

@media (max-width: 560px) {
    .edit-memory-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-memory-cancel,
    .home-button {
        text-align: center;
        justify-content: center;
    }
}