/* Lord Park Community — widgets front */

.lpc-block,
.lpc-debate {
    background: var(--gris-card, #1C1E26);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 0, 0, 0.4));
    padding: 24px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--blanc, #F5F5F7);
}

.lpc-block-title {
    font-family: var(--font-title, 'Passion One', sans-serif);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blanc_pur, #fff);
    margin-bottom: 16px;
}

/* Réactions */
.lpc-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lpc-reaction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    color: var(--blanc, #F5F5F7);
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.lpc-reaction:hover {
    transform: translateY(-1px);
    border-color: var(--rouge, #E12523);
    background: rgba(225, 37, 35, 0.1);
}

.lpc-reaction.lpc-selected {
    background: rgba(225, 37, 35, 0.15);
    border-color: var(--rouge, #E12523);
    font-weight: 600;
}

.lpc-reaction.lpc-loading {
    opacity: 0.5;
    pointer-events: none;
}

.lpc-reaction-emoji {
    font-size: 18px;
}

.lpc-reaction-percent {
    font-weight: 700;
    color: var(--rouge, #E12523);
}

/* Verdict */
.lpc-verdict {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(225, 37, 35, 0.08);
    border-left: 3px solid var(--rouge, #E12523);
    border-radius: var(--radius-sm, 8px);
    font-style: italic;
    color: var(--blanc, #F5F5F7);
}

/* Question contextuelle */
.lpc-question {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--glass-border, rgba(255, 255, 255, 0.08));
}

.lpc-question-label {
    font-weight: 600;
    margin-bottom: 10px;
}

.lpc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.lpc-slider {
    flex: 1;
    accent-color: var(--rouge, #E12523);
}

.lpc-slider-value {
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.lpc-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lpc-btn {
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    color: var(--blanc, #F5F5F7);
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.lpc-btn:hover {
    border-color: var(--rouge, #E12523);
    background: rgba(225, 37, 35, 0.12);
}

.lpc-btn-primary {
    background: var(--rouge, #E12523);
    border-color: var(--rouge, #E12523);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(225, 37, 35, 0.3);
}

.lpc-btn-primary:hover {
    background: var(--rouge-dark, #B91C1C);
    color: #fff;
}

/* Barres de résultats */
.lpc-result-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lpc-result-bar {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 2fr 48px;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.lpc-result-bar.lpc-mine .lpc-result-label {
    font-weight: 700;
}

.lpc-result-track {
    display: block;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.lpc-result-fill {
    display: block;
    height: 100%;
    background: var(--rouge, #E12523);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.lpc-result-percent {
    font-weight: 700;
    text-align: right;
}

.lpc-question-result {
    background: rgba(225, 37, 35, 0.08);
    border-left: 3px solid var(--rouge, #E12523);
    padding: 12px 16px;
    border-radius: var(--radius-sm, 8px);
}

.lpc-question-total,
.lpc-debate-total {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Débat */
.lpc-debate-question {
    font-weight: 600;
    font-size: 16px;
    color: var(--blanc_pur, #fff);
    margin-bottom: 12px;
}

/* Honeypot */
.lpc-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Modal capture */
.lpc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: lpcFadeIn 0.25s ease-out;
}

@keyframes lpcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lpcSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.lpc-modal .lpc-modal-box {
    position: relative;
    background: var(--gris-card, #1C1E26);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center !important;
    color: var(--blanc, #F5F5F7);
    animation: lpcSlideUp 0.3s ease-out;
}

.lpc-modal .lpc-modal-box h3 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    font-family: var(--font-title, 'Passion One', sans-serif) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center !important;
    color: var(--blanc_pur, #fff) !important;
}

.lpc-modal .lpc-modal-box p {
    margin: 0 0 22px !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: center !important;
}

.lpc-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    padding: 4px !important;
    line-height: 1;
    font-size: 26px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4) !important;
    transition: color 0.15s ease;
}

.lpc-modal-close:hover {
    color: #fff !important;
}

.lpc-modal input.lpc-input {
    display: block;
    width: 100% !important;
    padding: 13px 16px !important;
    margin: 0 0 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--blanc, #F5F5F7) !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    box-sizing: border-box;
    box-shadow: none !important;
    text-align: left !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lpc-modal input.lpc-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1;
}

.lpc-modal input.lpc-input:focus {
    outline: none !important;
    border-color: var(--rouge, #E12523) !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.lpc-modal .lpc-modal-submit {
    width: 100%;
    margin-top: 6px;
    padding: 13px 18px;
    font-size: 15px;
    border-radius: 999px;
}

.lpc-modal-skip {
    display: block;
    margin: 14px auto 0;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.lpc-modal-skip:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.lpc-modal-error {
    color: #FE9F9F !important;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}

/* Page débat */
.lpc-debate-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 64px;
    color: var(--blanc, #F5F5F7);
}

.lpc-debate-back {
    display: inline-block;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.lpc-debate-back:hover {
    color: #fff !important;
}

.lpc-debate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(225, 37, 35, 0.15);
    border: 1px solid rgba(225, 37, 35, 0.3);
    color: var(--rouge, #E12523);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.lpc-debate-badge.lpc-closed {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

h1.lpc-debate-title {
    font-family: var(--font-title, 'Passion One', sans-serif) !important;
    font-size: 52px !important;
    line-height: 1.02 !important;
    color: var(--blanc_pur, #fff) !important;
    text-transform: uppercase;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.lpc-debate-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.lpc-debate-intro {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.lpc-debate-intro p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Widget principal de la page : boutons de vote généreux */
.lpc-debate-main {
    padding: 28px;
}

.lpc-debate-main .lpc-debate-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lpc-debate-main .lpc-choice {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 14px;
    border-width: 1.5px;
}

.lpc-debate-main .lpc-result-bar {
    grid-template-columns: minmax(160px, 1.4fr) 2fr 52px;
    font-size: 15px;
    padding: 6px 0;
}

.lpc-debate-main .lpc-result-track {
    height: 14px;
}

/* Partage */
.lpc-debate-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 28px 0;
}

.lpc-debate-share-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 4px;
}

.lpc-debate-share .lpc-btn {
    text-decoration: none;
    color: var(--blanc, #F5F5F7) !important;
    font-size: 13px;
}

/* Parc lié */
.lpc-debate-parc {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gris-card, #1C1E26);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 14px);
    color: var(--blanc, #F5F5F7) !important;
    text-decoration: none;
    margin-bottom: 28px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.lpc-debate-parc:hover {
    border-color: var(--rouge, #E12523);
    transform: translateY(-2px);
}

.lpc-debate-parc img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

/* Débats précédents */
.lpc-debate-previous {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

h2.lpc-debate-previous-title {
    font-family: var(--font-title, 'Passion One', sans-serif) !important;
    font-size: 26px !important;
    text-transform: uppercase;
    color: var(--blanc_pur, #fff) !important;
    margin: 0 0 16px !important;
}

.lpc-debate-previous-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lpc-debate-previous-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gris-card, #1C1E26);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 14px);
    color: var(--blanc, #F5F5F7) !important;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.lpc-debate-previous-item:hover {
    border-color: var(--rouge, #E12523);
}

.lpc-debate-previous-question {
    font-weight: 600;
    font-size: 15px;
}

.lpc-debate-previous-status {
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
}

.lpc-debate-previous-status.lpc-live {
    background: rgba(225, 37, 35, 0.15);
    border: 1px solid rgba(225, 37, 35, 0.3);
    color: var(--rouge, #E12523);
    font-weight: 600;
}

/* Archive débats */
.lpc-debates-archive-intro {
    font-size: 16px !important;
    margin-bottom: 8px;
}

.lpc-block-title a {
    color: inherit !important;
    text-decoration: none;
}

.lpc-block-title a:hover {
    color: var(--rouge, #E12523) !important;
}

.lpc-debate-permalink {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--rouge, #E12523) !important;
    text-decoration: none;
    font-weight: 600;
}

.lpc-debate-permalink:hover {
    text-decoration: underline;
}

.lpc-debates-pagination {
    margin-top: 20px;
}

.lpc-debates-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--blanc, #F5F5F7);
}

.lpc-debates-pagination a,
.lpc-debates-pagination .page-numbers {
    color: var(--blanc, #F5F5F7) !important;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    text-decoration: none;
    font-size: 14px;
}

.lpc-debates-pagination .page-numbers.current {
    background: var(--rouge, #E12523);
    border-color: var(--rouge, #E12523);
}

@media (max-width: 600px) {
    h1.lpc-debate-title {
        font-size: 36px !important;
    }

    .lpc-debate-page {
        padding: 32px 16px 48px;
    }

    .lpc-debate-main {
        padding: 18px;
    }

    .lpc-debate-main .lpc-result-bar {
        grid-template-columns: 1fr;
    }
}

/* Toast */
.lpc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--gris-light, #282B35);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
    max-width: 90vw;
}

.lpc-toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 600px) {
    .lpc-block,
    .lpc-debate {
        padding: 16px;
    }

    .lpc-reaction-label {
        font-size: 13px;
    }

    .lpc-result-bar {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .lpc-result-percent {
        text-align: left;
    }
}
