/* ========================================
   Page poème (show) — lecture, exploration
   Design: moment de découverte, envie d'explorer
   ======================================== */

.poem-show {
    min-height: 100vh;
    padding-top: .5rem;
    padding-bottom: 0;
    background: var(--bg-day);
    color: var(--text-primary);
}

html:not(.day-mode) .poem-show {
    background: var(--bg-night);
    color: var(--text-night);
}

/* Zone de lecture : bande centrée, légèrement mise en avant */
.poem-show__reading-zone {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
    position: relative;
}

@keyframes poemShowFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Ligne décorative qui s’anime sous la phrase */
/* Article poème — centre de l'expérience */
.poem-show__article {
    opacity: 0;
    animation: poemShowFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .poem-show__article {
        animation: none;
        opacity: 1;
    }
}

.poem-show__poem-title {
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(2.4rem, 4.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 .25rem;
    color: var(--text-primary);
}

html:not(.day-mode) .poem-show__poem-title {
    color: rgba(231, 231, 231, 0.98);
}

.poem-show__author {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.9375rem;
    font-style: italic;
    letter-spacing: 0.01em;
    margin: 0 0 2.5rem;
}

.poem-show__author,
.poem-show__author a {
    color: rgba(90, 82, 73, 0.65);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.poem-show__author a:hover {
    color: var(--text-primary);
    border-bottom-color: transparent;
}

html:not(.day-mode) .poem-show__author,
html:not(.day-mode) .poem-show__author a {
    color: rgba(231, 231, 231, 0.68);
}

html:not(.day-mode) .poem-show__author a:hover {
    color: rgba(231, 231, 231, 0.95);
}

/* Titre + auteur */
.poem-show__heading {
    display: block;
}

/* Like toggle — minimal heart + label */
.poem-show__like-row {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 0;
}

.poem-like-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    transition: background 0.25s ease;
    outline: none;
}

.poem-like-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
}

html:not(.day-mode) .poem-like-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
}

.poem-like-toggle:focus-visible {
    outline: 1.5px solid var(--text-secondary);
    outline-offset: 3px;
}

.poem-like-toggle__icon {
    display: block;
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.poem-like-toggle__icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    color: rgba(90, 82, 73, 0.4);
    transition: color 0.3s ease;
}

html:not(.day-mode) .poem-like-toggle__icon::before {
    color: rgba(231, 231, 231, 0.35);
}

.poem-like-toggle.liked .poem-like-toggle__icon::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='currentColor' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='currentColor' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    color: #c06060;
}

html:not(.day-mode) .poem-like-toggle.liked .poem-like-toggle__icon::before {
    color: #d47070;
}

.poem-like-toggle:hover .poem-like-toggle__icon {
    transform: scale(1.1);
}

.poem-like-toggle:active .poem-like-toggle__icon {
    transform: scale(0.92);
}

@keyframes poemLikePulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.25); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.poem-like-toggle.liked .poem-like-toggle__icon {
    animation: poemLikePulse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poem-like-toggle__label {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.8125rem;
    font-style: italic;
    color: rgba(90, 82, 73, 0.45);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    user-select: none;
}

html:not(.day-mode) .poem-like-toggle__label {
    color: rgba(231, 231, 231, 0.35);
}

.poem-like-toggle:hover .poem-like-toggle__label {
    color: rgba(90, 82, 73, 0.65);
}

html:not(.day-mode) .poem-like-toggle:hover .poem-like-toggle__label {
    color: rgba(231, 231, 231, 0.55);
}

.poem-like-toggle.liked .poem-like-toggle__label {
    color: rgba(90, 82, 73, 0.55);
}

html:not(.day-mode) .poem-like-toggle.liked .poem-like-toggle__label {
    color: rgba(231, 231, 231, 0.45);
}

/* ---- Add to playlist (inline, same row as like) ---- */
.poem-show__like-row {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.poem-playlist-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    transition: background 0.25s ease;
    outline: none;
}
.poem-playlist-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
}
html:not(.day-mode) .poem-playlist-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
}
.poem-playlist-toggle:focus-visible {
    outline: 1.5px solid var(--text-secondary);
    outline-offset: 3px;
}
.poem-playlist-toggle__icon {
    display: block;
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.poem-playlist-toggle__icon::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    color: rgba(90, 82, 73, 0.35);
}
html:not(.day-mode) .poem-playlist-toggle__icon::before {
    color: rgba(231, 231, 231, 0.35);
}
.poem-playlist-toggle:hover .poem-playlist-toggle__icon {
    transform: scale(1.1);
}
.poem-playlist-toggle:hover .poem-playlist-toggle__icon::before {
    color: rgba(90, 82, 73, 0.55);
}
html:not(.day-mode) .poem-playlist-toggle:hover .poem-playlist-toggle__icon::before {
    color: rgba(231, 231, 231, 0.6);
}
.poem-playlist-toggle__label {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.8125rem;
    font-style: italic;
    color: rgba(90, 82, 73, 0.45);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    user-select: none;
}
html:not(.day-mode) .poem-playlist-toggle__label {
    color: rgba(231, 231, 231, 0.35);
}
.poem-playlist-toggle:hover .poem-playlist-toggle__label {
    color: rgba(90, 82, 73, 0.65);
}
html:not(.day-mode) .poem-playlist-toggle:hover .poem-playlist-toggle__label {
    color: rgba(231, 231, 231, 0.55);
}

