/* Portant PMF SS26 — reprise fidèle du portant Snug Wrld (mêmes proportions, mêmes ressorts). */
:root {
  --paper: #e9e8e4;
  --ink: #151513;
  --band: #151513;
  --band-ink: #ecebe6;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; -webkit-user-select: none; user-select: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wall {
  position: relative; width: 100%; height: 100dvh; overflow: hidden;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='37' viewBox='0 0 46 37'%3E%3Cg fill='none' stroke='%23151513' stroke-opacity='.05' stroke-width='1' stroke-linecap='round'%3E%3Ccircle cx='23' cy='21' r='4.5'/%3E%3Cpath d='M23 16.5 V14.5 c0-1.6 2.2-1.8 2.2-3.2'/%3E%3C/g%3E%3C/svg%3E");
  background-position: top;
}

/* En-tête */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 50; height: 10.4vh; min-height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 2.2vw;
}
.nav {
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: opacity .3s; display: inline-flex; align-items: center; min-height: 48px;
}
.top > .nav { justify-self: start; }
.right { justify-self: end; position: relative; }
.close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); gap: 10px; white-space: nowrap; opacity: 0; pointer-events: none; }
.close span { font-size: 13px; font-weight: 600; }
.logo {
  display: grid; justify-items: center; line-height: .86; color: var(--ink); text-decoration: none;
  font-family: var(--display); text-transform: uppercase; transition: opacity .3s;
}
.logo span { font-size: 10px; letter-spacing: .02em; }
.logo b { font-size: 21px; font-weight: 400; letter-spacing: -.01em; }
.is-focus [data-hide] { opacity: 0; pointer-events: none; }
.is-focus .close { opacity: 1; pointer-events: auto; }

