/* ==========================================================
   PETSCOMPARE - LEADERBOARD UPD 728x90 (Affilae)
   ==========================================================
   Pour les pages index / landings. Snippet officiel UPD avec
   tracking ae=1345-243 (impressions + clics).
   ========================================================== */

.upd-leaderboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin: 2rem auto;
    padding: .75rem;
    background: #fefaf2;
    border: 1px solid #f3e8d0;
    border-radius: 14px;
    max-width: 760px;
}

.upd-leaderboard-link {
    display: block;
    line-height: 0;
    width: 100%;
    max-width: 728px;
}

.upd-leaderboard-link img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 728px;
    border-radius: 8px;
}

.upd-leaderboard-discl {
    font-size: .7rem;
    color: #9ca3af;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) {
    .upd-leaderboard {
        margin: 1.5rem 0;
        padding: .55rem;
        border-radius: 10px;
    }
}

/* ==========================================================
   PETSCOMPARE - BANNIERE VISUELLE UPD 300x250 (Affilae)
   ==========================================================
   Pour les articles conseils / blog. Snippet officiel UPD
   avec tracking ae=1345-238 (impressions + clics).
   ========================================================== */

.upd-visual-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin: 1.25rem 0;
    /* Cadre subtil cream pour ne pas avoir une image qui flotte
       brut au milieu d'un article. */
    padding: .65rem;
    background: #fefaf2;
    border: 1px solid #f3e8d0;
    border-radius: 12px;
    width: max-content;
    max-width: 100%;
}

.upd-visual-banner-link {
    display: block;
    line-height: 0;  /* evite le micro-spacing sous l'image */
}

.upd-visual-banner-link img {
    display: block;
    width: 300px;
    height: 250px;
    max-width: 100%;
    border-radius: 8px;
}

.upd-visual-banner-discl {
    font-size: .68rem;
    color: #9ca3af;
    font-style: italic;
    text-align: center;
}

/* Alignement : float-right sur desktop (l'article continue
   a couler a gauche), centre sur mobile (full width). */
