.content-container {
    max-width: 65ch;
    margin: 0 auto;
    padding: calc(82px + 1rem) 1.5rem 1.5rem; /* Header fixe (82px) + espacement */
}

/* Section 1: Hero auteur */
.author-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.author-portrait {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    border: 2px solid rgba(224, 214, 202, 0.3);
}

.author-portrait-placeholder {
    background: rgba(250, 247, 242, 0.4);
    border: 2px solid rgba(224, 214, 202, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-initials {
    font-size: 3rem;
    font-family: 'Crimson Pro', serif;
    color: rgba(231, 231, 231, 0.6);
    font-weight: 500;
}

html.day-mode .author-initials {
    color: rgba(26, 26, 26, 0.6);
}

.author-name {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

html.day-mode .author-name {
    color: var(--text-day);
}

.academy-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 100%;
}

.academy-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.academy-logo {
    width: 62px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.academy-badge:hover .academy-logo {
    opacity: 1;
}

.academy-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(26, 26, 26, 0.95);
    color: rgba(250, 247, 242, 0.95);
    font-size: 0.8rem;
    font-family: 'Lora', serif;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(-5px);
    z-index: 10;
}

html.day-mode .academy-badge::after {
    background: rgba(250, 247, 242, 0.95);
    color: rgba(26, 26, 26, 0.95);
}

.academy-badge:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.author-context {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(231, 231, 231, 0.6);
}

html.day-mode .author-context {
    color: rgba(26, 26, 26, 0.6);
}

.author-years {
    font-style: italic;
}

.author-movement-period {
    font-style: italic;
}

.author-bio-short {
    text-align: left;
    margin: 1.5rem auto 0;
    line-height: 1.7;
    color: rgba(231, 231, 231, 0.8);
    font-size: 0.95rem;
}

.author-bio-short p {
    margin: 0 0 1rem 0;
}

.author-bio-short p:last-child {
    margin-bottom: 0;
}

.author-signature {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 1.5rem auto 0;
    opacity: 0.6;
    filter: grayscale(0.3);
    transition: opacity 0.2s ease;
}

html.day-mode .author-signature {
    opacity: 0.5;
}

.author-signature:hover {
    opacity: 0.8;
}

html.day-mode .author-bio-short {
    color: rgba(26, 26, 26, 0.8);
}

/* Section 2: Aperçu rapide */
.author-quick-overview {
    margin-bottom: 2.5rem;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.quick-stat-card {
    padding: 1rem;
    background: rgba(250, 247, 242, 0.3);
    border: 1px solid rgba(224, 214, 202, 0.25);
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100%;
}

html.day-mode .quick-stat-card {
    background: rgba(250, 247, 242, 0.4);
    border-color: rgba(224, 214, 202, 0.3);
}

.quick-stat-value {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
}

html.day-mode .quick-stat-value {
    color: var(--text-day);
}

.quick-stat-label {
    font-size: 0.8rem;
    color: rgba(231, 231, 231, 0.7);
    line-height: 1.4;
}

html.day-mode .quick-stat-label {
    color: rgba(26, 26, 26, 0.7);
}

.quick-stat-value-small {
    font-size: 0.9rem;
    color: rgba(231, 231, 231, 0.8);
    font-style: italic;
    line-height: 1.5;
}

html.day-mode .quick-stat-value-small {
    color: rgba(26, 26, 26, 0.8);
}

.quick-stat-value-small .theme-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
}

.quick-stat-value-small .theme-link:hover {
    opacity: 1;
    border-bottom-color: currentColor;
}

.quick-stat-value-small .theme-link:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

.quick-stat-value-small .theme-link-not-clickable {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid transparent;
    cursor: default;
    pointer-events: none;
}

.quick-stat-value-small .theme-link-not-clickable:hover {
    opacity: 1;
    border-bottom-color: currentColor;
}

/* Section 3: Recherche locale */
.author-local-search {
    margin-bottom: 2.5rem;
}

.search-no-results {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    color: rgba(231, 231, 231, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

html.day-mode .search-no-results {
    color: rgba(26, 26, 26, 0.6);
}

/* Section 3.5: Filtres par œuvre */
.author-works-filters {
    margin-bottom: 2.5rem;
}

.author-works-filters .section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.works-filters-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 214, 202, 0.3) transparent;
}

.works-filters-list::-webkit-scrollbar {
    height: 4px;
}

.works-filters-list::-webkit-scrollbar-track {
    background: transparent;
}

.works-filters-list::-webkit-scrollbar-thumb {
    background: rgba(224, 214, 202, 0.3);
    border-radius: 2px;
}

html.day-mode .works-filters-list::-webkit-scrollbar-thumb {
    background: rgba(224, 214, 202, 0.5);
}

@media (min-width: 769px) {
    .works-filters-list {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

.work-filter-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(224, 214, 202, 0.2);
    color: var(--text-night-secondary);
    text-decoration: none;
    font-family: 'Crimson Pro', serif;
    font-size: 0.875rem;
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

html.day-mode .work-filter-chip {
    border-color: rgba(224, 214, 202, 0.4);
    color: var(--text-day-secondary);
}

.work-filter-chip:hover {
    background: rgba(224, 214, 202, 0.08);
    border-color: rgba(224, 214, 202, 0.3);
}

html.day-mode .work-filter-chip:hover {
    background: rgba(224, 214, 202, 0.12);
}

.work-filter-chip.active {
    background: rgba(224, 214, 202, 0.15);
    border-color: rgba(224, 214, 202, 0.3);
    color: var(--text-night);
    font-weight: 500;
}

html.day-mode .work-filter-chip.active {
    background: rgba(224, 214, 202, 0.25);
    border-color: rgba(224, 214, 202, 0.5);
    color: var(--text-day);
}

.work-filter-chip:focus {
    outline: 2px solid var(--text-night-secondary);
    outline-offset: 2px;
}

html.day-mode .work-filter-chip:focus {
    outline-color: var(--text-day-secondary);
}

@media (max-width: 768px) {
    .works-filters-list {
        gap: 0.5rem;
    }
    
    .work-filter-chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Section 4: Explorer l'univers */
.explore-universe-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-transform: none;
    letter-spacing: normal;
}

html.day-mode .section-title {
    color: var(--text-day);
}

.section-subtitle {
    font-size: 0.85rem;
    color: rgba(231, 231, 231, 0.6);
    font-style: italic;
    margin-bottom: 1.5rem;
}

html.day-mode .section-subtitle {
    color: rgba(26, 26, 26, 0.6);
}

.explore-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.explore-card {
    padding: 1.5rem;
    background: rgba(250, 247, 242, 0.3);
    border: 1px solid rgba(224, 214, 202, 0.25);
    border-radius: 8px;
}

html.day-mode .explore-card {
    background: rgba(250, 247, 242, 0.4);
    border-color: rgba(224, 214, 202, 0.3);
}

.explore-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html.day-mode .explore-card-title {
    color: var(--text-day);
}

.explore-card-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.explore-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(231, 231, 231, 0.05);
    border: 1px solid rgba(224, 214, 202, 0.2);
    border-radius: 12px;
    font-size: 0.8rem;
    color: rgba(231, 231, 231, 0.8);
    font-family: 'Lora', serif;
}

html.day-mode .explore-tag {
    background: rgba(26, 26, 26, 0.05);
    border-color: rgba(224, 214, 202, 0.25);
    color: rgba(26, 26, 26, 0.8);
}

/* Section 5: Liste des poèmes */
.poems-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.poems-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.poems-sort-controls {
    display: flex;
    gap: 0.5rem;
}

.sort-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-family: 'Lora', serif;
    background: transparent;
    border: 1px solid rgba(224, 214, 202, 0.3);
    border-radius: 4px;
    color: rgba(231, 231, 231, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

html.day-mode .sort-button {
    border-color: rgba(224, 214, 202, 0.4);
    color: rgba(26, 26, 26, 0.7);
}

.sort-button:hover {
    border-color: rgba(224, 214, 202, 0.5);
    color: rgba(231, 231, 231, 0.9);
    background: rgba(231, 231, 231, 0.03);
}

html.day-mode .sort-button:hover {
    border-color: rgba(224, 214, 202, 0.5);
    color: rgba(26, 26, 26, 0.9);
    background: rgba(26, 26, 26, 0.03);
}

.sort-button.active {
    background: rgba(231, 231, 231, 0.08);
    border-color: rgba(224, 214, 202, 0.4);
    color: rgba(231, 231, 231, 0.95);
}

html.day-mode .sort-button.active {
    background: rgba(26, 26, 26, 0.08);
    border-color: rgba(224, 214, 202, 0.5);
    color: rgba(26, 26, 26, 0.95);
}

.author-local-search .search-container {
    margin-top: 0.875rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    position: relative ;
    display: block;
    top: auto;
    left: auto;
    right: auto ;
    bottom: auto;
    height: auto;
    z-index: auto ;
    justify-content: flex-start;
    pointer-events: auto;
    transform: none;
    opacity: 1;
}

.author-local-search .poem-search-input {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-night);
    background: transparent;
    border: 1px solid #e0d6ca;
    box-shadow: none;
    border-radius: 2px;
    outline: none;
    transition: all 0.2s ease;
    height: 2.25rem;
    box-sizing: border-box;
}

html.day-mode .author-local-search .poem-search-input {
    color: var(--text-day);
    border-color: #e0d6ca;
}

.author-local-search .poem-search-input::placeholder {
    color: rgba(231, 231, 231, 0.42);
    font-style: italic;
}

html.day-mode .author-local-search .poem-search-input::placeholder {
    color: rgba(26, 26, 26, 0.42);
}

.author-local-search .poem-search-input:focus {
    border-color: rgba(231, 231, 231, 0.4);
    background: rgba(231, 231, 231, 0.04);
    outline: 1px solid rgba(231, 231, 231, 0.2);
    outline-offset: 2px;
}

html.day-mode .author-local-search .poem-search-input:focus {
    border-color: rgba(26, 26, 26, 0.4);
    background: rgba(26, 26, 26, 0.04);
}

.poems-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.poem-meta-item {
    font-style: italic;
}

/* Pagination */
.poems-pagination {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(224, 214, 202, 0.2);
}

html.day-mode .poems-pagination {
    border-top-color: rgba(224, 214, 202, 0.3);
}

.pagination-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-family: 'Lora', serif;
    background: rgba(250, 247, 242, 0.4);
    border: 1px solid rgba(224, 214, 202, 0.3);
    border-radius: 6px;
    color: rgba(231, 231, 231, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

html.day-mode .pagination-button {
    background: rgba(250, 247, 242, 0.5);
    border-color: rgba(224, 214, 202, 0.4);
    color: rgba(26, 26, 26, 0.8);
}

.pagination-button:hover {
    background: rgba(245, 240, 232, 0.6);
    border-color: rgba(224, 214, 202, 0.5);
    color: rgba(231, 231, 231, 0.95);
}

html.day-mode .pagination-button:hover {
    background: rgba(245, 240, 232, 0.7);
    color: rgba(26, 26, 26, 0.95);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.85rem;
    color: rgba(231, 231, 231, 0.6);
    font-style: italic;
}

html.day-mode .pagination-info {
    color: rgba(26, 26, 26, 0.6);
}

/* Section 6: Découvrir aussi */
.discover-also-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(224, 214, 202, 0.2);
}

html.day-mode .discover-also-section {
    border-top-color: rgba(224, 214, 202, 0.3);
}

.related-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(250, 247, 242, 0.3);
    border: 1px solid rgba(224, 214, 202, 0.25);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

html.day-mode .related-author-card {
    background: rgba(250, 247, 242, 0.4);
    border-color: rgba(224, 214, 202, 0.3);
}

.related-author-card:hover {
    background: rgba(245, 240, 232, 0.5);
    border-color: rgba(224, 214, 202, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html.day-mode .related-author-card:hover {
    background: rgba(245, 240, 232, 0.6);
}

.related-author-portrait {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid rgba(224, 214, 202, 0.3);
}

.related-author-portrait-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(250, 247, 242, 0.4);
    border: 2px solid rgba(224, 214, 202, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.related-author-initials {
    font-size: 1.5rem;
    font-family: 'Crimson Pro', serif;
    color: rgba(231, 231, 231, 0.6);
    font-weight: 500;
}

html.day-mode .related-author-initials {
    color: rgba(26, 26, 26, 0.6);
}

.related-author-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-night);
    font-family: 'Crimson Pro', serif;
    margin-bottom: 0.5rem;
}

html.day-mode .related-author-name {
    color: var(--text-day);
}

.related-author-context {
    font-size: 0.8rem;
    color: rgba(231, 231, 231, 0.6);
    font-style: italic;
    line-height: 1.4;
}

html.day-mode .related-author-context {
    color: rgba(26, 26, 26, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .author-hero {
        margin-bottom: 2rem;
    }

    .author-portrait {
        width: 200px;
        height: 200px;
    }

    .author-name {
        font-size: 1.75rem;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-cards-grid {
        grid-template-columns: 1fr;
    }

    .poems-section-header {
        flex-direction: column;
    }

    .related-authors-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 40em) {
    .content-container {
        max-width: 65ch;
        padding: calc(82px + 1rem) 2rem 1.75rem; /* Header fixe (82px) + espacement */
    }
}

@media (min-width: 55em) {
    .content-container {
        max-width: 70ch;
        padding: calc(82px + 1rem) 2rem 2rem; /* Header fixe (82px) + espacement */
    }
}

@media (min-width: 75em) {
    .content-container {
        padding: calc(82px + 1rem) 3rem 2.5rem; /* Header fixe (82px) + espacement */
    }
}

