/* Les écrans de la fenêtre (choix de l'animal, soins, garde-robe, duo, réglages) : même contenu, habit Nomki. */
html, body.app-body { background: var(--c-page); }
html[data-tauri], html[data-tauri] body.app-body { background: transparent; overflow: hidden; }
.app-body { min-height: 100dvh; }
.app-main { width: 100%; padding: 28px 0 10px; }
/* E2 04/12 (l’auteur : « faire l’application avec une plus grosse hauteur pour que tout rentre ») : 720 → 800 sur PC, plein écran (≤ 860) sur téléphone */
mm-device, html body mm-device { width: 420px; max-width: calc(100vw - 8px); height: min(800px, calc(100dvh - 44px)); }
@media (max-width: 419px) {
  .app-main { padding: 0; }
  mm-device, html body mm-device { width: min(360px, 100vw); max-width: 100vw; height: min(860px, 100dvh); min-height: 0; }
}
.sv { padding: 12px 10px 14px; gap: 12px; font-weight: 600; scrollbar-color: var(--j) var(--co); }
.sv-top { min-height: 44px; padding: 0 4px; border-radius: 0; background: none; color: var(--t); }
.sv-top .sv-title, .sv-top mm-stars, .sv-top .sv-sub { color: var(--t); }
.sv-title { font-weight: 700; font-size: 18px; }
.sv-title.big { font-size: 24px; }
.sv-sub, .pick-intro { color: var(--d); }
.back-btn, .dv-back { border: 3px solid color-mix(in srgb, var(--d) 55%, var(--jo)); border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; margin-left: 0; }
.back-btn:hover, .dv-back:hover { background: var(--jc); }
.dv-back { margin-left: 0; margin-right: 6px; }
.card, .row, .banner { border: 2px solid var(--t2); border-radius: 20px; background: var(--c); box-shadow: inset 0 3px 0 #ffffff80; }
button.row:hover, a.row:hover, button.row:active, a.row:active, button.row:focus-visible, a.row:focus-visible { background: var(--co); color: var(--t); border-color: var(--t2); }
.chip { min-height: 44px; border: 2px solid color-mix(in srgb, var(--d) 55%, var(--jo)); border-radius: 99px; background: var(--c); color: var(--t); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .tag { background: var(--j); color: var(--t); border-color: color-mix(in srgb, var(--d) 55%, var(--jo)); box-shadow: inset 0 2px 0 var(--jc); }
.field input, .field select, .field textarea { min-height: 52px; border: 2px solid var(--t2); border-radius: 12px; background: #fff; box-shadow: inset 0 4px 0 var(--c), 0 0 0 4px var(--j), 0 0 0 6px var(--t2); margin: 6px; width: calc(100% - 12px); }
.field .err { color: var(--err); }
.field [aria-invalid="true"] { border-color: var(--err); }
.switch { width: 64px; height: 40px; }
.switch i { border: 3px solid color-mix(in srgb, var(--d) 55%, var(--jo)); border-radius: 99px; background: var(--co); box-shadow: inset 0 4px 0 #1e0f0a1f; }
.switch i::after { top: 2px; left: 2px; width: 30px; height: 30px; border: 3px solid color-mix(in srgb, var(--d) 55%, var(--jo)); border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 var(--c); }
.switch input:checked + i { background: var(--j); border-color: color-mix(in srgb, var(--d) 55%, var(--jo)); }
.switch input:checked + i::after { transform: translateX(24px); background: var(--p); }
.pick-card { border: 3px solid var(--t2); border-radius: 20px; background: var(--c); min-height: 92px; }
.pick-card[aria-checked="true"] { background: var(--jc); border-color: var(--t2); box-shadow: inset 0 -5px 0 var(--j); }
.portrait { width: 64px; height: 64px; border-radius: 0; background: none; image-rendering: pixelated; }
.item-tile, .care-btn, .mood-btn { border: 3px solid color-mix(in srgb, var(--d) 55%, var(--jo)); border-radius: 18px; background: var(--c); color: var(--t); box-shadow: inset 0 3px 0 #ffffff80, 0 4px 0 #1e0f0a40; }
.item-tile[aria-pressed="true"] { border-color: color-mix(in srgb, var(--d) 55%, var(--jo)); background: var(--jc); box-shadow: inset 0 -5px 0 var(--j); }
.care-btn:active, .care-btn:focus-visible { background: var(--jc); color: var(--t); border-color: color-mix(in srgb, var(--d) 55%, var(--jo)); }
.care-btn[aria-disabled="true"] { background: var(--ina); color: var(--ina-t); border: 3px solid var(--ina-b); }
.gauge i { border-radius: 4px; background: var(--co); }
.gauge i.on { background: var(--j); box-shadow: inset 0 0 0 1px var(--t2); }
.lcd-strip.top, .lcd-strip.bottom { border-color: var(--co); }
:focus-visible { outline: 3px solid var(--foc); }
.item-tile:focus-visible, .pick-card:focus-visible, .row:focus-visible, .chip:focus-visible { outline: 3px solid var(--foc); outline-offset: 2px; }
@media (min-width: 520px) { html, :root[data-bigtext="on"] { font-size: 16px; } }
.sv .sv-stage.sv-grow { flex: 0 0 auto !important; min-height: 130px; }
.sv .sv-stage { flex-direction: column !important; }
.sv .sv-stage mm-pet[stage], .sv-home .sv-stage mm-pet[stage] { order: 2; flex: 0 0 120px !important; width: 100% !important; height: 120px; min-height: 120px; --pet-fill: 192px; }
.sv .sv-stage mm-bubble { order: 1; width: 100%; }
.sv .mood-stage { flex-direction: row !important; min-height: 104px; }
.sv .mood-stage mm-pet[stage] { order: -1; flex: 0 0 104px !important; width: 104px !important; height: 104px; min-height: 0; }
.sv-home { gap: 8px; }
.lcd-caption { display: none; }
.lcd-status { font: 700 15px/1.2 var(--font-ui); color: var(--t); }
[hidden] { display: none !important; }
.sv .mood-stage mm-pet[stage] { --pet-fill: 96px; }
/* choix de l'animal : la liste défile SEULE, « Suivant » reste dessous, jamais posé sur elle */
.sv-onboarding { overflow: hidden; gap: 10px; padding: 6px 14px 14px; }
.sv-onboarding > .pick { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; padding: 4px 8px 4px 2px; scrollbar-width: thin; scrollbar-color: var(--j) var(--co); border-bottom: 3px dotted var(--co); }
.sv-onboarding > .grow { flex: 1 1 0 !important; }
.sv-onboarding > .pick ~ .grow { display: none; }
/* étape 2 : les champs défilent SEULS, « Suivant » reste toujours visible dessous */
.sv-onboarding > .ob-fields { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding: 2px 6px 6px 2px; scrollbar-width: thin; scrollbar-color: var(--j) var(--co); border-bottom: 3px dotted var(--co); }
.sv-onboarding > mm-button[block] { flex: none; margin: 4px 2px 8px; }
/* filtres : tous visibles, sur plusieurs lignes (plus de rangée coupée qu'on ne peut pas faire défiler) */
.scroll-x { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
.chip.small, .chip { font-size: 15px; padding: 0 14px; }
.sv { scrollbar-width: thin; scrollbar-color: var(--j) var(--co); padding: 12px 14px 18px; }
.grid-items { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item-tile { width: 100%; }
.sv-onboarding > .pick { grid-auto-rows: max-content; }
.pick-card { height: auto; padding: 10px 12px; }
.sv-onboarding > .ready-line { margin-bottom: auto; }
.cosm { display: block; width: 96px; height: 72px; max-width: 100%; object-fit: contain; image-rendering: pixelated; }
.item-tile.none .none-art { min-height: 72px; }
/* penderie (maquette 06-penderie, 420x650 PC / 360x640 téléphone) */
@media (min-width: 420px) {
  .app-body:has(.sv-wardrobe), .app-body:has(.sv-shop), .app-body:has(.sv-home) { align-content: start; }
  .app-body:has(.sv-wardrobe) .app-main, .app-body:has(.sv-shop) .app-main, .app-body:has(.sv-home) .app-main { padding: 28px 0 0; }
}
mm-device:has(.sv-wardrobe)::part(entete), mm-device:has(.sv-shop)::part(entete), mm-device:has(.sv-home)::part(entete) { display: none; }
mm-device:has(.sv-wardrobe)::part(shell), mm-device:has(.sv-shop)::part(shell), mm-device:has(.sv-home)::part(shell) { bottom: 20px; }
mm-device:has(.sv-wardrobe)::part(screen), mm-device:has(.sv-shop)::part(screen), mm-device:has(.sv-home)::part(screen) { border-radius: 22px 22px 20px 20px; }
.sv.sv-wardrobe { padding: 0; gap: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--t); font: 400 15px/18px "Familjen Grotesk", sans-serif; }
.sv-wardrobe .w-tete { flex: none; height: 76px; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--t2); border-radius: 22px 22px 0 0; background: var(--j) var(--i-entete) 50% 100% / 336px 88px repeat-x; image-rendering: pixelated; }
.sv-wardrobe .w-titre { font: 700 24px/28px "Familjen Grotesk", sans-serif; letter-spacing: normal; background: var(--p); border: 2px solid var(--t2); border-radius: 99px; padding: 3px 20px 5px; margin: 0; color: var(--t); }
.sv-wardrobe .w-titre:focus { outline: none; }
.sv-wardrobe .w-rond { position: absolute; top: 15px; width: 44px; height: 44px; border: 3px solid var(--t2); border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; display: grid; place-items: center; padding: 0; cursor: pointer; }
.sv-wardrobe .w-rond.g { left: 10px; }
.sv-wardrobe .w-rond.d { right: 10px; }
.sv-wardrobe .w-rond:hover { transform: translateY(-2px); background: var(--jc); }
.sv-wardrobe .w-rond:active { transform: translateY(3px); background: var(--j); box-shadow: none; }
.sv-wardrobe .w-sc { flex: none; height: 244px; position: relative; border-bottom: 2px solid var(--t2); }
.sv-wardrobe .w-vue { position: absolute; inset: 0; overflow: hidden; background: var(--c); }
.sv-wardrobe .w-vue[data-animal="oiseau"] { background: #FBDDB0; }
.sv-wardrobe .w-vue[data-animal="loutre"] { background: #A9CCC5; }
.sv-wardrobe .w-vue img { position: absolute; max-width: none; image-rendering: pixelated; pointer-events: none; }
.sv-wardrobe .w-vue[data-animal="oiseau"] .w-fond, .sv-wardrobe .w-vue[data-animal="oiseau"] .w-sol { left: -73px; top: -204px; width: 510px; height: 450px; }
.sv-wardrobe .w-vue[data-animal="loutre"] .w-fond, .sv-wardrobe .w-vue[data-animal="loutre"] .w-sol { left: -79px; top: -196px; width: 510px; height: 450px; }
.sv-wardrobe .w-vue mm-pet { position: absolute; left: 56px; top: -43px; width: 288px; height: 288px; --pet-size: 288px; pointer-events: none; }
.sv-wardrobe .w-vue[data-animal="oiseau"] mm-pet { top: -49px; }
.sv-wardrobe .w-vue[data-animal="loutre"] mm-pet { top: -58px; }
.sv-wardrobe .w-pl { position: absolute; width: 88px; height: 76px; border: 2px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; display: block; font: 700 15px/18px "Familjen Grotesk", sans-serif; color: var(--t); padding: 0; cursor: pointer; }
.sv-wardrobe .w-pl.g { left: 4px; }
.sv-wardrobe .w-pl.d { right: 4px; }
.sv-wardrobe .w-pl.r0 { top: 3px; }
.sv-wardrobe .w-pl.r1 { top: 82px; }
.sv-wardrobe .w-pl.r2 { top: 161px; }
.sv-wardrobe .w-pl:hover { background: var(--jc); }
.sv-wardrobe .w-pl:active { transform: translateY(2px); box-shadow: none; }
.sv-wardrobe .w-pl[aria-pressed="true"] { background: var(--j); box-shadow: 0 0 0 2px var(--t2), inset 0 -3px 0 var(--jo); }
.sv-wardrobe .w-pl .w-z { position: absolute; left: 0; top: 0; width: 84px; height: 54px; display: block; }
.sv-wardrobe .w-pl span { position: absolute; left: 0; right: 0; bottom: 1px; text-align: center; line-height: 18px; }
.sv-wardrobe .w-pl.w-te { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 20px; }
.sv-wardrobe .w-pl.w-te span { position: static; }
.sv-wardrobe .w-pl.w-te[aria-disabled="true"], .sv-wardrobe .w-b[aria-disabled="true"] { background: #EFE2CE; color: #6F543D; border: 3px solid #AE9272; box-shadow: none; transform: none; cursor: default; }
.sv-wardrobe .w-vig { display: block; image-rendering: pixelated; }
.sv-wardrobe .w-vig.ombre { filter: brightness(0); opacity: .16; }
.sv-wardrobe .w-gr { flex: 1; min-height: 0; overflow-y: scroll; overflow-x: hidden; background: var(--c); padding: 10px 0 10px 8px; display: grid; grid-template-columns: repeat(4, 89px); grid-auto-rows: 68px; gap: 10px 6px; align-content: start; justify-content: start; scroll-padding: 10px 0; scrollbar-color: auto; scrollbar-width: auto; }
.sv-wardrobe .w-gr.dos { grid-template-columns: repeat(2, 184px); grid-auto-rows: 124px; }
.sv-wardrobe .w-gr::-webkit-scrollbar { width: 12px; }
.sv-wardrobe .w-gr::-webkit-scrollbar-track { background: var(--co); }
.sv-wardrobe .w-gr::-webkit-scrollbar-thumb { background: var(--j); border: 2px solid var(--t2); border-radius: 99px; min-height: 32px; }
.sv-wardrobe .w-gr::-webkit-scrollbar-thumb:hover { background: var(--jo); }
.sv-wardrobe .w-ca { position: relative; border: 2px solid var(--co); border-radius: 14px; background: var(--p); box-shadow: 0 2px 0 var(--co); padding: 0; cursor: pointer; }
.sv-wardrobe .w-ca:hover { border-color: var(--t2); background: #fff; }
.sv-wardrobe .w-ca:active { transform: translateY(2px); box-shadow: none; }
.sv-wardrobe .w-ca[aria-pressed="true"] { background: var(--jc); border-color: var(--t2); box-shadow: 0 0 0 1px var(--t2), 0 3px 0 var(--jo); }
.sv-wardrobe .w-ca .w-z { position: absolute; left: 0; top: 8px; width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; }
.sv-wardrobe .w-gr.dos .w-ca .w-z { top: 4px; height: 106px; }
.sv-wardrobe .w-pts { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; display: flex; justify-content: center; gap: 2px; }
.sv-wardrobe .w-pts i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--t2); }
.sv-wardrobe .w-ok { position: absolute; top: -11px; right: -6px; width: 24px; height: 24px; image-rendering: pixelated; pointer-events: none; }
.sv-wardrobe .w-gr.vide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; padding: 12px 24px; text-align: center; }
.sv-wardrobe .w-gr.vide .w-z { position: relative; height: 56px; width: 100px; margin-bottom: 6px; display: block; }
.sv-wardrobe .w-gr.vide strong { font-size: 18px; line-height: 22px; }
.sv-wardrobe .w-gr.vide p { color: var(--d); max-width: 270px; margin: 0; }
.sv-wardrobe .w-bas { flex: none; height: 104px; border-top: 2px solid var(--t2); background: var(--p); padding: 4px 16px 0; border-radius: 0 0 20px 20px; }
.sv-wardrobe .w-l1 { height: 48px; display: flex; align-items: center; gap: 12px; }
.sv-wardrobe .w-nm { flex: 1; min-width: 0; font-size: 18px; line-height: 22px; font-weight: 700; margin: 0; }
.sv-wardrobe .w-b { flex: none; min-height: 44px; height: 44px; padding: 0 18px 3px; font: 700 18px/1 "Familjen Grotesk", sans-serif; color: var(--t); border: 3px solid var(--t2); border-radius: 99px; background: var(--p); box-shadow: inset 0 3px 0 #fff, inset 0 -5px 0 var(--c), 0 3px 0 #1e0f0a40; cursor: pointer; }
.sv-wardrobe .w-b:hover { background: var(--jc); transform: translateY(-2px); }
.sv-wardrobe .w-b:active { background: var(--j); transform: translateY(3px); box-shadow: none; }
.sv-wardrobe .w-b[aria-disabled="true"]:hover, .sv-wardrobe .w-b[aria-disabled="true"]:active { background: #EFE2CE; transform: none; box-shadow: none; }
.sv-wardrobe .w-l2 { height: 44px; margin-top: 2px; display: flex; align-items: center; color: var(--d); font-size: 15px; }
.sv-wardrobe .w-sw { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; }
.sv-wardrobe .w-sw i { display: block; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--t2); }
.sv-wardrobe .w-sw:hover i { transform: translateY(-2px); }
.sv-wardrobe .w-sw:active i { transform: translateY(1px); }
.sv-wardrobe .w-sw[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--p), 0 0 0 6px var(--t2); }
.sv-wardrobe .w-sw[aria-pressed="true"] i::after { content: ""; position: absolute; left: 8px; top: 4px; width: 8px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sv-wardrobe .w-sw[aria-pressed="true"] i.clair::after { border-color: #2b1a10; }
.sv-wardrobe button:focus-visible { outline: 3px solid var(--foc, #B8402A); outline-offset: 2px; }
.sv-wardrobe .w-rond:focus-visible, .sv-wardrobe .w-b:focus-visible { box-shadow: 0 0 0 2px #FFF8EA, 0 0 0 8px #FFF8EA; }
.sv-wardrobe .sw-rouge { background: #D8434F; } .sv-wardrobe .sw-vert { background: #6DB66B; } .sv-wardrobe .sw-bleu { background: #6FA8E0; } .sv-wardrobe .sw-violet { background: #9C77D6; }
.sv-wardrobe .sw-marine { background: #45568F; } .sv-wardrobe .sw-noir { background: #3C3744; } .sv-wardrobe .sw-or { background: #F2C14E; } .sv-wardrobe .sw-gris { background: #AEB8C4; }
.sv-wardrobe .sw-brun { background: #9A6440; } .sv-wardrobe .sw-creme { background: #F6E4BC; } .sv-wardrobe .sw-rose { background: #F29BBA; } .sv-wardrobe .sw-jaune { background: #F8D24A; }
.sv-wardrobe .sw-blanc { background: #FFFFFF; } .sv-wardrobe .sw-ciel { background: #A9DDF3; } .sv-wardrobe .sw-menthe { background: #8AD7B8; } .sv-wardrobe .sw-orange { background: #F28B3C; }
@media (max-width: 419px) {
  .sv-wardrobe .w-sc { height: 240px; }
  .sv-wardrobe .w-vue[data-animal="oiseau"] .w-fond, .sv-wardrobe .w-vue[data-animal="oiseau"] .w-sol { left: 0; top: -56px; width: 340px; height: 300px; }
  .sv-wardrobe .w-vue[data-animal="loutre"] .w-fond, .sv-wardrobe .w-vue[data-animal="loutre"] .w-sol { left: 0; top: -48px; width: 340px; height: 300px; }
  .sv-wardrobe .w-vue mm-pet { left: 74px; top: 54px; width: 192px; height: 192px; --pet-size: 192px; }
  .sv-wardrobe .w-vue[data-animal="oiseau"] mm-pet { left: 86px; top: 50px; }
  .sv-wardrobe .w-vue[data-animal="loutre"] mm-pet { left: 90px; top: 54px; }
  .sv-wardrobe .w-pl.r0 { top: 2px; }
  .sv-wardrobe .w-pl.r1 { top: 81px; }
  .sv-wardrobe .w-pl.r2 { top: 160px; }
  .sv-wardrobe .w-gr { grid-template-columns: repeat(3, 100px); row-gap: 8px; }
  .sv-wardrobe .w-gr.dos { grid-template-columns: repeat(2, 154px); grid-auto-rows: 124px; }
}

/* boutique (maquette 05-boutique, 420x650 PC / 360x640 téléphone) */
.sv.sv-shop { padding: 0; gap: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--t); font: 400 15px/18px "Familjen Grotesk", sans-serif; }
.sv-shop .b-tete { flex: none; height: 76px; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 2px solid var(--t2); border-radius: 22px 22px 0 0; background: var(--j) var(--i-entete) 50% 100% / 336px 88px repeat-x; image-rendering: pixelated; }
.sv-shop .b-titre { font: 700 24px/28px "Familjen Grotesk", sans-serif; letter-spacing: normal; background: var(--p); border: 2px solid var(--t2); border-radius: 99px; padding: 3px 18px 5px; margin: 0; color: var(--t); }
.sv-shop .b-titre:focus { outline: none; }
.sv-shop .b-solde { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 8px; margin: 0; background: var(--p); border: 2px solid var(--t2); border-radius: 99px; font-size: 18px; font-weight: 700; white-space: nowrap; color: var(--t); }
.sv-shop .b-solde img { display: block; image-rendering: pixelated; }
.sv-shop .w-rond { position: absolute; top: 15px; width: 44px; height: 44px; border: 3px solid var(--t2); border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; display: grid; place-items: center; padding: 0; cursor: pointer; }
.sv-shop .w-rond.g { left: 10px; }
.sv-shop .w-rond.d { right: 10px; }
.sv-shop .w-rond:hover { transform: translateY(-2px); background: var(--jc); }
.sv-shop .w-rond:active { transform: translateY(3px); background: var(--j); box-shadow: none; }
.sv-shop .b-slots { flex: none; height: 76px; display: flex; justify-content: center; align-items: center; gap: 4px; background: var(--co); border-bottom: 2px solid var(--t2); }
.sv-shop .b-pl { position: relative; width: 74px; height: 66px; border: 2px solid var(--t2); border-radius: 14px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; font: 700 15px/18px "Familjen Grotesk", sans-serif; color: var(--t); padding: 0; cursor: pointer; }
.sv-shop .b-pl:hover { background: var(--jc); }
.sv-shop .b-pl:active { transform: translateY(2px); box-shadow: none; }
.sv-shop .b-pl[aria-pressed="true"] { background: var(--j); box-shadow: 0 0 0 2px var(--t2), inset 0 -3px 0 var(--jo); }
.sv-shop .b-pl .b-z { position: absolute; left: 0; top: 1px; width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; }
.sv-shop .b-pl span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; line-height: 18px; }
.sv-shop .b-vig { display: block; image-rendering: pixelated; }
.sv-shop .b-vig.ombre { filter: brightness(0); opacity: .16; }
.sv-shop .b-mi { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; background: var(--c); scroll-padding: 8px 0; scrollbar-color: auto; scrollbar-width: auto; }
.sv-shop .b-mi.defile { overflow-y: scroll; }
.sv-shop .b-mi::-webkit-scrollbar { width: 12px; }
.sv-shop .b-mi::-webkit-scrollbar-track { background: var(--co); }
.sv-shop .b-mi::-webkit-scrollbar-thumb { background: var(--j); border: 2px solid var(--t2); border-radius: 99px; min-height: 32px; }
.sv-shop .b-mi::-webkit-scrollbar-thumb:hover { background: var(--jo); }
.sv-shop .b-rang { flex: none; display: flex; gap: 8px; padding-bottom: 10px; }
.sv-shop .b-b { flex: none; min-height: 44px; height: 48px; padding: 0 14px 3px; font: 700 18px/1 "Familjen Grotesk", sans-serif; color: var(--t); border: 3px solid var(--t2); border-radius: 99px; background: var(--p); box-shadow: inset 0 3px 0 #fff, inset 0 -5px 0 var(--c), 0 3px 0 #1e0f0a40; white-space: nowrap; cursor: pointer; }
.sv-shop .b-b.p { background: var(--j); box-shadow: inset 0 3px 0 var(--jc), inset 0 -5px 0 var(--jo), 0 3px 0 #1e0f0a40; }
.sv-shop .b-b.large { flex: 1; }
.sv-shop .b-b:hover { background: var(--jc); transform: translateY(-2px); }
.sv-shop .b-b:active { background: var(--jo); transform: translateY(3px); box-shadow: none; }
.sv-shop .b-b[aria-disabled="true"], .sv-shop .b-b[aria-disabled="true"]:hover, .sv-shop .b-b[aria-disabled="true"]:active { background: #EFE2CE; color: #6F543D; border: 3px solid #AE9272; transform: none; box-shadow: none; cursor: default; }
.sv-shop button:focus-visible { outline: 3px solid var(--foc, #B8402A); outline-offset: 2px; }
.sv-shop .w-rond:focus-visible, .sv-shop .b-b:focus-visible { box-shadow: 0 0 0 2px #FFF8EA, 0 0 0 8px #FFF8EA; }
.sv-shop .sw-rouge { background: #D8434F; } .sv-shop .sw-vert { background: #6DB66B; } .sv-shop .sw-bleu { background: #6FA8E0; } .sv-shop .sw-violet { background: #9C77D6; }
.sv-shop .sw-marine { background: #45568F; } .sv-shop .sw-noir { background: #3C3744; } .sv-shop .sw-or { background: #F2C14E; } .sv-shop .sw-gris { background: #AEB8C4; }
.sv-shop .sw-brun { background: #9A6440; } .sv-shop .sw-creme { background: #F6E4BC; } .sv-shop .sw-rose { background: #F29BBA; } .sv-shop .sw-jaune { background: #F8D24A; }
.sv-shop .sw-blanc { background: #FFFFFF; } .sv-shop .sw-ciel { background: #A9DDF3; } .sv-shop .sw-menthe { background: #8AD7B8; } .sv-shop .sw-orange { background: #F28B3C; }
/* Boutique v6 « cabine d'essayage » (échantillon validé 02/12) : seules les cotes de grille.md ; le reste = classes réelles ci-dessus */
.sv-boutique .b-tete .b-solde { position: absolute; left: 10px; top: 18px; }
.sv-boutique .cab-scene { flex: none; position: relative; height: 150px; box-sizing: border-box; overflow: hidden; border-bottom: 2px solid var(--t2); background: #A9CDC4; }
.sv-boutique .cab-in { position: absolute; left: 50%; top: 0; width: 414px; height: 148px; margin-left: -207px; }
.sv-boutique .cab-fond { position: absolute; left: 0; top: 0; width: 414px; height: 148px; image-rendering: pixelated; z-index: 0; }
.sv-boutique .cab-pet { position: absolute; image-rendering: pixelated; pointer-events: none; z-index: 1; }
.sv-boutique .cab-bulle { position: absolute; z-index: 3; left: 10px; top: 10px; width: 208px; pointer-events: none; }
.sv-boutique .cab-bulle::before { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-image: var(--i-bulle) 18 18 23 18 fill / 36px 36px 46px repeat; image-rendering: pixelated; }
.sv-boutique .cab-bulle p { position: relative; margin: 0; box-sizing: border-box; min-height: 70px; padding: 12px 20px 18px; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 16px/20px "Familjen Grotesk", sans-serif; color: var(--t); overflow-wrap: anywhere; }
.sv-boutique .cab-cols { position: absolute; z-index: 3; left: 10px; top: 86px; display: flex; }
.sv-boutique .b-sw { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; }
.sv-boutique .b-sw i { box-sizing: border-box; display: block; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--t2); }
.sv-boutique .b-sw:hover i { transform: translateY(-2px); }
.sv-boutique .b-sw[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--p), 0 0 0 6px var(--t2); }
.sv-boutique .b-sw.mien i::after { content: ""; position: absolute; left: 8px; top: 4px; width: 8px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sv-boutique .b-slots { box-sizing: border-box; }
.sv-boutique .b-pl { width: 76px; }
.sv-boutique .b-pl .b-z { top: 4px; height: 40px; }
.sv-boutique .b-mi { overflow-y: scroll; }
.sv-boutique .b-gr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 152px; gap: 8px; padding: 10px 8px 12px; }
.sv-boutique .b-ca { position: relative; display: block; box-sizing: border-box; width: auto; height: 152px; padding: 0; overflow: hidden; border: 2px solid var(--co); border-radius: 14px; background: var(--p); box-shadow: 0 2px 0 var(--co); color: var(--t); cursor: pointer; font: inherit; }
.sv-boutique .b-ca:hover { border-color: var(--t2); background: #fff; }
.sv-boutique .b-ca > * { position: absolute; margin: 0; }
.sv-boutique .b-ca > .b-z { left: 8px; right: 8px; top: 8px; width: auto; height: 60px; display: flex; justify-content: center; }
.sv-boutique .b-ca .b-vig { width: 96px; height: 60px; }
.sv-boutique .b-ca .cab-nom { left: 8px; right: 8px; top: 70px; width: auto; height: 36px; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 15px/18px "Familjen Grotesk", sans-serif; overflow: hidden; text-wrap: balance; }
.sv-boutique .b-ca .b-pts { left: 8px; right: 8px; top: 108px; width: auto; height: 10px; display: flex; justify-content: center; align-items: center; gap: 4px; }
.sv-boutique .b-ca .b-pts i { display: block; box-sizing: border-box; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--t2); }
.sv-boutique .b-ca .b-px { left: 8px; right: 8px; top: 124px; width: auto; height: 22px; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.sv-boutique .b-ca .b-px img { width: 20px; height: 20px; display: block; image-rendering: pixelated; }
.sv-boutique .b-ca .b-px.mien { font-size: 15px; }
.sv-boutique .b-ca.mien { background: var(--co); border-color: var(--jo); }
.sv-boutique .b-ca:active { transform: none; }
.sv-boutique .b-ca.sel, .sv-boutique .b-ca.sel:hover { background: var(--jc); border-color: var(--t2); box-shadow: inset 0 0 0 2px var(--t2); }
.sv-boutique .b-ca.cher { background: #EFE2CE; border: 2px solid #AE9272; box-shadow: none; color: #6F543D; }
.sv-boutique .b-ca.cher.sel { box-shadow: inset 0 0 0 2px #AE9272; }
.sv-boutique .b-ca:focus-visible, .sv-boutique .b-pl:focus-visible { outline-offset: 1px; }
.sv-boutique .b-bas { flex: none; box-sizing: border-box; height: 92px; border-top: 2px solid var(--t2); background: var(--p); padding: 6px 16px 0; border-radius: 0 0 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.sv-boutique .b-suite { height: 20px; line-height: 20px; text-align: center; color: var(--d); margin: 0; white-space: nowrap; overflow: hidden; }
.sv-boutique .b-b { display: flex; align-items: center; justify-content: center; gap: 4px; }
.sv-boutique .b-b img { width: 22px; height: 22px; image-rendering: pixelated; }
@media (max-width: 419px) {
  .sv-shop .b-titre { padding: 3px 10px 5px; }
  .sv-shop .b-tete { gap: 6px; }
  .sv-shop .b-solde { padding: 0 8px 0 4px; gap: 2px; }
  .sv-shop .b-pl { width: 64px; }
  .sv-boutique .b-gr { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 8px 12px; justify-content: stretch; }
  .sv-boutique .b-ca { width: auto; }
  .sv-boutique .b-ca > .b-z, .sv-boutique .b-ca .cab-nom, .sv-boutique .b-ca .b-pts, .sv-boutique .b-ca .b-px { left: 8px; right: 8px; width: auto; }
  .sv-boutique .b-ca > .b-z { display: flex; justify-content: center; }
  .sv-boutique .b-pl { width: 64px; }
  .sv-boutique .b-b { padding: 0 10px 3px; }
}
/* accueil (maquette 04-accueil, 420x650 PC / 360x640 téléphone) */
.sv.sv-home { padding: 0; gap: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--t); font: 400 15px/18px "Familjen Grotesk", sans-serif; }
.sv-home button { font: inherit; color: inherit; cursor: pointer; }
.sv-home img { image-rendering: pixelated; display: block; }
.sv-home .ho-tete { flex: none; height: 76px; position: relative; border-bottom: 2px solid var(--t2); border-radius: 22px 22px 0 0; background: var(--j) var(--i-entete) 50% 100% / 336px 88px repeat-x; image-rendering: pixelated; }
.sv-home .ho-solde { position: absolute; left: 10px; top: 17px; width: 84px; height: 40px; margin: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 18px; font-weight: 700; background: var(--p); border: 2px solid var(--t2); border-radius: 99px; padding-bottom: 2px; }
.sv-home .ho-solde.long { font-size: 15px; gap: 1px; }
.sv-home .ho-titre { position: absolute; left: 100px; right: 62px; top: 7px; height: 60px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 24px/28px "Familjen Grotesk", sans-serif; letter-spacing: normal; background: var(--p); border: 2px solid var(--t2); border-radius: 28px; padding: 0 10px 2px; text-align: center; overflow-wrap: anywhere; color: var(--t); }
.sv-home .ho-titre { cursor: pointer; }
.sv-home .ho-titre:focus { outline: none; box-shadow: none; }
.sv-home mm-pet::part(ground), .sv-wardrobe .w-vue[data-animal="oiseau"] mm-pet::part(ground), .sv-wardrobe .w-vue[data-animal="loutre"] mm-pet::part(ground) { display: none; }
.sv-home .ho-titre .n { max-width: 100%; }
.sv-home .ho-titre.long .n { font-size: 18px; line-height: 19px; }
.sv-home .ho-titre.tres-long .n { font-size: 14px; line-height: 15px; }
.sv-home .ho-titre small { font-size: 15px; line-height: 16px; font-weight: 400; color: var(--d); }
.sv-home .ho-fermer { position: absolute; right: 10px; top: 15px; width: 44px; height: 44px; border: 3px solid var(--t2); border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; display: grid; place-items: center; padding: 0; }
.sv-home .ho-fermer:hover { transform: translateY(-2px); background: var(--jc); }
.sv-home .ho-fermer:active { transform: translateY(3px); background: var(--j); box-shadow: none; }
.sv-home .ho-sc { flex: none; height: 282px; position: relative; border-bottom: 2px solid var(--t2); overflow: hidden; overflow: clip; background: var(--co); }
.sv-home .ho-sc[data-animal="oiseau"] { background: #FBDDB0; }
.sv-home .ho-sc[data-animal="loutre"] { background: #A9CCC5; }
.sv-home .ho-sc > img { position: absolute; max-width: none; pointer-events: none; }
.sv-home .ho-ombre { position: absolute; height: 12px; border-radius: 50%; background: #2b1a10; opacity: .14; }
.sv-home .ho-sc mm-pet { position: absolute; width: 384px; height: 384px; --pet-size: 384px; }
.sv-home .ho-bulle { position: absolute; left: 12px; right: 12px; top: 10px; height: 76px; z-index: 2; pointer-events: none; }
.sv-home .ho-bulle::before { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-image: var(--i-bulle) 18 18 23 18 fill / 36px 36px 46px repeat; image-rendering: pixelated; }
.sv-home .ho-bulle p { position: absolute; left: 22px; right: 22px; top: 8px; bottom: 14px; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; overflow-wrap: anywhere; color: var(--t); }
.sv-home .ho-sc > img.ho-pensee { z-index: 3; }
.sv-home .ho-cad { position: absolute; left: var(--cg, 236px); top: var(--ct, 128px); width: 192px; height: 256px; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sv-home .ho-cad .sp { position: absolute; inset: 0; image-rendering: pixelated; background-repeat: no-repeat; background-size: 192px 5120px; pointer-events: none; transition: opacity .4s; }
.sv-home .ho-cad .zone { position: absolute; left: 44px; top: 100px; width: 100px; height: 112px; }
.sv-home .ho-cad:hover .sp { transform: translateY(-2px); }
.sv-home .ho-cad:focus-visible { outline: 3px solid var(--t2); outline-offset: -44px; border-radius: 12px; }
.sv-home .ho-cad.fin .sp { opacity: 0; }
.sv-home .ho-so:hover, .sv-home .ho-nav button:hover { background: var(--jc); transform: translateY(-2px); }
.sv-home .ho-so:active, .sv-home .ho-nav button:active { background: var(--j); transform: translateY(2px); box-shadow: none; }
.sv-home .ho-mi { flex: 1; min-height: 0; overflow-y: scroll; overflow-x: hidden; scrollbar-color: auto; scrollbar-width: auto; background: var(--c); padding: 4px 6px 4px 8px; display: flex; flex-direction: column; gap: 6px; }
.sv-home .ho-mi::-webkit-scrollbar { width: 12px; }
.sv-home .ho-mi::-webkit-scrollbar-track { background: var(--co); }
.sv-home .ho-mi::-webkit-scrollbar-thumb { background: var(--j); border: 2px solid var(--t2); border-radius: 99px; min-height: 32px; }
.sv-home .ho-mi::-webkit-scrollbar-thumb:hover { background: var(--jo); }
.sv-home .ho-bloc { flex: none; background: var(--p); border: 2px solid var(--co); border-radius: 16px; padding: 5px 8px; }
.sv-home .ho-ti { display: flex; justify-content: space-between; align-items: center; height: 22px; margin-bottom: 2px; padding: 0 4px; }
.sv-home .ho-ti h2 { font: 700 18px/22px "Familjen Grotesk", sans-serif; letter-spacing: normal; margin: 0; color: var(--t); }
.sv-home .ho-ti span { color: var(--d); }
.sv-home .ho-soins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sv-home .ho-so { height: 50px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: left; padding: 0; border: 2px solid var(--t2); border-radius: 14px; box-shadow: 0 2px 0 #1e0f0a40; line-height: 18px; }
.sv-home .ho-so b, .sv-home .ho-so small { display: block; font-size: 15px; }
.sv-home .ho-so.feed { background: #FBD3C1; } .sv-home .ho-so.play { background: #CBE0B6; } .sv-home .ho-so.hug { background: #FBE3A1; }
.sv-home .ho-so.fait { background: #fff; border-color: var(--co); box-shadow: none; }
.sv-home .ho-bloc ul { list-style: none; margin: 0; padding: 0; }
.sv-home .ho-pas li { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px; border-top: 1px solid var(--co); }
.sv-home .ho-pas .c { flex: none; width: 24px; height: 24px; display: grid; place-items: center; }
.sv-home .ho-pas .c i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--t2); background: var(--p); }
.sv-home .ho-pas .l, .sv-home .ho-sa .l { flex: 1; min-width: 0; }
.sv-home .ho-pas .r { flex: none; display: flex; align-items: center; gap: 2px; font-weight: 700; }
.sv-home .ho-sa li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 2px 4px; border-top: 1px solid var(--co); }
.sv-home .ho-sa .l b, .sv-home .ho-sa .l small { display: block; font-size: 15px; }
.sv-home .ho-sa .l small { color: var(--d); }
.sv-home .ho-rec { flex: none; height: 44px; padding: 0 14px 2px; font-weight: 700; border: 2px solid var(--t2); border-radius: 99px; background: var(--j); box-shadow: 0 2px 0 #1e0f0a40; }
.sv-home .ho-rec:hover { background: var(--jc); }
.sv-home .ho-rec[aria-disabled="true"] { background: #EFE2CE; color: #6F543D; border: 2px solid #AE9272; box-shadow: none; }
.sv-home .ho-jours p { margin: 0; padding: 0 4px; } .sv-home .ho-jours p + p { color: var(--d); margin-top: 2px; }
.sv-home .ho-rang { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px; }
.sv-home .ho-nav { flex: none; height: 118px; border-top: 2px solid var(--t2); background: var(--p); border-radius: 0 0 20px 20px; padding: 7px 8px 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 48px; gap: 6px; align-content: start; }
.sv-home .ho-nav button { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; border: 2px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; padding: 0 0 2px; }
.sv-home .ho-nav button.pr { background: var(--j); box-shadow: inset 0 -3px 0 var(--jo), 0 3px 0 #1e0f0a40; }
.sv-home button:focus-visible { outline: 3px solid var(--foc, #B8402A); outline-offset: 2px; }
.sv-home .ho-mi button:focus-visible { outline-offset: 1px; }
@media (max-width: 419px) {
  .sv-home .ho-sc { height: 276px; }
  .sv-home .ho-titre { left: 98px; right: 60px; padding: 0 6px 2px; }
  .sv-home .ho-titre.long .n { font-size: 15px; line-height: 17px; }
  .sv-home .ho-titre.tres-long .n { font-size: 13px; line-height: 14px; }
  .sv-home .ho-bulle { left: 8px; right: 8px; }
  .sv-home .ho-mi { padding-left: 4px; padding-right: 2px; }
  .sv-home .ho-bloc { padding-left: 4px; padding-right: 4px; }
  .sv-home .ho-so { gap: 3px; }
  .sv-home .ho-nav { padding: 7px 6px 0; }
}
.ho-code { font-weight: 700; font-size: 22px; letter-spacing: 1px; margin: 4px 0; }
/* Nourrir / Aliments / Acheter (PROMPT 15, maquettes tour 14 et tour 17) : entête et boutons de la Boutique (.sv-shop) */
.sv-nourrir .nr-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--p); border-radius: 0 0 20px 20px; overflow: hidden; }
.sv-nourrir .nr-lu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sv-nourrir .nr-scene { flex: none; position: relative; overflow: hidden; border-bottom: 2px solid var(--t2); }
.sv-nourrir .nr-im { display: block; width: 402px; max-width: none; margin-left: calc(50% - 201px); image-rendering: pixelated; }
.sv-nourrir .nr-pens { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 24px); width: max-content; }
.sv-nourrir .nr-pens[hidden], .sv-nourrir .nr-rond[hidden] { display: none; }
.sv-nourrir .nr-cad { position: absolute; inset: 0; z-index: 0; border: 2px solid transparent; border-image: var(--i-bulle) 18 18 23 18 fill / 18px 18px 23px repeat; image-rendering: pixelated; pointer-events: none; }
.sv-nourrir .nr-pens p { position: relative; z-index: 1; margin: 0; padding: 12px 24px; font-size: 20px; line-height: 26px; font-weight: 700; text-align: center; letter-spacing: .1px; text-wrap: balance; color: var(--t); }
.sv-nourrir .nr-rond { position: absolute; z-index: 3; pointer-events: none; image-rendering: pixelated; }
.sv-nourrir .nr-plat { flex: none; position: relative; height: 166px; display: flex; justify-content: center; align-items: center; background: var(--co); border-bottom: 2px solid var(--t2); }
.sv-nourrir .nr-fl { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border: 3px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -4px 0 var(--c), 0 3px 0 #1e0f0a40; display: grid; place-items: center; padding: 0; cursor: pointer; }
.sv-nourrir .nr-fl.g { left: calc((100% - 96px) / 4 - 28px); }
.sv-nourrir .nr-fl.d { right: calc((100% - 96px) / 4 - 28px); }
.sv-nourrir .nr-fl:hover { background: var(--jc); }
.sv-nourrir .nr-fl:active { transform: translateY(3px); box-shadow: none; }
.sv-nourrir .nr-fl i { display: block; width: 16px; height: 16px; border: solid var(--t); border-width: 5px 0 0 5px; transform: translateX(4px) rotate(-45deg); }
.sv-nourrir .nr-fl.d i { transform: translateX(-4px) rotate(135deg); }
.sv-nourrir .nr-al { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; color: var(--t); }
.sv-nourrir .nr-al img.f { display: block; flex: none; width: 96px; height: 96px; image-rendering: pixelated; }
.sv-nourrir .nr-al .nm, .sv-nourrir .nr-al .li { display: flex; align-items: center; justify-content: center; gap: 8px; height: 24px; white-space: nowrap; }
.sv-nourrir .nr-al .li { height: 20px; }
.sv-nourrir .nr-al strong, .sv-nourrir .nr-al .q, .sv-nourrir .nr-al .li span { font-size: 20px; line-height: 22px; }
.sv-nourrir .nr-al .li span { line-height: 20px; }
.sv-nourrir .nr-al .q { font-weight: 700; }
.sv-nourrir .nr-al .g { display: block; width: 24px; height: 24px; image-rendering: pixelated; }
.sv-nourrir .nr-bas { flex: none; background: var(--p); display: flex; }
.sv-nourrir .nr-bas.nourrir { flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; }
.sv-nourrir .nr-bas.liste { height: 14px; }
.sv-nourrir .nr-b { height: 48px; font-size: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.sv-nourrir .nr-b.p { flex: 1; }
.sv-nourrir .nr-b.s { flex: none; width: 148px; }
.sv-nourrir .nr-b img { display: block; width: 24px; height: 24px; image-rendering: pixelated; }
.sv-nourrir .nr-b.s img { width: 32px; height: 32px; }
.sv-nourrir .nr-mi { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; background: var(--c); }
.sv-nourrir .nr-gr { display: grid; grid-template-columns: repeat(3, 120px); grid-auto-rows: 154px; gap: 8px; justify-content: center; align-content: start; padding: 8px 0; }
.sv-nourrir .nr-ca { position: relative; font-size: 16px; height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 28px 0 0; border: 2px solid var(--t2); border-radius: 14px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; cursor: pointer; font-family: inherit; color: var(--t); }
.sv-nourrir .nr-ca:hover { background: #fff; }
.sv-nourrir .nr-ca:active { transform: translateY(2px); box-shadow: none; }
.sv-nourrir .nr-ca img.f { display: block; flex: none; width: 72px; height: 72px; image-rendering: pixelated; }
.sv-nourrir .nr-ca .n { text-align: center; line-height: 20px; }
.sv-nourrir .nr-ca .px { height: 20px; display: flex; align-items: center; gap: 2px; font-weight: 700; }
.sv-nourrir .nr-ca .px img { display: block; image-rendering: pixelated; }
.sv-nourrir .nr-ca .px.cher { color: #55505f; }
.sv-nourrir .nr-ca .px.cher img { filter: grayscale(1); opacity: .65; }
.sv-nourrir .nr-ca .qt { position: absolute; top: 6px; right: 6px; min-width: 32px; height: 22px; padding: 0 5px; font-size: 16px; line-height: 18px; font-weight: 700; text-align: center; color: var(--t); border: 2px solid var(--t2); border-radius: 11px; background: var(--j); }
@media (max-width: 419px) {
  .sv-nourrir .nr-im { width: 342px; margin-left: calc(50% - 171px); }
  .sv-nourrir .nr-b { padding: 0 6px; }
  .sv-nourrir .nr-b.s { width: 124px; gap: 4px; }
  .sv-nourrir .nr-b.s img { width: 24px; height: 24px; }
  .sv-nourrir .nr-gr { grid-template-columns: repeat(3, 102px); column-gap: 6px; }
}

/* ── Câliner (maquette validée : mêmes pièces que Nourrir) */
.sv-calin .nr-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--p); border-radius: 0 0 20px 20px; overflow: hidden; }
.sv-calin .nr-lu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sv-calin .cl-scene { flex: none; position: relative; overflow: hidden; border-bottom: 2px solid var(--t2); touch-action: none; cursor: grab; outline: none; }
.sv-calin .cl-scene.brosse { cursor: crosshair; }
.sv-calin .cl-scene:focus-visible { box-shadow: inset 0 0 0 3px var(--foc, #B8402A); }
.sv-calin .cl-im { display: block; width: 402px; max-width: none; margin-left: calc(50% - 201px); image-rendering: pixelated; }
.sv-calin .cl-fx { position: absolute; top: 0; left: 0; pointer-events: none; }
.sv-calin .cl-pens { position: relative; z-index: 3; width: max-content; max-width: 100%; pointer-events: none; }
.sv-calin .cl-cad { position: absolute; inset: 0; z-index: 0; border: 2px solid transparent; border-image: var(--i-bulle) 18 18 23 18 fill / 18px 18px 23px repeat; image-rendering: pixelated; }
.sv-calin .cl-pens p { position: relative; z-index: 1; margin: 0; padding: 9px 20px 11px; font-size: 17px; line-height: 22px; font-weight: 700; text-align: center; text-wrap: balance; color: var(--t); }
.sv-calin .cl-bande { flex: 1; min-height: 0; background: var(--co); border-bottom: 2px solid var(--t2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 6px 16px; text-align: center; }
.sv-calin .cl-coeurs { display: flex; gap: 10px; }
.sv-calin .cl-coeurs img { width: 24px; height: 24px; image-rendering: pixelated; transition: filter .25s, opacity .25s, transform .25s; }
.sv-calin .cl-coeurs img.off { filter: grayscale(1) brightness(1.08); opacity: .38; }
.sv-calin .cl-coeurs img.on { transform: translateY(-2px); }
.sv-calin .cl-aide { margin: 0; font-size: 17px; line-height: 22px; color: var(--t); max-width: 30ch; text-wrap: balance; }
.sv-calin .cl-gain { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; font-size: 18px; }
.sv-calin .cl-gain[hidden] { display: none; }
.sv-calin .cl-gain img { width: 24px; height: 24px; image-rendering: pixelated; }
.sv-calin .cl-bas { flex: none; height: 74px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; background: var(--p); }
.sv-calin .cl-b { flex: 1; height: 48px; font-size: 20px; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.sv-calin .cl-b[aria-pressed="true"] { background: var(--j); box-shadow: inset 0 3px 0 var(--jc), inset 0 -5px 0 var(--jo), 0 3px 0 #1e0f0a40; }
.sv-calin .cl-b[aria-disabled="true"] { background: #EFE2CE; color: #6F543D; border: 3px solid #AE9272; box-shadow: none; transform: none; cursor: default; }
@media (max-width: 419px) { .sv-calin .cl-im { width: 342px; margin-left: calc(50% - 171px); } }
@media (prefers-reduced-motion: reduce) { .sv-calin .cl-coeurs img { transition: none; } }
/* Accueil : « Premiers pas » tient sur une seule ligne (l'écran ne défile plus) */
.sv-home .ho-bloc.ho-pas .ho-ti { gap: 8px; margin-bottom: 0; }
.sv-home .ho-bloc.ho-pas .ho-ti h2 { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-home .ho-bloc.ho-pas .ho-ti span { flex: none; white-space: nowrap; }

/* ── Audit 02/12 : un seul bandeau (celui de Nourrir / Boutique) sur les écrans qui défilent */
mm-device:has(.sv > .nb)::part(entete) { display: none; }
mm-device:has(.sv > .nb)::part(shell) { bottom: 20px; }
mm-device:has(.sv > .nb)::part(screen) { border-radius: 22px 22px 20px 20px; }
.sv > .nb { flex: none; position: sticky; top: -12px; z-index: 6; margin: -12px -14px 0; height: 76px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 2px solid var(--t2); border-radius: 22px 22px 0 0; background: var(--j) var(--i-entete) 50% 100% / 336px 88px repeat-x; image-rendering: pixelated; }
.sv > .nb .b-titre { font: 700 24px/28px "Familjen Grotesk", sans-serif; letter-spacing: normal; background: var(--p); border: 2px solid var(--t2); border-radius: 99px; padding: 3px 18px 5px; margin: 0; color: var(--t); max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv > .nb .b-titre:focus { outline: none; }
.sv > .nb .b-solde { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 8px; margin: 0; background: var(--p); border: 2px solid var(--t2); border-radius: 99px; font-size: 18px; font-weight: 700; white-space: nowrap; color: var(--t); }
.sv > .nb .b-solde img { display: block; image-rendering: pixelated; }
.sv > .nb .nr-lu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sv > .nb .w-rond { position: absolute; top: 15px; width: 44px; height: 44px; border: 3px solid var(--t2); border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; display: grid; place-items: center; padding: 0; cursor: pointer; }
.sv > .nb .w-rond.g { left: 10px; }
.sv > .nb .w-rond.d { right: 10px; }
.sv > .nb .w-rond:hover { transform: translateY(-2px); background: var(--jc); }
.sv > .nb .w-rond:active { transform: translateY(3px); background: var(--j); box-shadow: none; }
.sv > .nb button:focus-visible { outline: 3px solid var(--foc, #B8402A); outline-offset: 2px; }
@media (max-width: 419px) { .sv > .nb { gap: 10px; } .sv > .nb .b-titre { padding: 3px 10px 5px; font-size: 21px; } .sv > .nb .b-solde { padding: 0 8px 0 4px; gap: 2px; } }

/* ── Audit 02/12 : fenêtre basse (≥ 600 px) : la zone de contenu défile, les boutons restent visibles */
.sv-nourrir .nr-corps { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--j) var(--co); }
.sv-nourrir .nr-bas.nourrir { flex: 1 0 auto; min-height: 72px; position: sticky; bottom: 0; z-index: 4; border-top: 2px solid var(--t2); }
.sv-nourrir .nr-corps > .nr-mi { flex: 1 1 auto; min-height: 168px; }
.sv-calin .nr-corps { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--j) var(--co); }
.sv-calin .cl-bande { flex: 1 0 auto; min-height: 96px; }
.sv-calin .cl-bas { position: sticky; bottom: 0; z-index: 4; border-top: 2px solid var(--t2); }
.sv.sv-wardrobe { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--j) var(--co); }
.sv-wardrobe .w-tete { position: sticky; top: 0; z-index: 6; }
.sv-wardrobe .w-gr { flex: 1 1 150px; min-height: 150px; }
.sv-wardrobe .w-gr.vide { overflow-y: visible; justify-content: center; min-height: 150px; padding: 8px 24px; }
.sv-wardrobe .w-bas { position: sticky; bottom: 0; z-index: 4; }

/* indice de defilement (accueil, etape 2) : ombre de bas de zone qui disparait en fin de course */
.sv-onboarding > .ob-fields { background: linear-gradient(var(--fond, #f6e7cf) 30%, transparent) top / 100% 14px no-repeat local, linear-gradient(transparent, var(--fond, #f6e7cf) 70%) bottom / 100% 14px no-repeat local, radial-gradient(farthest-side at 50% 100%, rgba(120,70,20,.28), transparent) bottom / 100% 10px no-repeat scroll; }

/* ───────── Mon carnet (échantillon validé 02/12) : fenêtre de la boutique, scène avec bulle, 4 pages ───────── */
.sv.sv-carnet { position: absolute; inset: 0; }
.sv-carnet .b-solde { display: none; }
.cn-scene { position: relative; flex: none; height: 164px; overflow: hidden; border-bottom: 2px solid var(--t2); background: var(--co); image-rendering: pixelated; }
.cn-bulle { position: absolute; left: 8px; right: 168px; top: 30px; z-index: 2; pointer-events: none; }
.cn-bulle::before { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-image: var(--i-bulle) 18 18 23 18 fill / 36px 36px 46px repeat; image-rendering: pixelated; }
.cn-bulle p { position: relative; margin: 0; min-height: 60px; padding: 8px 16px 14px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 15px/19px "Familjen Grotesk", sans-serif; color: var(--t); overflow-wrap: anywhere; }
.cn-pet { position: absolute; right: 0; bottom: -6px; width: 190px; height: 190px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 100%; }
.cn-pet canvas, .cn-pet img { display: block; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.cn-pet:focus-visible { outline: 3px solid var(--t2); outline-offset: -4px; border-radius: 16px; }
.cn-pet.rebond { animation: cn-rebond .5s ease-out; }
@keyframes cn-rebond { 0% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(-14px) scale(.97, 1.04); } 55% { transform: translateY(0) scale(1.05, .94); } 80% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
.cn-corps { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: var(--c); color: var(--t); font: 400 15px/18px "Familjen Grotesk", sans-serif; }
.cn-etiq { margin: 2px 0 0; font: 800 13px/16px "Familjen Grotesk", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--d); }
.cn-sem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cn-case, .cn-porte, .cn-ligne, .cn-carte { border: 3px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; color: var(--t); }
.cn-case { display: flex; flex-direction: column; align-items: center; padding: 6px 4px 7px; text-align: center; }
.cn-case img { width: 48px; height: 48px; image-rendering: pixelated; }
.cn-case b { font: 800 28px/32px "Familjen Grotesk", sans-serif; }
.cn-case span { font: 700 14px/16px "Familjen Grotesk", sans-serif; }
.cn-portes, .cn-liste { display: grid; gap: 8px; }
.cn-porte { appearance: none; font-family: inherit; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto; column-gap: 12px; align-items: center; text-align: left; min-height: 66px; padding: 4px 14px 7px 6px; }
.cn-porte:hover { background: var(--jc); }
.cn-porte:active { transform: translateY(2px); box-shadow: none; }
.cn-porte .ic { width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--t2); border-radius: 14px; background: #FFF3C4; }
.cn-porte .ic img { width: 48px; height: 48px; image-rendering: pixelated; }
.cn-porte b { display: block; font: 800 19px/22px "Familjen Grotesk", sans-serif; }
.cn-porte small { display: block; font: 400 15px/18px "Familjen Grotesk", sans-serif; color: var(--d); }
.cn-nb { min-width: 26px; padding: 2px 9px 3px; border-radius: 99px; background: var(--t2); color: #FFF3C4; font: 800 15px/18px "Familjen Grotesk", sans-serif; text-align: center; }
.cn-champ { box-sizing: border-box; width: 100%; height: 66px; flex: none; resize: none; padding: 8px 12px; border: 3px solid var(--t2); border-radius: 14px; background: #fffdf5; font: 400 16px/21px "Familjen Grotesk", sans-serif; color: var(--t); }
.cn-cal { flex: none; padding: 8px 10px 10px; }
.cn-mois { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.cn-mois b { font: 800 17px/20px "Familjen Grotesk", sans-serif; text-transform: capitalize; }
.cn-fl { appearance: none; width: 34px; height: 34px; padding: 0; border: 2px solid var(--t2); border-radius: 50%; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 2px 0 #1e0f0a40; display: grid; place-items: center; cursor: pointer; }
.cn-fl:disabled { opacity: .55; cursor: default; }
.cn-fl img { width: 24px; height: 24px; image-rendering: pixelated; }
.cn-fl.apres img { transform: scaleX(-1); }
.cn-jours { display: grid; grid-template-columns: repeat(7, 1fr); }
.cn-jours i { font: 800 12px/18px "Familjen Grotesk", sans-serif; font-style: normal; text-align: center; color: var(--d); }
.cn-j { appearance: none; height: 30px; padding: 0; border: 0; background: none; font: 700 15px/30px "Familjen Grotesk", sans-serif; color: var(--t); text-align: center; position: relative; cursor: pointer; }
.cn-j.pas { color: #1e0f0a55; cursor: default; }
.cn-j.auj::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: var(--t2); }
.cn-j.vide { visibility: hidden; }
.cn-j:not(.pas):not(.sel):hover { background: var(--jc); border-radius: 8px; }
.cn-j.sel { color: #FFF3C4; font-weight: 800; }
.cn-j.sel::before { content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; background: url(../assets/carnet/ico/cachet-vide.png) 0 0 / 48px 48px; image-rendering: pixelated; z-index: 0; transform: scale(.62); }
.cn-j.sel span { position: relative; z-index: 1; }
.cn-pied { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--jc); }
.cn-pied img { width: 48px; height: 48px; image-rendering: pixelated; flex: none; }
.cn-dit { margin: 0; font: 700 16px/19px "Familjen Grotesk", sans-serif; }
.cn-go { align-self: stretch; min-height: 48px; padding: 0 22px 2px; border: 2px solid var(--t2); border-radius: 99px; background: var(--j); box-shadow: inset 0 -3px 0 var(--jo), 0 3px 0 #1e0f0a40; font: 700 18px/1 "Familjen Grotesk", sans-serif; color: var(--t); cursor: pointer; }
.cn-go:hover { background: var(--jc); }
.cn-go:active { transform: translateY(3px); box-shadow: none; }
.cn-ligne { display: grid; grid-template-columns: 48px 1fr auto; column-gap: 12px; align-items: center; min-height: 58px; padding: 6px 12px 8px 10px; }
.cn-ligne img { width: 48px; height: 48px; image-rendering: pixelated; grid-row: 1 / 3; }
.cn-ligne em { grid-row: 1 / 3; grid-column: 3; font: 700 13px/16px "Familjen Grotesk", sans-serif; font-style: normal; color: var(--d); text-align: right; }
.cn-ligne b { align-self: end; font: 800 17px/20px "Familjen Grotesk", sans-serif; }
.cn-ligne span { align-self: start; font: 400 14px/17px "Familjen Grotesk", sans-serif; color: var(--d); }
.cn-lettre b { grid-row: 1 / 3; align-self: center; }
.cn-lettre .cn-acts { grid-row: 1 / 3; grid-column: 3; display: flex; gap: 6px; }
.cn-mini { appearance: none; min-height: 36px; padding: 0 14px 2px; border: 2px solid var(--t2); border-radius: 99px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 2px 0 #1e0f0a40; font: 700 15px/1 "Familjen Grotesk", sans-serif; color: var(--t); cursor: pointer; }
.cn-mini:hover { background: var(--jc); }
.cn-lue { flex: none; padding: 10px 14px 12px; }
.cn-lue small { display: block; color: var(--d); font: 700 13px/16px "Familjen Grotesk", sans-serif; }
.cn-lue p { margin: 4px 0 0; font: 400 16px/21px "Familjen Grotesk", sans-serif; overflow-wrap: anywhere; }
.cn-note, .cn-vide { margin: auto 0 0; text-align: center; font-size: 14px; line-height: 18px; color: var(--d); }
.cn-vide { margin: 24px 12px; }
.cn-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cn-obj { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 104px; padding: 6px 4px 8px; text-align: center; border: 3px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; font: 700 15px/17px "Familjen Grotesk", sans-serif; color: var(--t); }
.cn-obj img { width: 48px; height: 48px; image-rendering: pixelated; }
.cn-obj .nb { position: absolute; top: 5px; right: 6px; min-width: 20px; padding: 1px 7px 2px; font-size: 13px; line-height: 15px; }
.cn-bas { flex: none; display: flex; flex-direction: column; background: var(--c); border-top: 2px solid var(--t2); }
.cn-bas[hidden] { display: none; }
.cn-bas > .cn-go { margin: 8px 14px 14px; }
.cn-plus { margin: 0; padding: 6px 14px; text-align: center; font: 400 14px/18px "Familjen Grotesk", sans-serif; color: var(--d); }
.cn-plus[hidden] { display: none; }
.sv.sv-carnet > .nb { position: relative; top: 0; margin: 0; }
.sv.sv-carnet > .nb .b-titre { max-width: none; }
/* Carnet v3 (échantillon validé 02/12) : scène du haut = sa vraie pièce + étagère + tapis + lui ; sous chaque page, la même pièce voilée en crème. */
.sv-carnet .cn-scene { height: 146px; background: var(--co); }
.sv-carnet .cn-scene canvas { max-width: none; }
.sv-carnet .cn-bulle { left: 12px; right: auto; top: 8px; width: 236px; z-index: 3; }
.sv-carnet .cn-bulle p { min-height: 58px; padding: 7px 16px 15px; font-size: 15px; line-height: 18px; }
.sv-carnet .sc-piece { z-index: 0; } .sv-carnet .sc-etagere, .sv-carnet .sc-tapis { z-index: 1; } .sv-carnet .sc-pet { z-index: 2; }
.sv-carnet .cn-pet { right: auto; bottom: auto; width: auto; height: auto; z-index: 4; border-radius: 16px; }
.sv-carnet .sc-pet.rebond { animation: cn-rebond .5s ease-out; }
.sv-carnet .cn-zone { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--c); }
.sv-carnet .cn-fond-piece { z-index: 0; }
.sv-carnet .cn-voile { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(255, 247, 228, .66), rgba(255, 247, 228, .5)); }
.sv-carnet .cn-corps { z-index: 2; background: transparent; padding: 8px 14px 10px; gap: 6px; }
.sv-carnet .cn-bas { z-index: 2; }
.sv-carnet .cn-etiq { align-self: flex-start; padding: 1px 9px 2px; border-radius: 99px; background: #FFF7E4d9; }
.sv-carnet .cn-note, .sv-carnet .cn-vide { padding: 3px 10px 4px; border-radius: 12px; background: #FFF7E4d9; }
.sv-carnet .cn-portes { gap: 6px; }

/* ───────── Balade v2 + Revendre (échantillon validé 02/12) : même fenêtre que le Carnet, cartes crème, état choisi sans déformer la case ───────── */
.sv-balade .b-solde, .sv-revendre .b-solde { display: flex; }
.sv-balade .cn-scene { height: 112px; }
.sv-balade .cn-bulle p { min-height: 70px; }
.bl-bt { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.bl-bt b { font: 800 16px/19px "Familjen Grotesk", sans-serif; }
.bl-bt span { font: 400 14px/17px "Familjen Grotesk", sans-serif; }
.bl-etoile { display: inline-flex; align-items: center; gap: 4px; font: 800 16px/20px "Familjen Grotesk", sans-serif; color: var(--t); flex: none; }
.bl-etoile img { width: 24px; height: 24px; image-rendering: pixelated; }
.bl-durees .bl-d { cursor: pointer; appearance: none; font-family: inherit; min-height: 104px; padding: 8px 6px 9px; }
.bl-durees .bl-d img { width: 32px; height: 32px; }
.bl-durees .bl-d b { font: 800 19px/22px "Familjen Grotesk", sans-serif; }
.bl-durees .bl-d small { font: 400 13px/15px "Familjen Grotesk", sans-serif; color: var(--d); min-height: 15px; }
.bl-durees .bl-d:disabled { opacity: .55; cursor: default; }
.bl-d:not(:disabled):hover, .bl-cs:not(.mien):hover, .bl-lieu:hover { background: var(--jc); }
.bl-d.sel, .bl-cs.sel, .bl-lieu.sel { background: var(--jc); border-color: var(--jo); box-shadow: inset 0 -3px 0 var(--j), 0 3px 0 #1e0f0a40; }
.bl-d:active, .bl-cs:active { transform: translateY(2px); box-shadow: none; }
.bl-lieux { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-lieu { min-height: 40px; padding: 0 16px 2px; font-size: 16px; border-width: 3px; }
.bl-aide { margin: 0; text-align: left; padding: 0 2px; }
.cn-note.bl-aide { margin: 0; }
.bl-obj { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: none; }
.bl-obj > b { font: 800 18px/21px "Familjen Grotesk", sans-serif; }
.bl-obj.bl-fini { background: var(--co); border-color: var(--jo); }
.bl-pts { display: flex; gap: 8px; }
.bl-pts i { width: 48px; height: 48px; display: grid; place-items: center; border: 3px solid var(--jc); border-radius: 12px; background: var(--c); box-sizing: border-box; }
.bl-pts i img { width: 32px; height: 32px; image-rendering: pixelated; opacity: .35; filter: grayscale(.6); }
.bl-pts i.ok { background: var(--jc); border-color: var(--jo); }
.bl-pts i.ok img { opacity: 1; filter: none; }
.bl-pts i.nv { box-shadow: 0 0 0 3px var(--p), 0 0 0 5px var(--jo); }
.bl-gain { display: flex; align-items: center; gap: 8px; font: 400 14px/17px "Familjen Grotesk", sans-serif; color: var(--d); }
.bl-gain .bl-etoile { color: var(--t); }
.bl-chg { align-self: flex-start; }
.bl-rien { font: 400 13px/16px "Familjen Grotesk", sans-serif; color: var(--d); margin-top: -4px; }
.bl-choix { appearance: none; font-family: inherit; text-align: left; cursor: pointer; color: var(--t); }
.bl-choix:hover { background: var(--jc); }
.bl-choix span { grid-column: 2; }
.bl-etag, .bl-away, .bl-trouv { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; padding: 10px 14px 12px 10px; flex: none; }
.bl-etag img, .bl-away img { width: 48px; height: 48px; image-rendering: pixelated; }
.bl-etag b, .bl-away b, .bl-trouv b { display: block; font: 800 17px/20px "Familjen Grotesk", sans-serif; }
.bl-etag span, .bl-away span, .bl-trouv span { display: block; font: 400 14px/17px "Familjen Grotesk", sans-serif; color: var(--d); }
.bl-etag small, .bl-trouv small { display: block; margin-top: 3px; font: 400 13px/16px "Familjen Grotesk", sans-serif; color: var(--d); }
.bl-trouv { grid-template-columns: 76px 1fr; column-gap: 14px; }
.bl-z { width: 64px; height: 64px; display: grid; place-items: center; border: 3px solid var(--jo); border-radius: 14px; background: var(--jc); box-sizing: border-box; flex: none; }
.bl-trouv .bl-z { width: 76px; height: 76px; }
.bl-z img { width: 48px; height: 48px; image-rendering: pixelated; }
.bl-trouv .bl-z img { width: 56px; height: 56px; }
.bl-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 10px 3px 6px; border: 2px solid var(--jo); border-radius: 99px; background: var(--jc); font: 800 14px/17px "Familjen Grotesk", sans-serif; font-style: normal; color: var(--t); }
.bl-tag img { width: 20px; height: 20px; image-rendering: pixelated; }
.bl-etoiles { flex: none; padding: 10px 14px 12px; }
.bl-etoiles > b { display: block; font: 800 18px/21px "Familjen Grotesk", sans-serif; margin-bottom: 4px; }
.bl-bas .bl-rang { display: flex; gap: 10px; padding: 8px 14px 14px; }
.bl-bas .bl-b { flex: 1 1 0; margin: 0; min-width: 0; align-self: auto; }
.bl-bas .bl-b.sec { background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 3px 0 #1e0f0a40; }
.bl-bas .bl-b:disabled { opacity: .55; cursor: default; box-shadow: none; }
.bl-band { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; background: var(--co); border-bottom: 2px solid var(--t2); }
.bl-band b { display: block; font: 800 17px/20px "Familjen Grotesk", sans-serif; color: var(--t); }
.bl-band span:not(.bl-z) { display: block; font: 400 14px/17px "Familjen Grotesk", sans-serif; color: var(--d); }
.bl-band .bl-z { width: 52px; height: 52px; background: #FFF3C4; border-color: var(--t2); }
.bl-band .bl-z img { width: 40px; height: 40px; }
.bl-grille .bl-cs { cursor: pointer; appearance: none; font-family: inherit; gap: 3px; min-height: 148px; padding: 8px 6px 10px; justify-content: flex-start; }
.bl-grille .bl-cs .bl-z { width: 56px; height: 56px; }
.bl-grille .bl-cs .bl-z img { width: 44px; height: 44px; }
.bl-grille .bl-cs .nm { font: 800 15px/17px "Familjen Grotesk", sans-serif; }
.bl-grille .bl-cs small { font: 400 13px/15px "Familjen Grotesk", sans-serif; color: var(--d); }
.bl-grille .bl-cs.mien { background: var(--co); border-color: var(--jc); cursor: default; box-shadow: none; }
.bl-ok { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 13px/15px "Familjen Grotesk", sans-serif; color: var(--d); text-align: center; }
.bl-ok img { width: 18px; height: 18px; flex: none; image-rendering: pixelated; }
.bl-px { display: flex; align-items: center; justify-content: center; }

/* ───────── ECRANS (03/12, A7 A8 A16) : états vides du Carnet en pastille DA, texte foncé, champ de lettre lisible ───────── */
.sv-carnet .cn-note, .sv-carnet .cn-vide { color: var(--t); font-weight: 700; padding: 8px 14px 9px; border: 2px solid var(--t2); border-radius: 16px; background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 2px 0 #1e0f0a40; }
.sv-carnet .cn-vide { margin: 20px 12px; }
.sv-carnet .cn-champ { background: var(--p); box-shadow: inset 0 -3px 0 var(--c), 0 2px 0 #1e0f0a40; height: 78px; }
.cn-champ::placeholder { color: var(--d); opacity: 1; font-weight: 400; }

/* ───────── ECRANS (03/12, A3) : Sorties lisibles sans défiler : durées compactes, lieux visibles, bouton principal en bas ───────── */
.sv-balade .bl-durees { gap: 6px; }
.sv-balade .bl-durees .bl-d { min-height: 62px; padding: 5px 4px 6px; gap: 0; border-radius: 14px; }
.sv-balade .bl-durees .bl-d img { width: 24px; height: 24px; }
.sv-balade .bl-durees .bl-d b { font-size: 18px; line-height: 20px; }
.sv-balade .bl-durees .bl-d small { font-size: 12px; line-height: 13px; min-height: 13px; }
.sv-carnet .cn-note.bl-aide { padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; font-size: 13px; line-height: 16px; font-weight: 400; color: var(--t); }
.sv-balade .bl-lieux { gap: 6px; }
.sv-balade .bl-lieu { min-height: 38px; padding: 0 14px 2px; }
.sv-balade .bl-bas .cn-go { min-height: 52px; font-size: 19px; }
.sv-balade .bl-d.sel { background: var(--j); border-color: var(--t2); box-shadow: inset 0 -3px 0 var(--jo), 0 3px 0 #1e0f0a40; }
.sv-balade .bl-lieu.sel { background: var(--j); border-color: var(--t2); box-shadow: inset 0 -3px 0 var(--jo), 0 2px 0 #1e0f0a40; }

/* ───── FENETRES (A10) : croix et flèche à ≥ 16 px du bord (le cadre arrondi à 22 px les rognait à 10 px) ───── */
.sv-wardrobe .w-rond.g, .sv-shop .w-rond.g, .sv > .nb .w-rond.g, .sv-home .ho-solde { left: 16px; }
.sv-wardrobe .w-rond.d, .sv-shop .w-rond.d, .sv > .nb .w-rond.d, .sv-home .ho-fermer { right: 16px; }
/* E2 04/12 (§0c) : la pastille étoiles et le titre ne se touchent plus (étoiles 16 + 84 px, croix 16 + 44 px : 8 px d’air de chaque côté) */
.sv-home .ho-titre, html .sv-home .ho-titre { left: 108px; right: 68px; }
/* FENETRES (A9/A10) : fenêtre basse (470×520) : la scène rétrécit pour garder la liste visible, tout reste atteignable */
@media (max-height: 640px) {
  .sv-home .ho-sc { height: 190px; }
  .sv-boutique .cab-scene { height: 96px; }
}
/* Accueil A (l’auteur 04/12) : Balade et Travailler côte à côte, tuiles de l’accès rapide couchées, chacune sous son étiquette */
.sv-home .ho-duo { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 2px 4px; }
.sv-home .ho-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sv-home .ho-col .cn-etiq { align-self: flex-start; margin: 0 0 0 4px; }
.sv-home .ho-sorties .nk-t { width: 100%; height: 58px; grid-template-rows: none; grid-template-columns: auto auto; grid-auto-flow: column; justify-content: center; align-items: center; column-gap: 6px; padding: 0 0 4px; font: 700 16px/18px "Familjen Grotesk", sans-serif; }
.sv-home .ho-sorties .nk-t .ni { scale: .8; margin: 0 -5px; }
/* FENETRES (A10, #5) : les écrans « sv-shop » (ami, pass…) n'ont pas de marge interne : l'en-tête ne doit pas déborder de -14 px, sinon retour/croix touchent le cadre */
.sv.sv-shop > .nb { margin: 0; top: 0; }
/* FENETRES (#8) : titre long (« Ce que l'appli ne fera jamais ») : il passe sur deux lignes au lieu d'être tronqué, et laisse la place à la flèche et à la croix (≥ 16 px du bord) */
.sv > .nb { padding: 0 72px; }
.sv > .nb .b-titre { flex: 1 1 0; min-width: 0; max-width: none; font-size: 19px; line-height: 20px; padding: 3px 12px 5px; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; text-overflow: clip; }
.sv > .nb .b-solde { flex: none; padding: 0 8px 0 6px; }

/* ECRANS (audit #9, #15, agent #15) : gabarit boutique v3 pour les pages « nues » : bande décor derrière le compagnon + carte crème pour le contenu. */
.sv-travail .sv-stage { background: var(--jc, #bfe0dc); border: 2px solid var(--t2, #6b4a3a); border-radius: 14px; margin: 0 12px; padding: 8px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); }
.sv-travail .tb-zone { background: var(--c, #fff6e8); border: 2px solid var(--t2, #6b4a3a); border-radius: 14px; margin: 0 12px 12px; padding: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.sv-travail .lead, .sv-travail .sv-sub { margin: 0 12px; }
.sv-travail .sv-sub { color: var(--t, #3a2a22); font-weight: 600; }
@media (max-width: 420px) { .sv > .nb .b-solde { display: none; } } /* téléphone : la place va au titre (le solde reste sur l'accueil et la boutique) */
/* ECRANS (audit #15/#16, agent #11/#12) : « En groupe » et « À plusieurs » dans le gabarit carte, étiquettes décollées du texte. */
.dv-sv .dv-jeu { background: var(--c, #fff6e8); border: 2px solid var(--t2, #6b4a3a); border-radius: 14px; margin: 0 12px 12px; padding: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.12); gap: 12px; }
.dv-sv .dv-jeu .sv-sub { color: var(--t, #3a2a22); font-weight: 600; margin: 0; }
.sv-multi .card { margin: 0 12px 12px; }
.sv-multi .field > label { display: block; margin-top: 14px; margin-bottom: 4px; }
.sv-multi .card .sv-sub + .field > label { margin-top: 12px; }
.sv-travail .sv-stage { min-height: 150px; }
.sv-travail .sv-stage mm-pet[stage] { flex-basis: 110px !important; height: 110px; min-height: 110px; }
/* ECRANS (audit #13) : bulle de la boutique recentrée et bornée, plus coupée à gauche sur 360. */
.sv-shop mm-bubble, .sv-shop .sv-stage mm-bubble { max-width: calc(100% - 24px); margin-left: auto; margin-right: auto; box-sizing: border-box; }
@media (max-width: 419px) { .sv-boutique .cab-bulle { left: 52px; top: 8px; width: 190px; } .sv-boutique .cab-bulle p { padding: 10px 22px 16px; font-size: 15px; line-height: 18px; min-height: 60px; } }
/* ECRANS (audit #9, #14) : états vides et introductions des pages encore nues (Surprise, Jouer avec, Plus, Promesses, Profil) dans une carte crème bordée ; titres longs sur deux lignes sans coupe. */
.sv .empty, .dv-sv .empty { background: var(--c, #fff6e8); border: 2px solid var(--t2, #6b4a3a); border-radius: 14px; margin: 12px; padding: 16px 14px; box-shadow: 0 3px 0 rgba(0,0,0,.12); text-align: center; color: var(--t, #3a2a22); }
.sv-plus > .lead, .sv-never > .lead, .sv-profil > .lead { margin: 12px; padding: 10px 14px; background: var(--jc, #bfe0dc); border: 2px solid var(--t2, #6b4a3a); border-radius: 14px; max-width: none; }
.b-titre, .nb .b-titre { overflow-wrap: anywhere; hyphens: auto; }

/* ───── CORR-0312 (correcteur, 03/12) ─────
   P2 : la pastille étoiles ne recouvre plus la flèche retour (elle suit le titre, au centre).
   P3 : Boutique et Penderie : ≥ 12 px entre le cadre et onglets / cartes / boutons ; la barre de défilement n'est plus collée au cadre. */
.sv-boutique .b-tete { padding: 0 68px; }
.sv-boutique .b-tete .b-solde { position: static; order: 2; flex: none; }
.sv-boutique .b-tete .b-titre { order: 1; min-width: 0; }
.sv-boutique .b-slots { padding: 0 12px; gap: 4px; }
.sv-boutique .b-pl { flex: 0 1 76px; width: auto; min-width: 0; }
.sv-boutique .b-mi { margin: 0 8px; }
.sv-boutique .b-gr { padding: 10px 6px 12px 8px; }
.sv-wardrobe .w-pl.g { left: 12px; }
.sv-wardrobe .w-pl.d { right: 12px; }
.sv-wardrobe .w-gr { margin: 0 8px; padding: 10px 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; }
.sv-wardrobe .w-gr.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sv-wardrobe .w-gr.vide { margin: 0 8px; }
@media (max-width: 419px) {
  .sv-boutique .b-tete { padding: 0 64px; }
  .sv-boutique .b-pl { flex: 1 1 0; width: auto; max-width: 70px; font-size: 13px; }
  .sv-wardrobe .w-gr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-wardrobe .w-gr.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sv-boutique, .sv-wardrobe { background: var(--c); }   /* CORR-0312 : le fond continue derrière les marges latérales (pas de bande claire) */
/* CORR-0312 : compteur de lettres des noms (Réglages) */
.rg-compte { text-align: right; margin: 4px 12px 0; font-weight: 700; }
.rg-compte.plein { color: #B8402A; }

/* ───── FIX-VISUEL (revue 03/12, #4) : le titre est au centre exact de l'écran, la pastille étoiles se pose à sa droite (écrans ≥ 420 px) ───── */
@media (min-width: 420px) {
  .sv .b-tete:has(> .b-solde) { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; padding: 0; }
  .sv .b-tete:has(> .b-solde) > .b-titre { grid-column: 2; grid-row: 1; flex: none; max-width: 230px; order: 0; }
  .sv .b-tete:has(> .b-solde) > .b-solde { grid-column: 3; grid-row: 1; justify-self: start; margin: 0 0 0 8px; position: static; order: 0; }
}

/* ───── FIX-VISUEL (#3) : nuancier dans une pastille crème à bordure, l'anneau « choisi » reste dans sa case ───── */
.sv-boutique .cab-cols { left: 10px; top: 90px; padding: 2px 4px; gap: 0; background: var(--p); border: 2px solid var(--t2); border-radius: 99px; box-shadow: 0 2px 0 #1e0f0a40; }
.sv-boutique .b-sw { width: 40px; height: 40px; }
.sv-boutique .b-sw[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--p), 0 0 0 4px var(--t2); }
.sv-boutique .b-sw:hover i { transform: none; }
@media (max-height: 640px) {
  .sv-boutique .cab-cols { top: 55px; padding: 1px 3px; }
  .sv-boutique .b-sw { width: 30px; height: 30px; }
  .sv-boutique .b-sw i { width: 22px; height: 22px; }
  .sv-boutique .b-sw.mien i::after { left: 5px; top: 1px; width: 6px; height: 11px; }
  .sv-boutique .cab-bulle { top: 2px; }
  .sv-boutique .cab-bulle p { min-height: 48px; padding-top: 8px; padding-bottom: 14px; }
}
@media (max-width: 419px) { .sv-boutique .cab-cols { left: 47px; } }

/* ───── FIX-VISUEL (#9) : indice de défilement de l'accueil, comme « Encore N modèles plus bas » en Boutique ───── */
.sv-home .ho-suite { flex: none; margin: 0; height: 18px; line-height: 18px; text-align: center; color: var(--d); font: 700 14px/18px "Familjen Grotesk", sans-serif; white-space: nowrap; overflow: hidden; }
.sv-home .ho-suite[hidden] { display: none; }

/* ───── FIX-VISUEL (#6) : silhouettes en brun chaud (plus de gris froid), coffre vide dans une carte crème à bordure pleine ───── */
.sv-wardrobe .w-vig.ombre, .sv-shop .b-vig.ombre { filter: brightness(0) invert(.38) sepia(1) saturate(2.4) hue-rotate(-14deg); opacity: .5; }
.sv-wardrobe .w-gr.vide { padding: 14px 16px; justify-content: flex-start; }
.sv-wardrobe .w-vide-carte { box-sizing: border-box; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 14px; background: var(--p); border: 3px solid var(--t2); border-radius: 16px; box-shadow: 0 3px 0 var(--co); }
.sv-wardrobe .w-vide-carte .w-z { margin-bottom: 0; }
.sv-wardrobe .w-vide-carte p { margin: 0; }
.sv-wardrobe .w-vers-boutique { position: static; width: auto; min-width: 180px; height: 48px; padding: 0 20px; margin-top: 4px; }
@media (max-width: 419px) {
  .sv-wardrobe .w-gr.vide { padding: 8px 12px; }
  .sv-wardrobe .w-vide-carte { gap: 4px; padding: 8px 12px; }
  .sv-wardrobe .w-vide-carte .w-z { transform: scale(.7); height: 40px; }
  .sv-wardrobe .w-vide-carte strong { font-size: 16px; }
  .sv-wardrobe .w-vers-boutique { height: 44px; }
}
@media (max-width: 419px) { .sv-wardrobe .w-vide-carte p { display: none; } }

/* ───── LOT 1 (03/12) : noms longs et compteur d'étoiles de la boutique ─────
   Nom de 24 caractères larges : coupe propre (ellipse) dans la pastille de la bulle (mm-bubble.js), retour à la ligne partout ailleurs. La limite de 24 ne change pas.
   D3-1 : le compteur d'étoiles de l'en-tête (boutique, fiche) ne se laisse plus rogner : il garde sa largeur de texte, c'est le titre qui cède. */
.sv-onboarding .ready-line, .sv-calin .cl-aide, .sv-calin .cl-bande { overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
.sv .b-tete > .b-solde, .sv > .nb .b-solde { flex: 0 0 auto; min-width: max-content; overflow: visible; }
.sv .b-tete > .b-titre, .sv > .nb .b-titre { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 420px) {
  .sv .b-tete:has(> .b-solde) { grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr); }
}

/* VERIF LOT 4 — entête de la boutique : titre + solde (jusqu'à 99 999) côte à côte, centrés entre ‹ et ✕, sans chevauchement à 320 et 420 px */
.sv.sv-shop .b-tete:has(> .b-solde) { display: flex; grid-template-columns: none; align-items: center; justify-content: center; gap: 10px; padding: 0 58px; } /* E2 04/12 (§0c) : 10 px entre titre et étoiles */
.sv.sv-shop .b-tete:has(> .b-solde) > .b-titre { order: 1; flex: 0 1 auto; grid-column: auto; max-width: none; min-width: max-content; white-space: nowrap; overflow: visible; display: block; font-size: 24px; line-height: 28px; padding: 3px 16px 5px; }
.sv.sv-shop .b-tete:has(> .b-solde) > .b-solde { order: 2; flex: 0 0 auto; grid-column: auto; justify-self: auto; margin: 0; position: static; min-width: max-content; white-space: nowrap; }
@media (max-width: 419px) {
  .sv.sv-shop .b-tete:has(> .b-solde) { gap: 4px; padding: 0 56px; }
  .sv.sv-shop .b-tete:has(> .b-solde) > .b-titre { font-size: 17px; line-height: 22px; padding: 3px 6px 5px; }
  .sv.sv-shop .b-tete:has(> .b-solde) > .b-solde { font-size: 14px; height: 32px; padding: 0 5px 0 2px; gap: 0; }
  .sv.sv-shop .b-tete:has(> .b-solde) > .b-solde img { width: 20px; height: 20px; }
}

/* VERIF LOT 5 — accueil : le nom du compagnon (même 24 « W ») reste sur une ligne, coupé par « … », sans toucher le compteur d'étoiles */
.sv-home .ho-titre { min-width: 0; overflow: hidden; }
.sv-home .ho-titre .n { display: block; max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
.sv-home .ho-titre small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* le nom d'un compagnon est insécable : la phrase qui le contient le coupe plutôt que de déborder du cadre */
.sv .sv-sub, .sv-care .sv-sub { overflow-wrap: anywhere; }

/* E2 04/12 (DA §0e, priorité 2 de la revue) : UNE règle pour tous les boutons d’action = rectangle arrondi comme la boutique v3.
   Les pilules restent pour titres, étiquettes, filtres et compteurs. Nouveau bouton d’action : l’ajouter ici. */
:root { --rayon-bouton: 12px; }
.sv-shop .b-b, .sv-ami .b-b, .sv-wardrobe .w-b, .sv-humeur .hm-fin, .cn-go, .cn-mini, .sv-home .ho-rec { border-radius: var(--rayon-bouton); }
/* E2 (04/12) : carte de profil = sa photo en grand (portrait-vue.js photoCarte), plus le petit animal perdu dans un aplat. */
.pf-carte:has(> .pf-photo) { width: 124px; height: 120px; align-items: flex-end; }
.pf-carte > canvas.pf-photo { width: auto; height: auto; max-width: none; margin-bottom: 8px; }
.pf-carte.pf-grande { width: 176px; height: 164px; }
.pf-carte.pf-grande > canvas.pf-photo { margin-bottom: 10px; }

/* ───── E2 04/12 : retour l’auteur sur l'accueil (« trou vide en bas », « scène trop petite / figée », « petites bulles de conversation »)
   La scène prend toute la hauteur libre : la liste du milieu garde sa taille (elle défile seulement si la fenêtre est trop basse),
   donc plus aucun vide sous Balade/Travailler. Le compagnon et sa maison sont posés par home.js (×4, ×5 quand la scène est haute). */
.sv-home .ho-sc, html .sv-home .ho-sc { flex: 1 0 190px; height: auto; min-height: 190px; }
.sv-home .ho-mi { flex: 0 1 auto; min-height: 0; }
.sv-home .ho-sc mm-pet { z-index: 1; }
.sv-home .ho-vie { position: absolute; inset: 0; pointer-events: none; }
.sv-home .ho-fen { position: absolute; image-rendering: pixelated; }
.sv-home .ho-grains { position: absolute; inset: 0; overflow: hidden; }
.sv-home .ho-grains i { position: absolute; bottom: 14%; background: #FFF6D8; box-shadow: 0 0 0 1px #FFF6D860; opacity: 0; animation: ho-grain 9s linear forwards; }
.sv-home .ho-grains.eau i { border-radius: 50%; background: none; box-shadow: inset 0 0 0 2px #E6FAFF; }
@keyframes ho-grain {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: .85; }
  50% { transform: translate(10px, -130px); }
  85% { opacity: .7; }
  100% { opacity: 0; transform: translate(-6px, -250px); }
}
@media (prefers-reduced-motion: reduce) { .sv-home .ho-grains { display: none; } }
/* la tache de soleil de sa fenêtre glisse sur le mur (une minute pour traverser), très douce */
.sv-home .ho-soleil { position: absolute; left: 0; image-rendering: pixelated; opacity: .32; mix-blend-mode: screen; animation: ho-soleil 60s ease-in-out infinite alternate; }
@keyframes ho-soleil { from { transform: translateX(var(--de, 20px)); } to { transform: translateX(var(--a, 200px)); } }
@media (prefers-reduced-motion: reduce) { .sv-home .ho-soleil { animation: none; } }
