/* Explain: CSS for pricing tables, with alternating background colors and improved mobile/desktop layouts. */
/* Tableaux de prix : cartes empilées sur mobile, tableau à 2 colonnes au-delà */

/* Haut de la page tarifs : dégradé ivoire vers blanc */
.tarifs-hero {
    background: linear-gradient(180deg, var(--surface-warm) 0%, #ffffff 78%);
}

.price-table {
    display: grid;
    gap: 0.625rem;
}

.price-head {
    display: none;
}

.price-group {
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(158, 136, 75, 0.14);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.15rem 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(28, 29, 31, 0.1);
    border-radius: 0.75rem;
    background-color: #ffffff;
}

.price-row-alt {
    background-color: var(--surface-warm);
}

.price-name {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
}

.price-amount {
    color: var(--primary-color);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.price-desc {
    grid-column: 1 / -1;
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.price-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.price-note-light {
    color: var(--text-light-muted);
}

@media (min-width: 640px) {
    .price-table {
        display: block;
        overflow: hidden;
        border: 1px solid rgba(28, 29, 31, 0.1);
        border-radius: 1rem;
        background-color: #ffffff;
        box-shadow: 0 26px 50px -34px rgba(28, 29, 31, 0.4);
    }

    .price-head {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 0.875rem 1.25rem;
        background-color: var(--primary-color);
        color: #ffffff;
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .price-head-amount {
        text-align: right;
    }

    .price-group {
        padding: 0.625rem 1.25rem;
        border-radius: 0;
        font-size: 0.9375rem;
    }

    .price-row {
        padding: 1rem 1.25rem;
        border: none;
        border-top: 1px solid rgba(28, 29, 31, 0.08);
        border-radius: 0;
    }

    .price-amount {
        font-size: 1.0625rem;
    }
}

@media (max-width: 639px) {
    .price-name {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .price-amount {
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}