/* ============================================================
   BER Trustindex Affiliate Banner — v1.0.0
   business-ereputation.com | Nicolas Laustriat
   ============================================================ */

/* --- Base commune --- */
.ti-banner,
.ti-banner * {
    box-sizing: border-box;
    font-family: sans-serif;
    line-height: 1.6;
    font-size: 16px;
    width: 100%;
}

.ti-banner {
    container-type: inline-size;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* --- Conteneur interne --- */
.ti-banner .ti-banner-inner {
    padding: 30px;
    background-color: #F6F6F9;
    display: flex;
    align-items: center;
    border-radius: 6px;
    width: 100%;
}

/* --- Variante sombre --- */
.ti-banner.ti-dark .ti-banner-inner {
    background-color: #de5345;
}

.ti-banner.ti-dark .ti-banner-title,
.ti-banner.ti-dark .ti-banner-text {
    color: #ffffff;
}

/* --- Images --- */
.ti-banner .ti-banner-image-desktop,
.ti-banner .ti-banner-image-mobile {
    display: none;
}

.ti-banner .ti-banner-image-desktop img,
.ti-banner .ti-banner-image-mobile img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.12);
}

/* --- Textes --- */
.ti-banner .ti-banner-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1a1a1a;
}

.ti-banner .ti-banner-text {
    margin-bottom: 20px;
    color: #444444;
}

/* --- Colonne droite --- */
.ti-banner .ti-col-right {
    display: flex;
    flex-direction: column;
}

/* --- Bouton CTA --- */
.ti-banner .ti-banner-btn a,
.ti-banner .ber-ti-btn {
    display: inline-block;
    color: #1a1a1a;
    background-color: #f6b501;
    padding: 11px 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out, transform 0.15s ease;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: auto;
}

.ti-banner .ti-banner-btn a:hover,
.ti-banner .ber-ti-btn:hover {
    background-color: #d9a001;
    transform: translateY(-1px);
}

/* ============================================================
   Responsive — Desktop (> 550px)
   ============================================================ */
@container (min-width: 551px) {
    .ti-banner .ti-banner-inner {
        align-items: center;
        max-width: 700px;
        margin: auto;
    }

    .ti-banner .ti-col-right {
        padding-left: 25px;
    }

    .ti-banner .ti-banner-image-desktop {
        display: block;
        flex: 0 0 180px;
    }

    .ti-banner .ti-banner-btn a,
    .ti-banner .ber-ti-btn {
        width: auto;
    }
}

/* ============================================================
   Responsive — Mobile (≤ 550px)
   ============================================================ */
@container (max-width: 550px) {
    .ti-banner .ti-banner-inner {
        max-width: 340px;
        flex-direction: column;
    }

    .ti-banner .ti-banner-image-mobile {
        display: block;
        margin-bottom: 15px;
    }

    .ti-banner .ti-col-right {
        flex-direction: column;
    }

    .ti-banner .ti-banner-btn a,
    .ti-banner .ber-ti-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
