
/* ==========================================================
   WANTEDPEDO — HEADER
   ========================================================== */

.wp-site-header {
    width: 100%;
    position: relative;
    z-index: 999;
}

.wp-logo-bar {
    background: #fff;
    text-align: center;
}

.wp-logo-link {
    display: inline-block;
}

.wp-logo {
    display: block;
    width: auto;
    max-width: 60%;
    height: auto;
    margin: 0 auto;
}

.wp-nav-bar {
    background: #000;
    color: #fff;
}

.wp-nav-inner {
    max-width: 1450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.wp-primary-navigation {
    flex: 1 1 auto;
}

.wp-primary-menu,
.wp-primary-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-primary-menu {
    display: flex;
    align-items: stretch;
}

.wp-primary-menu > li {
    position: relative;
}

.wp-primary-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 10px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    transition: background .2s ease;
}

.wp-primary-menu > li:hover > a,
.wp-primary-menu > li:focus-within > a {
    background: #222;
}

.wp-primary-menu .menu-item-has-children > a::after {
    content: "▾";
    margin-left: 5px;
    font-size: 9px;
}

.wp-primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 230px;
    background: #111;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 1000;
}

.wp-primary-menu li:hover > .sub-menu,
.wp-primary-menu li:focus-within > .sub-menu {
    display: block;
}

.wp-primary-menu .sub-menu li {
    position: relative;
}

.wp-primary-menu .sub-menu a {
    min-height: auto;
    padding: 11px 14px;
    white-space: normal;
}

.wp-primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.wp-primary-menu .sub-menu .menu-item-has-children > a::after {
    content: "›";
    margin-left: auto;
    padding-left: 15px;
}

.wp-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.wp-support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    margin-left: 6px;
    background: #b00000;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.wp-search-toggle {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    font-size: 17px;
}

.wp-mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.wp-mobile-toggle > span:not(.screen-reader-text) {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.wp-search-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0,0,0,.94);
    z-index: 99999;
}

.wp-search-overlay.is-open {
    display: flex;
}

.wp-search-form {
    display: flex;
    width: min(700px, 100%);
}

.wp-search-form label {
    flex: 1;
}

.wp-search-form input {
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    border: 0;
    padding: 0 18px;
    font-size: 18px;
}

.wp-search-form button {
    border: 0;
    padding: 0 20px;
    background: #b00000;
    color: #fff;
    cursor: pointer;
}

.wp-search-close {
    position: absolute;
    top: 25px;
    right: 35px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* MOBILE */

@media (max-width: 1100px) {

    .wp-logo {
        max-width: 85%;
    }

    .wp-nav-inner {
        position: relative;
        justify-content: space-between;
    }

    .wp-mobile-toggle {
        display: block;
    }

    .wp-primary-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .wp-primary-navigation.is-open {
        display: block;
    }

    .wp-primary-menu {
        display: block;
    }

    .wp-primary-menu a {
        min-height: auto;
        padding: 13px 18px;
    }

    .wp-primary-menu .sub-menu,
    .wp-primary-menu .sub-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        box-shadow: none;
        background: #151515;
    }

    .wp-primary-menu .sub-menu a {
        padding-left: 35px;
    }

    .wp-primary-menu .sub-menu .sub-menu a {
        padding-left: 52px;
    }
}

/* WANTEDPEDO — FOOTER */


/* ==========================================================
   WANTEDPEDO — FOOTER
   ========================================================== */

.wp-site-footer {
    background: #000;
    color: #fff;
    padding: 0 20px 10px;
}

.wp-footer-inner {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
}

.wp-footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 25px;
    margin: 0;
    padding: 15px 0;
    list-style: none;
}

.wp-footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.wp-footer-menu a:hover,
.wp-footer-menu a:focus {
    text-decoration: underline;
}

.wp-footer-divider {
    height: 1px;
    background: rgba(255,255,255,.22);
}

.wp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
}

.wp-footer-copyright {
    margin: 0;
    font-size: 12px;
}

.wp-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
}

