/**
//- Feuille de Style : Widgets Flottants (Avis Google & Barre CTA)
//- Styles : Section Offres Promotionnelles (Dynamique)
//- Emplacement: /home/automate/Stellaprima_v2/CSS/widgets.css
//- Version: 2.0
 */

/* ==========================================================================
   1. BADGE AVIS GOOGLE FLOTTANT (DESKTOP & MOBILE)
   ========================================================================== */
.badge-avis-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: #111111;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    border: 1px solid #e8eaed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-avis-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.badge-avis-g {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background-color: #ffffff;
    font-weight: bold;
    font-size: 0.95rem;
    color: #4285F4;
}

.badge-avis-details {
    display: block;
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: nowrap;
}

.badge-avis-details strong {
    font-weight: bold;
    color: #111111;
}

.badge-avis-stars {
    color: #fbbc04;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.badge-avis-details small {
    display: block;
    color: #333333;
    font-weight: bold;
    font-size: 0.72rem;
}

/* ==========================================================================
   2. BARRE CTA MOBILE (AFFICHAGE SMARTPHONE UNIQUEMENT)
   ========================================================================== */
.mobile-cta-bar {
    display: none; /* Masqué par défaut sur PC */
}

@media (max-width: 768px) {
    /* Repositionnement du badge avis sur mobile pour laisser la place à la barre CTA */
    .badge-avis-floating {
        bottom: 70px; /* Remonté au-dessus de la barre CTA mobile */
        left: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Activation de la barre fixe en bas de l'écran */
    .mobile-cta-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 55px;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-around;
        background-color: #ffffff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .mobile-cta-bar a {
        flex: 1;
        text-align: center;
        padding: 12px 5px;
        font-weight: bold;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .cta-call { color: #007bff; }
    .cta-wa { color: #25D366; }
    .cta-quote { 
        background-color: #007bff; 
        color: #ffffff !important; 
        border-radius: 4px;
        margin: 0 5px;
    }
}
/* ==========================================================================
   3. SECTION OFFRES PROMOTIONNELLES (DESIGN HARMONISÉ V2)
   ========================================================================== */
.offre-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 2.5rem 2rem;
    margin: 2rem auto;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease;
}

.offre-box .offre-title {
    font-size: 1.5rem;
    color: var(--dark-color, #0f172a);
    margin-top: 0;
    margin-bottom: 1rem;
}

.offre-box .offre-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--gray-color, #64748b);
    font-size: 1rem;
}

.offre-box .offre-date,
.offre-box .offre-desc {
    color: var(--gray-color, #64748b);
    font-size: 1.05rem;
    margin-top: 1rem;
}

.offre-box .offre-action {
    margin-top: 1.5rem;
}

.offre-box .btn-contact {
    display: inline-block;
    background-color: var(--primary-color, #0284c7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.offre-box .btn-contact:hover {
    filter: brightness(0.9);
}

/* Déclinaisons subtiles selon l'état de l'offre (cohérent avec la charte) */
.offre-active {
    border-color: var(--primary-color, #0284c7);
    background: linear-gradient(to bottom, #ffffff, var(--light-color, #f8fafc));
}

.offre-active .offre-title {
    color: var(--primary-color, #0284c7);
}

.offre-teasing,
.offre-expiree,
.offre-vide {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

.offre-teasing .btn-contact,
.offre-expiree .btn-contact,
.offre-vide .btn-contact {
    background-color: #334155; /* Ton neutre sombre du footer */
}