/* =========================================================
   CLASSEMENT GÉNÉRAL — TOUR DE LA GUADELOUPE 2026
   ========================================================= */

.vpx-tour-ranking {
    max-width: 820px;
    margin: 30px auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.vpx-tour-ranking-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: #111111;
    border-left: 7px solid #e30613;
    color: #ffffff;
}

.vpx-tour-ranking-heading {
    min-width: 0;
}

.vpx-tour-ranking-kicker {
    display: block;
    margin-bottom: 5px;
    color: #e30613;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.vpx-tour-ranking-title {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.vpx-tour-ranking-search {
    width: 260px;
    flex: 0 0 260px;
}

.vpx-tour-ranking-search label {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.vpx-tour-ranking-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: #ffffff;
    color: #111111;
    border: 2px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    box-sizing: border-box;
}

.vpx-tour-ranking-search input:focus {
    border-color: #e30613;
    outline: none;
}

.vpx-tour-ranking-search-status {
    min-height: 16px;
    margin-top: 4px;
    color: #d8d8d8;
    font-size: 10px;
    line-height: 1.2;
}

.vpx-tour-ranking-columns,
.vpx-tour-ranking-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 110px;
    align-items: center;
}

.vpx-tour-ranking-columns {
    padding: 10px 18px;
    background: #f1f1f1;
    color: #666666;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.vpx-tour-ranking-columns span:last-child {
    text-align: right;
}

/*
 * La fenêtre conserve toujours la hauteur de 10 lignes.
 * Les boutons restent donc toujours au même emplacement.
 */
.vpx-tour-ranking-window {
    height: 580px;
    overflow: hidden;
    background: #ffffff;
}

.vpx-tour-ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vpx-tour-ranking-row {
    box-sizing: border-box;
    height: 58px;
    padding: 6px 18px;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.2s ease;
}

.vpx-tour-ranking-row.is-leader {
    background: linear-gradient(
        90deg,
        rgba(255, 213, 0, 0.22),
        rgba(255, 255, 255, 0)
    );
}

.vpx-tour-ranking-row.is-search-result {
    background: linear-gradient(
        90deg,
        rgba(227, 6, 19, 0.14),
        rgba(255, 255, 255, 0)
    );
    box-shadow: inset 5px 0 0 #e30613;
}

.vpx-tour-ranking-row.is-placeholder {
    visibility: hidden;
}

.vpx-tour-ranking-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.vpx-tour-ranking-row.is-leader
.vpx-tour-ranking-position {
    background: #ffd500;
    color: #111111;
}

.vpx-tour-ranking-rider {
    min-width: 0;
    padding-right: 10px;
}

.vpx-tour-ranking-rider strong,
.vpx-tour-ranking-rider small {
    display: block;
}

.vpx-tour-ranking-rider strong {
    overflow: hidden;
    color: #111111;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpx-tour-ranking-rider small {
    overflow: hidden;
    margin-top: 2px;
    color: #666666;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vpx-tour-ranking-time {
    color: #111111;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.vpx-tour-ranking-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #d8d8d8;
}

