/*
 * Custom CSS spécifique au site.
 * Ce fichier est chargé en dernier pour permettre des ajustements projet
 * sans modifier le cœur du starter theme LN Digital.
 */


/*** BLOG ****/

/* Grilles front + bloc Derniers articles dans Gutenberg */
.lnd-grid{
    display: grid;
    gap: 1.5rem;
    row-gap: 3em;
    margin-bottom: 2em;
    padding: 0;
    list-style: none;
}

.editor-styles-wrapper .wp-block-latest-posts {
    gap: 1rem;
}

.lnd-grid--3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 992px) {
    .lnd-grid--3{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .lnd-grid--3{
        grid-template-columns: 1fr;
    }
}

/* Cards articles */
.blog-card,
.editor-styles-wrapper .wp-block-latest-posts li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-card__image img,
.editor-styles-wrapper .wp-block-latest-posts__featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-card__date,
.editor-styles-wrapper .wp-block-latest-posts__post-date {
    display: block;
    text-transform: uppercase;
    font-size: 1.18em;
    margin-top: 1em;
    margin-bottom: .5em;
}

.blog-card__title,
.editor-styles-wrapper .wp-block-latest-posts li > a {
    font-size: 1.12em;
}

.blog-card__title a,
.editor-styles-wrapper .wp-block-latest-posts li > a {
    text-decoration: none;
    color: inherit;
}

/* Pagination */
.archive-pagination,
.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.archive-pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.paging {
    text-align: center;
    padding-bottom: 4em;
    padding-top: 2em;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    font-weight: 400;
    line-height: 1;
    list-style: none;
    font-size: 1.1em;
    margin: 0;
}

.page-numbers.current {
    background-color: var(--wp--preset--color--secondary);
    color: inherit;
}

.page-numbers.dots {
    min-width: auto;
    padding: 0 0.25rem;
}

.page-numbers.next,
.page-numbers.prev {
    width: auto;
    padding: 0 0.5rem;
    border-radius: 0;
    background: transparent;
}

a.page-numbers:hover {
    background-color: color-mix(
        in srgb,
        var(--wp--preset--color--secondary) 25%,
        transparent
    );
}

.page-numbers.next:hover,
.page-numbers.prev:hover,
.page-numbers.dots:hover {
    background: transparent;
}


/* =====================================
   WOOCOMMERCE 
====================================== */

/* Archive */
.woocommerce-page article .term-description:after{
    content: '';
    position: absolute;
    right: 0px;
    width: 15%;
    height: 170px;
    background-image: url("../images/nuage.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
}

@media (max-width: 767px) {
    .woocommerce-page article .term-description:after{
        background: none;
    }
}


/* =====================================
   FAQ YOAST 
====================================== */

.schema-faq-section{
    background: transparent;
    border: 1 px solid #061244;
    border-radius: 0;
    margin-bottom: 18px;
    overflow: hidden;
    transition: all .3s ease;
}

/* Question */
.schema-faq-question{
    position: relative;
    display: block;
    cursor: pointer;
    padding: 0px 80px 0px 32px !important;
    margin: 0 !important;

    font-size:var(--wp--preset--font-size--small)!important;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    font-family: var(--font-body) !important;

    transition: .3s;
}

/* Couleur du texte quand ouvert */
.schema-faq-section.active .schema-faq-question{
    margin-bottom: 20px !important;
}

/* On supprime le + natif */
.schema-faq-question:before{
    display:none;
}

/* Cercle + / - */
.schema-faq-question:after{
    content:"+";

    position:absolute;
    right:28px;
    top:50%;
    transform:translateY(-50%);

    width:36px;
    height:36px;

    border:2px solid currentColor;
    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:28px;
    font-weight:300;
    line-height:1;

    transition:.3s;
}

/* Icône ouverte */
.schema-faq-section.active .schema-faq-question:after{
    content:"−";
}

/* Réponse */
.schema-faq-answer{
    height:0;
    overflow:hidden;
    padding:0 32px !important;
    transition:all .35s ease;
}

/* Réponse ouverte */
.schema-faq-section.active .schema-faq-answer{
    height:auto;
    padding:0 32px 10px !important;
}

/* Paragraphes */
.schema-faq-answer p{
    margin:0;
    font-size:1.05rem;
    line-height:1.7;
}


/* BLOCK TABS */
.lnd-tabs.is-vertical.tabs-vertical-align-center .lnd-tabs__nav{
    width: 80%;
}

@media (max-width: 600px)  {
    .lnd-tabs.is-vertical.tabs-vertical-align-center .lnd-tabs__nav{
        width: 100%;
    }

}

