/* CSS pour la grille tarifaire - Solution Park sites Eco */

/* Card produit (unique, pas de grid) */
.sp-product-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid #e8e8ee;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Toggle pill grille tarifaire */
.sp-grille-toggle {
    display: inline-flex;
    background: #f0f0f5;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 16px;
}

.sp-grille-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.2;
}

.sp-grille-btn.is-active {
    background: var(--sp-color);
    color: #fff;
}

.sp-grille-btn:disabled {
    cursor: default;
}

.sp-grille-panel[hidden] {
    display: none;
}

/* Badges paliers clés */
.sp-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.sp-badge {
    flex: 1;
    background: linear-gradient(135deg, var(--sp-color), color-mix(in srgb, var(--sp-color) 87%, #000));
    border-radius: 14px;
    padding: 20px 16px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 20px var(--sp-color-soft);
}

.sp-badge-days {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sp-badge-price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 2px;
    line-height: 1.1;
}

.sp-badge-perday {
    display: block;
    font-size: 11px;
    opacity: 0.7;
}

/* Tableau des tarifs */
.sp-price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 2px;
    margin: 0;
}

.sp-price-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a8a9a;
    font-weight: 600;
    padding: 8px 12px;
    text-align: right;
    background: none;
    border: none;
}

.sp-price-table thead th:first-child {
    text-align: left;
}

.sp-price-table tbody tr {
    background: transparent;
}

.sp-price-table tbody tr:nth-child(odd) {
    background: #f8f8fb;
}

.sp-price-table tbody td {
    padding: 10px 12px;
    border: none;
}

.sp-price-table tbody td:first-child {
    font-weight: 500;
    border-radius: 8px 0 0 8px;
}

.sp-cell-price {
    text-align: right;
    font-weight: 600;
    font-size: 15px;
}

.sp-cell-perday {
    text-align: right;
    font-size: 12px;
    color: #8a8a9a;
    font-weight: 400;
    border-radius: 0 8px 8px 0;
}

/* Expand / collapse */
.sp-row-extra {
    display: none;
}

.sp-grille-panel.is-expanded .sp-row-extra {
    display: table-row;
}

.sp-table-expand {
    display: block;
    margin: 12px auto 0;
    background: #2e2e2e;
    border: none;
    border-radius: 5px;
    padding: 8px 20px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.sp-grille-panel .sp-expand-expanded {
    display: none;
}

.sp-grille-panel.is-expanded .sp-expand-collapsed {
    display: none;
}

.sp-grille-panel.is-expanded .sp-expand-expanded {
    display: inline;
}

/* Message complémentaire (>25 paliers) */
.sp-extra-message {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.sp-extra-message p {
    margin: 8px 0;
}

.sp-extra-message p:last-child {
    text-align: left;
}

.sp-extra-message a {
    margin: 8px 0;
}

/* Mobile */
@media (max-width: 480px) {
    .sp-product-card {
        padding: 22px 18px;
    }

    .sp-badges {
        gap: 8px;
    }

    .sp-badge {
        padding: 16px 8px;
    }

    .sp-badge-price {
        font-size: 22px;
    }

    .sp-badge-days {
        font-size: 12px;
    }
}