.wp-footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 700px) {

    .wp-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .wp-footer-menu {
        flex-direction: column;
        align-items: center;
    }
}


/* ==========================================================
   WANTEDPEDO — HOMEPAGE
   Référence : design production validé
   ========================================================== */

.wp-home {
    width: 100%;
    background: #fff;
    color: #111;
}

.wp-home-top,
.wp-home-recent,
.wp-editorial,
.wp-home-native-content {
    width: min(1450px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.wp-home-top {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
    padding-top: 35px;
}

.wp-section-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 13px;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

/* ---------- GRAND SLIDER À LA UNE ---------- */

.wp-slider {
    position: relative;
    overflow: hidden;
    background: #111;
}

.wp-hero-slide {
    display: none;
    position: relative;
    min-height: 510px;
}

.wp-hero-slide.is-active {
    display: block;
}

.wp-hero-slide > a {
    display: block;
    position: relative;
    height: 510px;
    color: #fff;
    text-decoration: none;
}

.wp-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.45) 35%,
            rgba(0,0,0,.05) 70%
        );
}

.wp-hero-content {
    position: absolute;
    left: 32px;
    right: 80px;
    bottom: 28px;
}

.wp-hero-content h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(23px, 2vw, 34px);
    line-height: 1.12;
    font-weight: 700;
}

.wp-hero-content time {
    color: rgba(255,255,255,.88);
    font-size: 13px;
}

.wp-slider-prev,
.wp-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 54px;
    border: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.wp-slider-prev {
    left: 0;
}

.wp-slider-next {
    right: 0;
}

.wp-slider-prev:hover,
.wp-slider-next:hover {
    background: #b00000;
}

/* ---------- DISPARITION ---------- */

.wp-home-missing {
    min-width: 0;
}

.wp-missing-card {
    position: relative;
    overflow: hidden;
    min-height: 510px;
    background: #111;
}

.wp-missing-card > a {
    position: relative;
    display: block;
    height: 510px;
    color: #fff;
    text-decoration: none;
}

.wp-missing-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-missing-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.82),
            rgba(0,0,0,.05) 65%
        );
}

.wp-missing-card h2 {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 25px;
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
}

/* ---------- ARTICLES RÉCENTS ---------- */

.wp-home-recent {
    padding-top: 38px;
}

.wp-recent-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wp-news-card {
    min-width: 0;
}

.wp-news-card-link {
    color: inherit;
    text-decoration: none;
}

.wp-news-card-image {
    position: relative;
    overflow: hidden;
    height: 285px;
    background: #171717;
}

.wp-news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.wp-news-card:hover img {
    transform: scale(1.025);
}

.wp-news-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.9),
            rgba(0,0,0,.03) 70%
        );
}

.wp-news-card-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 17px;
    color: #fff;
}

.wp-news-card-content h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.wp-news-card-content time {
    font-size: 12px;
    color: rgba(255,255,255,.82);
}

/* ---------- ZONE ONGLETS + MUR VIDÉO ---------- */

.wp-editorial {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.wp-tabs {
    min-width: 0;
}

.wp-tab-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    border-bottom: 3px solid #b00000;
}

.wp-tab-buttons button {
    min-height: 54px;
    border: 0;
    padding: 8px 10px;
    background: #ededed;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.wp-tab-buttons button:hover {
    background: #ddd;
}

.wp-tab-buttons button.is-active {
    background: #b00000;
    color: #fff;
}

.wp-tab-content {
    min-height: 360px;
    padding: 24px 0;
}

.wp-tab-panel {
    display: none;
}

.wp-tab-panel.is-active {
    display: block;
}

.wp-tab-placeholder {
    margin: 0;
    padding: 35px;
    background: #f4f4f4;
    text-align: center;
    font-weight: 700;
}

/* ---------- ARTICLES IMPORTANTS ---------- */

.wp-list-card {
    border-bottom: 1px solid #ddd;
}

.wp-list-card > a {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: center;
    padding: 14px 0;
    color: #111;
    text-decoration: none;
}

.wp-list-card img {
    display: block;
    width: 180px;
    height: 105px;
    object-fit: cover;
}

