/* =========================================
   BADGE 5/5 PERMANENT - FLOTTANT & VISIBLE
   ========================================= */

/* Badge flottant fixe en bas à droite */
.floating-rating-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #7FA878 0%, #6B8E5F 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(127, 168, 120, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-badge 2s infinite, float-badge 3s ease-in-out infinite;
}

.floating-rating-badge:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 50px rgba(127, 168, 120, 0.6);
}

/* Contenu du badge */
.floating-rating-badge .rating-stars {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.floating-rating-badge .rating-score {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.floating-rating-badge .rating-reviews {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.95;
}

.floating-rating-badge .rating-platform {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.3rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-rating-badge .rating-platform i {
    font-size: 1rem;
}

/* Animation de pulsation */
@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(127, 168, 120, 0.4);
    }
    50% {
        box-shadow: 0 10px 50px rgba(127, 168, 120, 0.7);
    }
}

/* Animation de flottement */
@keyframes float-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive mobile */
@media (max-width: 768px) {
    .floating-rating-badge {
        bottom: 20px;
        right: 20px;
        padding: 1rem 1.2rem;
        border-radius: 15px;
    }
    
    .floating-rating-badge .rating-stars {
        font-size: 1.4rem;
    }
    
    .floating-rating-badge .rating-score {
        font-size: 1.6rem;
    }
    
    .floating-rating-badge .rating-reviews {
        font-size: 0.75rem;
    }
    
    .floating-rating-badge .rating-platform {
        font-size: 0.7rem;
    }
}

/* Alternative : Badge en haut à droite */
.floating-rating-badge.top-right {
    top: 100px;
    right: 30px;
    bottom: auto;
}

/* Alternative : Badge avec fermeture */
.floating-rating-badge .close-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-rating-badge:hover .close-badge {
    opacity: 1;
}

.floating-rating-badge .close-badge:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Badge masqué quand fermé */
.floating-rating-badge.hidden {
    display: none;
}

/* =========================================
   BADGE STICKY EN HAUT (Alternative)
   ========================================= */

.sticky-rating-bar {
    position: fixed;
    top: 80px; /* Sous le menu */
    left: 0;
    right: 0;
    z-index: 9998;
    background: linear-gradient(135deg, #7FA878 0%, #6B8E5F 100%);
    color: white;
    padding: 0.8rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(127, 168, 120, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-weight: 600;
    animation: slide-down 0.5s ease;
}

.sticky-rating-bar .stars {
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.sticky-rating-bar .score {
    font-size: 1.5rem;
    font-weight: 800;
}

.sticky-rating-bar .reviews {
    font-size: 0.95rem;
}

.sticky-rating-bar .google-logo {
    font-size: 1.2rem;
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive sticky bar */
@media (max-width: 768px) {
    .sticky-rating-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .sticky-rating-bar .stars {
        font-size: 1.1rem;
    }
    
    .sticky-rating-bar .score {
        font-size: 1.3rem;
    }
}

/* =========================================
   BADGE DANS LE COIN (Mini version)
   ========================================= */

.corner-rating-badge {
    position: fixed;
    top: 120px;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #7FA878 0%, #6B8E5F 100%);
    color: white;
    padding: 1rem 1.5rem 1rem 2rem;
    border-radius: 30px 0 0 30px;
    box-shadow: -5px 5px 20px rgba(127, 168, 120, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slide-in-right 0.8s ease;
}

.corner-rating-badge:hover {
    padding-right: 2rem;
    box-shadow: -8px 8px 30px rgba(127, 168, 120, 0.6);
}

.corner-rating-badge .stars {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.3rem;
}

.corner-rating-badge .score {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.corner-rating-badge .reviews {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive corner badge */
@media (max-width: 768px) {
    .corner-rating-badge {
        top: 90px;
        padding: 0.8rem 1.2rem 0.8rem 1.5rem;
    }
    
    .corner-rating-badge .stars {
        font-size: 1rem;
    }
    
    .corner-rating-badge .score {
        font-size: 1.2rem;
    }
    
    .corner-rating-badge .reviews {
        font-size: 0.65rem;
    }
}