/* Page recueil - Style sobre et calme */

.work-show-container {
    max-width: 65ch;
    margin: 0 auto;
    padding: calc(82px + 1rem) 1.5rem 3rem; /* Header fixe (82px) + espacement */
}

@media (max-width: 768px) {
    .work-show-container {
        padding: calc(82px + 1rem) 1.25rem 2rem; /* Header fixe (82px) + espacement */
    }
}

.work-header {
    margin-bottom: 4rem;
    padding-top: 2rem;
    text-align: center;
}

.work-cover-large {
    max-width: 280px;
    width: 100%;
    margin: 0 auto 2.5rem;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(224, 214, 202, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-cover-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.work-cover-large img {
    width: 100%;
    height: auto;
    display: block;
}

.work-header-content {
    text-align: center;
}

.work-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

html.day-mode .work-title {
    color: var(--text-day);
}

.work-meta-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-night-secondary);
    font-family: 'Lora', serif;
}

html.day-mode .work-meta-line {
    color: var(--text-day-secondary);
}

.work-meta-item {
    display: inline-block;
}

.work-meta-separator {
    color: var(--text-night-secondary);
    opacity: 0.5;
}

html.day-mode .work-meta-separator {
    color: var(--text-day-secondary);
}

.work-meta-edition {
    font-style: italic;
    font-size: 0.9375rem;
}

.work-author-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.work-author-link:hover {
    opacity: 0.7;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.work-intro {
    max-width: 58ch;
    margin: 0 auto 2.5rem;
    text-align: left;
    color: var(--text-night);
    font-family: 'Lora', serif;
    line-height: 1.85;
    font-size: 1.0625rem;
}

html.day-mode .work-intro {
    color: var(--text-day);
}

.work-intro p {
    margin-bottom: 1.25rem;
}

.work-intro p:last-child {
    margin-bottom: 0;
}

.work-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.work-action-button {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(224, 214, 202, 0.3);
    color: var(--text-night);
    text-decoration: none;
    font-family: 'Crimson Pro', serif;
    font-size: 0.875rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

html.day-mode .work-action-button {
    border-color: rgba(224, 214, 202, 0.5);
    color: var(--text-day);
}

.work-action-button:hover {
    background: rgba(224, 214, 202, 0.1);
    border-color: rgba(224, 214, 202, 0.4);
}

html.day-mode .work-action-button:hover {
    background: rgba(224, 214, 202, 0.15);
}

.work-poems {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(224, 214, 202, 0.15);
}

.work-poems-header {
    text-align: center;
    margin-bottom: 3rem;
}

.work-poems .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

html.day-mode .work-poems .section-title {
    color: var(--text-day);
}

.work-poems-count {
    font-size: 1rem;
    color: var(--text-night-secondary);
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 400;
}

html.day-mode .work-poems-count {
    color: var(--text-day-secondary);
}

.poems-list-ordered {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: poem-counter;
    max-width: 100%;
}

.poem-item-ordered {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    counter-increment: poem-counter;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .poem-item-ordered {
        gap: 1rem;
        margin-bottom: 1.75rem;
    }
}

.poem-order {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    color: var(--text-night-secondary);
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
    border: 1px solid rgba(224, 214, 202, 0.3);
    border-radius: 50%;
    background: rgba(250, 247, 242, 0.25);
    margin-top: 0.25rem;
    transition: all 0.2s ease;
}

html.day-mode .poem-order {
    color: var(--text-day-secondary);
    background: rgba(250, 247, 242, 0.45);
    border-color: rgba(224, 214, 202, 0.4);
}

.poem-item-ordered:hover .poem-order {
    background: rgba(224, 214, 202, 0.15);
    border-color: rgba(224, 214, 202, 0.4);
}

html.day-mode .poem-item-ordered:hover .poem-order {
    background: rgba(224, 214, 202, 0.3);
}

.poem-item-content {
    flex: 1;
    min-width: 0;
}

/* S'assurer que les poem-item dans poem-item-content sont visibles */
.poem-item-content .poem-item {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-bottom: 0;
}

.poem-item-content .poem-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Style spécifique pour les cartes de poèmes dans la page recueil */
.work-show-container .poem-link {
    padding: 1.75rem 2rem;
    border-radius: 6px;
    background: rgba(250, 247, 242, 0.4);
    border: 1px solid rgba(224, 214, 202, 0.3);
}

html:not(.day-mode) .work-show-container .poem-link {
    background: var(--bg-night);
    border-color: rgba(224, 214, 202, 0.25);
}

.work-show-container .poem-link:hover {
    background: rgba(245, 240, 232, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

html:not(.day-mode) .work-show-container .poem-link:hover {
    background: rgba(26, 26, 26, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Délais progressifs pour l'effet domino */
.poem-item-ordered:nth-child(1) .poem-item-content .poem-item {
    transition-delay: 0.1s;
}

.poem-item-ordered:nth-child(2) .poem-item-content .poem-item {
    transition-delay: 0.15s;
}

.poem-item-ordered:nth-child(3) .poem-item-content .poem-item {
    transition-delay: 0.2s;
}

.poem-item-ordered:nth-child(4) .poem-item-content .poem-item {
    transition-delay: 0.25s;
}

.poem-item-ordered:nth-child(5) .poem-item-content .poem-item {
    transition-delay: 0.3s;
}

.poem-item-ordered:nth-child(n+6) .poem-item-content .poem-item {
    transition-delay: 0.35s;
}

.work-maillage {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(224, 214, 202, 0.15);
    text-align: center;
}

.maillage-block {
    margin-bottom: 2rem;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

.maillage-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
}

html.day-mode .maillage-title {
    color: var(--text-day);
}

.maillage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.maillage-list li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.maillage-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-night-secondary);
    opacity: 0.4;
    font-size: 0.875rem;
}

html.day-mode .maillage-list li::before {
    color: var(--text-day-secondary);
}

.maillage-link {
    color: var(--text-night-secondary);
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    line-height: 1.6;
}

html.day-mode .maillage-link {
    color: var(--text-day-secondary);
}

.maillage-link:hover {
    color: var(--text-night);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    padding-left: 0.25rem;
}

html.day-mode .maillage-link:hover {
    color: var(--text-day);
}

@media (max-width: 768px) {
    .work-cover-large {
        max-width: 220px;
    }
    
    .work-title {
        font-size: 1.75rem;
    }
    
    .work-intro {
        font-size: 1rem;
    }
    
    .poem-order {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
    
    .work-poems {
        margin-top: 4rem;
        padding-top: 2.5rem;
    }
    
    .work-maillage {
        margin-top: 4rem;
        padding-top: 2.5rem;
    }
}

