﻿/* Living layer (31/10/2026), story layer: Home page shop sections and hero (index.php). Owner: home agent.
   index.php also loads this file itself when the shop is off (for the Pause / Lecture buttons), so tokens carry fallbacks. */

/* AMB-01 + TYP-03 (WCAG 2.2.2): the hero video and the product band move only under html.lv-loops (set in index.php's <head>:
   no reduced motion, no Save-Data), each with a visible Pause / Lecture button, the first control of its region (label swap).
   Otherwise the poster stays, and the band is a still, wrapped list of the same names (the duplicate copy is hidden). */
.lv-loop-toggle{display:inline-flex;align-items:center;gap:8px;min-height:40px;margin:0;padding:0 16px 0 13px;border:1px solid rgb(255 255 255/.4);border-radius:999px;background:rgb(24 22 20/.8);color:#fff;font:600 13px/1 var(--ta-font-sans,sans-serif);letter-spacing:.02em;cursor:pointer;transition:background-color var(--motion-duration-respond,200ms) var(--motion-ease-out,ease)}
.lv-loop-toggle[hidden]{display:none}
.lv-loop-toggle svg{width:13px;height:13px;flex:none;fill:currentColor}
.lv-loop-toggle .lv-play,.lv-loop-toggle.is-paused .lv-pause{display:none}.lv-loop-toggle.is-paused .lv-play{display:block}
.lv-loop-toggle:hover{background:#181614}
.lv-loop-toggle:focus-visible{outline:3px solid #fff;outline-offset:2px;border-radius:999px}
.ta-hero-visual .lv-loop-toggle{position:absolute;top:18px;left:-14px;z-index:3}
@media(max-width:359px){.home-v2 .ta-hero-badge{top:74px}}
.home-v2 .ta-marquee .lv-loop-toggle{position:absolute;top:50%;left:var(--ta-gutter,15px);z-index:3;translate:0 -50%;border-color:rgb(239 229 209/.45);background:var(--ta-ink,#222);color:#efe5d1}
.home-v2 .ta-marquee .lv-loop-toggle:focus-visible{outline-color:#efe5d1}
.home-v2 .ta-marquee:has(>.lv-loop-toggle:not([hidden]))::before{content:"";position:absolute;z-index:2;top:0;bottom:0;left:0;width:calc(var(--ta-gutter,15px) + 150px);background:linear-gradient(90deg,var(--ta-ink,#222) 70%,rgb(34 34 34/0));pointer-events:none}
.home-v2 .ta-marquee.is-paused .ta-marquee-track{animation-play-state:paused}
html:not(.lv-loops) .home-v2 .ta-marquee-track{flex-wrap:wrap;justify-content:center;gap:6px 32px;padding:0 var(--ta-gutter,15px);white-space:normal;animation:none}
html:not(.lv-loops) .home-v2 .ta-marquee-track [aria-hidden=true],html:not(.lv-loops) .home-v2 .ta-marquee-track a::after{display:none}
/* Budget « Lively » (one moving element per screen): on a phone the band shares the first screen with the hero video, so it
   stands still there, as the same names; on desktop it sits below the first screen and keeps moving, with its pause button. */
@media(max-width:760px){.home-v2 .ta-marquee-track{flex-wrap:wrap;justify-content:center;gap:6px 24px;padding:0 var(--ta-gutter,15px);white-space:normal;animation:none!important}.home-v2 .ta-marquee-track [aria-hidden=true],.home-v2 .ta-marquee-track a::after{display:none}.home-v2 .ta-marquee .lv-loop-toggle{display:none!important}.home-v2 .ta-marquee::before{content:none!important}}

/* CMP-11 bento + CMP-01 / DEP-01 object: « Nos rayons » is a grid of regular tiles. The first department's tile is larger,
   and its product stands on the tile's matte as an object crossing the tile's top edge: the photo box by 34 % of its height,
   the product itself by about a fifth to a quarter (packshots keep a white margin, which multiply melts into the matte and
   into the section's cream: the section is the blend group). Any other photo kind keeps a plain frame (.lv-scene). Names and
   counts stay on the grid, the whole tile is one link, and its focus ring is drawn above the object (--z-control over
   --z-object). Phone: the large tile first, full width, then two per row (an odd last tile keeps its size); tablet: five
   per row; desktop (992+): one row, the large tile three columns wide. No motion added: only the existing hover answers. */
/* The section is the blend group, on its own opaque cream (the page colour there). The list's top padding keeps the object's
   box 16 px clear of the section head (48 px margin): it crosses by 34 % of its width W = min(52 % of the tile, 220 px). */
.ta-home-shop{isolation:isolate;background:var(--ta-cream,#fbfaf6)}
.ta-rayon-tiles.lv-bento{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:12px;padding-top:max(24px,calc(min(17.68vw - 11.3px,75px) - 32px));padding-bottom:0;overflow:visible;scroll-snap-type:none}
.lv-bento .ta-rayon-tile{position:relative;height:100%;padding:8px 8px 12px;border:1px solid var(--ta-line,#e6e1d4);border-radius:16px;background:#fff;transition:border-color var(--motion-duration-respond,200ms) var(--motion-ease-out,ease),box-shadow var(--motion-duration-respond,200ms) var(--motion-ease-out,ease)}
.lv-bento .ta-rayon-tile:hover{border-color:#d8cfbb;box-shadow:var(--elevation-2,0 8px 24px rgb(31 27 22/.14))}
.lv-bento .ta-rayon-img{margin-bottom:8px;border:0;border-radius:10px;background-color:var(--lv-surface,#f6f1e6)}
.lv-bento .ta-rayon-tile:hover .ta-rayon-img{box-shadow:none}
.lv-bento .ta-rayon-name,.lv-bento .ta-rayon-tile small{padding:0 4px}.lv-bento .ta-rayon-tile small{color:#666}
.lv-bento .ta-rayon-tile:focus-visible{outline:none}
.lv-bento .ta-rayon-tile::after{content:"";position:absolute;inset:-6px;z-index:var(--z-control,3);border:3px solid var(--ta-leaf,#6aa02b);border-radius:21px;opacity:0;pointer-events:none}
.lv-bento .ta-rayon-tile:focus-visible::after{opacity:1}
.lv-bento-lead{grid-column:1/-1}
.lv-bento-lead .ta-rayon-tile{display:grid;grid-template:"name object" 1fr "count object" auto/minmax(0,1fr) minmax(0,min(52%,220px));column-gap:12px;padding:16px;background:var(--lv-surface,#f6f1e6)}
.lv-bento-lead .ta-rayon-img{grid-area:object;align-self:start;margin:0}
.lv-bento-lead .ta-rayon-img:is(.lv-object,.lv-scene){margin-top:calc(-34% - 17px);border-radius:0;background:none;overflow:visible}
.lv-bento-lead .ta-rayon-img img{position:relative;z-index:var(--z-object,2);padding:0}
.lv-bento-lead .lv-object{--lv-shadow-width:72%;--lv-shadow-bottom:11%;isolation:auto;background:none}
.lv-bento-lead .lv-object::after{z-index:1}
.lv-bento-lead .lv-scene img{border-radius:12px;object-fit:cover;mix-blend-mode:normal;box-shadow:var(--elevation-2,0 8px 24px rgb(31 27 22/.14))}
.lv-bento-lead .ta-rayon-name{grid-area:name;align-self:end;padding:0;font:500 clamp(22px,6.2vw,30px)/1.08 var(--ta-font-serif,serif);letter-spacing:-.01em}
.lv-bento-lead .ta-rayon-tile small{grid-area:count;padding:6px 0 0;font-size:13px}
@media(min-width:600px){.ta-rayon-tiles.lv-bento{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding-top:44px}}
@media(min-width:992px){.ta-rayon-tiles.lv-bento{grid-template-columns:minmax(0,3fr);grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:16px}.lv-bento-lead{grid-column:auto}}
/* A department without a photo: the team's placeholder label (catalogue.css), its tint and key word instead of the drawn jar */
.lv-bento .ta-rayon-img.lv-placeholder{display:grid;place-items:center;background:var(--lv-tint,#f1e7d6);box-shadow:inset 0 0 0 1px rgb(61 51 38/.1)}
