.collection-products-title {
    color: #022a5b;
    margin-bottom: 10px;
}

.collection-products-title + hr {
    border: 0;
    border-top: 2px solid #022a5b;
    margin-bottom: 30px;
}

.collection-products-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px; /* Compensation du padding des items */
}

.collection-products-loader {
    text-align: center;
    padding: 20px;
    width: 100%;
}

.collection-products-loader img {
    width: 50px;
    height: 50px;
}

/* --- STYLES PRODUITS (COPIÉS DE AUTEURS LYS BLEU) --- */

.collection-products-grid .oxy-post {
    display: inline-block;
    text-align: left;
    margin-bottom: 45px;
    padding-bottom: 1em;
    position: relative;
    box-sizing: border-box;
    width: 25%; /* 4 colonnes par défaut */
    padding: 10px;
}
/*@media only screen and (min-width: 992px) {*/
/*    .collection-products-grid .oxy-post { width: 25% !important; }*/
/*}*/
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .collection-products-grid .oxy-post { width: 33% !important; }
}
@media (max-width: 768px) {
    .collection-products-grid .oxy-post { width: 50% !important; }
    .collection-products-title{ text-align: center;}
}
@media (max-width: 480px) {
    .collection-products-grid .oxy-post { width: 100% !important; }
}

.collection-products-grid .postlist_item_inside {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-bottom: 1em;
}

.collection-products-grid .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;
}

.collection-products-grid .oxy-post:focus .postlist_item_inside::after,
.collection-products-grid .oxy-post:hover .postlist_item_inside::after,
.collection-products-grid .oxy-post:focus-within .postlist_item_inside::after {
    background-color: #f4f4f4;
    box-shadow: 0 0 10px rgba(0, 0, 0, .05);
}

.collection-products-grid .oxy-post-title {
    margin-top: 10px;
    font-size: .9em;
    font-weight: 600;
    line-height: 1.2em;
    text-align: center;
    padding: 0 8px;
    margin-bottom: 5px;
}

.collection-products-grid .postlist_author_container {
    color: #022a5b;
    text-transform: uppercase;
    font-size: .8em;
    margin-top: 5px;
    text-align: center;
    margin-bottom: 10px;
}

.collection-products-grid .postlist_price_container {
    text-align: center;
    margin-top: auto;
    margin-bottom: 15px;
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
}

.collection-products-grid .postlist_price_container .woocommerce-Price-amount.amount {
    color: #022a5b;
    font-size: 1.4em;
}

.collection-products-grid .postlist_lnk {
    text-align: center;
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-bottom: 10px;
}

.collection-products-grid .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;
}

.collection-products-grid .oxy-post:hover .postlist_lnk .oxy-read-more,
.collection-products-grid .oxy-post:focus-within .postlist_lnk .oxy-read-more {
    background-color: #fff;
    border: 2px solid #022a5b;
    color: #022a5b;
}

.collection-products-grid .postlist_book_flip {
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: 62.5% center;
    transition: transform .4s;
}

.collection-products-grid .oxy-post:hover .postlist_book_flip,
.collection-products-grid .oxy-post:focus .postlist_book_flip,
.collection-products-grid .oxy-post:focus-within .postlist_book_flip{
    transform: translateX(-25%) rotateY(-180deg);
    transition: transform .7s;
    border: none;
}

.collection-products-grid .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);
}

.collection-products-grid .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 );
    overflow: hidden;
}

.collection-products-grid .livraison_lnk{
    display: none;
    position: absolute;
    bottom: 3px;
    width: 100%;
    font-size: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: #022a5b;
}

.collection-products-grid .oxy-post:hover .livraison_lnk{
    display: block;
}

/* --- BLOC DIRECTEUR COLLECTION --- */
.director-block-title {
    color: #022a5b;
    margin-bottom: 10px;
}

.director-block-title + hr {
    border: 0;
    border-top: 2px solid #022a5b;
    margin-bottom: 20px;
}

.director-block-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.director-block-photo {
    flex: 0 0 20%;
    max-width: 20%;
}

.director-block-photo img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.director-block-text {
    flex: 1;
}

.director-block-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.director-block-bio-title {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #022a5b;
}

@media (max-width: 768px) {
    .director-block-content {
        flex-direction: column;
    }
    .director-block-photo {
        flex: 0 0 100%;
        max-width: 150px; /* Limite la taille de la photo sur mobile */
        margin: 0 auto;
    }
}
