/* Page Auteurs - Style liseuse calme */

.authors-index-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(82px + 2rem) 2rem 3rem; /* Header fixe (82px) + espacement */
}

/* En-tête - Design moderne */
.authors-header {
    text-align: center;
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: headerReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.authors-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--text-night);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

html.day-mode .authors-title {
    color: var(--text-primary);
}

.authors-subtitle {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(231, 231, 231, 0.7);
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

html.day-mode .authors-subtitle {
    color: var(--text-secondary);
}

/* Barre outils (sticky sur mobile) - Design moderne */
.authors-toolbar {
    top: 0;
    background: var(--bg-day);
    backdrop-filter: blur(10px);
    z-index: 10;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(207, 198, 184, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: toolbarReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes toolbarReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html:not(.day-mode) .authors-toolbar {
    background: rgba(20, 20, 20, 0.8);
    border-bottom-color: rgba(231, 231, 231, 0.1);
}

/* Recherche */
.authors-search-container {
    margin-bottom: 1.25rem;
}

.authors-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.authors-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-button);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.authors-search-input:focus {
    border-color: var(--text-secondary);
    background: var(--bg-button-hover);
}

html:not(.day-mode) .authors-search-input {
    border-color: rgba(231, 231, 231, 0.2);
    color: var(--text-night);
}

html:not(.day-mode) .authors-search-input:focus {
    border-color: rgba(231, 231, 231, 0.4);
    background: rgba(231, 231, 231, 0.05);
}

.authors-search-input::placeholder {
    color: var(--text-placeholder);
    font-style: italic;
}

.authors-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.authors-search-clear:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

/* Index A-Z */
.authors-index-nav {
    margin-top: 0.5rem;
}

.authors-index-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.authors-index-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-family: 'Crimson Pro', serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.authors-index-letter:hover:not(.disabled) {
    color: var(--text-primary);
    border-bottom-color: var(--text-secondary);
}

.authors-index-letter.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    font-weight: 600;
}

.authors-index-letter.disabled {
    color: var(--text-placeholder);
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

html:not(.day-mode) .authors-index-letter {
    color: rgba(231, 231, 231, 0.7);
}

html:not(.day-mode) .authors-index-letter:hover:not(.disabled) {
    color: var(--text-night);
    border-bottom-color: rgba(231, 231, 231, 0.5);
}

html:not(.day-mode) .authors-index-letter.active {
    color: var(--text-night);
    border-bottom-color: var(--text-night);
}

html:not(.day-mode) .authors-index-letter.disabled {
    color: rgba(231, 231, 231, 0.3);
}

/* Résumé - Design moderne */
.authors-summary {
    margin-bottom: 2.5rem;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: rgba(231, 231, 231, 0.7);
    text-align: center;
    font-style: italic;
    padding: 1rem 0;
}

html.day-mode .authors-summary {
    color: var(--text-secondary);
}

.authors-count {
    font-weight: 500;
    color: rgba(231, 231, 231, 0.9);
}

html.day-mode .authors-count {
    color: var(--text-primary);
}

.authors-filter-info {
    margin-left: 0.5rem;
    opacity: 0.8;
}

/* Liste des auteurs - Design moderne WWW Awards */
.authors-list-section {
    margin-bottom: 3rem;
}

.authors-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.author-item {
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: authorCardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authorCardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation séquentielle pour les cartes */
.author-item:nth-child(1) { animation-delay: 0.05s; }
.author-item:nth-child(2) { animation-delay: 0.1s; }
.author-item:nth-child(3) { animation-delay: 0.15s; }
.author-item:nth-child(4) { animation-delay: 0.2s; }
.author-item:nth-child(5) { animation-delay: 0.25s; }
.author-item:nth-child(6) { animation-delay: 0.3s; }
.author-item:nth-child(7) { animation-delay: 0.35s; }
.author-item:nth-child(8) { animation-delay: 0.4s; }
.author-item:nth-child(9) { animation-delay: 0.45s; }

.author-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.author-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    background: rgba(231, 231, 231, 0.02);
    border: 1px solid rgba(231, 231, 231, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 231, 231, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.author-link:hover .author-card {
    transform: translateY(-4px);
    border-color: rgba(231, 231, 231, 0.2);
    background: rgba(231, 231, 231, 0.04);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.author-link:hover .author-card::before {
    opacity: 1;
}

.author-link:hover .author-card-portrait {
    transform: scale(1.05);
}

html.day-mode .author-card {
    background: rgba(90, 82, 73, 0.03);
    border-color: rgba(90, 82, 73, 0.15);
}

html.day-mode .author-link:hover .author-card {
    background: rgba(90, 82, 73, 0.05);
    border-color: rgba(90, 82, 73, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Portrait de l'auteur */
.author-card-portrait-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-card-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(231, 231, 231, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html.day-mode .author-card-portrait {
    border-color: rgba(90, 82, 73, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.author-card-portrait-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(231, 231, 231, 0.05);
    border: 2px solid rgba(231, 231, 231, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.author-link:hover .author-card-portrait-placeholder {
    transform: scale(1.05);
}

html.day-mode .author-card-portrait-placeholder {
    background: rgba(90, 82, 73, 0.08);
    border-color: rgba(90, 82, 73, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.author-card-initials {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: rgba(231, 231, 231, 0.4);
    letter-spacing: 0.05em;
}

html.day-mode .author-card-initials {
    color: rgba(90, 82, 73, 0.4);
}

/* Contenu de la carte */
.author-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-card-name {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text-night);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: center;
}

html.day-mode .author-card-name {
    color: var(--text-primary);
}

.author-card-years {
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    color: rgba(231, 231, 231, 0.7);
    margin: 0 0 1rem 0;
    font-style: italic;
    text-align: center;
}

html.day-mode .author-card-years {
    color: var(--text-secondary);
}

.author-card-bio {
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    color: rgba(231, 231, 231, 0.75);
    line-height: 1.7;
    margin: 0 0 1.25rem 0;
    text-align: center;
    flex: 1;
}

html.day-mode .author-card-bio {
    color: var(--text-secondary);
}

.author-card-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(231, 231, 231, 0.1);
}

html.day-mode .author-card-meta {
    border-top-color: rgba(90, 82, 73, 0.15);
}

.author-card-movement,
.author-card-period {
    font-family: 'Lora', serif;
    font-size: 0.8125rem;
    color: rgba(231, 231, 231, 0.6);
    font-style: italic;
    padding: 0.375rem 0.75rem;
    background: rgba(231, 231, 231, 0.08);
    border-radius: 4px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.author-link:hover .author-card-movement,
.author-link:hover .author-card-period {
    background: rgba(231, 231, 231, 0.12);
    color: rgba(231, 231, 231, 0.8);
}

html.day-mode .author-card-movement,
html.day-mode .author-card-period {
    background: rgba(90, 82, 73, 0.1);
    color: rgba(90, 82, 73, 0.6);
}

html.day-mode .author-link:hover .author-card-movement,
html.day-mode .author-link:hover .author-card-period {
    background: rgba(90, 82, 73, 0.15);
    color: rgba(90, 82, 73, 0.8);
}

/* Pagination - Design moderne */
.authors-pagination {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(207, 198, 184, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

html:not(.day-mode) .authors-pagination {
    border-top-color: rgba(231, 231, 231, 0.1);
}

.pagination-info {
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    color: rgba(231, 231, 231, 0.7);
    font-style: italic;
}

html.day-mode .pagination-info {
    color: var(--text-secondary);
}

.pagination-links {
    display: flex;
    gap: 1rem;
}

.pagination-link {
    font-family: 'Lora', serif;
    font-size: 0.9375rem;
    color: rgba(231, 231, 231, 0.75);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(231, 231, 231, 0.2);
    background: rgba(231, 231, 231, 0.02);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pagination-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(231, 231, 231, 0.05);
    transition: left 0.3s ease;
}

.pagination-link:hover {
    color: rgba(231, 231, 231, 0.95);
    border-color: rgba(231, 231, 231, 0.4);
    background: rgba(231, 231, 231, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pagination-link:hover::before {
    left: 0;
}

html.day-mode .pagination-link {
    color: var(--text-secondary);
    border-color: rgba(90, 82, 73, 0.2);
    background: rgba(90, 82, 73, 0.03);
}

html.day-mode .pagination-link:hover {
    color: var(--text-primary);
    border-color: rgba(90, 82, 73, 0.4);
    background: rgba(90, 82, 73, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Empty states */
.authors-empty {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem 1rem;
}

.authors-empty-message {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.authors-empty-suggestions {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: left;
    max-width: 30ch;
    margin: 0 auto;
}

.authors-empty-suggestions p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.authors-empty-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.authors-empty-suggestions li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.authors-empty-suggestions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-placeholder);
}

.authors-empty-suggestions a,
.authors-empty-suggestion a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.authors-empty-suggestions a:hover,
.authors-empty-suggestion a:hover {
    opacity: 0.7;
}

html:not(.day-mode) .authors-empty-suggestions a,
html:not(.day-mode) .authors-empty-suggestion a {
    color: var(--text-night);
}

.authors-empty-suggestion {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .authors-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .authors-index-container {
        padding: calc(82px + 1rem) 1.25rem 1.5rem; /* Header fixe (82px) + espacement */
        max-width: 100%;
    }

    .authors-title {
        font-size: 1.75rem;
    }

    .authors-subtitle {
        font-size: 0.9rem;
    }

    .authors-toolbar {
        padding: 0.75rem 0;
        margin-bottom: 1.25rem;
    }

    .authors-index-letters {
        gap: 0.4rem;
    }

    .authors-index-letter {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.85rem;
        padding: 0 0.4rem;
    }

    .authors-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .author-card {
        padding: 1.5rem;
    }

    .author-card-portrait,
    .author-card-portrait-placeholder {
        width: 100px;
        height: 100px;
    }

    .author-card-initials {
        font-size: 2rem;
    }

    .author-card-name {
        font-size: 1.25rem;
    }

    .pagination-links {
        flex-direction: column;
        width: 100%;
    }

    .pagination-link {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .authors-index-container {
        max-width: 1400px;
    }
}

