/* ===== ARTICLES CLIQUABLES ===== */

/* 1. Conteneur */
ul.wp-block-post-template > li {
    position: relative !important;
}

/* 2. Image */
ul.wp-block-post-template > li .wp-block-post-featured-image {
    overflow: hidden !important;
    position: relative !important;
    background-color: transparent !important;
    border-radius: 0px !important;
}

ul.wp-block-post-template > li .wp-block-post-featured-image img {
    transition: transform 0.5s ease-in-out !important;
    transform: scale(1) !important;
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    border-radius: 0px !important;
}

ul.wp-block-post-template > li:hover .wp-block-post-featured-image img {
    transform: scale(1.1) !important;
}

/* 3. Overlay fumé */
ul.wp-block-post-template > li .wp-block-post-featured-image::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: transparent !important;
    transition: background 0.3s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

ul.wp-block-post-template > li:hover .wp-block-post-featured-image::after {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* 4. Vitre cliquable */
ul.wp-block-post-template > li .wp-block-post-title a::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
}

/* 5. Titre rouge au survol */
ul.wp-block-post-template > li:hover h1.wp-block-post-title,
ul.wp-block-post-template > li:hover h2.wp-block-post-title,
ul.wp-block-post-template > li:hover h3.wp-block-post-title,
ul.wp-block-post-template > li:hover h4.wp-block-post-title,
ul.wp-block-post-template > li:hover h1.wp-block-post-title a,
ul.wp-block-post-template > li:hover h2.wp-block-post-title a,
ul.wp-block-post-template > li:hover h3.wp-block-post-title a,
ul.wp-block-post-template > li:hover h4.wp-block-post-title a {
    color: #7F1D1D !important;
}

/* 6. Curseur */
ul.wp-block-post-template > li:hover {
    cursor: pointer !important;
}

/* ===== IMAGE VEDETTE ARTICLES INDIVIDUELS ===== */

.wp-block-post-featured-image {
    background-color: transparent !important;
}

.wp-block-post-featured-image img {
    border-radius: 0px !important;
}

/* ===== CONTENU ARTICLES ===== */

/* Style Q&R interviews */
.wp-block-post-content blockquote {
    border-left: 3px solid #7F1D1D !important;
    padding-left: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #000000 !important;
    margin-bottom: 8px !important;
}

.wp-block-post-content blockquote p {
    font-style: normal !important;
    font-weight: 700 !important;
}

/* Images dans le contenu */
.wp-block-post-content .wp-block-image {
    margin-top: var(--wp--preset--spacing--40) !important;
    margin-bottom: var(--wp--preset--spacing--40) !important;
}

.wp-block-post-content .wp-block-image img {
    width: 100% !important;
    display: block !important;
    border-radius: 0px !important;
}

.wp-block-post-content .wp-block-image figcaption {
    font-size: 13px !important;
    color: #999999 !important;
    text-align: center !important;
    margin-top: 8px !important;
    font-style: italic !important;
    letter-spacing: 0.5px !important;
}

/* ===== VIDÉO YOUTUBE ===== */

.itw-youtube-embed {
    margin: 0 auto !important;
    max-width: 900px !important;
}

.itw-youtube-embed .wp-block-embed__wrapper {
    position: relative !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
}

.itw-youtube-embed .wp-block-embed__wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0px !important;
}

/* ===== SLIDER ===== */

.wp-block-bsb-slider {
    position: relative !important;
    z-index: 100 !important;
}

.wp-block-bsb-slider * {
    pointer-events: auto !important;
}

.wp-block-bsb-slider a {
    position: relative !important;
    z-index: 100 !important;
}

/* ===== RECHERCHE ===== */

.wp-block-search__input,
.wp-block-search__button,
.wp-block-search {
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

/* ===== FOOTER ===== */

.site-footer {
    padding: 60px 6vw !important;
}

.footer-legal-links {
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-top: 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-copyright {
    font-size: 10px;
    margin-top: 40px;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.site-footer .wp-block-columns + p,
.site-footer .wp-block-columns + .wp-block-paragraph {
    margin-top: -10px !important;
}

.site-footer .wp-block-column p {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.site-footer p:last-of-type {
    margin-top: 5px !important;
}

/* ===== THÈME SAISON — CORRECTIONS GLOBALES ===== */

:root :where(.wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder) {
    border-radius: 0px !important;
}

body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.wp-site-blocks {
    padding-bottom: 0 !important;
}
/* Lien auteur cliquable */
.wp-block-post-author-name a {
    position: relative !important;
    z-index: 15 !important;
    pointer-events: auto !important;
}