.wp-list-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.25;
}

.wp-list-card time {
    font-size: 12px;
    color: #777;
}

/* ---------- MUR VIDÉO ---------- */

.wp-video-wall {
    min-height: 360px;
    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
        #222;
}

.wp-video-wall > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 360px;
    color: #fff;
    text-decoration: none;
}

.wp-video-wall span {
    padding: 12px 20px;
    border: 2px solid #fff;
    font-size: 26px;
    font-weight: 700;
}

/* ---------- FAQ / CONTENU NATIF ---------- */

.wp-home-native-content {
    padding-bottom: 35px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {

    .wp-home-top,
    .wp-editorial {
        grid-template-columns: 1fr;
    }

    .wp-missing-card,
    .wp-missing-card > a {
        min-height: 430px;
        height: 430px;
    }

    .wp-recent-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wp-tab-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .wp-home-top,
    .wp-home-recent,
    .wp-editorial,
    .wp-home-native-content {
        width: min(100% - 24px, 1450px);
    }

    .wp-home-top {
        padding-top: 20px;
        gap: 22px;
    }

    .wp-hero-slide,
    .wp-hero-slide > a {
        min-height: 380px;
        height: 380px;
    }

    .wp-hero-content {
        left: 18px;
        right: 50px;
        bottom: 18px;
    }

    .wp-missing-card,
    .wp-missing-card > a {
        min-height: 380px;
        height: 380px;
    }

    .wp-recent-track {
        grid-template-columns: 1fr;
    }

    .wp-news-card-image {
        height: 260px;
    }

    .wp-tab-buttons {
        display: flex;
        overflow-x: auto;
        border-bottom-width: 2px;
    }

    .wp-tab-buttons button {
        flex: 0 0 170px;
    }

    .wp-list-card > a {
        grid-template-columns: 110px 1fr;
        gap: 12px;
    }

    .wp-list-card img {
        width: 110px;
        height: 80px;
    }
}

/* ==========================================================
   HOMEPAGE — CONTENU DES 5 ONGLETS
   1 article principal + 3 articles secondaires
   ========================================================== */

.wp-tab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 24px;
    align-items: stretch;
}

/* ARTICLE PRINCIPAL */

.wp-tab-featured-card,
.wp-tab-featured-card > a {
    height: 100%;
}

.wp-tab-featured-card > a {
    display: flex;
    flex-direction: column;
    color: #111;
    text-decoration: none;
    background: #fff;
}

.wp-tab-featured-image {
    overflow: hidden;
    height: 285px;
    background: #111;
}

.wp-tab-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.wp-tab-featured-card:hover img {
    transform: scale(1.025);
}

.wp-tab-featured-content {
    padding: 16px 4px 5px;
}

.wp-tab-featured-content h3 {
    margin: 0 0 7px;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 700;
}

.wp-tab-featured-content time,
.wp-tab-small-card time {
    color: #b00000;
    font-size: 12px;
    font-weight: 600;
}

.wp-tab-featured-content p {
    margin: 10px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* 3 ARTICLES SECONDAIRES */

.wp-tab-secondary {
    display: flex;
    flex-direction: column;
}

.wp-tab-small-card {
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.wp-tab-small-card:last-child {
    border-bottom: 0;
}

.wp-tab-small-card > a {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    color: #111;
    text-decoration: none;
}

.wp-tab-small-card img {
    display: block;
    width: 145px;
    height: 95px;
    object-fit: cover;
}

.wp-tab-small-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 850px) {

    .wp-tab-layout {
        grid-template-columns: 1fr;
    }

    .wp-tab-featured-image {
        height: 330px;
    }
}

@media (max-width: 520px) {

    .wp-tab-featured-image {
        height: 240px;
    }

    .wp-tab-featured-content h3 {
        font-size: 19px;
    }

    .wp-tab-small-card > a {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 11px;
    }

    .wp-tab-small-card img {
        width: 105px;
        height: 78px;
    }

    .wp-tab-small-card h3 {
        font-size: 14px;
    }
}


/* ==========================================================
   ARCHIVES — CATEGORIES / TAGS / RECHERCHE
   ========================================================== */

.wp-archive {
    width: min(1450px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 70px;
}

.wp-archive-header {
    margin-bottom: 35px;
    padding-bottom: 18px;
    border-bottom: 3px solid #b00000;
}

.wp-archive-kicker {
    display: block;
    margin-bottom: 5px;
    color: #b00000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.wp-archive-header h1 {
    margin: 0;
    color: #111;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.wp-archive-description {
    max-width: 900px;
    margin-top: 14px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}


/* GRILLE */

.wp-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}


/* CARTE */

.wp-archive-card {
    min-width: 0;
    background: #fff;
    border-bottom: 2px solid #eee;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.wp-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.wp-archive-card-link {
    display: block;
    height: 100%;
    color: #111;
    text-decoration: none;
}

.wp-archive-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111;
}

