/*
 * [AUDIT] Fichier extrait de category.php (lignes 303-558)
 * 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é.
 */

    .adv-link {
        display: flex;
        margin: 0;
    }

    .load-more-container {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }

    .van-image-link {
        display: block;
        height: 100%;
    }

    .archive #c4ce755ec4958c673eeab6a0c2751024c {
        margin: 1.2% 0;
    }

    /* Description de catégorie */
    .category-description {
        background-color: #f9f9f9;
        /* border-left: 4px solid #e65f0d; */
        padding: 5px 0;
        margin: 20px 0 30px 0;
        border-radius: 4px;
        font-size: 1rem;
        line-height: 1.7;
        color: #555;
    }

    .category-description p {
        margin: 0 0 10px 0;
        font-weight: 500;
    }

    .category-description p:last-child {
        margin-bottom: 0;
    }

    @media (max-width: 768px) {
        .category-description {
            padding: 15px 20px;
            margin: 15px 0 25px 0;
            font-size: 0.95rem;
        }
    }

    .achat-fourgon-narrow {
        max-width: 100%;
        margin: 0 auto;
    }

    .category-achat-fourgon .achat-fourgon-narrow {
        max-width: 100%;
        margin: 0 auto;
    }
    /* ===== SECTION PAVÉ PUB (Category) ===== */
.archive .pave-pub-section {
    padding: 2%;
    background-color: #f5f5f5;
    margin-top: 40px;
}

.pave-pub-container {
    max-width: 1550px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pave-pub-desktop {
    display: flex !important;
    justify-content: center;
}

.pave-pub-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .pave-pub-desktop {
        display: none !important;
    }

    .pave-pub-mobile {
        display: flex !important;
        justify-content: center;
    }

    .pave-pub-section {
        padding: 3%;
    }
}

/* ===== SECTION AILLEURS SUR LE WEB (Category) ===== */
.archive #ailleurs2 {
    background-color: #f5f5f5;
    padding: 2% 2%;
    width: 65%;
    margin-top: 40px;
    position: relative;
}

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

.archive #ailleurs2 .header-content {
    text-align: left;
    margin-bottom: 2rem;
}

.archive #ailleurs2 .main-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    text-transform: uppercase;
    display: inline-block;
}

.archive #ailleurs2 .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%);
}

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

.archive #ailleurs2 .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;
}

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

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

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

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

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

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

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

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

@media (max-width: 1024px) {
    .archive #ailleurs2 .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive .pave-pub-section {
        margin-top: 30px;
    }

    .archive #ailleurs2 {
        width: 100%;
        padding: 5% 4% 7%;
        margin-top: 30px;
    }

    .archive #ailleurs2 .article-content,
    .archive #ailleurs2 .ailleurs-ad-card .article-content {
        padding-bottom: 1.5rem;
    }

    .archive #ailleurs2 .main-title {
        font-size: 1.5rem;
        margin-top: 8px;
        margin-bottom: 15px;
    }

    .archive #ailleurs2 .articles-grid {
        grid-template-columns: 1fr;
    }

    .archive .ailleurs-desktop-only {
        display: none !important;
    }
}
#ailleurs2 .sponsored-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: black;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}
@media (max-width: 767px) {
    #ailleurs2 .sponsored-badge {
        position: static;
        display: inline-flex;
        margin: 10px 0 .5rem 10px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}
