/* Nao Studio - Personnalisation de la jauge de crowdfunding */

/* ==================== */
/* CONTENEUR PROGRESSION */
/* ==================== */
.progress-container {
    position: relative;
    width: 100%;
    margin: 1.5rem 0;
}

.progress-percentage {
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    z-index: 10;
}

.milestone-text {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* ==================== */
/* AFFICHAGE POURCENTAGE */
/* ==================== */
.wk_cf_percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-top: 0.8rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wk_cf_percentage span {
    color: #e74c3c;
    font-weight: 800;
}

/* ==================== */
/* CONTENEUR PRINCIPAL */
/* ==================== */
.wk_cf_processbar {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Effet de survol */
.wk_cf_processbar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ==================== */
/* BARRE DE PROGRESSION */
/* ==================== */
.wk_cf_processbar #container {
    position: relative;
    width: 100%;
    height: 30px;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Fond arc-en-ciel pastel */
.wk_cf_processbar #container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        #FFD1DC 0%, 
        #FFE5B4 16.66%, 
        #FFF8C9 33.33%, 
        #D4F1C5 50%, 
        #B5EAD7 66.66%, 
        #C7CEEA 83.33%, 
        #E2C0FC 100%
    );
    opacity: 0.6;
    z-index: 1;
}

/* Barre de progression (remplie) */
.wk_cf_processbar .progressbar-path {
    position: relative;
    z-index: 2;
    stroke-linecap: round !important;
    stroke-width: 24px !important;
    transition: stroke-dashoffset 0.8s ease-in-out;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.2));
}

/* Cacher le texte intégré de la barre de progression */
.wk_cf_processbar .progressbar-text {
    display: none !important;
}

/* ==================== */
/* TEXTE DE POURCENTAGE */
/* ==================== */
.progress-percentage {
    display: block;
    text-align: center;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #2c3e50 !important;
    margin: 10px 0 20px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.3;
}

/* Texte secondaire dans le pourcentage */
.progress-percentage span {
    font-size: 0.7em !important;
    font-weight: 600 !important;
    color: #5d6d7e !important;
    margin-left: 8px;
    opacity: 0.9;
}

/* ==================== */
/* TOOLTIP */
/* ==================== */
.wk_cf_target_tooltip {
    position: absolute;
    top: -35px;
    right: 0;
    background: #2c3e50;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(5px);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wk_cf_processbar:hover .wk_cf_target_tooltip {
    opacity: 0.9;
    transform: translateY(0);
}

/* ==================== */
/* VERSION MOBILE */
/* ==================== */
@media (max-width: 768px) {
    .wk_cf_processbar #container {
        height: 16px;
    }
    
    .progress-percentage {
        font-size: 24px !important;
    }
}

/* Style des informations de financement */
.wk_cf_funding_info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.wk_cf_funding_raised,
.wk_cf_funding_goal {
    color: #4f46e5;
    font-weight: 700;
}
