/* =========================================================
   SOFA DÉCOR — logo + ergonomie (sélection, barre mobile,
   actions de la visionneuse, vidéos en lien direct)
   ========================================================= */

/* Logo */
.nav__logo { display: block; line-height: 0; }
.logo-img { height: 50px; width: auto; transition: height .4s var(--ease-out); }
.nav.is-scrolled .logo-img { height: 42px; }
.footer__brand .logo-img { height: 64px; }
.loader__emblem { width: clamp(90px, 12vw, 130px); height: auto; margin: 0 auto 26px; display: block; overflow: visible; }

/* Header: selection button */
.nav__sel { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: border-color .3s, color .3s; flex: none; }
.nav__sel:hover { border-color: var(--gold); color: var(--gold-2); }
.nav__sel svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
[data-sel-count] { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
[data-sel-count][hidden] { display: none; }
.nav { gap: 16px; }
.nav__links { margin-left: auto; margin-right: 12px; }

/* Collection tiles with ♡ */
.tile__open { position: relative; width: 100%; height: 100%; padding: 0; display: block; cursor: pointer; }
.tile:focus-within::after { opacity: 1; }
.tile:focus-within .tile__cap { transform: none; opacity: 1; }
.fav { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 12, 10, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(244, 238, 228, .18); color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill .3s; }
.fav:hover { border-color: var(--gold-2); color: var(--gold-2); }
.fav.is-on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.fav.is-on svg { fill: currentColor; }
.collection__hint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.collection__hint span { color: var(--gold-2); font-size: 16px; }

/* Lightbox actions */
.lightbox__fig img { max-height: 74vh; }
.lightbox__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lightbox__actions .btn { --h: 48px; padding: 0 22px; font-size: 12px; }
.lb-fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.lb-fav.is-on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.lb-fav.is-on svg { fill: currentColor; }

/* Selection drawer */
.drawer { position: fixed; inset: 0; z-index: 970; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease-io); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.drawer__head .eyebrow { margin-bottom: 10px; }
.drawer__head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.05; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: background .3s, color .3s; }
.drawer__close:hover { background: var(--gold); color: var(--gold-ink); }
.drawer__empty { padding: 48px 28px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 18px; }
.drawer__empty[hidden] { display: none; }
.drawer__empty svg { width: 48px; height: 48px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.drawer__empty p { margin: 0; max-width: 30ch; }
.drawer__list { list-style: none; margin: 0; padding: 12px 20px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.drawer__item { display: grid; grid-template-columns: 72px 1fr 44px; gap: 14px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.drawer__item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.drawer__item strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; }
.drawer__item small { font-size: 12px; color: var(--muted); }
.drawer__item button { width: 40px; height: 40px; border-radius: 50%; color: var(--muted); transition: background .3s, color .3s; }
.drawer__item button:hover { background: var(--surface-2); color: var(--ink); }
.drawer__foot { padding: 20px 28px 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__foot[hidden] { display: none; }
.drawer__clear { justify-self: center; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.drawer__clear:hover { color: var(--ink); }
.drawer-open, .drawer-open body { overflow: hidden; }

/* Videos as direct links (instant, open the app) */
a.phone { display: block; color: inherit; }
.phone__screen { display: block; }
.phone__link { display: inline-block; }
a.phone:focus-visible .phone__screen { outline: 2px solid var(--gold-2); outline-offset: 4px; }

/* Mobile action bar */
.actionbar { display: none; }
@media (max-width: 860px) {
  .actionbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 560;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
    background: rgba(21, 18, 15, .88); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  }
  .actionbar a { position: relative; min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 14px; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
  .actionbar a:active { background: var(--surface-2); }
  .actionbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .actionbar a.is-wa { background: #25d366; color: #fff; }
  .actionbar a.is-wa svg { fill: currentColor; stroke: none; }
  .actionbar [data-sel-count] { top: 4px; right: calc(50% - 22px); }
  .wa-float { display: none; }
  body { padding-bottom: 84px; }
  .nav__sel { display: none; }
  .logo-img { height: 40px; }
  .nav.is-scrolled .logo-img { height: 36px; }
}
@media (max-width: 380px) { .logo-img { height: 34px; } }

/* Nos univers (tout le mobilier) */
.univers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.uni { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: var(--ink); border: 1px solid var(--line); }
.uni__img { position: absolute; inset: 0; z-index: -1; }
.uni__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out), filter .8s; filter: brightness(.82) saturate(.95); }
.uni::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 8, 7, .92) 0%, rgba(10, 8, 7, .35) 45%, transparent 70%); }
.uni__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px 26px; display: grid; gap: 6px; }
.uni__n { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); min-height: 1em; }
.uni__body strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; }
.uni__body > span { font-size: 14px; color: rgba(244, 238, 228, .75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s; }
.uni__go { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; background: rgba(14, 12, 10, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(244, 238, 228, .2); transition: background .4s, color .4s, transform .6s var(--ease-out); }
.uni:hover .uni__img img, .uni:focus-visible .uni__img img { transform: scale(1.12); filter: brightness(.95) saturate(1.05); }
.uni:hover .uni__body > span, .uni:focus-visible .uni__body > span { max-height: 3em; opacity: 1; }
.uni:hover .uni__go, .uni:focus-visible .uni__go { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); transform: rotate(45deg); }
.uni:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
@media (hover: none) { .uni__body > span { max-height: 3em; opacity: 1; } }
@media (max-width: 960px) { .univers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .univers__grid { gap: 10px; }
  .uni { aspect-ratio: 3 / 4; }
  .uni__body { padding: 14px 14px 16px; }
  .uni__body strong { font-size: 22px; }
  .uni__body > span { display: none; }
  .uni__go { width: 36px; height: 36px; top: 10px; right: 10px; font-size: 14px; }
}