.wp-archive-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.wp-archive-card:hover .wp-archive-card-image img {
    transform: scale(1.025);
}

.wp-archive-card-content {
    padding: 16px 16px 20px;
}

.wp-archive-card-content time {
    display: block;
    margin-bottom: 7px;
    color: #b00000;
    font-size: 12px;
    font-weight: 700;
}

.wp-archive-card-content h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    line-height: 1.22;
    font-weight: 700;
}

.wp-archive-card-intro {
    margin-top: 11px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}


/* PAGINATION */

.wp-pagination {
    margin-top: 45px;
}

.wp-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-pagination .page-numbers a,
.wp-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 12px;
    color: #111;
    background: #f2f2f2;
    text-decoration: none;
    font-weight: 600;
}

.wp-pagination .page-numbers .current {
    color: #fff;
    background: #b00000;
}

.wp-pagination .page-numbers a:hover {
    color: #fff;
    background: #111;
}


/* AUCUN RESULTAT */

.wp-no-results {
    padding: 30px;
    background: #f5f5f5;
    border-left: 4px solid #b00000;
    font-size: 16px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .wp-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .wp-archive {
        width: min(100% - 28px, 1450px);
        padding: 35px 0 50px;
    }

    .wp-archive-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .wp-archive-card-content h2 {
        font-size: 18px;
    }

    .wp-archive-card-intro {
        font-size: 13px;
    }
}


/* ==========================================================
   CORRECTIONS PREVIEW — ARCHIVES + NAVBAR DESKTOP
   ========================================================== */

/* Force notre grille native à 3 colonnes sur desktop. */
body .wp-archive .wp-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Navbar : conserve tous les éléments sur une seule ligne. */
@media (min-width: 1201px) {

    .wp-site-nav,
    .wp-site-nav .menu,
    .wp-site-nav ul {
        flex-wrap: nowrap;
    }

    .wp-site-nav a {
        white-space: nowrap;
    }
}

