/* BaugéPlus Ads — Frontend CSS
   IMPORTANT : aucune classe "ad", "banner", "sponsor", "pub", "publicite"
   Toutes les classes utilisent des noms génériques neutres */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ── Wrapper générique ── */
.bp-content-block {
    font-family: 'Poppins', sans-serif;
    margin: 16px 0;
    max-width: 100%;
}
.bp-align-center { text-align: center; }
.bp-align-left    { text-align: left; }
.bp-align-right   { text-align: right; }

/* Label discret "Partenaire / Sponsorisé" */
.bp-content-label {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #999;
    border: 1px solid #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    background: #fafafa;
    font-family: 'Poppins', sans-serif;
}

/* ════════════════════════════════════
   TYPE 1 : BANNIÈRE (bp-visual-item)
════════════════════════════════════ */
.bp-block-visual { }

.bp-media-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.bp-media-wrap .bp-content-label {
    position: absolute;
    top: 8px;
    right: 8px;
}
.bp-media-link { display: block; }
.bp-media-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: opacity .2s;
}
.bp-media-link:hover .bp-media-img { opacity: .92; }

.bp-embed-wrap {
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* ════════════════════════════════════
   TYPE 2 : NATIF (bp-featured-item)
════════════════════════════════════ */
.bp-block-featured { }

.bp-editorial-card {
    display: flex;
    gap: 0;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
    max-width: 520px;
}
.bp-align-center .bp-editorial-card { margin: 0 auto; }

.bp-editorial-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.bp-card-visual {
    position: relative;
    width: 160px;
    flex-shrink: 0;
}
.bp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bp-card-visual .bp-content-label {
    position: absolute;
    top: 8px;
    left: 8px;
}

.bp-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.bp-card-source {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #e85d04;
}
.bp-card-headline {
    font-size: 15px;
    font-weight: 700;
    color: #0d1b2a;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-card-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-card-cta {
    font-size: 12px;
    font-weight: 700;
    color: #e85d04;
    margin-top: auto;
}

@media (max-width: 480px) {
    .bp-editorial-card { flex-direction: column; }
    .bp-card-visual { width: 100%; height: 140px; }
}

/* ════════════════════════════════════
   TYPE 3 : SPONSORISÉ (bp-highlight-block)
════════════════════════════════════ */
.bp-block-highlight { }

.bp-text-feature {
    border: 1px solid #e9ecef;
    border-left: 4px solid #e85d04;
    border-radius: 0 10px 10px 0;
    background: #fff;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    max-width: 600px;
}
.bp-align-center .bp-text-feature { margin: 0 auto; }

.bp-text-feature-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bp-text-source {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #e85d04;
}

.bp-text-thumb-link { flex-shrink: 0; }
.bp-text-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.bp-text-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bp-text-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b2a;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-text-title:hover { color: #e85d04; }
.bp-text-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
.bp-text-link {
    font-size: 11px;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}
.bp-text-link:hover { color: #e85d04; }
.bp-text-link::before {
    content: '🔗';
    font-size: 10px;
}
