/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/*.post-area .row .col h1,
.material .wpb_text_column h1,
.row .col .wpb_text_column h1 { margin-bottom: 0.3em; }

.post-area .row .col h2,
.material .wpb_text_column h2,
.row .col .wpb_text_column h2 { margin-bottom: 0.6em; }

.post-area .row .col h3,
.material .wpb_text_column h3,
.row .col .wpb_text_column h3 { margin-bottom: 1.1em; }

.post-area .row .col h4,
.material .wpb_text_column h4,
.row .col .wpb_text_column h4 { margin-bottom: 1.5em; }

.post-area .row .col h5,
.material .wpb_text_column h5,
.row .col .wpb_text_column h5 { margin-bottom: 1.5em; }

.post-area .row .col h6,
.material .wpb_text_column h6,
.row .col .wpb_text_column h6 { margin-bottom: 1.5em; }

.post-area .row .col p,
.material .wpb_text_column p,
.row .col .wpb_text_column p { padding-bottom: 1.0em; }

.material .wpb_text_column p:last-child,
.row .col .wpb_text_column p:last-child { margin-bottom: 2em; }

.row .col .wpb_text_column blockquote,
.row .col .post-area .type-post blockquote { margin-bottom: 1em; }
.row .col .wpb_text_column ul,
.material .wpb_text_column ul,
.row .col .post-area .type-post ul { margin-bottom: 1em; }
.row .col .wpb_text_column ul li,
.material .wpb_text_column ul li,
.row .col .post-area .type-post ul li { padding-bottom: 0.3em; }*/

/* ==========================================================================
   Espacements proportionnels et responsives des titres (EM)
   ========================================================================== */

/* H2 : Grande section */
.wpb_text_column h2,
.post-area .type-post h2 {
    margin-top: 0.6em !important;
    margin-bottom: 0.35em !important;
}

/* H3 : Sous-section */
.wpb_text_column h3,
.post-area .type-post h3 {
    margin-top: 0.6em !important;
    margin-bottom: 0.35em !important;
}

/* H4 : Sous-titre mineur */
.wpb_text_column h4,
.post-area .type-post h4 {
    margin-top: 0.6em !important;
    margin-bottom: 0.35em !important;
}

/* Annule la marge haute si le titre est en tête de bloc */
.wpb_text_column > :first-child,
.wpb_text_column h1:first-child,
.wpb_text_column h2:first-child,
.wpb_text_column h3:first-child,
.wpb_text_column h4:first-child {
    margin-top: 0 !important;
}

/* Listes à puces proportionnelles */
.wpb_text_column ul,
.material .wpb_text_column ul,
.post-area .type-post ul {
    margin-top: 0.4em;
    margin-bottom: 1.6em;
    padding-left: 1.4em;
}

.wpb_text_column ul li,
.material .wpb_text_column ul li,
.post-area .type-post ul li {
    padding-bottom: 0.35em;
    line-height: 1.6;
}


.material #avis .wpb_text_column p:last-child,
.row .col #avis .wpb_text_column p:last-child { margin-bottom: 0; padding-bottom: 0; }

.material .nectar-fancy-box h3,
.row .col .nectar-fancy-box h3 { font-size: 1.7em; }

.row #priorites .col h3 { font-size: 1.8rem; }

body .related-posts[data-style="material"] .inner-wrap { background-color: #f2cd00; }

body.category-nos-priorites .article-content-wrap .grav-wrap .text span,
body.single.category-nos-priorites #page-header-bg #single-below-header > span { display: none; }

/* ==========================================================================
   Frise de vélos sur les pages archives "catégories"
   ========================================================================== */
body.category .page-header-no-bg.blog-archive-header,
body.category #page-header-wrap.blog-archive-header,
body.category #page-header-bg.blog-archive-header {
    padding-bottom: 0 !important;
}

body.category .blog-archive-header .container,
body.category .blog-archive-header .col.span_12.section-title,
body.category .blog-archive-header .inner-wrap {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.allvelo-category-frieze-wrap {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 0;
}

.allvelo-category-frieze-wrap .allvelo-category-frieze {
    display: inline-block;
    vertical-align: bottom;
    max-width: 440px;
    width: 85%;
    height: auto;
    border: none;
    outline: none;
}

@media only screen and (max-width: 768px) {
    .allvelo-category-frieze-wrap {
        margin-top: 16px;
    }
    .allvelo-category-frieze-wrap .allvelo-category-frieze {
        max-width: 320px;
        width: 90%;
    }
}

/* ==========================================================================
   Animation roulette / vélo aléatoire dans le logo
   ========================================================================== */
body #header-outer #top #logo,
body #top #logo {
    height: auto !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}

body #header-outer #top #logo .allvelo-logo-roulette,
body #top #logo .allvelo-logo-roulette {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    height: 70px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

body #header-outer #top #logo img.allvelo-roulette-img,
body #top #logo img.allvelo-roulette-img,
body #top #logo .allvelo-logo-roulette img {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    display: block !important;
    top: 0 !important;
    position: relative !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

body #header-outer #top #logo .allvelo-logo-roulette.is-locked img.allvelo-roulette-img {
    transform: scale(1.06) !important;
}

@media only screen and (max-width: 690px) {
    body #header-outer #top #logo .allvelo-logo-roulette,
    body #top #logo .allvelo-logo-roulette {
        height: 52px !important;
    }
    body #header-outer #top #logo img.allvelo-roulette-img,
    body #top #logo img.allvelo-roulette-img {
        height: 52px !important;
        max-height: 52px !important;
    }
}