/* Tablette */
@media (max-width: 1000px) {

    body .wp-archive .wp-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 650px) {

    body .wp-archive .wp-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PAGES DE LISTINGS NATIVES
   ========================================================= */

.wp-listing-page {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 70px;
}

.wp-listing-header {
    margin: 0 auto 38px;
    text-align: center;
}

.wp-listing-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.wp-listing-divider {
    width: 90px;
    height: 3px;
    margin: 20px auto;
    background: #ca161a;
}

.wp-listing-header p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.wp-listing-page .wp-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.wp-listing-pagination {
    margin-top: 45px;
}

.wp-listing-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-listing-pagination a,
.wp-listing-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.wp-listing-pagination .current,
.wp-listing-pagination a:hover {
    color: #ca161a;
}

.wp-listing-empty {
    text-align: center;
}

@media (max-width: 1000px) {
    .wp-listing-page .wp-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .wp-listing-page {
        width: min(100% - 24px, 1400px);
        padding-top: 35px;
    }

    .wp-listing-page .wp-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PAGES EDITORIALES NATIVES
   ========================================================= */

.wp-native-page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0 70px;
}

.wp-native-page-content {
    font-size: 1rem;
    line-height: 1.75;
}

.wp-native-page-content > :first-child {
    margin-top: 0;
}

.wp-native-page-content h1,
.wp-native-page-content h2,
.wp-native-page-content h3,
.wp-native-page-content h4 {
    line-height: 1.25;
}

.wp-native-page-content h1 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.wp-native-page-content h2 {
    margin: 40px 0 18px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.wp-native-page-content h3 {
    margin: 32px 0 15px;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.wp-native-page-content p {
    margin: 0 0 1.25em;
}

.wp-native-page-content img {
    max-width: 100%;
    height: auto;
}

.wp-native-page-content figure {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.wp-native-page-content iframe,
.wp-native-page-content video {
    max-width: 100%;
}

.wp-native-page-content blockquote {
    margin: 30px 0;
    padding: 5px 0 5px 22px;
    border-left: 4px solid #ca161a;
}

.wp-native-page-content a {
    overflow-wrap: anywhere;
}

.wp-native-page-content ul,
.wp-native-page-content ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.wp-native-page-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

@media (max-width: 650px) {
    .wp-native-page {
        width: calc(100% - 24px);
        padding: 35px 0 50px;
    }
}

/* =========================================================
   LIGHTBOX NATIVE — STICKERS
   ========================================================= */

.wantedpedo-lightbox {
    cursor: zoom-in;
}

.wantedpedo-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    background: rgba(0, 0, 0, .92);
}

.wantedpedo-lightbox-overlay.is-open {
    display: flex;
}

.wantedpedo-lightbox-image {
    display: block;
    max-width: min(1200px, 90vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wantedpedo-lightbox-close,
.wantedpedo-lightbox-prev,
.wantedpedo-lightbox-next {
    position: absolute;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.wantedpedo-lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 48px;
}

.wantedpedo-lightbox-prev,
.wantedpedo-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
}

.wantedpedo-lightbox-prev {
    left: 25px;
}

.wantedpedo-lightbox-next {
    right: 25px;
}

body.wantedpedo-lightbox-open {
    overflow: hidden;
}

@media (max-width: 650px) {
    .wantedpedo-lightbox-overlay {
        padding: 55px 45px;
    }

    .wantedpedo-lightbox-prev {
        left: 8px;
    }

    .wantedpedo-lightbox-next {
        right: 8px;
    }

    .wantedpedo-lightbox-close {
        top: 10px;
        right: 12px;
    }
}


/* =========================================================
   WANTEDPEDO — LISTING NATIF LIVRES
   ========================================================= */

.wp-books-page {
    width: min(1280px, calc(100% - 40px));
    margin: 55px auto 70px;
}

.wp-books-header {
    margin-bottom: 42px;
}

.wp-books-header h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 700;
}

.wp-books-divider {
    width: 70px;
    height: 4px;
    margin: 20px 0;
    background: #ca161a;
}

.wp-books-header p {
    max-width: 850px;
    margin: 0;
    line-height: 1.7;
}

.wp-books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 26px;
}

.wp-book-card {
    min-width: 0;
}

.wp-book-cover {
    display: block;
    overflow: hidden;
    background: #f4f4f4;
}

.wp-book-cover img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: contain;
    transition: transform .25s ease;
}

.wp-book-cover:hover img {
    transform: scale(1.025);
}

.wp-book-title {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.wp-book-title a {
    color: #111;
    text-decoration: none;
}

.wp-book-title a:hover {
    color: #ca161a;
}

.wp-books-pagination {
    margin: 55px 0 0;
}

.wp-books-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-books-pagination a,
.wp-books-pagination span {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.wp-books-pagination a:hover,
.wp-books-pagination .current {
    color: #ca161a;
}

.wp-books-empty {
    padding: 40px 0;
}

@media (max-width: 1000px) {

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

@media (max-width: 760px) {

    .wp-books-page {
        width: min(100% - 28px, 1280px);
        margin-top: 35px;
    }

    .wp-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .wp-book-cover img {
        height: 300px;
    }
}

@media (max-width: 480px) {

    .wp-books-grid {
        grid-template-columns: 1fr;
    }

    .wp-book-cover img {
        height: auto;
        max-height: 440px;
    }

    .wp-books-pagination .page-numbers {
        gap: 12px;
    }
}

/* =========================================================
   NOUS SOUTENIR — VERSION NATIVE
   ========================================================= */

.wp-support-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.wp-support-hero {
    text-align: center;
    margin-bottom: 30px;
}

.wp-support-hero h1 {
    margin-bottom: 15px;
}

.wp-support-hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.wp-support-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin: 30px 0;
    padding: 22px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.wp-support-stats strong {
    flex: 0 0 100%;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.wp-support-stats span {
    font-weight: 600;
}

.wp-support-modal-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0 45px;
}

.wp-support-modal-trigger {
    appearance: none;
    border: 0;
    border-radius: 5px;
    padding: 13px 22px;
    background: #ca161a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        opacity .2s ease;
}

.wp-support-modal-trigger:hover,
.wp-support-modal-trigger:focus-visible {
    opacity: .9;
    transform: translateY(-2px);
}

.wp-support-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 45px;
}

.wp-support-option {
    display: block;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

a.wp-support-option {
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

a.wp-support-option:hover,
a.wp-support-option:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .13);
}

.wp-support-option h2 {
    margin-top: 0;
    color: #ca161a;
    font-size: 1.25rem;
}

.wp-support-option p:last-child {
    margin-bottom: 0;
}

.wp-support-thanks {
    text-align: center;
    margin-top: 45px;
}

.wp-support-thanks img {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto 20px;
}

/* ---------- Modales natives ---------- */

.wp-support-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.wp-support-modal.is-open {
    display: flex;
}

.wp-support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}

.wp-support-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1000px, 100%);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    padding: 35px 40px;
    background: #fff;
    color: #222;
    border: 5px double #ca161a;
    border-radius: 10px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .5);
}

