/* ============================================================
   VOTES & LEADS — votes.css
   Design system punchy : violet, rose, turquoise
   ============================================================ */

/* ── WIDGET DE VOTE (conteneur) ─────────────────────────────── */

.pc-vote-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--pc-bg-card, #fff);
    border: 1px solid var(--pc-border, #E8ECF1);
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(108, 92, 231, .06);
    transition: all .25s ease;
}
.pc-vote-widget:hover {
    border-color: var(--pc-primary-light, #A29BFE);
    box-shadow: 0 4px 20px rgba(108, 92, 231, .12);
}

/* ── Mini variant (pour archives / listes) ──────────────────── */

.pc-vote-widget--mini {
    padding: 4px 10px;
    gap: 6px;
    border-radius: 30px;
    font-size: 13px;
}
.pc-vote-widget--mini .pc-vote-icon { width: 16px; height: 16px; }
.pc-vote-widget--mini .pc-vote-count { font-size: 13px; }
.pc-vote-widget--mini .pc-vote-star { width: 24px; height: 24px; font-size: 11px; }

/* ── BOUTONS VOTE (pouce haut/bas) ──────────────────────────── */

.pc-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid var(--pc-border, #E8ECF1);
    border-radius: 30px;
    background: var(--pc-bg-page, #F8F9FE);
    color: var(--pc-text-sub, #636E72);
    cursor: pointer;
    font-family: var(--pc-font, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
    outline: none;
}
.pc-vote-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

/* Pouce haut */
.pc-vote-btn--up:hover:not(:disabled) {
    background: rgba(0, 184, 148, .08);
    border-color: #00B894;
    color: #00B894;
}
.pc-vote-btn--up.pc-vote-btn--active {
    background: linear-gradient(135deg, #00B894, #00CEC9);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 184, 148, .3);
}

/* Pouce bas */
.pc-vote-btn--down:hover:not(:disabled) {
    background: rgba(255, 107, 107, .08);
    border-color: #FF6B6B;
    color: #FF6B6B;
}
.pc-vote-btn--down.pc-vote-btn--active {
    background: linear-gradient(135deg, #FF6B6B, #FD79A8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 107, .3);
}

/* Disabled */
.pc-vote-btn--disabled {
    opacity: .6;
    cursor: default;
}
.pc-vote-btn--disabled:hover {
    transform: none !important;
}

/* Icône SVG */
.pc-vote-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Compteur */
.pc-vote-count {
    font-weight: 800;
    font-size: 15px;
    min-width: 18px;
    text-align: center;
}

/* Statut "Vous avez voté" */
.pc-vote-status {
    font-size: 12px;
    color: var(--pc-text-light, #B2BEC3);
    font-weight: 500;
    white-space: nowrap;
}

/* ── VOTE PARFUM (note sur 10) ──────────────────────────────── */

.pc-vote-widget--parfum {
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    border-radius: 16px;
    gap: 12px;
}

.pc-vote-parfum-score {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.pc-vote-parfum-avg {
    font-family: var(--pc-font, 'Inter', sans-serif);
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #6C5CE7, #FD79A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.pc-vote-parfum-max {
    font-size: 16px;
    color: var(--pc-text-light, #B2BEC3);
    font-weight: 600;
}
.pc-vote-parfum-total {
    font-size: 12px;
    color: var(--pc-text-light, #B2BEC3);
    margin-left: 6px;
}

.pc-vote-parfum-input {
    text-align: center;
}
.pc-vote-parfum-label {
    display: block;
    font-size: 12px;
    color: var(--pc-text-sub, #636E72);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-vote-parfum-stars {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pc-vote-star {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--pc-border, #E8ECF1);
    background: var(--pc-bg-page, #F8F9FE);
    color: var(--pc-text-sub, #636E72);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pc-font, 'Inter', sans-serif);
}
.pc-vote-star:hover {
    background: var(--pc-primary, #6C5CE7);
    color: #fff;
    border-color: var(--pc-primary, #6C5CE7);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(108, 92, 231, .3);
}
.pc-vote-star--active {
    background: linear-gradient(135deg, #6C5CE7, #a855f7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(108, 92, 231, .3);
}

.pc-vote-parfum-voted {
    text-align: center;
}

/* ── Mini parfum score (pour archives) ──────────────────────── */

.pc-vote-widget--parfum.pc-vote-widget--mini {
    flex-direction: row;
    padding: 4px 10px;
    border-radius: 30px;
    gap: 6px;
}
.pc-vote-widget--parfum.pc-vote-widget--mini .pc-vote-parfum-avg {
    font-size: 16px;
}
.pc-vote-widget--parfum.pc-vote-widget--mini .pc-vote-parfum-max {
    font-size: 11px;
}
.pc-vote-widget--parfum.pc-vote-widget--mini .pc-vote-parfum-total {
    font-size: 10px;
}
.pc-vote-widget--parfum.pc-vote-widget--mini .pc-vote-parfum-input,
.pc-vote-widget--parfum.pc-vote-widget--mini .pc-vote-parfum-voted {
    display: none;
}

/* ── MODALE LEAD ────────────────────────────────────────────── */

.pc-lead-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 26, .6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
.pc-lead-overlay.pc-lead-overlay--visible {
    opacity: 1;
    visibility: visible;
}

.pc-lead-modal {
    background: var(--pc-bg-card, #fff);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(108, 92, 231, .2);
    position: relative;
    transform: translateY(20px) scale(.96);
    transition: all .3s cubic-bezier(.22, .61, .36, 1);
}
.pc-lead-overlay--visible .pc-lead-modal {
    transform: translateY(0) scale(1);
}

.pc-lead-modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border: none;
    background: var(--pc-bg-page, #F8F9FE);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-text-sub, #636E72);
    transition: all .2s;
}
.pc-lead-modal__close:hover {
    background: #FF6B6B;
    color: #fff;
}

.pc-lead-modal__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6C5CE7, #a855f7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(108, 92, 231, .25);
}

.pc-lead-modal__title {
    font-family: var(--pc-font, 'Inter', sans-serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--pc-text-main, #2D3436);
    text-align: center;
    margin: 0 0 8px;
}

.pc-lead-modal__sub {
    font-size: 14px;
    color: var(--pc-text-sub, #636E72);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

.pc-lead-modal__promo {
    background: linear-gradient(135deg, rgba(108, 92, 231, .06), rgba(253, 121, 168, .06));
    border: 1px solid rgba(108, 92, 231, .12);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--pc-primary, #6C5CE7);
    font-weight: 600;
}

/* Formulaire */
.pc-lead-form { display: flex; flex-direction: column; gap: 14px; }

.pc-lead-field {
    position: relative;
}
.pc-lead-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}
.pc-lead-field input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 1.5px solid var(--pc-border, #E8ECF1);
    border-radius: 12px;
    font-family: var(--pc-font, 'Inter', sans-serif);
    font-size: 15px;
    color: var(--pc-text-main, #2D3436);
    background: var(--pc-bg-page, #F8F9FE);
    outline: none;
    transition: all .2s;
    box-sizing: border-box;
}
.pc-lead-field input:focus {
    border-color: var(--pc-primary, #6C5CE7);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, .12);
    background: #fff;
}
.pc-lead-field input::placeholder {
    color: var(--pc-text-light, #B2BEC3);
}

.pc-lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--pc-text-sub, #636E72);
    line-height: 1.4;
}
.pc-lead-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pc-primary, #6C5CE7);
    flex-shrink: 0;
    margin-top: 1px;
}

.pc-lead-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6C5CE7, #5A4BD1);
    color: #fff;
    font-family: var(--pc-font, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(108, 92, 231, .3);
}
.pc-lead-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, .4);
}
.pc-lead-submit:active {
    transform: translateY(0);
}
.pc-lead-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.pc-lead-error {
    color: #FF6B6B;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    min-height: 20px;
}

.pc-lead-success {
    color: #00B894;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

/* ── ANIMATION PULSE POUR VOTE SUCCESS ──────────────────────── */

@keyframes pc-vote-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.pc-vote-btn--just-voted {
    animation: pc-vote-pulse .4s ease;
}

/* ── SECTION VOTE DANS LES TEMPLATES ────────────────────────── */

.pc-vote-section {
    padding: 32px 0;
    background: var(--pc-bg-card, #fff);
    border-top: 1px solid var(--pc-border, #E8ECF1);
    border-bottom: 1px solid var(--pc-border, #E8ECF1);
}
.pc-vote-section__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.pc-vote-section__label {
    font-size: 15px;
    color: var(--pc-text-main, #2D3436);
    font-weight: 700;
}

/* ── VOTE INLINE DANS LES CARTES D'ARCHIVE ──────────────────── */

.pc-card-vote {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 480px) {
    .pc-lead-modal {
        padding: 28px 20px;
    }
    .pc-lead-modal__title {
        font-size: 19px;
    }
    .pc-vote-parfum-stars {
        gap: 3px;
    }
    .pc-vote-star {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
