/* Boutique de logiciels — catalogue, fiche produit, « Mes achats » */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.shop-tabs a span { font-size: .75rem; background: var(--bg); border-radius: 999px; padding: 0 .45rem; color: var(--muted); }
.shop-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.shop-tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.shop-tabs a.active span { background: rgba(255, 255, 255, .18); color: #fff; }
.shop-search { position: relative; min-width: 240px; flex: 0 1 320px; }
.shop-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.shop-search .form-control { padding-left: 2.4rem; border-radius: 999px; }

.shop-card { display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .25s, box-shadow .25s; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 31, 58, .12); }
.shop-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy-900, #0b1f3a), var(--navy-700, #16365f)); overflow: hidden; }
.shop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 2.6rem; }
.shop-media-lg { aspect-ratio: 16 / 8; border-radius: var(--radius, 14px) var(--radius, 14px) 0 0; }
.shop-media-lg .shop-ph { font-size: 4rem; }
.shop-platform { position: absolute; left: .75rem; bottom: .75rem; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.shop-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.shop-type { color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.shop-body h3 { font-size: 1.05rem; margin: .3rem 0 .4rem; line-height: 1.3; }
.shop-body p { color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.shop-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.shop-price { font-family: var(--font-head, inherit); font-weight: 800; color: var(--navy); font-size: 1.2rem; }
.shop-price-lg { font-size: 1.6rem; }
.shop-avail { font-size: .75rem; font-weight: 600; }
.shop-avail i { font-size: .5rem; vertical-align: middle; }

.shop-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 3rem; }
.shop-trust > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 14px); padding: 1.1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; }
.shop-trust i { grid-row: span 2; font-size: 1.3rem; color: var(--brand); margin-top: .15rem; }
.shop-trust strong { color: var(--navy); }
.shop-trust span { color: var(--muted); font-size: .85rem; }

.shop-detail { height: auto; overflow: hidden; }
.shop-desc { color: #334155; line-height: 1.7; margin-bottom: 1.25rem; }
.shop-how { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.shop-how li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.shop-how i { flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-light, #e8f0ff); color: var(--brand); font-size: .75rem; }
.shop-order { height: auto; position: sticky; top: calc(var(--nav-h, 80px) + 1rem); }
.shop-summary { margin: .5rem 0 1rem; }

.shop-order-row { height: auto; padding: 0; overflow: hidden; }
.shop-order-row > summary { list-style: none; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; cursor: pointer; }
.shop-order-row > summary::-webkit-details-marker { display: none; }
.shop-order-row[open] > summary { border-bottom: 1px solid var(--line); }
.shop-order-ico { flex: 0 0 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--brand-light, #e8f0ff); color: var(--brand); }
.min-w-0 { min-width: 0; }
.shop-order-body { padding: 1.1rem 1.2rem 1.2rem; }
.shop-key { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: .6rem .8rem; margin-bottom: .5rem; }
.shop-key-val { display: none; font-size: .95rem; color: var(--navy); word-break: break-all; flex: 1 1 200px; }
.shop-key-mask { flex: 1 1 200px; letter-spacing: .15em; color: var(--muted); }
.shop-key.revealed .shop-key-val { display: inline; }
.shop-key.revealed .shop-key-mask { display: none; }
.shop-delivery { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: .8rem 1rem; margin: .5rem 0; white-space: normal; word-break: break-word; }
.shop-meta { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .85rem; margin: 1rem 0 0; }
.shop-meta dt { color: var(--muted); font-weight: 500; }
.shop-meta dd { margin: 0; }

@media (max-width: 991.98px) {
    .shop-order { position: static; }
}
@media (max-width: 575.98px) {
    .shop-search { flex: 1 1 100%; }
    .shop-order-row > summary { padding: .9rem; gap: .6rem; }
    .shop-order-ico { display: none; }
}
