/* Weared — saisons « campagne photo » : Halloween, Black Friday, Noël, Nouvel An.
   Chargée seulement pendant une saison-scène (body.ws-stage, src/lib/seasonal.js).
   Chaque saison pose ses couleurs en variables sur <body> :
   --ws-ink (le noir de la saison), --ws-bone (le texte clair), --ws-acc (l'accent),
   --ws-band / --ws-band-fg (le bandeau du haut). Moteur : public/js/season-stage.js. */

@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.ws-halloween { --ws-ink: #0B0710; --ws-ink-rgb: 11,7,16; --ws-bone: #F6ECDD; --ws-bone-rgb: 246,236,221; --ws-acc: #FF8A1F;
  --ws-band: #FF7A1A; --ws-band-fg: #0B0710; --ws-band-acc: #0B0710; }
body.ws-blackfriday { --ws-ink: #050505; --ws-ink-rgb: 5,5,5; --ws-bone: #F3EEE7; --ws-bone-rgb: 243,238,231; --ws-acc: #E0B15A;
  --ws-band: linear-gradient(90deg,#B8893B 0%,#F3D58A 22%,#C9A04F 45%,#F7E3A6 68%,#B8893B 100%); --ws-band-fg: #050505; --ws-band-acc: #050505; }
body.ws-noel { --ws-ink: #1E060B; --ws-ink-rgb: 30,6,11; --ws-bone: #F8EFE4; --ws-bone-rgb: 248,239,228; --ws-acc: #E8C877;
  --ws-band: #B3121F; --ws-band-fg: #F8EFE4; --ws-band-acc: #F3D58A; }
body.ws-nouvelan { --ws-ink: #060918; --ws-ink-rgb: 6,9,24; --ws-bone: #F6F0E4; --ws-bone-rgb: 246,240,228; --ws-acc: #E8C877;
  --ws-band: linear-gradient(90deg,#E6D3A0 0%,#FFF4D6 25%,#E3C987 50%,#FFF4D6 75%,#E6D3A0 100%); --ws-band-fg: #060918; --ws-band-acc: #060918; }

/* ─── Bandeau défilant (remplace le .ticker pendant la saison) ─────────────── */
.ws-band { position: relative; overflow: hidden; display: flex; align-items: center; height: 40px; background: var(--ws-band); color: var(--ws-band-fg); }
.ws-band-track { display: flex; width: max-content; animation: wsMq 48s linear infinite; }
.ws-band-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.ws-band-track i { font-style: normal; font-size: 11px; color: var(--ws-band-acc); }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ─── En-tête sombre de la saison ──────────────────────────────────────────── */
body.ws-stage .site-header { --bg: var(--ws-ink); --text: var(--ws-bone); --text-dim: rgba(var(--ws-bone-rgb),.86); --muted: rgba(var(--ws-bone-rgb),.74);
  --faint: rgba(var(--ws-bone-rgb),.6); --line: rgba(var(--ws-bone-rgb),.1); --surface: #1b1519; --surface-2: #231b20; --surface-raised: #241c21;
  background: var(--ws-ink); color: var(--ws-bone); border-bottom-color: rgba(var(--ws-bone-rgb),.08); }
body.ws-stage .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg,rgba(255,255,255,0),var(--ws-acc),rgba(255,255,255,0)) no-repeat; background-size: 38% 100%;
  animation: wsLine 6s ease-in-out 1s infinite; }
body.ws-stage .site-header button.icon-link { background: transparent; border: 0; color: var(--muted); }
body.ws-stage .site-header button.icon-link:hover { color: var(--ws-bone); }
body.ws-stage .brand-logo--color { display: none; }
body.ws-stage .brand-logo--ink { display: block; }
/* Reflet masqué par la forme même du logo. */
body.ws-stage .brand { position: relative; }
body.ws-stage .brand::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(/img/brand/weared-logo-ink.png) left center / auto 100% no-repeat; mask: url(/img/brand/weared-logo-ink.png) left center / auto 100% no-repeat;
  background: linear-gradient(105deg,rgba(255,255,255,0) 40%,rgba(255,214,140,.95) 47%,rgba(255,252,240,1) 50%,rgba(255,214,140,.95) 53%,rgba(255,255,255,0) 60%) no-repeat;
  background-size: 320% 100%; background-position: 120% 0; animation: wsSheen 6s cubic-bezier(.45,0,.2,1) 1.4s infinite; }
body.ws-halloween .brand::after { background-image: linear-gradient(105deg,rgba(255,255,255,0) 40%,rgba(255,150,60,.95) 47%,rgba(255,236,200,1) 50%,rgba(255,150,60,.95) 53%,rgba(255,255,255,0) 60%); }

/* ─── Scène photo (héros de l'accueil, bande du fil, arrivée) ─────────────── */
.ws-scene { position: relative; overflow: hidden; isolation: isolate; background: var(--ws-ink); color: var(--ws-bone); }
.ws-kv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transform-origin: var(--fx,70%) var(--fy,50%); animation: wsKvIn 2.8s cubic-bezier(.16,1,.3,1) both, wsKB 26s ease-in-out 2.8s infinite alternate; }
.ws-glow { mix-blend-mode: screen; opacity: 0; pointer-events: none; animation: wsKvInT 2.8s cubic-bezier(.16,1,.3,1) both, wsKB 26s ease-in-out 2.8s infinite alternate; }
.ws-kv--tall { display: none; }
.ws-scene canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ws-scrim, .ws-lamp { position: absolute; inset: 0; pointer-events: none; }
/* La lampe : le visiteur tient la flamme ; au repos elle revient sur la citrouille. */
.ws-lamp { background: radial-gradient(circle at var(--lx,70%) var(--ly,50%),rgba(255,160,80,.12) 0,rgba(255,130,50,.05) 110px,rgba(var(--ws-ink-rgb),0) 190px,rgba(var(--ws-ink-rgb),.38) 340px,rgba(var(--ws-ink-rgb),.62) 620px); }
.ws-copy { position: relative; z-index: 1; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.ws-kk { display: flex; align-items: center; gap: 14px; margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 12px; line-height: 1.3;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(var(--ws-bone-rgb),.8); }
.ws-rule { display: inline-block; flex: 0 0 auto; width: 40px; height: 1px; background: currentColor; transform-origin: left; animation: wsRule 1.2s cubic-bezier(.2,.8,.2,1) .15s both; }
.ws-title { margin: 0; font-weight: 400; letter-spacing: 0; }
.ws-t { display: block; white-space: nowrap; margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400;
  line-height: .8; letter-spacing: -.03em; color: var(--ws-bone); font-size: calc(var(--ws-size) * var(--ws-fit, 1)); }
.ws-t > span { display: block; }
.ws-t .ws-small { font-size: .27em; line-height: 1.05; letter-spacing: -.01em; }
.ws-ch { display: inline-block; animation: wsCh 1.25s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--d,.3s) + var(--i) * 62ms); }
.ws-fire { animation: wsFire 4.8s linear infinite; }
.ws-fire .ws-ch { background: linear-gradient(180deg,#FFF1C9 0%,#FFC56B 28%,#FF8A1F 56%,#E0480C 80%,#8E1B0E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .09em 0 .06em; margin: 0 -.09em 0 -.06em; }
.ws-foil { display: inline-block; padding: 0 .1em 0 .06em; margin: 0 -.1em 0 -.06em;
  background: linear-gradient(100deg,#8C6428 0%,#E9C978 16%,#FFF6D8 28%,#C9A04F 42%,#F7E3A6 56%,#B07F33 72%,#F3D58A 86%,#8C6428 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(233,201,120,.35)); animation: wsRise 1.4s cubic-bezier(.16,1,.3,1) .7s both, wsFoil 6s ease-in-out 2.1s infinite; }
.ws-lede { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: rgba(var(--ws-bone-rgb),.82); max-width: 430px; }
.ws-fade { animation: wsFade 1.1s ease both; }
.ws-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ws-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 28px; box-sizing: border-box; border-radius: 999px;
  background: #D81420; color: #FFFFFF; text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 16px;
  box-shadow: 0 14px 34px -12px rgba(237,28,36,.85); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.ws-cta:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 22px 42px -12px rgba(237,28,36,.95); text-decoration: none; }
.ws-cta svg { transition: transform .25s; }
.ws-cta:hover svg { transform: translateX(3px); }
.ws-ghost { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 24px; box-sizing: border-box; border-radius: 999px;
  border: 1px solid rgba(var(--ws-bone-rgb),.34); color: var(--ws-bone); text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 15px;
  transition: background-color .2s, border-color .2s; }
.ws-ghost:hover { color: var(--ws-bone); background: rgba(var(--ws-bone-rgb),.1); border-color: rgba(var(--ws-bone-rgb),.6); text-decoration: none; }
.ws-link { color: var(--ws-bone); text-decoration: none; border-bottom: 1px solid rgba(var(--ws-bone-rgb),.4); padding-bottom: 3px; transition: border-color .2s; }
.ws-link:hover { color: var(--ws-bone); border-color: var(--ws-bone); text-decoration: none; }
/* Sceau tournant : le tampon de la campagne. */
.ws-seal { position: absolute; z-index: 1; display: grid; place-items: center; border-radius: 50%; color: var(--ws-bone); pointer-events: none;
  background: rgba(var(--ws-ink-rgb),.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(var(--ws-bone-rgb),.16);
  animation: wsSealIn 1.4s cubic-bezier(.16,1,.3,1) 1.3s both; }
.ws-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: wsSpin 26s linear infinite; }
.ws-seal text { font-family: var(--font-display); font-weight: 700; font-size: 9.6px; letter-spacing: .2em; fill: currentColor; }
.ws-seal b { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; line-height: 1; color: var(--ws-acc); font-size: 36px; }

/* Héros de l'accueil : pleine largeur, sous l'en-tête. */
.ws-hero { height: min(640px, 78vh); min-height: 520px; }
.ws-hero .ws-media { position: absolute; top: 0; right: 0; width: 86%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg,transparent 0%,#000 30%); mask-image: linear-gradient(90deg,transparent 0%,#000 30%); }
.ws-hero .ws-scrim { background: linear-gradient(90deg,rgba(var(--ws-ink-rgb),.92) 0%,rgba(var(--ws-ink-rgb),.62) 30%,rgba(var(--ws-ink-rgb),0) 54%),
  linear-gradient(0deg,rgba(var(--ws-ink-rgb),.62) 0%,rgba(var(--ws-ink-rgb),0) 28%),linear-gradient(180deg,rgba(var(--ws-ink-rgb),.5) 0%,rgba(var(--ws-ink-rgb),0) 20%); }
.ws-hero .ws-copy { padding: 0 clamp(24px, 5.6vw, 72px); gap: 28px; max-width: 780px; --ws-size: clamp(96px, 13.4vw, 172px); }
.ws-hero .ws-seal { right: 48px; bottom: 44px; width: 132px; height: 132px; }
/* Bande du fil (pages connectées), fermable. */
.ws-strip { height: 264px; border-radius: 22px; margin: 0 0 28px; }
.ws-strip .ws-media { position: absolute; inset: 0; }
.ws-strip .ws-scrim { background: linear-gradient(90deg,rgba(var(--ws-ink-rgb),.95) 0%,rgba(var(--ws-ink-rgb),.84) 30%,rgba(var(--ws-ink-rgb),.2) 56%,rgba(var(--ws-ink-rgb),0) 72%); }
.ws-strip .ws-copy { padding: 0 52px; gap: 20px; max-width: 720px; --ws-size: clamp(64px, 9vw, 116px); }
.ws-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(0,0,0,.36); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ws-x:hover { background: rgba(0,0,0,.6); }
/* Arrivée : une fois par session, plein écran, ~3 s ; un clic ou Échap la passe. */
.ws-splash { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; cursor: pointer; transition: clip-path 1s cubic-bezier(.76,0,.24,1); clip-path: inset(0 0 0 0); }
.ws-splash[hidden] { display: none; }
.ws-splash.is-out { clip-path: inset(0 0 100% 0); }
.ws-splash .ws-media { position: absolute; inset: 0; }
.ws-splash .ws-kv { animation: wsSplKv 3.2s cubic-bezier(.16,1,.3,1) both; }
.ws-splash .ws-glow { animation: wsSplKvT 3.2s cubic-bezier(.16,1,.3,1) both; }
.ws-splash .ws-scrim { background: radial-gradient(ellipse at 50% 52%,rgba(var(--ws-ink-rgb),.38) 0%,rgba(var(--ws-ink-rgb),.8) 72%,rgba(var(--ws-ink-rgb),.92) 100%); }
.ws-spl-t { position: relative; z-index: 2; text-align: center; --ws-size: clamp(88px, 18vw, 232px); transition: transform 1s cubic-bezier(.76,0,.24,1), opacity 1s; }
.ws-splash.is-out .ws-spl-t { transform: translateY(-55%); opacity: 0; }
.ws-spl-k { display: block; margin-top: 22px; font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(var(--ws-bone-rgb),.82); animation: wsFade 1s ease .9s both; }
.ws-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.ws-fx--bolt { background: rgb(232,226,255); animation: wsBolt 1.1s linear .25s both; }
.ws-fx--beam { opacity: 1; background: linear-gradient(104deg,rgba(255,232,180,0) 38%,rgba(255,232,180,.6) 50%,rgba(255,232,180,0) 62%) no-repeat; background-size: 320% 100%; animation: wsBeam 1.5s cubic-bezier(.45,0,.2,1) .3s both; }
.ws-fx--bloom { background: radial-gradient(circle at 50% 46%,rgba(255,250,240,.95) 0%,rgba(255,250,240,0) 58%); animation: wsBloom 1.6s ease-out .1s both; }
.ws-fx--burst { background: radial-gradient(circle at 50% 50%,rgba(255,244,214,1) 0%,rgba(243,213,138,.55) 22%,rgba(243,213,138,0) 60%); animation: wsBurst 1.2s cubic-bezier(.16,1,.3,1) .55s both; }

/* ─── Téléphone : visuel vertical, texte en bas ────────────────────────────── */
@media (max-width: 900px) {
  .ws-kv--wide { display: none; }
  .ws-kv--tall { display: block; }
  .ws-band { height: 32px; }
  .ws-hero { height: min(624px, 82vh); min-height: 480px; }
  .ws-hero .ws-media { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .ws-hero .ws-scrim { background: linear-gradient(180deg,rgba(var(--ws-ink-rgb),.5) 0%,rgba(var(--ws-ink-rgb),0) 13%,rgba(var(--ws-ink-rgb),0) 34%,rgba(var(--ws-ink-rgb),.84) 60%,rgba(var(--ws-ink-rgb),.97) 100%); }
  .ws-hero .ws-copy { justify-content: flex-end; padding: 0 22px 24px; gap: 16px; --ws-size: clamp(64px, 24vw, 94px); }
  .ws-hero .ws-seal { right: 16px; top: 16px; bottom: auto; width: 94px; height: 94px; }
  .ws-hero .ws-seal b { font-size: 25px; }
  .ws-hero .ws-seal text { font-size: 7.6px; }
  .ws-hero .ws-lede { font-size: 15px; }
  .ws-hero .ws-ghost { display: none; }
  .ws-hero .ws-cta { flex: 1 1 auto; height: 52px; }
  .ws-hero .ws-actions { flex-wrap: nowrap; }
  .ws-lamp { display: none; }
  .ws-kk { font-size: 10.5px; letter-spacing: .22em; }
  .ws-strip { height: 220px; border-radius: 18px; }
  .ws-strip .ws-scrim { background: linear-gradient(90deg,rgba(var(--ws-ink-rgb),.95) 0%,rgba(var(--ws-ink-rgb),.7) 55%,rgba(var(--ws-ink-rgb),.2) 100%); }
  .ws-strip .ws-copy { padding: 0 22px; gap: 14px; --ws-size: clamp(48px, 15vw, 72px); }
}

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes wsMq { to { transform: translateX(-50%); } }
@keyframes wsLine { 0% { background-position: -45% 0; } 100% { background-position: 145% 0; } }
@keyframes wsSheen { 0% { background-position: 120% 0; } 38%, 100% { background-position: -20% 0; } }
@keyframes wsRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wsFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wsRise { from { transform: translateY(108%) rotate(2.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wsFoil { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes wsCh { from { opacity: 0; transform: translateY(.45em) rotate(9deg) scale(.88); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wsFire {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255,138,31,.55)) drop-shadow(0 0 48px rgba(255,90,10,.4)); }
  8% { filter: drop-shadow(0 0 8px rgba(255,138,31,.4)) drop-shadow(0 0 32px rgba(255,90,10,.26)); }
  11% { filter: drop-shadow(0 0 17px rgba(255,165,70,.72)) drop-shadow(0 0 64px rgba(255,100,20,.5)); }
  37% { filter: drop-shadow(0 0 13px rgba(255,138,31,.58)) drop-shadow(0 0 52px rgba(255,90,10,.42)); }
  39% { filter: drop-shadow(0 0 7px rgba(255,138,31,.36)) drop-shadow(0 0 28px rgba(255,90,10,.22)); }
  42% { filter: drop-shadow(0 0 16px rgba(255,155,55,.68)) drop-shadow(0 0 58px rgba(255,95,15,.46)); }
  71% { filter: drop-shadow(0 0 11px rgba(255,138,31,.5)) drop-shadow(0 0 44px rgba(255,90,10,.34)); }
  74% { filter: drop-shadow(0 0 18px rgba(255,170,80,.75)) drop-shadow(0 0 66px rgba(255,100,20,.52)); }
}
@keyframes wsKvIn { from { opacity: 0; transform: scale(1.24); } to { opacity: 1; transform: scale(1.05); } }
@keyframes wsKB { from { transform: scale(1.05); } to { transform: scale(1.13); } }
@keyframes wsKvInT { from { transform: scale(1.24); } to { transform: scale(1.05); } }
@keyframes wsSplKv { from { opacity: 0; transform: scale(1.32); } to { opacity: 1; transform: scale(1.08); } }
@keyframes wsSplKvT { from { transform: scale(1.32); } to { transform: scale(1.08); } }
@keyframes wsSealIn { from { opacity: 0; transform: scale(.6) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes wsSpin { to { transform: rotate(1turn); } }
@keyframes wsBolt { 0% { opacity: 0; } 3% { opacity: .88; } 8% { opacity: .1; } 14% { opacity: 1; } 42% { opacity: 0; } 100% { opacity: 0; } }
@keyframes wsBeam { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes wsBloom { 0% { opacity: 0; transform: scale(.35); } 22% { opacity: .85; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes wsBurst { 0% { opacity: 0; transform: scale(.2); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }

@media (prefers-reduced-motion: reduce) {
  .ws-band-track, .ws-kv, .ws-glow, .ws-rule, .ws-ch, .ws-fire, .ws-foil, .ws-fade, .ws-seal, .ws-seal svg,
  body.ws-stage .site-header::after, body.ws-stage .brand::after { animation: none; }
  .ws-glow { opacity: .55; }
  .ws-splash { display: none; }
}
