/* Prévente Serious Game — front-end. Uniquement des classes préfixées psg-, aucun sélecteur global. */

.psg-counter {
    font-weight: 700;
    font-size: 1.4em;
}

.psg-progress {
    margin: 1em 0;
}

.psg-progress__label {
    margin-bottom: .35em;
    font-weight: 600;
}

.psg-progress__track {
    background: rgba(0, 0, 0, .08);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
}

.psg-progress__bar {
    background: currentColor;
    height: 100%;
    border-radius: 999px;
    transition: width .3s ease;
}

.psg-progress__meta {
    margin-top: .35em;
    font-size: .9em;
    opacity: .8;
}

.psg-tiers {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .75em;
}

.psg-tiers--pile {
    flex-direction: column;
}

.psg-tiers--pile .psg-tier {
    width: 100%;
}

.psg-tier {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: .5em;
    padding: .75em 1em;
    display: flex;
    flex-direction: column;
    gap: .2em;
    min-width: 140px;
}

.psg-tier--unlocked {
    border-color: currentColor;
}

.psg-tier--locked {
    opacity: .85;
}

.psg-tier__seuil {
    font-weight: 700;
    font-size: 1.2em;
}

.psg-tier__statut {
    font-size: .85em;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.psg-tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5em;
    margin: 1em 0;
}

.psg-tier-cards--pile {
    grid-template-columns: 1fr;
}

.psg-tier-card {
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .75em;
    padding: 1.25em;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .35em;
}

.psg-tier-card--locked {
    opacity: .85;
}

.psg-tier-card__badge {
    align-self: flex-start;
    font-size: .75em;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .2em .6em;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
}

.psg-tier-card--unlocked .psg-tier-card__badge {
    background: currentColor;
    color: #fff;
}

.psg-tier-card__seuil {
    font-weight: 700;
    font-size: 1.3em;
}

.psg-tier-card__titre {
    margin: 0;
}

.psg-tier-card__desc {
    font-size: .95em;
    opacity: .9;
}

.psg-tier-card__desc p:last-child {
    margin-bottom: 0;
}

.psg-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5em;
    margin: 1em 0;
}

.psg-offer {
    display: flex;
    flex-direction: column;
    gap: .5em;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .75em;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    padding: 0 0 1.25em;
    transition: box-shadow .2s ease, transform .2s ease;
}

.psg-offer:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.psg-offer__image {
    margin: 0;
}

.psg-offer__image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

.psg-offer__title,
.psg-offer__price,
.psg-offer__desc,
.psg-offer__stock,
.psg-offer__cta {
    margin-left: 1.25em;
    margin-right: 1.25em;
}

.psg-offer__title {
    margin-top: .75em;
}

.psg-offer__price {
    font-weight: 700;
    font-size: 1.3em;
    color: currentColor;
}

.psg-offer__cta {
    position: relative;
    align-self: stretch;
    text-align: center;
    border-radius: 999px;
    margin-top: auto;
    border: 0;
    cursor: pointer;
}

.psg-offer__cta--in-cart {
    padding-right: 2.6em;
}

.psg-offer__badge {
    position: absolute;
    top: 50%;
    right: .6em;
    transform: translateY(-50%);
    min-width: 1.5em;
    height: 1.5em;
    padding: 0 .35em;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: rgba(0, 0, 0, .75);
    font-size: .8em;
    font-weight: 700;
    line-height: 1.5em;
    text-align: center;
}

.psg-offer__cta.loading {
    opacity: .6;
    pointer-events: none;
}

.psg-offer__cta.added::after {
    content: " \2713 Ajouté";
}

.psg-offer .added_to_cart {
    display: block;
    text-align: center;
    margin: .5em 1.25em 0;
    font-size: .85em;
}

.psg-sidebar-card {
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .75em;
    padding: 1.5em;
    background: #fff;
    position: sticky;
    top: 2em;
}

.psg-sidebar-card .psg-progress__track {
    height: 10px;
}

.psg-sidebar-card .psg-stats {
    gap: 1em;
    margin-top: 1em;
}

.psg-sidebar-card .psg-stats__value {
    font-size: 1.3em;
}

.psg-stats {
    list-style: none;
    margin: 1em 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}

.psg-stats__item {
    display: flex;
    flex-direction: column;
}

.psg-stats__value {
    font-size: 1.6em;
    font-weight: 700;
}

.psg-offer__stock--scarce {
    font-weight: 600;
    color: #b32d2e;
}

.psg-share {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    margin: 1em 0;
}

.psg-share__link,
.psg-share__copy {
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 999px;
    padding: .4em 1em;
    font-size: .9em;
    text-decoration: none;
    color: inherit;
    background: #fff;
    cursor: pointer;
}

.psg-share__link:hover,
.psg-share__copy:hover {
    background: rgba(0, 0, 0, .04);
}
