/* ===== VIGNETTES FLOTTANTES DES SPONSORS ===== */

.floating-sponsors-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.floating-sponsors-container.collapsed {
    right: -200px;
}

.floating-sponsors-toggle.collapsed {
    right: 20px;
}

.floating-sponsor-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.floating-sponsor-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.4);
    width: 185px; /* Augmenter légèrement la largeur au hover */
}

.floating-sponsor-card.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 193, 7, 0.95));
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.floating-sponsor-card.vip:hover {
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    border-color: rgba(255, 193, 7, 0.6);
}

.floating-sponsor-logo {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.floating-sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.floating-sponsor-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.floating-sponsor-card.vip .floating-sponsor-name {
    color: #8B4513;
    font-weight: 700;
}

.floating-sponsor-link {
    font-size: 0.75rem;
    color: #ff6600;
    text-decoration: none;
    text-align: center;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.floating-sponsor-link:hover {
    opacity: 1;
    color: #ff6600;
}

.floating-sponsor-card.vip .floating-sponsor-link {
    color: #8B4513;
    font-weight: 600;
}

/* Bouton de contrôle */
.floating-sponsors-toggle {
    position: fixed;
    top: calc(50% - 370px);
    right: 157px;
    z-index: 99;
    background: linear-gradient(90deg, #ff9800 60%, #ffb74d 100%);
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    width: 40px;
    height: 140px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 8px rgba(44, 44, 44, 0.15);
    line-height: 1.2;
}

.floating-sponsors-toggle:hover {
    background: linear-gradient(90deg, #ffb74d 60%, #ff9800 100%);
    transform: translateY(-1px);
    box-shadow: 2px 2px 12px rgba(44, 44, 44, 0.25);
}

.toggle-text {
    text-align: center;
    font-weight: 400;
}

/* Badge VIP */
.vip-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-sponsors-container {
        right: 10px;
        width: 140px;
        z-index: 100;
    }
    
    .floating-sponsor-card {
        width: 140px;
        padding: 8px;
    }
    
    .floating-sponsor-logo {
        height: 50px;
    }
    
    .floating-sponsor-name {
        font-size: 0.8rem;
    }
    
    .floating-sponsor-link {
        font-size: 0.7rem;
    }
    
    .floating-sponsors-toggle {
        top: calc(50% - 340px);
        right: 145px;
        width: 35px;
        height: 120px;
        font-size: 0.7rem;
        border-radius: 1.2rem;
        z-index: 99;
    }
}

@media (max-width: 480px) {
    .floating-sponsors-container {
        right: 8px;
        max-height: 60vh;
        transform: none;
        top: 20px;
        z-index: 100;
    }
    .floating-sponsor-card {
        width: 140px;
    }
    .floating-sponsors-toggle {
        display: flex;
        z-index: 99;
    }
}

/* Animation d'entrée */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.floating-sponsor-card {
    animation: slideInRight 0.5s ease-out;
}

.floating-sponsor-card:nth-child(1) { animation-delay: 0.1s; }
.floating-sponsor-card:nth-child(2) { animation-delay: 0.2s; }
.floating-sponsor-card:nth-child(3) { animation-delay: 0.3s; }
.floating-sponsor-card:nth-child(4) { animation-delay: 0.4s; }
.floating-sponsor-card:nth-child(5) { animation-delay: 0.5s; }

/* Mode portrait smartphone - s'assurer que les sponsors sont derrière les menus */
@media (max-width: 768px) and (orientation: portrait) {
    .floating-sponsors-container {
        z-index: 100 !important;
    }
    
    .floating-sponsors-toggle {
        z-index: 99 !important;
    }
    
    .floating-sponsor-card {
        z-index: 100 !important;
    }
}
