/* --- LISTE DES AUTEURS --- */
.lys-authors-text{
    text-align: center;
    margin-bottom: 15px;
}

.lys-authors-wrapper { position: relative; min-height: 200px; }
.lys-authors-wrapper.loading { opacity: 0.5; pointer-events: none; }

.lys-alpha-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}
.lys-alpha-filter a {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: #022a5b;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: bold;
    transition: all 0.2s;
    cursor: pointer;
}
.lys-alpha-filter a:hover { background: #e0e0e0; }
.lys-alpha-filter a.active { background: #022a5b; color: #fff; border-color: #022a5b; }

.lys-authors-group { margin-bottom: 30px; }
.lys-authors-group h3 {
    position: -webkit-sticky; position: sticky;
    top: var(--sticky-top-offset, 0px);
    background: white; z-index: 10;
    border-bottom: 1px solid #022a5b;
    padding: 10px 0; margin: 0 0 15px 0;
    font-size: 1.5em; color: #022a5b;
    font-family: "League Spartan", sans-serif !important;
}

.lys-authors-names {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .lys-authors-names { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lys-authors-names { grid-template-columns: repeat(5, 1fr); } }

.lys-authors-names li {
    text-align: left; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
    font-family: Sanchez; color: #022a5b;
}

.lys-authors-pagination { margin-top: 40px; text-align: center; }
.lys-authors-pagination ul { list-style: none; padding: 0; display: inline-flex; gap: 5px; }
.lys-authors-pagination a, .lys-authors-pagination span {
    padding: 8px 12px; border: 1px solid #022a5b;
    text-decoration: none; display: block; color: 022a5b;
}
.lys-authors-pagination a:hover { background: #022a5b; color: #fff; }
.lys-authors-pagination .current { background: #022a5b; color: #fff; border-color: #022a5b; }
.page-numbers { display: inline-flex !important; }


/* --- BREADCRUMB --- */
.lys-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #022a5b;
}
.lys-breadcrumb li {
    display: inline-flex;
    align-items: center;
}
.lys-breadcrumb .separator {
    margin: 0 8px;
    color: #022a5b;
}
.lys-breadcrumb a {
    text-decoration: none;
    color: inherit;
}
.lys-breadcrumb a:hover {
    text-decoration: underline;
}


/* --- DÉTAIL AUTEUR --- */
.lys-author-container { max-width: 1200px; margin: 0 auto; }
.lys-author-breadcrumb { margin-bottom: 20px; font-size: 0.9em; color: #022a5b; }
.lys-author-profile { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; }
.lys-author-photo { flex: 0 0 40%; max-width: 40%; }
.lys-author-photo img { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.lys-author-bio { flex: 0 0 calc(60% - 30px); max-width: calc(60% - 30px); }
.lys-author-bio h1 { margin-top: 0; color: #022a5b; font-family: 'League Spartan', sans-serif; }
.lys-author-bio h2 { border-bottom: 1px solid #022a5b; padding-bottom: 10px; margin-bottom: 20px; color: #022a5b; font-family: 'League Spartan', sans-serif; }
.lys-bio-content { font-family: Sanchez; color: #022a5b; }

.lys-author-products h2 { border-bottom: 1px solid #022a5b; padding-bottom: 10px; margin-bottom: 20px; color: #022a5b; font-family: 'League Spartan', sans-serif; }

@media (max-width: 768px) {
    .lys-author-profile { flex-direction: column; }
    .lys-author-photo, .lys-author-bio { flex: 0 0 100% !important; max-width: 100% !important; }
    .lys-author-products-list .oxy-post { width: 50% !important; }
}
@media (max-width: 480px) {
    .lys-author-products-list .oxy-post { width: 100% !important; }
}


/* --- PRODUITS STYLE OXYGEN --- */
.lys-author-products-list.oxy-posts {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    margin: 0 -10px;
}

.lys-author-products-list .oxy-post {
    display: inline-block;
    text-align: left;
    margin-bottom: 45px;
    padding-bottom: 1em; /* Réduit car on utilise flexbox maintenant */
    position: relative;
    box-sizing: border-box;
}

/* Flexbox pour aligner le contenu */
.lys-author-products-list .postlist_item_inside {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-bottom: 1em; /* Espace interne */
}

.lys-author-products-list .oxy-post .postlist_item_inside::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1em;
    left: 1em;
    z-index: -1;
    transition: all .2s linear;
    background-color: transparent;
}

.lys-author-products-list .oxy-post:focus .postlist_item_inside::after,
.lys-author-products-list .oxy-post:hover .postlist_item_inside::after,
.lys-author-products-list .oxy-post:focus-within .postlist_item_inside::after {
    background-color: #f4f4f4;
    box-shadow: 0 0 10px rgba(0, 0, 0, .05);
}

.lys-author-products-list .oxy-post-title {
    margin-top: 10px;
    font-size: .9em;
    font-weight: 600;
    line-height: 1.2em;
    text-align: center;
    padding: 0 8px;
    /* Flex grow pour pousser le reste vers le bas si besoin, ou juste margin-bottom */
    margin-bottom: 5px;
}

.lys-author-products-list .postlist_author_container {
    color: #30c2d9;
    text-transform: uppercase;
    font-size: .8em;
    margin-top: 5px;
    text-align: center;
    margin-bottom: 10px;
}

/* Le prix pousse le bouton vers le bas */
.lys-author-products-list .postlist_price_container {
    text-align: center;
    margin-top: auto; /* C'est ici la magie : pousse tout ce qui est au-dessus vers le haut */
    margin-bottom: 15px;
    position: relative; /* Plus de position absolute */
    bottom: auto;
    left: auto;
    right: auto;
}

.lys-author-products-list .postlist_price_container .woocommerce-Price-amount.amount {
    color: #022a5b;
    font-size: 1.4em;
}

.lys-author-products-list .postlist_lnk {
    text-align: center;
    position: relative; /* Plus de position absolute */
    bottom: auto;
    left: auto;
    right: auto;
    margin-bottom: 10px;
}

.lys-author-products-list .postlist_lnk .oxy-read-more {
    border-radius: 100vh;
    padding: calc(.85rem - 2px) calc(1.5rem - 2px) calc(.75rem - 2px);
    background-color: #022a5b;
    border: 2px solid #022a5b;
    color: #fff;
    transition: all .2s ease;
    text-transform: uppercase;
    font-weight: 600;
    font-family: Spartan;
    font-size: .9em;
    display: inline-block;
    text-decoration: none;
}

.lys-author-products-list .oxy-post:hover .postlist_lnk .oxy-read-more,
.lys-author-products-list .oxy-post:focus-within .postlist_lnk .oxy-read-more {
    background-color: #fff;
    border: 2px solid #022a5b;
    color: #022a5b;
}

.lys-author-products-list .postlist_book_flip {
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: 62.5% center;
    transition: transform .4s;
}

.lys-author-products-list .oxy-post:hover .postlist_book_flip,
.lys-author-products-list .oxy-post:focus .postlist_book_flip,
.lys-author-products-list .oxy-post:focus-within .postlist_book_flip{
    transform: translateX(-25%) rotateY(-180deg);
    transition: transform .7s;
    border: none;
}

.lys-author-products-list .postlist_book_front {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    filter: drop-shadow(0 0px 5px rgba(0,0,0,0.2));
    transform: rotateX(0deg);
}

.lys-author-products-list .postlist_book_back {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-size: .9em;
    line-height: 1.2;
    padding: 20px;
    backface-visibility: hidden;
    transform: rotateY( 180deg );
    background: #fff;
    overflow: hidden;
}
