/*
 * [AUDIT] Fichier extrait de single.php (lignes 2-1140)
 * Le CSS inline reste en place dans le PHP — ce fichier est créé pour migration future.
 * NE PAS enqueue ce fichier tant que le <style> inline n'a pas été supprimé.
 */

    /* Section Auteur */
    .author-section {
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 40px 30px;
        margin: 40px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .author-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .author-avatar img {
        border-radius: 50%;
        width: 120px;
        height: 120px;
        object-fit: cover;
        border: 3px solid #e65f0d;
    }

    .author-name {
        font-size: 1.5rem;
        font-weight: bold;
        color: #1a1a1a;
        margin: 0;
        position: relative;
        padding-left: 15px;
    }

    .author-name::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 85%;
        background-color: #e65f0d;
    }

    .author-link {
        display: inline-block;
        color: #e65f0d;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .author-link:hover {
        color: #cf5307;
        text-decoration: underline;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .author-section {
            padding: 30px 20px;
            margin: 30px 0;
        }

        .author-avatar img {
            width: 100px;
            height: 100px;
        }

        .author-name {
            font-size: 1.3rem;
        }

        .author-link {
            font-size: 0.9rem;
        }
    }

    .pub-article-mobile {
        display: none;
    }

    .pub-article-desktop {
        max-width: 100%;
    }

    .single-post-wrapper {
        /* max-width: 900px; */
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px 0;
        width: 100%;
        overflow: hidden;
    }

    /* ---------------------------- */
    @media (max-width:45em) {
        .single-post-wrapper {
            max-width: 100%;
            padding: 15px 20px;
        }
    }

    @media (max-width:35em) {
        .single-post-wrapper {
            padding: 15px 20px;
        }
    }

    /* ---------------------------- */

    .single-post-thumbnail a {
        margin-bottom: 20px;
        display: flex;
    }

    .single-post-thumbnail img {
        width: 45% !important;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border: solid 1px #ffe2e2;
    }

    /* Légende image mise en avant */
    .featured-image-caption {
        font-size: 0.9rem;
        color: #666;
        text-align: left;
        font-style: italic;
        align-self: flex-start;
        margin-top: 8px;
    }

    .featured-image-caption::before {
        content: "";
        background: #eceeef none repeat scroll 0 0;
        display: inline-block;
        height: 1px;
        margin-right: 0.5rem;
        vertical-align: middle;
        width: 2.5rem;
    }

    .single-post-header {
        text-align: center;
        margin-bottom: 0;
    }

    .single-post-title {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #1a1a1a;
    }

    .single-post-meta {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 1.5rem;
    }

    .single-post-meta span {
        display: inline-block;
    }

    .single-post-content {
        font-size: 1rem;
        line-height: 1.8;
        color: #333;
        margin-bottom: 40px;
    }

    .single-post-content iframe {
        margin: 2rem 0;
    }

    .single-post-content figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 20px auto;
        width: 100%;
    }

    .single-post-content figure img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* .single-post-content img {
        max-height: min(1200px, 80vh);
        object-fit: cover;
        width: auto;
    } */

    .single-post-content figure.wp-caption {
        text-align: center;
        max-width: 100%;
    }

    .single-post-content figure.wp-caption .wp-caption-text {
        font-size: 0.9rem;
        color: #666;
        text-align: left;
        font-style: italic;
        align-self: flex-start;
    }

    .single-post-content figure.wp-caption .wp-caption-text a {
        color: #fb5000;
    }

    .single-post-content figure.wp-caption .wp-caption-text:before {
        content: "";
        background: #eceeef none repeat scroll 0 0;
        display: inline-block;
        height: 1px;
        margin-right: 0.5rem;
        vertical-align: middle;
        width: 2.5rem;
    }

    /* les images avec une légende sont encapsulées dans un <figure>
    les images sans légende sont simplement dans un bloc <img>
    on uniformise les marges
     */

    .single-post-content p:has(img) img,
    .single-post-content figure:has(img) img {
        margin: 20px auto
    }

    .single-post-content p:has(img)+figure:has(img) {
        margin-top: 0;
    }

    .single-post-content .wp-block-gallery,
    .single-post-content .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 15px;
        margin: 20px auto;
    }

    .single-post-content .wp-block-gallery img,
    .single-post-content .gallery img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .single-post-content blockquote {
        font-size: 1.2rem;
        padding: 15px;
        margin: 3rem auto;
        background: #f5ece5;
        max-width: 800px;
        border-radius: 15px;
    }

    .single-post-content blockquote p {
        text-align: center;
    }

    .single-post-content blockquote p:first-child {
        font-size: 1.3rem;
        line-height: 2.2rem;
    }

    .single-post-content blockquote p:last-child:not(:only-child) {
        font-size: 0.9rem;
        text-transform: uppercase;
    }

    .post-tags h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #444;
    }

    .post-tags ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .post-tags li {
        background: #1a1a1a;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.9rem;
    }

    .post-tags li a {
        color: white;
    }

    .single-post-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        padding-bottom: 5%;
    }

    .single-post-navigation .prev-post,
    .single-post-navigation .next-post {
        font-size: 1rem;
        color: #1a1a1a;
        text-decoration: none;
    }

    .single-post-navigation .prev-post:hover,
    .single-post-navigation .next-post:hover {
        text-decoration: underline;
    }

    .single-post-navigation .bas-button {
        display: inline-block;
        padding: 10px 30px;
        background-color: black;
        border: 1px solid #fff;
        color: #fff;
        text-decoration: none;
        border-radius: 25px;
        transition: all 0.3s ease;
        text-transform: uppercase;
        font-size: 0.9rem;
        font-weight: bold;
        text-align: center;
    }

    .single-post-navigation .bas-button:hover {
        background-color: #fff;
        color: #1a1a1a;
        transform: scale(1.05);
    }

    .related-posts {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .related-posts h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        color: #1a1a1a;
    }

    .related-posts-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .related-post-item {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .related-post-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .related-post-item a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .related-post-thumbnail {
        height: 180px;
        overflow: hidden;
    }

    .related-post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .related-post-item:hover .related-post-thumbnail img {
        transform: scale(1.05);
    }

    .related-post-title {
        font-size: 1.1rem;
        margin: 15px;
        color: #1a1a1a;
        line-height: 1.4;
    }

    .related-post-date {
        display: block;
        font-size: 0.85rem;
        color: #666;
        margin: 0 15px 15px;
    }

    .single-post-thumbnail {
        width: 100%;
        overflow: hidden;
        text-align: center;
    }

    .single-format-video .single-post-thumbnail img {
        width: 100% !important;
        height: auto;
        max-height: 500px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .sponsored-label {
        display: inline-block;
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 4px;
        text-transform: uppercase;
        margin-left: 2%;
    }

    .single #cbaa5a32ca50f26b4e1f93dc7fc216f65 {
        margin: 1.5% 0;
    }

    .single #c19944f1b89f4f2dd5ee41c7bbd961343 {
        margin: 3% 0 2.5% 0;
    }

    .single #cdc572ca5e9c3035e2567a053e3676623 {
        margin: 0 0 4% 0;
    }

    .single-prix-fourgon-neuf .single-post-thumbnail img {
        width: 40% !important;
    }

    #ailleurs2 {
        background-color: #f5f5f5;
        padding: 2% 2% max(20px, 1%);
        width: 100%;
        margin-top: 4%;
        position: relative;
    }

    .articles-container {
        max-width: 1550px;
        margin: 0 auto;
    }

    .header-content {
        text-align: center;
        margin-bottom: 2rem;
    }

    .main-title {
        font-size: 2.2rem;
        font-weight: bold;
        margin-bottom: 25px;
        position: relative;
        padding-left: 15px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
    }

    .main-title::before {
        content: "";
        display: inline-block;
        width: 5px;
        background-color: #e65f0d;
        position: absolute;
        left: -5px;
        height: calc(100% - 0.4em);
        top: 50%;
        transform: translateY(-50%);
    }

    .articles-grid {
        display: grid;
        gap: 1.5rem;
        grid-template-columns: repeat(1, 1fr);
    }

    .article-card {
        position: relative;
        background: white;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .article-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

    .article-image {
        width: 100%;
        overflow: hidden;
    }

    .article-card .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0;
    }

    .article-card .a2t-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    #ailleurs2 .ailleurs-ad-card .article-content {
        padding: 1rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .article-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: #333;
        line-height: 1.3;
        font-weight: 600;
    }

    .ailleurs-ad-container {
        line-height: 0 !important;
        font-size: 0 !important;
        overflow: hidden;
    }

    .ailleurs-ad-container div[data-lebar-trackid],
    .ailleurs-ad-container div[id^="lebar-"] {
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .ailleurs-ad-container img {
        display: block;
        width: 100%;
        height: auto;
    }

    .single-post-video-container {
        /* max-width: 900px; */
        max-width: 1000px;
        margin: 30px auto;
    }

    .video-wrapper {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: none;
    }

    .single-prix-filter {
        /* max-width: 900px; */
        max-width: 1000px;
        margin: 20px auto;
        padding: 0 20px;
        display: flex;
        justify-content: center;
    }

    .single-prix-filter .prix-neuf-select {
        width: 100%;
        max-width: 400px;
        padding: 12px 15px;
        font-size: 16px;
        border: 2px solid #e65f0d;
        border-radius: 8px;
        background-color: white;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .single-prix-filter .prix-neuf-select:hover {
        border-color: #cf5307;
        box-shadow: 0 2px 8px rgba(230, 95, 13, 0.2);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .pub-article-desktop {
            display: none;
        }

        .pub-article-mobile {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .pub-article-mobile img {
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

        .pub-article-mobile>div,
        .pub-article-mobile .lebar-megabanner-top-article-2,
        .pub-article-mobile [id^="lebar-"] {
            max-width: 100%;
            width: 100% !important;
        }

        .single-post-title {
            font-size: 1.8rem;
        }

        .single-post-navigation {
            flex-direction: column;
            gap: 15px;
        }

        .single-post-navigation .prev-post,
        .single-post-navigation .next-post {
            text-align: center;
        }

        .single-post-navigation .bas-button {
            width: auto;
            font-size: 0.8rem;
            padding: 8px 20px;
        }

        .single-post-content {
            font-size: 1rem;
            line-height: 1.7;
        }

        .single-post-content .wp-block-gallery,
        .single-post-content .gallery {
            grid-template-columns: 1fr;
        }

        .related-posts-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .related-post-thumbnail {
            height: auto;
        }

        .single-post-thumbnail {
            max-height: 350px;
        }

        .single-post-thumbnail img {
            max-height: 350px;
            width: 100% !important;
        }

        .single-prix-filter {
            padding: 0 15px;
        }

        .single-prix-filter .prix-neuf-select {
            font-size: 14px;
        }

        #ailleurs2 {
            padding: 2% max(20px, 1%) 7%;
        }

        #ailleurs2 .article-title {
            margin-bottom: -12px;
        }

        #ailleurs2 .main-title {
            font-size: 1.5em;
            margin-bottom: -20px;
            margin-top: 10px;
        }

        .ailleurs-desktop-only {
            display: none !important;
        }
    }

    @media (min-width: 768px) {
        .articles-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .articles-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* Chapeau d'article */
    .single-post-chapeau {
        font-size: 1.4rem;
        line-height: 1.5;
        color: #444;
        font-weight: 400;
        /* font-style: italic; */
        padding: 20px 0;
        margin: 0 0 25px 0;
        /* border-left: 4px solid #e65f0d; */
        /* background: linear-gradient(to right, #fff8f5, #ffffff); */
        border-radius: 0 8px 8px 0;
        /* font-weight: bolder; */
    }

    .single-post-chapeau:before {
        /* content: ""; */
        height: 1.4rem;
        width: 3px;
        transform: translateY(-.22rem);
        border-radius: 100px;
        font-weight: bolder;
        background-color: #e65f0d;
        display: inline-flex;
        margin: auto 0;
        /* line-height: 100%; */
        vertical-align: sub;
    }

    .single-post-chapeau p {
        display: inline;
        margin: 0;
    }

    .single-post-chapeau p+p {
        margin-top: 10px;
    }

    @media (max-width: 768px) {
        .single-post-chapeau {
            font-size: 1.15rem;
            padding: 15px 0;
            margin: 0 0 20px 0;
        }
    }

    /* Style Titres personnalisés (span, pas H) */
    .single-post-content .style-titre-xl {
        display: block;
        font-weight: 700;
        font-size: 42px;
        line-height: 1.2;
        color: #1a1a1a;
        margin: 15px 0;
    }

    .single-post-content .style-titre-l {
        display: block;
        font-weight: 700;
        font-size: 32px;
        line-height: 1.3;
        color: #1a1a1a;
        margin: 12px 0;
    }

    .single-post-content .style-titre-m {
        display: block;
        font-weight: 600;
        font-size: 24px;
        line-height: 1.4;
        color: #1a1a1a;
        margin: 10px 0;
    }

    .single-post-content .style-titre-s {
        display: block;
        font-weight: 600;
        font-size: 18px;
        line-height: 1.4;
        color: #1a1a1a;
        margin: 8px 0;
    }

    .single-post-content .surligne-jaune {
        background-color: #fff59d;
        padding: 2px 6px;
    }

    .single-post-content .surligne-orange {
        background-color: #ffcc80;
        padding: 2px 6px;
    }

    .single-post-content .encadre-info {
        background: #f5f5f5;
        border-left: 4px solid #e65f0d;
        padding: 20px;
        margin: 20px 0;
        border-radius: 0 8px 8px 0;
    }

    @media (max-width: 768px) {
        .single-post-content .style-titre-xl {
            font-size: 28px;
        }

        .single-post-content .style-titre-l {
            font-size: 24px;
        }

        .single-post-content .style-titre-m {
            font-size: 20px;
        }

        .single-post-content .style-titre-s {
            font-size: 16px;
        }
    }

    /* Liens stylisés pour publi-rédactionnel */
    /* .single-post.publi-redactionnel .single-post-content a {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    background-color: #e65f0d;
    color: white;
    padding: 0.5px 9px;
    border-radius: 5px;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s 
ease, box-shadow 0.3s 

} */

    .single-post.publi-redactionnel .single-post-content a:hover {
        transform: translateY(-2px);
        /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
        color: white;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .single-post.publi-redactionnel .single-post-content a {
            font-size: 1rem;
        }
    }

    .publi-redac-section {
        background-color: #1a1a1a;
        padding: 40px 30px;
        margin: 40px 0;
        border-radius: 12px;
    }

    .publi-redac-container {
        max-width: 100%;
    }

    .publi-redac-title {
        color: #ffffff;
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 25px;
        position: relative;
        padding-left: 15px;
        text-transform: uppercase;
    }

    .publi-redac-title::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 80%;
        background-color: #e65f0d;
        border-radius: 3px;
    }

    .publi-redac-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .publi-redac-card {
        background-color: #2a2a2a;
        border-radius: 10px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .publi-redac-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(230, 95, 13, 0.2);
    }

    .publi-redac-card a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .publi-redac-thumbnail {
        height: auto;
        overflow: hidden;
        position: relative;
    }

    .publi-redac-thumbnail::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(42, 42, 42, 1), transparent);
    }

    .publi-redac-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: cover;
        /* transition: transform 0.3s ease; */
    }

    .publi-redac-card:hover .publi-redac-thumbnail img {
        transform: scale(1.08);
    }

    .publi-redac-content {
        padding: 15px 18px 20px;
    }

    .publi-redac-badge {
        display: inline-block;
        background-color: #e65f0d;
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
        width: max-content;
    }

    .publi-redac-card-title {
        color: #ffffff;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        margin: 0 0 10px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .publi-redac-date {
        color: #888888;
        font-size: 0.8rem;
    }

    .no-publi {
        color: #888888;
        text-align: center;
        grid-column: 1 / -1;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .publi-redac-section {
            padding: 30px 20px;
            margin: 30px 0;
        }

        .publi-redac-title {
            font-size: 1.3rem;
        }

        .publi-redac-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .publi-redac-card {
            display: flex;
            flex-direction: row;
        }

        .publi-redac-thumbnail {
            width: 330px;
            min-width: 120px;
            height: auto;
            min-height: 120px;
        }

        .publi-redac-thumbnail::after {
            display: none;
        }

        .publi-redac-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 12px 15px;
        }

        .publi-redac-card-title {
            font-size: 0.95rem;
        }
    }

    /* ==========================================================================
   BOUTONS RÉSEAUX SOCIAUX
   ========================================================================== */
    .social-follow-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin: 20px 0 5px 0;
        flex-wrap: wrap;
    }

    .follow-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 18px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        color: #ffffff;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .follow-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        color: #ffffff;
    }

    .follow-btn svg {
        flex-shrink: 0;
    }

    /* Facebook */
    .follow-facebook {
        background-color: #1877f2;
    }

    .follow-facebook:hover {
        background-color: #0d65d9;
    }

    /* X (Twitter) */
    .follow-x {
        background-color: #000000;
    }

    .follow-x:hover {
        background-color: #333333;
    }

    /* LinkedIn */
    .follow-linkedin {
        background-color: #0a66c2;
    }

    .follow-linkedin:hover {
        background-color: #004182;
    }

    /* Mail */
    .follow-mail {
        background-color: #666666;
    }

    .follow-mail:hover {
        background-color: #444444;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .social-follow-buttons {
            gap: 10px;
        }

        .follow-btn {
            padding: 8px 12px;
            font-size: 0.8rem;
        }
    }