/* Bandeau défilant */
.marquee {
  position: absolute; inset: auto 0 0 0; z-index: 30; height: 4.3vh; min-height: 32px; display: flex; align-items: center;
  overflow: hidden; background: var(--band); color: var(--band-ink);
  font-size: 14px; font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .06em;
}
.marquee-track { white-space: pre; display: inline-flex; animation: marquee 72s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bouton bas */
.avail {
  position: absolute; left: 50%; top: 90%; z-index: 20; transform: translate(-50%, -50%);
  border: 1px solid var(--ink); border-radius: 999px; padding: 5px 19px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none;
  transition: opacity .3s;
}
.is-focus .avail { opacity: 0; pointer-events: none; }

/* Portant */
.rack-wrap { position: absolute; inset: 0; transition: filter .5s ease-out, opacity .5s ease-out; }
.is-focus .rack-wrap { filter: blur(8px); opacity: .25; }
.rack { position: absolute; inset: 0; }
.rail { position: absolute; z-index: 200; transform: translateY(-50%); }
.rail-tube {
  position: absolute; inset: 0 14px; border-radius: 999px;
  background:
    linear-gradient(90deg, #0000 32%, #28282647 37%, #2828261a 44%, #0000 50% 82%, #28282640 88%, #0000 93%),
    linear-gradient(#7d7e7a 0%, #c9cac5 18%, #fbfbf8 38%, #e2e3df 55%, #9c9d98 80%, #5f605c 100%);
  box-shadow: 0 5px 6px -3px #14141238;
}
.rail-end { position: absolute; top: 50%; width: 14px; height: 34px; transform: translateY(-50%); }
.rail-end.l { left: 0; } .rail-end.r { right: 0; }
.rail-plate { position: absolute; inset: 0 3px; border-radius: 3px; background: linear-gradient(90deg, #cfd0cc, #f1f1ee 45%, #d6d7d3); box-shadow: 0 1px 2px #1414122e, inset 0 0 0 .5px #14141226; }
.rail-plate::before, .rail-plate::after { content: ""; position: absolute; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4f4f2, #8e8f8b); }
.rail-plate::before { top: 4px; } .rail-plate::after { bottom: 4px; }
.rail-cap { position: absolute; top: 50%; width: 10px; transform: translateY(-50%); border-radius: 2px; background: linear-gradient(#6c6d69 0%, #bdbeb9 22%, #f6f6f3 42%, #c4c5c0 62%, #7a7b77 100%); }
.rail-end.l .rail-cap { left: 12px; } .rail-end.r .rail-cap { right: 12px; }

.rack-item { position: absolute; width: 0; height: 0; }
.rack-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; }
.rack-garment { filter: drop-shadow(0 6px 8px #14141214); }
.garment { position: absolute; top: 0; left: 0; width: 0; height: 0; transform-origin: 0 0; }
.garment-card { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.layer { position: absolute; pointer-events: none; }
.piece { position: absolute; inset: 0; }
.layer img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.hook-contact { position: absolute; top: 0; left: -5px; width: 10px; height: 1.5px; border-radius: 1px; background: #1414124d; filter: blur(.4px); }
.caption {
  position: absolute; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-size: 12px; letter-spacing: .01em; color: #66645e; transition: opacity .15s; opacity: 0;
}

/* Vue détail */
.focus { position: absolute; inset: 0; z-index: 40; }
.focus-backdrop { position: absolute; inset: 0; }
.focus-anchor { position: absolute; left: 50%; width: 0; height: 0; }
.focus-slide { position: absolute; top: 0; left: 0; width: 0; height: 0; filter: drop-shadow(0 8px 10px #1414121a); }
.fg { position: absolute; top: 0; left: 0; width: 0; height: 0; transform-origin: 0 0; }
.fg-card { position: absolute; top: 0; left: 0; transform-origin: 0 0; transform-style: preserve-3d; }
.fg-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.shade { position: absolute; inset: 0; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.focus-hit { position: absolute; }
.focus-arrow {
  position: absolute; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; z-index: 5; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.focus-arrow::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--ink); border-radius: 50%; transition: background-color .2s; }
.focus-arrow:hover::before { background: #15151314; }
.focus-arrow svg { position: relative; }
.focus-arrow.l { left: 6vw; } .focus-arrow.r { right: 6vw; }
.focus.open .focus-arrow, .focus.open .focus-info { opacity: 1; pointer-events: auto; }
.focus-info { position: absolute; left: 0; right: 0; display: flex; justify-content: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
.info { display: grid; justify-items: center; text-align: center; }
.info-name { height: 32px; line-height: 32px; font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; max-width: calc(88vw - 128px); overflow: hidden; }
.info-price { margin-top: 6px; font-size: 11px; letter-spacing: .14em; color: #66645e; }
.seg { position: relative; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; width: 152px; height: 32px; padding: 3px; border: 1px solid var(--ink); border-radius: 999px; }
.seg-knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink); }
.seg.anim .seg-knob { transition: transform .25s; }
.seg.anim button { transition: color .25s; }
.seg button { position: relative; z-index: 1; background: none; border: 0; padding: 0; font-family: inherit; font-size: 10px; letter-spacing: .14em; color: var(--ink); cursor: pointer; }
.seg button.lit { color: var(--paper); }
.info-cta { position: relative; margin-top: 24px; height: 16px; font-size: 10.5px; line-height: 14px; letter-spacing: .14em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }
.info-cta:hover { opacity: .65; }
.focus a:focus-visible, .focus button:focus-visible, .top a:focus-visible, .top button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 640px) {
  .caption { display: none; }
  .info-name { white-space: normal; text-wrap: balance; max-width: calc(100vw - 32px); font-size: 20px; line-height: 24px; height: auto; }
  .focus-arrow { top: auto !important; bottom: calc(max(4.3vh, 32px) + 16px); margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Étiquettes (offre) — même dessin que les étiquettes couleur du site d'origine */
.tagwrap { position: relative; transform-origin: 50% 0; animation: sway 3.6s ease-in-out infinite; pointer-events: none; }
.tagwrap .string { width: 1px; margin-inline: auto; background: var(--ink); opacity: .55; }
.tag { display: block; position: relative; box-sizing: border-box; padding: 1px; background: #15151333;
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); }
.tag-face { display: block; position: relative; box-sizing: border-box; width: 100%; height: 100%;
  background: var(--ink); color: var(--paper); text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  writing-mode: vertical-rl; text-orientation: mixed; text-align: center; white-space: nowrap;
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); }
.tag-face::before { content: ""; position: absolute; left: 50%; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px #00000040; }
@keyframes sway { 0%, 100% { transform: rotate(2.2deg); } 50% { transform: rotate(-2.2deg); } }
@media (prefers-reduced-motion: reduce) { .tagwrap { animation: none; } }

.rtag { position: absolute; width: var(--tw); pointer-events: none; }
.rtag .string { height: var(--ts); }
.rtag .tag { width: var(--tw); height: var(--th); }
.rtag .tag-face { font-size: var(--tf); line-height: 1.15; letter-spacing: .08em; padding: calc(var(--th) * .13) 0 calc(var(--th) * .04); display: flex; align-items: center; justify-content: center; }
.rtag .tag-face::before { top: calc(var(--th) * .045); width: calc(var(--tw) * .14); height: calc(var(--tw) * .14); margin-left: calc(var(--tw) * -.07); }

/* Vue détail : offre */
.fg-comp { position: absolute; top: 0; left: 0; width: 0; height: 0; transform-origin: 0 0; filter: saturate(.96); }
.ftag { position: absolute; z-index: 3; pointer-events: none; }
.ftag .string { height: 34px; }
.ftag .tag { width: 46px; height: 96px; }
.ftag .tag-face { font-size: 8px; line-height: 1.25; display: flex; align-items: center; justify-content: center; padding: 14px 0 6px; }
.ftag .tag-face::before { top: 4px; width: 6px; height: 6px; margin-left: -3px; }
.info-offer { margin-top: 16px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.gift-seg { width: 256px; margin-top: 10px; }
.gift-seg + .seg { margin-top: 12px; }
@media (max-width: 640px) {
  .ftag .string { height: 20px; }
  .ftag .tag { width: 30px; height: 66px; }
  .ftag .tag-face { font-size: 6px; padding: 9px 0 4px; }
  .ftag .tag-face::before { top: 3px; width: 4px; height: 4px; margin-left: -2px; }
  .info-offer { margin-top: 10px; font-size: 9px; }
  .gift-seg { width: 236px; }
}
