/* =====================================================
   Sondages LVDV — dark palette
===================================================== */

/* --- Widget scroller homepage --- */
#sondage-widget {
    margin: 24px 0;
}

.sondage-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.sondage-widget-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.sondage-widget-see-all {
    font-size: 12px;
    color: #ffe327;
    text-decoration: none;
}

.sondage-widget-see-all:hover {
    text-decoration: underline;
}

/* --- Scroller wrapper --- */
.sondage-scroller-wrap {
    position: relative;
}

.sondage-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sondage-scroller::-webkit-scrollbar {
    display: none;
}

/* Arrow buttons (desktop) */
.sondage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #242424;
    border: 1px solid #242424;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: background 0.15s;
}

.sondage-arrow:hover {
    background: #ffe327;
    color: #0f0f0f;
}

.sondage-arrow-left  { left: -18px; }
.sondage-arrow-right { right: -18px; }

@media (max-width: 768px) {
    .sondage-arrow { display: none; }
}

/* --- Carte sondage --- */
.sondage-card {
    background: #171717;
    border: 1px solid #242424;
    border-radius: 12px;
    padding: 20px;
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Mode standalone (shortcode dans article) */
.sondage-card--standalone {
    min-width: unset;
    max-width: 480px;
    margin: 24px auto;
}

/* --- Badge --- */
.sondage-badge {
    display: inline-block;
    background: #ffe327;
    color: #0f0f0f;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    align-self: flex-start;
}

/* --- Question --- */
.sondage-question {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.3;
}

/* --- Options (avant vote) --- */
.sondage-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sondage-option {
    background: #242424;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #ffffff;
    transition: background 0.15s, border-color 0.15s;
    text-align: left;
    width: 100%;
}

.sondage-option:hover {
    background: #2f2f2f;
    border-color: #ffe327;
}

/* --- Résultats (après vote) --- */
.sondage-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sondage-bar-wrap {
    position: relative;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #242424;
}

.sondage-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.6s ease;
}

.sondage-bar-fill--winner {
    background: #ffe327;
}

.sondage-bar-fill--other {
    background: #2f2f2f;
}

.sondage-bar-text {
    position: absolute;
    left: 12px;
    top: 0;
    line-height: 40px;
    font-size: 13px;
    color: #ffffff;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 56px);
}

.sondage-bar-percent {
    position: absolute;
    right: 12px;
    top: 0;
    line-height: 40px;
    font-size: 13px;
    font-weight: 700;
    z-index: 1;
}

.sondage-bar-percent--winner {
    color: #ffe327;
}

.sondage-bar-percent--other {
    color: #ffffff;
}

/* --- Footer --- */
.sondage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 12px;
    color: #6d6d6d;
}

.sondage-footer-votes {
    font-size: 12px;
    color: #6d6d6d;
}

.sondage-footer-expiry {
    font-size: 12px;
    color: #6d6d6d;
}

/* --- État loading --- */
.sondage-loading {
    min-width: 280px;
    height: 160px;
    background: #171717;
    border: 1px solid #242424;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d6d6d;
    font-size: 13px;
}