@media only screen and (max-width: 768px) {
    .nectar-recent-posts-slider .nectar-recent-post-slide h2,
    .nectar-recent-posts-slider .nectar-recent-post-slide h2 a {
        font-size: 1.6rem !important;
    }
    .nectar-recent-posts-slider_multiple_visible .nectar-recent-post-slide h3,
    .nectar-recent-posts-slider_multiple_visible .nectar-recent-post-slide h3 a {
        font-size: 1.2rem !important;
    }
}

/* ==========================================================================
   Shortcode sur-mesure [allvelo_priorites_slider] (Sans scroll infini)
   ========================================================================== */
.allvelo-priorites-slider-wrap {
    position: relative;
    width: 100%;
    margin: 20px 0 30px 0;
    padding-bottom: 50px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Sécurité absolue : affichage horizontal flex quoi qu'il arrive (avant / sans Flickity) */
.allvelo-priorites-slider-wrap .allvelo-priorites-slider-inner:not(.flickity-enabled) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.allvelo-priorites-slider-wrap .allvelo-priorites-slider-inner:not(.flickity-enabled)::-webkit-scrollbar {
    display: none;
}

/* Propriétés structurelles Flickity indispensables */
.allvelo-priorites-slider-inner.flickity-enabled {
    position: relative;
    outline: none;
}

.allvelo-priorites-slider-inner .flickity-viewport {
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

.allvelo-priorites-slider-inner .flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

/* Base slide */
.allvelo-priorites-slide {
    position: relative;
    box-sizing: border-box;
    height: 480px;
    padding: 0 10px;
    outline: none;
    flex-shrink: 0 !important;
}

/* Desktop : colonnes configurables (2, 3 ou 4) */
@media only screen and (min-width: 1000px) {
    .allvelo-priorites-slider-wrap[data-columns="2"] .allvelo-priorites-slide {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
    .allvelo-priorites-slider-wrap[data-columns="3"] .allvelo-priorites-slide {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
    }
    .allvelo-priorites-slider-wrap[data-columns="4"] .allvelo-priorites-slide {
        width: 25% !important;
        flex: 0 0 25% !important;
    }
}

/* Tablette : 2 colonnes visibles */
@media only screen and (min-width: 691px) and (max-width: 999px) {
    .allvelo-priorites-slide {
        width: 50% !important;
        flex: 0 0 50% !important;
        height: 440px;
    }
}

/* Mobile : 1 colonne avec léger aperçu */
@media only screen and (max-width: 690px) {
    .allvelo-priorites-slide {
        width: 85% !important;
        flex: 0 0 85% !important;
        height: 400px;
    }
}

/* Carte intérieure */
.allvelo-priorites-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.allvelo-priorites-card-inner:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

/* Image d'arrière-plan */
.allvelo-priorites-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.allvelo-priorites-card-inner:hover .allvelo-priorites-bg {
    transform: scale(1.05);
}

/* Dégradé sombre pour lisibilité parfaite des textes */
.allvelo-priorites-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%);
    pointer-events: none;
}

/* Contenu textuel & bouton */
.allvelo-priorites-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 24px;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Badge catégorie */
.allvelo-priorites-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Titre de la priorité */
.allvelo-priorites-title {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    font-weight: 700;
}

.allvelo-priorites-title a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.allvelo-priorites-title a:hover {
    color: #f2cd00 !important;
}

@media only screen and (max-width: 690px) {
    .allvelo-priorites-title {
        font-size: 1.25rem !important;
        margin-bottom: 14px !important;
    }
    .allvelo-priorites-content {
        padding: 22px 18px;
    }
}

/* Bouton Lire */
.allvelo-priorites-btn-wrap {
    margin-top: 4px;
}

.allvelo-priorites-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #121213;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.allvelo-priorites-btn:hover {
    background-color: #000000;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Lien invisible sur toute la carte pour faciliter le clic */
.allvelo-priorites-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Puces de pagination (Page dots) */
.allvelo-priorites-slider-wrap .flickity-page-dots {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.allvelo-priorites-slider-wrap .flickity-page-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 6px;
    background: #000000;
    border-radius: 50%;
    opacity: 0.22;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.allvelo-priorites-slider-wrap .flickity-page-dots .dot.is-selected {
    opacity: 0.9;
    transform: scale(1.25);
}


.nectar-archive-tax-count { visibility: hidden;}

/* ==========================================================================
   Bouton « Lire l’article » sur les encadrés des pages d'archives
   Style bouton pilule jaune (#F3CD00) identique à "Nos revendications"
   ========================================================================== */
.allvelo-archive-read-more {
    margin-top: 18px;
    margin-bottom: 12px;
    position: relative;
    z-index: 120;
}

.allvelo-archive-read-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #F3CD00 !important;
    color: #121213 !important;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
    cursor: pointer;
    border: none;
}

.allvelo-archive-read-more-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Survol du bouton : passage au noir pour un contraste franc et moderne */
.allvelo-archive-read-more-link:hover {
    background-color: #121213 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    text-decoration: none !important;
}

/* Interaction lors du survol global de la carte */
.masonry-blog-item:hover .allvelo-archive-read-more-link,
article.post:hover .allvelo-archive-read-more-link {
    box-shadow: 0 4px 14px rgba(243, 205, 0, 0.45);
}

.allvelo-archive-read-more-link:hover .allvelo-archive-read-more-icon,
.masonry-blog-item:hover .allvelo-archive-read-more-link .allvelo-archive-read-more-icon,
article.post:hover .allvelo-archive-read-more-link .allvelo-archive-read-more-icon {
    transform: translateX(3px);
}

.masonry-blog-item .allvelo-archive-read-more + .grav-wrap,
.masonry-blog-item .allvelo-archive-read-more + .post-meta {
    margin-top: 14px !important;
}

#pied-titre { font-weight: 600; }