/* ---- Playlist picker dropdown ---- */
.poem-playlist-picker {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    animation: poemShowFadeIn 0.2s ease forwards;
}
.poem-playlist-picker__inner {
    width: 100%;
    max-width: 18rem;
    background: rgba(250, 247, 242, 0.95);
    border: 1px solid rgba(224, 214, 202, 0.4);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
html:not(.day-mode) .poem-playlist-picker__inner {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(231, 231, 231, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.poem-playlist-picker__list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 12rem;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}
.poem-playlist-picker__item {
    font-family: 'Lora', serif;
    font-size: 0.875rem;
    text-align: left;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(43, 43, 43, 0.08);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.poem-playlist-picker__item:hover {
    background: rgba(43, 43, 43, 0.04);
    border-color: rgba(43, 43, 43, 0.2);
}
html:not(.day-mode) .poem-playlist-picker__item {
    border-color: rgba(231, 231, 231, 0.08);
    color: rgba(231, 231, 231, 0.85);
}
html:not(.day-mode) .poem-playlist-picker__item:hover {
    background: rgba(231, 231, 231, 0.05);
    border-color: rgba(231, 231, 231, 0.2);
}
.poem-playlist-picker__new {
    font-family: 'Crimson Pro', serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}
.poem-playlist-picker__new:hover {
    color: var(--text-primary);
}
html:not(.day-mode) .poem-playlist-picker__new {
    color: rgba(231, 231, 231, 0.5);
}
html:not(.day-mode) .poem-playlist-picker__new:hover {
    color: rgba(231, 231, 231, 0.85);
}
.poem-playlist-picker__feedback {
    font-family: 'Lora', serif;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.35rem 0 0;
    min-height: 1em;
    text-align: center;
}
.poem-playlist-picker__input {
    width: 100%;
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(43, 43, 43, 0.15);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.poem-playlist-picker__input:focus {
    border-color: var(--text-secondary);
}
.poem-playlist-picker__input::placeholder {
    color: var(--text-placeholder);
    font-style: italic;
}
html:not(.day-mode) .poem-playlist-picker__input {
    border-color: rgba(231, 231, 231, 0.15);
    color: rgba(231, 231, 231, 0.9);
}
html:not(.day-mode) .poem-playlist-picker__input:focus {
    border-color: rgba(231, 231, 231, 0.35);
}
.poem-playlist-picker__row {
    display: flex;
    gap: 0.5rem;
}
.poem-playlist-picker__submit,
.poem-playlist-picker__cancel {
    font-family: 'Crimson Pro', serif;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.poem-playlist-picker__submit {
    color: var(--text-primary);
    background: none;
    border: 1px solid rgba(43, 43, 43, 0.2);
}
.poem-playlist-picker__submit:hover {
    border-color: rgba(43, 43, 43, 0.4);
    background: rgba(43, 43, 43, 0.03);
}
.poem-playlist-picker__cancel {
    color: var(--text-secondary);
    background: none;
    border: 1px solid transparent;
}
.poem-playlist-picker__cancel:hover {
    color: var(--text-primary);
}
html:not(.day-mode) .poem-playlist-picker__submit {
    color: rgba(231, 231, 231, 0.85);
    border-color: rgba(231, 231, 231, 0.2);
}
html:not(.day-mode) .poem-playlist-picker__submit:hover {
    border-color: rgba(231, 231, 231, 0.4);
    background: rgba(231, 231, 231, 0.04);
}
html:not(.day-mode) .poem-playlist-picker__cancel {
    color: rgba(231, 231, 231, 0.5);
}
html:not(.day-mode) .poem-playlist-picker__cancel:hover {
    color: rgba(231, 231, 231, 0.85);
}

/* Scroll hint — invite discrète à défiler */
.poem-show__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
    opacity: 0;
    animation: poemShowFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.poem-show__scroll-hint-label {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(110, 106, 100, 0.45);
}

html:not(.day-mode) .poem-show__scroll-hint-label {
    color: rgba(170, 166, 158, 0.4);
}

.poem-show__scroll-hint-line {
    width: 1px;
    height: 2.5rem;
    background: linear-gradient(to bottom, rgba(100, 96, 90, 0.3), transparent);
    animation: poemScrollPulse 2.4s ease-in-out 1.8s infinite;
}

html:not(.day-mode) .poem-show__scroll-hint-line {
    background: linear-gradient(to bottom, rgba(210, 206, 198, 0.22), transparent);
}

@keyframes poemScrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50%      { transform: scaleY(1.12); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
    .poem-show__scroll-hint {
        animation: none;
        opacity: 1;
    }
    .poem-show__scroll-hint-line {
        animation: none;
    }
    .poem-like-toggle.liked .poem-like-toggle__icon {
        animation: none;
    }
}

/* Corps du poème — colonne de lecture, respiration généreuse */
.poem-show__text-wrap {
    margin: 0;
}

.poem-show .poem-body {
    font-family: 'Lora', 'Georgia', serif;
    font-size: clamp(1.125rem, 2.2vw, 1.25rem);
    line-height: 2;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    max-width: 100%;
}

html:not(.day-mode) .poem-show .poem-body {
    color: rgba(231, 231, 231, 0.92);
}

/* Actions : cœur uniquement (comme page poème classique) */
/* Ligne poème + cœur : poème à gauche, like à droite */
.poem-show__poem-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0;
}

.poem-show__article {
    flex: 1;
    min-width: 0;
}

.poem-show__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 0.25rem;
    opacity: 0;
    animation: poemShowFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .poem-show__actions {
        animation: none;
        opacity: 1;
    }
}

/* ========================================
   EXPLORATION — Continuer par résonance,
   cards de suggestion
   ======================================== */

.poem-show__explore {
    padding: 0 1.5rem 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: poemShowFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

html:not(.day-mode) .poem-show__explore {
    background: transparent;
}

.poem-show__explore-inner {
    max-width: 60rem;
    margin: 0 auto;
}

/* Titre + sous-titre */
.poem-show__explore-head {
    text-align: center;
    margin-bottom: 2rem;
}

.poem-show__headline {
    margin: 0 0 0.35rem;
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    opacity: 0;
    animation: poemShowFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

html:not(.day-mode) .poem-show__headline {
    color: rgba(231, 231, 231, 0.98);
}

.poem-show__supporting-line {
    margin: 0;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: poemShowFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}

html:not(.day-mode) .poem-show__supporting-line {
    color: rgba(231, 231, 231, 0.55);
}

/* Grille de cards — 3 colonnes desktop */
.poem-show__cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

/* Card de suggestion */
.poem-show__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(43, 43, 43, 0.07);
    border-radius: 8px;
    padding: 1.25rem 1.25rem 1.35rem;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    animation: poemShowFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
}

.poem-show__card:nth-child(1) { animation-delay: 1.05s; }
.poem-show__card:nth-child(2) { animation-delay: 1.2s; }
.poem-show__card:nth-child(3) { animation-delay: 1.35s; }

.poem-show__card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(43, 43, 43, 0.12);
    box-shadow: 0 3px 16px rgba(43, 43, 43, 0.06);
}

.poem-show__card:focus-visible {
    outline: 1.5px solid var(--text-secondary);
    outline-offset: 3px;
}

html:not(.day-mode) .poem-show__card {
    color: rgba(231, 231, 231, 0.96);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(231, 231, 231, 0.08);
}

html:not(.day-mode) .poem-show__card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(231, 231, 231, 0.14);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.18);
}

/* Badges (thèmes / tags du poème suggéré) — en fin de carte, sous l’extrait */
.poem-show__card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.poem-show__card-badge {
    display: inline-block;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.6875rem;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #8B7355;
    background: rgba(180, 155, 120, 0.12);
    border: 1px solid rgba(180, 155, 120, 0.2);
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0;
}

html:not(.day-mode) .poem-show__card-badge {
    color: rgba(220, 195, 160, 0.9);
    background: rgba(200, 175, 140, 0.1);
    border-color: rgba(200, 175, 140, 0.18);
}

/* Titre du poème dans la card */
.poem-show__card-title {
    display: block;
    font-family: 'Crimson Pro', 'Lora', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

/* Auteur */
.poem-show__card-author {
    display: block;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}

html:not(.day-mode) .poem-show__card-author {
    color: rgba(231, 231, 231, 0.55);
}

/* Tags chips */
.poem-show__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.poem-show__card-tag {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    border: 1px solid rgba(43, 43, 43, 0.12);
    border-radius: 10rem;
    padding: 0.15rem 0.55rem;
}

html:not(.day-mode) .poem-show__card-tag {
    color: rgba(231, 231, 231, 0.6);
    border-color: rgba(231, 231, 231, 0.15);
}

/* Extrait en italique */
.poem-show__card-excerpt {
    display: block;
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.8125rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-top: auto;
}

html:not(.day-mode) .poem-show__card-excerpt {
    color: rgba(231, 231, 231, 0.5);
}

/* Card "Ouvrir ailleurs" — pleine largeur, accent chaud */
.poem-show__card--random {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    background: rgba(180, 155, 120, 0.08);
    border-color: rgba(180, 155, 120, 0.14);
    padding: 1.1rem 1.35rem;
}

.poem-show__card--random:hover {
    background: rgba(180, 155, 120, 0.15);
    border-color: rgba(180, 155, 120, 0.22);
    box-shadow: 0 2px 12px rgba(160, 140, 110, 0.08);
}

html:not(.day-mode) .poem-show__card--random {
    background: rgba(200, 175, 140, 0.06);
    border-color: rgba(200, 175, 140, 0.1);
}

html:not(.day-mode) .poem-show__card--random:hover {
    background: rgba(200, 175, 140, 0.12);
    border-color: rgba(200, 175, 140, 0.18);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.poem-show__card-random-icon {
    font-size: 0.875rem;
    color: #8B7355;
    flex-shrink: 0;
}

html:not(.day-mode) .poem-show__card-random-icon {
    color: rgba(220, 195, 160, 0.8);
}

.poem-show__card-random-text {
    display: flex;
    flex-direction: column;
}

.poem-show__card--random .poem-show__card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.1rem;
}

.poem-show__card--random .poem-show__card-author {
    margin-bottom: 0;
    font-size: 0.8rem;
}

/* Animation de sortie douce */
.poem-show--leaving {
    transition: opacity 0.18s ease, transform 0.18s ease;
    opacity: 0;
    transform: translateY(6px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
    .poem-show__cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .poem-show__cards-grid .poem-show__card:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .poem-show {
        padding-top: .5rem;
    }

    .poem-show__reading-zone {
        padding: 2.5rem 7.6923% 3rem;
    }

    .poem-show__date {
        font-size: 0.6875rem;
        letter-spacing: 0.15em;
    }

    .poem-show__explore {
        padding: 0rem 1rem 1.5rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .poem-show__cards-grid {
        grid-template-columns: 1fr;
    }

    .poem-show__card {
        padding: 1rem 1rem 1.15rem;
    }

    .poem-show__card-title {
        font-size: 1.05rem;
    }
}