.wp-support-modal-dialog h2 {
    margin-top: 0;
    padding-right: 35px;
    text-align: center;
}

.wp-support-modal-dialog li {
    margin-bottom: 8px;
}

.wp-support-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ca161a;
    font-size: 38px;
    line-height: 38px;
    cursor: pointer;
}

body.wp-support-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {

    .wp-support-page {
        padding: 25px 15px 40px;
    }

    .wp-support-options {
        grid-template-columns: 1fr;
    }

    .wp-support-modal {
        padding: 12px;
    }

    .wp-support-modal-dialog {
        max-height: calc(100vh - 24px);
        padding: 30px 20px 25px;
    }

    .wp-support-modal-dialog h2 {
        font-size: 1.25rem;
    }
}



/* ==========================================================
   E-BOUTIQUE — VERSION NATIVE
   ========================================================== */

.wp-boutique-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0 70px;
}

.wp-boutique-hero {
    max-width: 900px;
    margin: 0 auto 45px;
    text-align: center;
}

.wp-boutique-hero h1,
.wp-boutique-donation h2,
.wp-boutique-products h2 {
    margin-top: 0;
    text-align: center;
}

.wp-boutique-hero p {
    margin: 10px auto;
    line-height: 1.7;
}

.wp-boutique-donation {
    max-width: 900px;
    margin: 0 auto 60px;
}

.wp-boutique-donation > p {
    margin: 0 auto 30px;
    text-align: center;
    line-height: 1.7;
}

.wp-boutique-donation > p a {
    font-weight: 700;
    text-decoration: underline;
}

.wp-boutique-form {
    padding: 30px;
    background: #222;
    border-radius: 10px;
}

.wp-boutique-form label,
.wp-boutique-form .ff-el-input--label label {
    color: #fff;
}

.wp-boutique-form input,
.wp-boutique-form select,
.wp-boutique-form textarea {
    border-radius: 4px;
}

.wp-boutique-form .ff-btn-submit {
    display: block;
    margin: 20px auto 0;
    padding: 12px 34px;
    border: 0;
    border-radius: 4px;
    background: #ca161a;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.wp-boutique-products {
    margin-top: 55px;
}

.wp-boutique-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.wp-boutique-gallery figure {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}

