/* ============================================
   MODALE PARRAINAGE - STYLE IDENTIQUE AUX AUTRES MODALES
   ============================================ */

/* Desktop - Modale centrée */
@media (min-width: 769px) {
    #sponsorshipModal {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90%;
        max-width: 550px;
        max-height: 90vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 24px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
        z-index: 10000 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.2s;
        overflow: hidden;
    }
    
    #sponsorshipModal.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
        transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }
}

/* Mobile - Bottom Sheet */
@media (max-width: 768px) {
    #sponsorshipModal {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        z-index: 10000 !important;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    #sponsorshipModal.active {
        transform: translateY(0);
    }
}

/* Overlay */
#sponsorshipOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

#sponsorshipOverlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

/* Contenu */
.sponsorship-modal__content {
    padding: 35px 30px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .sponsorship-modal__content {
        padding: 30px 20px;
        max-height: calc(90vh - env(safe-area-inset-bottom, 20px));
    }
    
    .sponsorship-modal__content::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
}

/* Header */
.sponsorship-modal__header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sponsorship-modal__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B8461F 0%, #D85A2E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 20px rgba(184, 70, 31, 0.3);
}

.sponsorship-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.sponsorship-modal__subtitle {
    font-size: 13px;
    color: #666;
}

/* Bouton fermer */
.sponsorship-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: rgba(184, 70, 31, 0.08) !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    color: #B8461F !important;
    transition: all 0.2s ease !important;
    z-index: 10;
}

.sponsorship-modal__close:hover {
    background: rgba(184, 70, 31, 0.15) !important;
    color: #9a3819 !important;
    transform: scale(1.05) !important;
}

/* Stats rapides */
.sponsorship-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sponsorship-stat {
    background: rgba(184, 70, 31, 0.05);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.sponsorship-stat__value {
    font-size: 28px;
    font-weight: 800;
    color: #B8461F;
    line-height: 1;
}

.sponsorship-stat__label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Barre de progression */
.sponsorship-progress {
    margin-bottom: 24px;
}

.sponsorship-progress__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sponsorship-progress__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.sponsorship-progress__count {
    font-size: 14px;
    color: #666;
}

.sponsorship-progress__count span {
    font-weight: 700;
    color: #B8461F;
}

.sponsorship-progress__bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.sponsorship-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #B8461F 0%, #D85A2E 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.sponsorship-progress__fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Paliers */
.sponsorship-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 4px;
}

.sponsorship-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sponsorship-milestone__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.sponsorship-milestone__dot.reached {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.sponsorship-milestone__label {
    font-size: 10px;
    color: #999;
}

.sponsorship-milestone__reward {
    font-size: 9px;
    color: #B8461F;
    font-weight: 600;
}

/* Lien de parrainage */
.sponsorship-link {
    margin-bottom: 24px;
}

.sponsorship-link__label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sponsorship-link__label i {
    color: #B8461F;
}

.sponsorship-link__box {
    display: flex;
    gap: 10px;
}

.sponsorship-link__input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 13px;
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.02);
    font-family: monospace;
}

.sponsorship-link__input:focus {
    outline: none;
    border-color: #B8461F;
}

.sponsorship-link__copy {
    padding: 14px 20px;
    background: linear-gradient(135deg, #B8461F 0%, #D85A2E 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sponsorship-link__copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 70, 31, 0.4);
}

.sponsorship-link__copy.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Récompenses */
.sponsorship-rewards {
    background: linear-gradient(135deg, rgba(184, 70, 31, 0.08) 0%, rgba(216, 90, 46, 0.05) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.sponsorship-rewards__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsorship-rewards__title i {
    color: #B8461F;
}

.sponsorship-reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
}

.sponsorship-reward-item:last-child {
    margin-bottom: 0;
}

.sponsorship-reward-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sponsorship-reward-item__info {
    flex: 1;
}

.sponsorship-reward-item__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.sponsorship-reward-item__desc {
    font-size: 12px;
    color: #666;
}

.sponsorship-reward-item__contact {
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sponsorship-reward-item__contact:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sponsorship-rewards__note {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sponsorship-rewards__note i {
    color: #3b82f6;
}

/* Info box */
.sponsorship-info {
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sponsorship-info__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.sponsorship-info__text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.sponsorship-info__text strong {
    color: #1a1a1a;
}

/* État non connecté */
.sponsorship-login-required {
    text-align: center;
    padding: 40px 20px;
}

.sponsorship-login-required__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(184, 70, 31, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #B8461F;
}

.sponsorship-login-required__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.sponsorship-login-required__text {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.sponsorship-login-required__btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #B8461F 0%, #D85A2E 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sponsorship-login-required__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 70, 31, 0.4);
}
