/* Boutique : styles de maquette/shop.html (cartes en style B). */
body.nativ-shop { color: #211a2a; background: #faf7ee; }
:where(#shop) a { color: inherit; } /* Spécificité faible : les boutons gardent leur couleur. */
#shop a:focus-visible { outline: 2px solid #263485; outline-offset: 4px; }
.intro, .shelf { --catalog-gutter: clamp(18px, 6vw, 100px); padding: clamp(32px, 5vw, 82px) var(--catalog-gutter); }
.intro { position: relative; overflow: hidden; background: var(--culture-background, #e5ddf5); }
.intro.shop-banner { display: grid; align-items: center; min-height: clamp(148px, 15vw, 218px); padding-block: 7px; }
.shop-logo { position: relative; display: grid; place-items: center; width: clamp(132px, 18vw, 245px); aspect-ratio: 1; color: #263485; }
.shop-logo::before { content: ''; position: absolute; inset: 0; background: #fff; -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; mask-position: center; mask-size: contain; mask-repeat: no-repeat; }
.shop-logo-label { position: relative; display: grid; justify-items: center; gap: .14em; font: 750 clamp(24px, 3.15vw, 43px)/.95 var(--font-text); letter-spacing: -.035em; transform: rotate(-28deg); }
.shop-logo-label::before, .shop-logo-label::after { content: ''; width: 52%; height: .11em; background: currentColor; }
.shop-banner .shop-logo { width: clamp(128px, 14vw, 202px); }
.shop-banner .shop-logo-label { font-size: clamp(19px, 2.1vw, 33px); }
#shop h1, #shop h2, #shop .card-name { margin: 0; font: italic 400 clamp(52px, 9vw, 145px)/.94 var(--font-display); letter-spacing: -.075em; }
#shop h2 { font-size: clamp(44px, 6.4vw, 99px); }
.shelf { border-top: 1px solid #211a2a35; background: #f8f4e9; }
.shelf.editions-limitees { background: #e5ddf5; }
.shelf.limited-feature { padding: 0; }
.limited-poster { --poster-gutter: clamp(27px, 4.5vw, 75px); display: grid; grid-template-areas: 'identity media' 'copy media'; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; }
.limited-identity { grid-area: identity; align-self: end; display: grid; justify-items: start; gap: 18px; padding: var(--poster-gutter) var(--poster-gutter) 12px; }
.limited-copy { grid-area: copy; display: grid; align-content: start; justify-items: start; gap: 14px; padding: 12px var(--poster-gutter) var(--poster-gutter); }
.limited-identity, .limited-copy { padding-inline-start: var(--catalog-gutter); }
#shop .limited-identity h2 { font-size: clamp(37px, 4.8vw, 75px); }
.limited-logo { display: block; width: min(100%, clamp(355px, 32vw, 480px)); height: auto; }
.limited-copy p { max-width: 39ch; margin: 0; line-height: 1.5; }
.limited-copy .limited-intro { font-weight: 700; font-size: clamp(19px, 2vw, 28px); line-height: 1.12; }
.limited-media { grid-area: media; position: relative; min-height: 410px; overflow: hidden; }
.limited-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; transform: scale(1.38); transform-origin: 49% 68%; }
.limited-link { display: inline-block; padding: 12px 18px; color: white; background: #263485; font-weight: 700; text-decoration: none; }
.limited-link:hover { background: #191f59; }
.shelf.archives { background: #e5e9c9; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 35px); margin-top: 28px; }
.permanentes .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.permanentes > h2 { color: #000; }
.card { display: block; text-decoration: none; background: var(--product-color); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; }
.card-media { position: relative; }
.stock-badge { display: inline-block; width: fit-content; padding: 5px 8px; background: #fff; color: #211a2a; border: 1px solid currentColor; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card-media .stock-badge { position: absolute; top: 9px; left: 9px; z-index: 1; }
.card-label { position: absolute; inset: 0; overflow: hidden; background: var(--product-color); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.card-label img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 32% center; }
.card:focus-visible .card-label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .card:hover .card-label { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card-label { transition: none; } }
.card-copy { display: grid; gap: 8px; padding: clamp(12px, 2vw, 26px); }
#shop .card-name { font-size: clamp(26px, 4vw, 61px); }
.shelf:not(.related) .card-copy { gap: 4px; padding: 10px clamp(10px, 1.15vw, 17px) 12px; }
#shop .shelf:not(.related) .card-name { font-size: clamp(22px, 2.35vw, 38px); }
.shelf:not(.related) .notes { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.3; }
#shop .card:hover .card-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card-b-notes { display: none; }
#shop .shelf:not(.related) .card { position: relative; overflow: hidden; border: 1px solid #fff; }
#shop .shelf:not(.related) .card-media { overflow: hidden; height: 100%; }
#shop .shelf:not(.related) .card-label,
#shop .shelf:not(.related) .card-copy > .notes { display: none; }
#shop .shelf:not(.related) .card-copy { position: absolute; bottom: 0; left: 0; z-index: 1; display: block; min-width: 45%; max-width: 88%; padding: clamp(9px, 1.15vw, 20px); background: #fff; text-align: center; }
#shop .shelf:not(.related) .card-name { font: 900 clamp(20px, 2.9vw, 49px)/.95 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
#shop .shelf:not(.related) .card-b-notes { display: grid; grid-template-rows: var(--card-notes-rows, 0fr); transition: grid-template-rows .25s ease; }
.card-b-notes-inner { overflow: hidden; font-size: clamp(12px, 1.33vw, 21px); line-height: 1.08; font-weight: 700; }
.card-b-notes-inner::before { content: ''; display: block; height: 12px; margin: 9px auto 6px; width: 92%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 84 14'%3E%3Cpath d='M0 4Q5-4 10 4T20 4T30 4T40 4T50 4T60 4T70 4T80 4' fill='none' stroke='%23211a2a' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.card-b-notes-inner span { display: block; }
#shop .shelf:not(.related) .card:focus-visible { --card-notes-rows: 1fr; }
@media (hover: hover) and (pointer: fine) {
  #shop .shelf:not(.related) .card:hover { --card-notes-rows: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #shop .shelf:not(.related) .card-b-notes { transition: none; }
}
.notes { margin: 0; line-height: 1.45; }
.related { background: #fff; }
.related .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 22px); }
.related .card-copy { padding: clamp(10px, 1.2vw, 17px); }
#shop .related .card-name { font-size: clamp(22px, 2.45vw, 39px); }
.related .notes { font-size: 14px; }
.more-link { display: inline-block; margin-top: 24px; text-underline-offset: 5px; }
.kicker { margin: 0; color: #263485; text-transform: uppercase; font-weight: 700; letter-spacing: .12em; }
.kicker.permanentes { color: #000; }
@media (min-width: 1051px) { .limited-media img { transform: scale(1.62); } }
@media (max-width: 1050px) { .related .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .limited-poster { --poster-gutter: clamp(20px, 5vw, 34px); display: block; }
  .limited-identity { gap: 8px; padding-top: 18px; padding-bottom: 12px; }
  #shop .limited-identity h2 { font-size: clamp(34px, 8vw, 55px); }
  .limited-logo { width: min(65%, 240px); }
  .limited-media { min-height: 0; }
  .limited-media img { position: static; display: block; height: auto; aspect-ratio: 16 / 9; object-position: 54% center; transform: scale(1.58); transform-origin: 52% 60%; }
  .limited-copy { gap: 10px; padding-top: 16px; padding-bottom: 20px; }
  .limited-poster.has-campaign .limited-identity { background: var(--campaign-top, #e5ddf5); }
  .limited-poster.has-campaign .limited-media { background: var(--campaign-bottom, #e5ddf5); }
  .limited-poster.has-campaign .limited-copy { background: var(--campaign-bottom, #e5ddf5); }
}
@media (max-width: 1100px) { .permanentes .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-copy .notes { font-size: 14px; }
  .related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related .card:nth-child(n+5) { display: none; }
}
