.memories-main {
    min-height: 100vh;
    padding: 2.4rem 1.6rem 4rem;
}
/* 🎀 texte h1 🎀 */
.memories-text {
    text-align: center;
    margin-bottom: 3rem;
}
/* 🎀 bouton ajouter 🎀 */
.memories-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}
.memories-btn a {
     display: inline-block;
    padding: 1rem 2rem;
    border-radius: 1rem;
    color: var(--text);
    background: var(--bleu-fond);
    box-shadow: var(--rose-primaire) 0px 4px 15px;
    text-decoration: none;
    font-size: 1.4rem;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.memories-btn a:hover {
    background: var(--rose-primaire);
    color: var(--bleu-fond);
    transform: translateY(-2px);
}
.memories-btn a svg {
    width: 1.6rem;
    height: 1.6rem;
    stroke: currentColor;
}
.memories-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 86rem;
    margin: 0 auto;
}

.memory-message {
    max-width: 86rem;
    margin: 0 auto 1.6rem;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    font-size: 1.3rem;
}

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

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

/* 🎀 Trait de separation entre les cartes souvenirs 🎀 */
.memory-separation {
    width: 60%;
    height: 3px;
    margin: 2rem auto;
    border-radius: 50px;
    background: linear-gradient(to right, transparent, var(--rose-primaire), var(--rose-primaire), transparent);
}

/*🎀 ─── Carte ─── 🎀*/
.memory-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1.5px solid rgba(255, 62, 194, 0.2);
    transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.memory-card:hover {
    border-color: rgba(255, 62, 194, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 62, 194, 0.15);
}

/* 🎀─── Image ─── 🎀 */
.memory-image-wrap {
    position: relative;
    width: 100%;
    height: 15rem;
    overflow: hidden;
}

.memory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.35s ease, transform 0.45s ease;
}

.memory-card:hover .memory-image {
    filter: brightness(1);
    transform: scale(1.03);
}

.memory-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(0, 0, 51, 0.55) 100%
    );
    pointer-events: none;
}

.memory-visibility-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.memory-visibility-public {
    background: rgba(65, 65, 253, 0.22);
    color: #d8e1ff;
    border-color: rgba(115, 141, 255, 0.7);
}

.memory-visibility-private {
    background: rgba(255, 62, 194, 0.2);
    color: #ffd4f3;
    border-color: rgba(255, 62, 194, 0.7);
}

/* 🎀 ─── Barre inférieure ─── 🎀*/
.memory-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0d0a2a;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid rgba(255, 62, 194, 0.15);
}

.memory-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.memory-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    color: var(--rose-primaire);
    flex-shrink: 0;
}

.memory-icon svg {
    width: 2rem;
    height: 2rem;
}

.memory-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* 🎀 ─── Flèche ───🎀 */
.memory-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    border: 1.5px solid var(--rose-primaire);
    color: var(--rose-primaire);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

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

.memory-arrow svg {
    width: 1.6rem;
    height: 1.6rem;
}

.memory-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.8rem 1.2rem 1.1rem;
    background: #0d0a2a;
    border-top: 1px solid rgba(255, 62, 194, 0.15);
}

.memory-action-link {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 0.9rem;
    border: 1.5px solid var(--rose-primaire);
    color: var(--text);
    background: var(--bleu-fond);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

.memory-delete-form {
    margin: 0;
}

.memory-action-delete {
    padding: 0.7rem 1.2rem;
    border-radius: 0.9rem;
    border: 1.5px solid #ff5c7c;
    color: #ffd7e0;
    background: #2a1021;
    box-shadow: none;
    font-size: 1.3rem;
}

.memory-action-delete:hover {
    background: #ff5c7c;
    color: #140018;
}

/* 🎀 ─── Page détail────────🎀*/

.detail-main {
    min-height: 100vh;
}

/* 🎀Hero 🎀*/
.detail-hero {
    position: relative;
    width: 100%;
    height: 42rem;
    overflow: hidden;
}

.detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.65);
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 51, 0.2) 0%,
        rgba(0, 0, 51, 0.75) 100%
    );
}

.detail-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    gap: 1.2rem;
}

/* 🎀 Bouton retour 🎀 */
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rose-secondaire);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.2s ease, gap 0.2s ease;
    width: fit-content;
}

.detail-back:hover {
    color: var(--rose-primaire);
    gap: 0.9rem;
}

.detail-back svg {
    width: 1.8rem;
    height: 1.8rem;
    stroke: currentColor;
}

.detail-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    color: var(--text);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/*🎀 Corps🎀 */
.detail-body {
    max-width: 80rem;
    margin: 4rem auto;
    padding: 0 2rem;
}

.detail-placeholder {
    background: rgba(255, 62, 194, 0.08);
    border: 1.5px dashed rgba(255, 62, 194, 0.4);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 1.6rem;
    color: var(--rose-secondaire);
    line-height: 1.7;
}

.detail-placeholder strong {
    color: var(--rose-primaire);
}

/* 🎀Not found 🎀*/
.detail-notfound {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 50vh;
    padding: 4rem 2rem;
    text-align: center;
}

/* 🎀 ─── Responsive ─── 🎀 */
@media (max-width: 780px) {
    .memory-image-wrap {
        height: 12rem;
    }

    .detail-hero {
        height: 32rem;
    }

    .detail-hero-content {
        padding: 2rem;
    }
}

@media (max-width: 560px) {
    .memory-image-wrap {
        height: 10rem;
    }

    .memory-separation {
        width: 72%;
    }

    .memories-main {
        padding: 1.6rem 1rem 3rem;
    }

    .memory-actions {
        flex-wrap: wrap;
    }

    .detail-hero {
        height: 26rem;
    }
}