.upd-visual-banner-float-right {
    float: right;
    margin: .5rem 0 1rem 1.5rem;
}
.upd-visual-banner-center {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .upd-visual-banner-float-right {
        float: none;
        margin: 1.5rem auto;
    }
    .upd-visual-banner {
        width: 100%;
    }
    .upd-visual-banner-link img {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ==========================================================
   PETSCOMPARE - MINI STRIP MARQUE PARTENAIRE (1 ligne)
   ==========================================================
   Affiché en haut de la page categorie, avant les filtres,
   pour que la marque + code promo soient immediatement visibles
   sans devoir scroller. Cliquable en entier (toute la barre).
   ========================================================== */

.affiliate-brand-strip {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    margin: .85rem 0;
    padding: .55rem 1rem;
    background: linear-gradient(90deg, #fefaf2 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    border-radius: 999px;
    color: #1f2937;
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.3;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}
.affiliate-brand-strip::-webkit-scrollbar { display: none; }

.affiliate-brand-strip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, .15);
    border-color: #f59e0b;
    text-decoration: none;
    color: #1f2937;
}

.aff-strip-star {
    color: #f59e0b;
    font-size: .95rem;
    flex-shrink: 0;
}

.aff-strip-recommend {
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.aff-strip-name {
    font-family: 'Fraunces', 'Georgia', serif;
    font-weight: 600;
    font-size: .95rem;
    color: #1f2937;
    flex-shrink: 0;
}

.aff-strip-promo {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #fff;
    border: 1px dashed #d97706;
    color: #92400e;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: .82rem;
    flex-shrink: 0;
}
.aff-strip-promo strong {
    background: #fef3c7;
    color: #92400e;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: .03em;
}

.aff-strip-cta {
    margin-left: auto;
    background: #047857;
    color: #fff;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .82rem;
    flex-shrink: 0;
    transition: background .15s;
}
.affiliate-brand-strip:hover .aff-strip-cta {
    background: #065f46;
}

.aff-strip-discl {
    color: #9ca3af;
    font-size: .68rem;
    font-style: italic;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .affiliate-brand-strip {
        padding: .55rem .85rem;
        gap: .55rem;
    }
    .aff-strip-recommend { font-size: .68rem; }
    .aff-strip-discl { display: none; }
    .aff-strip-cta { margin-left: .35rem; padding: .3rem .75rem; font-size: .78rem; }
}

/* ==========================================================
   PETSCOMPARE - BANDEAU MARQUE PARTENAIRE (affiliation)
   ========================================================== */

.affiliate-brand-banner {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fefaf2 0%, #fff7ed 50%, #fefaf2 100%);
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.aff-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
}

.aff-brand-tag-icon {
    color: #f59e0b;
}

.aff-brand-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

.aff-brand-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aff-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.aff-brand-info {
    flex: 1;
}

.aff-brand-name {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.25rem;
    color: #1f2937;
    margin: 0 0 .25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.aff-brand-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.aff-brand-tagline {
    color: #047857;
    font-size: .92rem;
    font-weight: 600;
    margin: 0 0 .35rem;
}

.aff-brand-desc {
    color: #4b5563;
    font-size: .88rem;
    line-height: 1.55;
    margin: 0;
}

/* Code promo exclusif */
.aff-brand-promo {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .65rem 0 0;
    padding: .45rem .75rem;
    background: #fff;
    border: 1.5px dashed #d97706;
    border-radius: 8px;
    color: #92400e;
    font-size: .88rem;
    line-height: 1.35;
}
.aff-brand-promo strong {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: .03em;
}
.aff-brand-promo-sub {
    color: #6b7280;
    font-size: .8rem;
    font-style: italic;
}

.aff-brand-cta-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.aff-brand-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
    box-shadow: 0 4px 12px rgba(4, 120, 87, .25);
    transition: transform .15s, box-shadow .15s;
    white-space: nowrap;
}

.aff-brand-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(4, 120, 87, .35);
    text-decoration: none;
    color: #fff;
}

.aff-brand-disclaimer {
    color: #6b7280;
    font-size: .72rem;
    font-style: italic;
}

/* ==========================================================
   AMAZON FALLBACK (Option B) - bouton secondaire discret
   sous le comparateur quand <3 boutiques specialisees
   ========================================================== */

.amazon-fallback {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.amazon-fallback-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.amazon-fallback-text {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex: 1;
    min-width: 0;
}

.amazon-fallback-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.amazon-fallback-text strong {
    display: block;
    color: #1f2937;
    font-size: .98rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.amazon-fallback-sub {
    display: block;
    color: #6b7280;
    font-size: .82rem;
}

.amazon-fallback-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #ff9900;
    color: #111;
    padding: .6rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: .9rem;
    border: 1px solid #e08600;
    transition: transform .15s, box-shadow .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.amazon-fallback-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    text-decoration: none;
    color: #111;
}

.amazon-fallback-disclaimer {
    margin: .65rem 0 0;
    color: #9ca3af;
    font-size: .72rem;
    font-style: italic;
    line-height: 1.45;
}

/* Mobile */
@media (max-width: 640px) {
    .amazon-fallback-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .amazon-fallback-cta {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    .affiliate-brand-banner {
        padding: 1rem 1.15rem;
    }
    .aff-brand-content {
        grid-template-columns: 1fr;
        gap: .85rem;
        text-align: center;
    }
    .aff-brand-logo {
        margin: 0 auto;
        width: 56px;
        height: 56px;
    }
    .aff-brand-name {
        justify-content: center;
        font-size: 1.1rem;
    }
    .aff-brand-cta-wrap {
        align-items: center;
    }
    .aff-brand-cta {
        width: 100%;
        justify-content: center;
    }
}
