/* Brand CTA Block Styles */

.brand-cta-block {
    margin: 40px 0;
    background: #fff;
    border-radius: 10px 10px 10px 0;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.brand-cta-block:hover{
    border-color: #fbbf24;
}

.brand-cta-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 16px;
}

/* Section Image */
.brand-image {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-image figure {
    margin: 0 !important;
    display: flex;
    padding-top: 10px;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.brand-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    padding: 0 0 8px 16px;
}

/* Gestion des modes dark/light - Par défaut, afficher dark */
.brand-image-dark {
    display: block;
}

.brand-image-light {
    display: none;
}

/* En mode light, afficher light et cacher dark */
[data-theme="light"] .brand-image-dark,
.white_mode .brand-image-dark {
    display: none;
}

[data-theme="light"] .brand-image-light,
.white_mode .brand-image-light {
    display: block;
}

/* Section Contenu */
.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-bonus-info {
    text-align: left;
}

/* Label BONUS */
.bonus-label {
    font-size: 0.85rem;
    color: #7c7c7c !important;
    margin-bottom: 4px;
    font-weight: 500;
}

.brand-bonus-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
    line-height: 1.3;
}


.brand-cta-block:hover .brand-cta-content .brand-content .brand-bonus-title{
    color: #fbbf24;
}
    

.brand-bonus-subtitle {
    font-size: 1rem;
    margin: 0 !important;
    color: #6b7280;
    line-height: 1.5;
}

/* Footer CTA - Bouton pleine largeur en bas */
.brand-cta-footer {
    width: 20%;
    margin: 0 24px;
    align-content: center;
}

.brand-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent-color, #fbbf24);
    color: #000 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px 12px 12px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1;
    width: 100%;
}

.brand-cta-button:hover {
    background-color: var(--hover-bg-color);
    color: #000 !important;
}

.brand-cta-button:active {
    transform: none;
}

.cta-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.brand-cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

.brand-cta-block:hover .brand-cta-button{
    background-color: var(--hover-bg-color);
}
.brand-cta-block:hover .brand-cta-button .cta-arrow{
    transform: translateX(4px);
}


/* Responsive aside */
    .has-sidebar .brand-cta-footer {
        width: 100%;
        margin: 0;
        align-content: center;
    }
    .has-sidebar .brand-cta-block{
        display: flex;
        flex-direction: column;
    }
    .has-sidebar .brand-cta-button{
        border-radius: 0 0 12px 0;
    }

/* Responsive Design */
@media (max-width: 768px){
    
    .brand-cta-block{
        display: flex;
        flex-direction: column;
    }

    .brand-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2px;
        padding: 16px 20px;
    }

    .brand-cta-footer {
        width: 100%;
        margin: 0;
        align-content: center;
    }

    .brand-cta-button{
        border-radius: 0 0 12px 0;
    }

    .brand-image {
        width: 160px;
        height: 80px;
    }
    
    .brand-image img{
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
        padding: 0;
    }

    .brand-bonus-info {
        text-align: center;
    }

    .brand-bonus-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .brand-cta-content {
        padding: 20px 16px;
    }

    .brand-image {
        width: 140px;
        height: 70px;
    }

    .single-post .content .brand-bonus-title {
        font-size: 1.1rem;
        justify-items: center;
        text-align: center;
    }

    .brand-bonus-subtitle {
        font-size: 0.9rem;
    }

    .brand-cta-button {
        padding: 14px 24px;
        font-size: 0.9rem;
        border-radius: 0 0 8px 0;
    }
    .bonus-label {
        display: none;
    }
}

/* Dark Mode Support */
.dark-mode .brand-cta-block {
    background: #17191D;
    border-color: #17191D;
    color: #fff;
}
.dark-mode .brand-cta-block:hover{
    border-color: #fbbf24;
}

.dark-mode .brand-bonus-title {
    color: #fff;
}

.dark-mode .brand-bonus-subtitle {
    color: #d1d5db;
}

.dark-mode .bonus-label {
    color: #9ca3af !important;
}

.dark-mode .brand-image-dark {
    display: block;
}
.dark-mode .brand-image-dark{
    display: flex;
    padding-top: 10px;
}

.dark-mode .brand-image-light {
    display: none;
}

.light-mode .brand-image-dark {
    display: none;
}

/* Animation d'entrée */
.brand-cta-block {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}