/* Living layer (31/10/2026), shared by every shop page. Source: living-design-corpus (motion-tokens.css, MOT-02, DEP-01, TRN-02).
   Tokens and control-layer answers only; each page's story layer lives in css/living/<page>.css. Colour roles stay those of
   teranga-shop.css (orange = price and buying, blue = availability and logistics, green = product and trust). */
:root{
--motion-duration-lcp:0ms;--motion-duration-instant:0ms;--motion-duration-press:120ms;--motion-duration-respond:200ms;--motion-duration-reveal:300ms;--motion-duration-success:600ms;
--motion-distance-press:.98;--motion-distance-lift:2px;--motion-stagger:40ms;
--motion-ease-out:cubic-bezier(.2,0,0,1);--motion-ease-spring:linear(0,.45 25%,.9 55%,1);
/* Elevation in the brand's warm ink, not black. */
--elevation-0:none;--elevation-1:0 1px 2px rgb(31 27 22/.14);--elevation-2:0 8px 24px rgb(31 27 22/.14);--elevation-3:0 16px 40px rgb(31 27 22/.18);
--rotate-object:4deg;--z-card:1;--z-object:2;--z-control:3;
/* The matte the products stand on, and their one contact shadow (light from above). */
--lv-surface:#f6f1e6;--lv-contact:rgb(70 52 28/.30)
}
@media(prefers-reduced-motion:reduce){:root{--motion-duration-press:0ms;--motion-duration-respond:0ms;--motion-duration-reveal:0ms;--motion-duration-success:0ms;--motion-distance-press:1;--motion-distance-lift:0px;--motion-stagger:0ms}}

/* MOT-02 press: an action sinks 2 % while it is held, 120 ms, no delay before the action. Reduced motion: colour change only. */
.ta-shop-button,.ta-qty button,.ta-stock-toggle,.ta-share,.ta-commerce .woocommerce .button,.ta-commerce #place_order{transition:scale var(--motion-duration-press) var(--motion-ease-out),background-color var(--motion-duration-respond) var(--motion-ease-out),border-color var(--motion-duration-respond) var(--motion-ease-out),color var(--motion-duration-respond) var(--motion-ease-out),box-shadow var(--motion-duration-respond) var(--motion-ease-out)}
.ta-btn{transition:transform .25s var(--ta-ease),box-shadow .25s var(--ta-ease),background .25s var(--ta-ease),scale var(--motion-duration-press) var(--motion-ease-out)}
:is(.ta-shop-button,.ta-btn,.ta-qty button,.ta-stock-toggle,.ta-share,.ta-commerce .woocommerce .button,.ta-commerce #place_order):active:not(:disabled,[aria-disabled=true]){scale:var(--motion-distance-press)}

/* Focus: css/style.css removes every button's outline (button{outline:none!important}); keyboard focus gets a ring back, in
   the deep green (4.7:1 on the cream; the base sheet's #7aad2a ring was 2.6:1). WCAG 2.4.7, 1.4.11. */
button:focus-visible,[role=button]:focus-visible,.ta-shop-shell :focus-visible,.ta-nav-cart:focus-visible{outline:3px solid #547b24!important;outline-offset:3px}

/* Header menu: no underline on hover (client, 31/10/2026); the underline stays only under the current page's item. */
.main-menu .navigation>li:not(.current):hover>a::after{transform:scaleX(0)}

/* DEP-01 object: put .lv-object on the box that holds a product photo. The photo's white background melts into the matte
   (multiply) and the product stands on one soft contact shadow. Tune per place with --lv-shadow-bottom / --lv-shadow-width. */
.lv-object{position:relative;isolation:isolate;background:var(--lv-surface)}
.lv-object img{position:relative;mix-blend-mode:multiply}
.lv-object::after{content:"";position:absolute;z-index:-1;left:calc((100% - var(--lv-shadow-width,58%))/2);width:var(--lv-shadow-width,58%);bottom:var(--lv-shadow-bottom,8%);height:9%;border-radius:50%;background:radial-gradient(closest-side,var(--lv-contact),transparent);pointer-events:none}

/* Product without a photo: the department's tinted matte (style="--lv-tint:<?= ta_lv_tint($product) ?>"), its name and
   « Photo à venir ». Nothing is drawn that could pass for the product. Each page styles what sits on it. */
.lv-placeholder{background:var(--lv-tint,#f1e7d6);color:#3d3326}

/* TRN-02 the card becomes the page: the root swaps instantly; only the clicked product's photo box (photo already on its
   matte) travels to the product page. js/ta-living.js names the card's box on the way out; the inline script in
   head_assets.php names the product page's main slide on arrival, and skips the whole transition when that photo is not
   loaded yet. The arriving photo is the page's LCP: shown opaque from the first frame, only its box moves (no cross-fade).
   Chrome and Safari; Firefox and reduced motion get the ordinary instant navigation. */
@media(prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}
::view-transition-old(root){animation:none;opacity:0}::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-group(ta-product){animation-duration:var(--motion-duration-reveal);animation-timing-function:var(--motion-ease-out)}
::view-transition-old(ta-product){animation:none;opacity:0}::view-transition-new(ta-product){animation:none;opacity:1;mix-blend-mode:normal}
html.lv-hero-pending::view-transition-old(ta-product){opacity:1;mix-blend-mode:normal}html.lv-hero-pending::view-transition-new(ta-product){opacity:0}
html.lv-from-card .ta-gallery-slide:has(>[data-lv-hero]){view-transition-name:ta-product}