.wp-boutique-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.wp-boutique-gallery figcaption {
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 900px) {
    .wp-boutique-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wp-boutique-page {
        width: min(100% - 24px, 1180px);
        padding: 30px 0 50px;
    }

    .wp-boutique-form {
        padding: 18px;
    }

    .wp-boutique-gallery {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   DISPARITIONS — MODALES NATIVES
   ========================================================== */

body.wp-modal-open {
    overflow: hidden;
}

.wp-disparition-modal-trigger {
    display: inline-block;
    margin: 12px 0;
    padding: 11px 20px;
    border: 0;
    border-radius: 3px;
    background: #b30000;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.wp-disparition-modal-trigger:hover,
.wp-disparition-modal-trigger:focus-visible {
    opacity: .88;
}

.wp-disparition-modal-trigger:active {
    transform: translateY(1px);
}

.wp-disparition-modal[hidden] {
    display: none !important;
}

.wp-disparition-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.wp-disparition-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    cursor: pointer;
}

.wp-disparition-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1000px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 42px 48px;
    background: #fff;
    color: #222;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

.wp-disparition-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 38px;
    font-weight: 300;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
}

.wp-disparition-modal__close:hover,
.wp-disparition-modal__close:focus-visible {
    color: #b30000;
}

.wp-disparition-modal__title {
    margin: 0 50px 26px 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.wp-disparition-modal__content {
    font-size: 17px;
    line-height: 1.7;
}

.wp-disparition-modal__content img {
    max-width: 100%;
    height: auto;
}

.wp-disparition-modal__content a {
    text-decoration: underline;
}

.wp-disparition-modal__content ul,
.wp-disparition-modal__content ol {
    padding-left: 24px;
}

@media (max-width: 700px) {
    .wp-disparition-modal {
        padding: 12px;
    }

    .wp-disparition-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 48px 22px 28px;
    }

    .wp-disparition-modal__title {
        margin-right: 35px;
        font-size: 27px;
    }

    .wp-disparition-modal__content {
        font-size: 16px;
    }
}

/* Disparitions — formulaire natif fermé par défaut */
.wp-disparition-form-shell[hidden] {
    display: none !important;
}


/* ==========================================================
   WANTEDPEDO — ENCART LIVRE NATIF
   ========================================================== */

.wp-native-book-banner {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 12px;
    background: #fff;
}

.wp-native-book-banner__inner {
    width: min(1080px, calc(100% - 30px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 18px;
    box-sizing: border-box;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.wp-native-book-banner__cover-link {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
}

.wp-native-book-banner__cover {
    display: block;
    width: 74px;
    height: auto;
    max-width: none;
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.wp-native-book-banner__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.wp-native-book-banner__title {
    margin-bottom: 4px;
    color: #111;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.wp-native-book-banner__text {
    color: #444;
    font-size: 14px;
    line-height: 1.45;
}

.wp-native-book-banner__cta-wrap {
    flex: 0 0 auto;
}

.wp-native-book-banner__cta {
    display: inline-block;
    padding: 11px 17px;
    border-radius: 4px;
    background: #c00000;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity .2s ease, transform .2s ease;
}

.wp-native-book-banner__cta:hover,
.wp-native-book-banner__cta:focus {
    color: #fff !important;
    opacity: .88;
    transform: translateY(-1px);
}

@media (max-width: 767px) {

    .wp-native-book-banner__inner {
        width: calc(100% - 20px);
        gap: 12px;
        padding: 10px 12px;
    }

    .wp-native-book-banner__cover {
        width: 58px;
    }

    .wp-native-book-banner__title {
        font-size: 15px;
    }

    .wp-native-book-banner__text {
        font-size: 12px;
        line-height: 1.35;
    }

    .wp-native-book-banner__cta {
        padding: 9px 11px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {

    .wp-native-book-banner__inner {
        flex-wrap: wrap;
    }

    .wp-native-book-banner__copy {
        flex: 1 1 calc(100% - 80px);
    }

    .wp-native-book-banner__cta-wrap {
        width: 100%;
        padding-left: 70px;
    }
}