.vpx-tour-ranking-button {
    min-height: 54px;
    padding: 10px 12px;
    background: #f3f3f3;
    color: #111111;
    border: 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.vpx-tour-ranking-button:hover,
.vpx-tour-ranking-button:focus {
    background: #e5e5e5;
    outline: none;
}

.vpx-tour-ranking-button.is-primary {
    background: #e30613;
    color: #ffffff;
}

.vpx-tour-ranking-button.is-primary:hover,
.vpx-tour-ranking-button.is-primary:focus {
    background: #bd0010;
}

.vpx-tour-ranking-button.is-dark {
    background: #111111;
    color: #ffffff;
}

.vpx-tour-ranking-button.is-dark:hover,
.vpx-tour-ranking-button.is-dark:focus {
    background: #2b2b2b;
}

.vpx-tour-ranking-button:disabled {
    cursor: default;
    opacity: 0.38;
}

@media screen and (max-width: 700px) {
    .vpx-tour-ranking {
        margin: 20px 0;
        border-radius: 10px;
    }

    .vpx-tour-ranking-header {
        display: block;
        padding: 18px 15px;
    }

    .vpx-tour-ranking-title {
        font-size: 18px;
    }

    .vpx-tour-ranking-search {
        width: 100%;
        margin-top: 16px;
    }

    .vpx-tour-ranking-columns,
    .vpx-tour-ranking-row {
        grid-template-columns: 42px minmax(0, 1fr) 75px;
    }

    .vpx-tour-ranking-columns,
    .vpx-tour-ranking-row {
        padding-right: 10px;
        padding-left: 10px;
    }

    .vpx-tour-ranking-rider strong {
        font-size: 11px;
    }

    .vpx-tour-ranking-rider small {
        font-size: 8px;
    }

    .vpx-tour-ranking-time {
        font-size: 10px;
    }

    .vpx-tour-ranking-actions {
        grid-template-columns: 1fr;
    }
}

.vpx-tour-ranking-controls {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 0 0 auto;
}

.vpx-tour-ranking-stage-selector {
    width: 250px;
}

.vpx-tour-ranking-stage-selector label,
.vpx-tour-ranking-search label {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.vpx-tour-ranking-stage-selector select,
.vpx-tour-ranking-search input {
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: #ffffff;
    color: #111111;
    border: 2px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
}

.vpx-tour-ranking-stage-selector select:focus,
.vpx-tour-ranking-search input:focus {
    border-color: #e30613;
    outline: none;
}

.vpx-tour-ranking-stage-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 44px;
    padding: 9px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
}

.vpx-tour-ranking-stage-info strong {
    color: #111111;
    font-size: 13px;
    font-weight: 900;
}

.vpx-tour-ranking-stage-info span {
    color: #666666;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

@media screen and (max-width: 760px) {
    .vpx-tour-ranking-controls {
        display: block;
        width: 100%;
        margin-top: 16px;
    }

    .vpx-tour-ranking-stage-selector,
    .vpx-tour-ranking-search {
        width: 100%;
    }

    .vpx-tour-ranking-search {
        margin-top: 12px;
    }

    .vpx-tour-ranking-stage-info {
        display: block;
    }

    .vpx-tour-ranking-stage-info span {
        display: block;
        margin-top: 4px;
        text-align: left;
    }
}
/* =========================================================
   CORRECTIF CLASSEMENT — COULEURS ET ÉTATS
   À ajouter à la fin de classement-general.css
   ========================================================= */

.vpx-tour-ranking-position.is-yellow {
    background: #ffd500;
    color: #111111;
}

.vpx-tour-ranking-position.is-green {
    background: #079447;
    color: #ffffff;
}

.vpx-tour-ranking-position.is-polka {
    background:
        radial-gradient(circle at 30% 30%, #d7193f 0 3px, transparent 4px),
        radial-gradient(circle at 70% 68%, #d7193f 0 3px, transparent 4px),
        #ffffff;
    color: #111111;
    border: 2px solid #d7193f;
}

.vpx-tour-ranking-position.is-white {
    background: #ffffff;
    color: #111111;
    border: 2px solid #bcbcbc;
}

.vpx-tour-ranking-position.is-combined {
    background: linear-gradient(
        135deg,
        #ffd500 0 25%,
        #079447 25% 50%,
        #d7193f 50% 75%,
        #ffffff 75% 100%
    );
    color: #111111;
    border: 1px solid #999999;
}

.vpx-tour-ranking-position.is-abandon {
    background: #d7193f;
    color: #ffffff;
}

.vpx-tour-ranking-position.is-hors-delai {
    background: #e67e22;
    color: #ffffff;
}

.vpx-tour-ranking-position.is-non-partant {
    background: #777777;
    color: #ffffff;
}

.vpx-tour-ranking-empty {
    box-sizing: border-box;
    height: 58px;
    padding: 15px 18px;
    border-bottom: 1px solid #eeeeee;
    color: #777777;
    font-size: 12px;
}

@media screen and (max-width: 700px) {
    .vpx-tour-ranking-row {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 75px;
        align-items: center;
        height: 58px;
        padding: 6px 10px;
    }

    .vpx-tour-ranking-position {
        width: 31px;
        height: 31px;
    }

    .vpx-tour-ranking-window {
        height: 580px;
    }
}
